Top

Lockdown


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Sep 10, 2008
Last Updated  Sep 10, 2008
Tags  lockdown  meeting  protection  secret 

Description

Does what it says on the tin! It virtually locks down your Channel, Applying mode s(secret)m(Moderated) and i(Invite) while kicking all the unvoiced, Voice all the people you want kept in the chan.
To unapply the modes do !lockdown off and !lockdown to activate.
This is an Input and text, So ops in your cahn can use it, But not halfops!

NOTE: I left mode +v off, incase you forget to voice someone and need to invite them in
Also, Please dont claim this script as your own, This took me some time to make.

Triggers fixed

Grab the Code

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Server: Irc.swiftirc.net      ;;;
;;; Nicks: iHawk iRwar Kitty_Rwar ;;;
;;; Leo_cool_1 Mr`Wiskers|away    ;;;
;;; Channels: #tk #mudkip         ;;;
;;; Email: Mudkipz@scripting.net  ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
on *:input:#: {
if ($1- == !lockdown) {
    set %e 1 
    :fred
    set %chan $nick(#,%e,reg)
    if (%chan == $null) { 
      halt
    }
    elseif (%chan ison #) && (%chan == $me) { 
      inc %e
      goto fred
    }
    elseif (%chan isreg #) || (%chan isvoice #) || (%chan isop #) {
      kick # %chan 
      mode # +i
      mode # +s
      mode # +m
      inc %e
      goto fred
    }
  }
  if ($1- == !lockdown off) {
    /mode # -i
    /mode # -s
    /mode # -m
}
 
on *:text:*:#: {
  if ($1- == !lockdown) {
if ($nick isop $chan) {
    set %e 1 
    :fred
    set %chan $nick(#,%e,reg)
    if (%chan == $null) { 
      halt
    }
    elseif (%chan ison #) && (%chan == $me) { 
      inc %e
      goto fred
    }
    elseif (%chan isreg #) || (%chan isvoice #) || (%chan isop #) {
      kick # %chan Lockdown
      mode # +i
      mode # +s
      mode # +m
      inc %e
      goto fred
    }
  }
  if ($1- == !lockdown off) {
if ($nick isop $chan) {
    /mode # -i
    /mode # -s
    /mode # -m
  }
}
 

Comments

  (10)  RSS
rhasttaff
Comments: 101
 
mIRC Snippet:  Lockdown
Posted on Sep 10, 2008 12:11 pm
hello! i think that you have missed the 1° event

i dontknow if it
on *:text:*:#: {
or
on *:input:*:#: {

Jah Bless´´´
Mudkipz
Comments: 25
 
mIRC Snippet:  Lockdown
Posted on Sep 10, 2008 1:06 pm
These scripts have been fully tested... I havnt made a single mistake, you dont need to put the access level if thats what you mean the *:text: Works, I use it in all my scripts
Akishoot
Comments: 139
 
mIRC Snippet:  Lockdown
Posted on Sep 10, 2008 1:08 pm
No... The very first line of the actual coding. You're missing the on EVENT part...

Code:

if ($1- == !lockdown) {
    set %e 1
    :fred
    set %chan $nick(#,%e,reg)
    if (%chan == $null) {
      halt
    }
    elseif (%chan ison #) && (%chan == $me) {
      inc %e
      goto fred
    }
    elseif (%chan isreg #) || (%chan isvoice #) || (%chan isop #) {
      kick # %chan
      mode # +i
      mode # +s
      mode # +m
      inc %e
      goto fred
    }
  }
  if ($1- == !lockdown off) {
    /mode # -i
    /mode # -s
    /mode # -m
}
jonesy44
Comments: 1,892
 
mIRC Snippet:  Lockdown
Posted on Sep 10, 2008 1:09 pm
How can you test this, when there is absolutely no trigger?
Zmodem
Comments: 306
 
mIRC Snippet:  Lockdown
Posted on Sep 10, 2008 1:22 pm
Too early in the stages of coding. Like Akishoot said, no event/menu for locking down the channel in the first place. This will not work.
Mudkipz
Comments: 25
 
mIRC Snippet:  Lockdown
Posted on Sep 10, 2008 4:20 pm
OH NOW I SEE! Sorry =( You were right, i forgot the input since it was was at the bottom of my input list. Fixed
jonesy44
Comments: 1,892
 
mIRC Snippet:  Lockdown
Posted on Sep 10, 2008 5:02 pm
Lol, you may want to consider running it through mIRC script dialog to add correct alignment
Zmodem
Comments: 306
 
mIRC Snippet:  Lockdown
Posted on Sep 10, 2008 5:32 pm
This still doesn't work, because you need a { after the ON *:INPUT:#:.
napa182
Comments: 1,692
 
mIRC Snippet:  Lockdown
Posted on Sep 10, 2008 6:22 pm
you should look into while loops as well you can put the chan modes on one line

Code:
on @*:text:*:#: {
  if ($nick isop #) {
    if ($1 == !lockdown) {
      set $+(%,lockdown,.,$chan) on
      mode # +ism
      var %a = $nick(#,0,r), %o = 1
      while (%o <= %a) {
        ban -ku30 # $nick(#,%o,r) 2 Channel LockDown
        inc %o
      }
    }
    if ($1 == !lockdownoff) { if ($($+(%,lockdown,.,$chan),2)) { mode # -ism | unset $+(%,lockdown,.,$chan) } }
  }
}
on @*:input:#: {
  if ($1 == !lockdown) {
    set $+(%,lockdown,.,$chan) on
    mode # +ism
    var %a = $nick(#,0,r), %o = 1
    while (%o <= %a) {
      ban -ku30 # $nick(#,%o,r) 2 Channel LockDown
      inc %o
    }
  }
  if ($1 == !lockdownoff) { if ($($+(%,lockdown,.,$chan),2)) { mode # -ism | unset $+(%,lockdown,.,$chan) } }
}

Mudkipz
Comments: 25
 
mIRC Snippet:  Lockdown
Posted on Sep 10, 2008 6:31 pm
I seen i forgot the bracket, Internet was down tho.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  

Bottom