iKnown>> Lockdown

By BrandinA on Jan 18, 2010

Copyright © 2010 – Brandin Arsenault, Known Syntax – BOINC Services, Int. – All rights reserved.

Editing of this script is allowed.

This script is originally from the iKnown IRC Bot which is now discontinued.

-

Well, I stripped down 75% of the script I found and redid it. The first part is triggered by !911 and it locks down the channel if the script reacts. If you need help with any of the lockdowns type !lockdown HELP for a list of what they do. Users can trigger the lockdowns but only ops can take off the lockdowns.

-

Commands:

!lockdown orange
!lockdown yellow
!lockdown blue
!lockdown black
!lockdown red
!lockdown orange OFF
!lockdown yellow OFF
!lockdown blue OFF
!lockdown black OFF
!lockdown red OFF

on *:TEXT:!911:*: {
  msg $chan !tscript !lockdown RED
}

on *:TEXT:!lockdown HELP:*: {
  notice $nick Codes
  notice $nick -
  notice $nick Orange - General Lockdown for Investigation
  notice $nick Yellow - Registered Lockdown (Registered Nicks can only join!)
  notice $nick Blue - Med Lockdown
  notice $nick Black - Highly Secured Lockdown
  notice $nick Red - Total Lockdown (All Modes Set)
}

on *:TEXT:!lockdown orange:*: {
  if ($nick isop $chan) {
    if ($chan) { 
      msg $chan Code 7Orange 1has been activated! (Don't know what this means? Type '!lockdown HELP')
      mode $chan +pk
      msg *staff,*help,*home 4IMPORTANT NOTICE
      msg *staff,*help,*home $chan has been put in the following state: Code Orange
    }
  }
}

on *:TEXT:!lockdown yellow:*: {
  if ($nick isop $chan) {
    if ($chan) { 
      msg $chan Code 8Yellow 1has been activated! (Don't know what this means? Type '!lockdown HELP')
      mode $chan +mR
      msg *staff,*help,*home 4IMPORTANT NOTICE
      msg *staff,*help,*home $chan has been put in the following state: Code Yellow
    }
  }
}

on *:TEXT:!lockdown blue:*: {
  if ($nick isop $chan) {
    if ($chan) { 
      msg $chan Code 11Blue 1has been activated! (Don't know what this means? Type '!lockdown HELP')
      mode $chan +pmiRk
      msg *staff,*help,*home 4IMPORTANT NOTICE
      msg *staff,*help,*home $chan has been put in the following state: Code Blue
    }
  }
}

on *:TEXT:!lockdown black:*: {
  if ($nick isop $chan) {
    if ($chan) { 
      msg $chan Code 1Black 1has been activated! (Don't know what this means? Type '!lockdown HELP')
      mode $chan +pmiRSNVk
      msg *staff,*help,*home 4IMPORTANT NOTICE
      msg *staff,*help,*home $chan has been put in the following state: Code Black
    }
  }
}

on *:TEXT:!lockdown red:*: {
  if ($nick isop $chan) {
    if ($chan) { 
      msg $chan Code 4red 1has been activated! (Don't know what this means? Type '!lockdown HELP')
      mode $chan +pmiRSNVkmG
      msg *staff,*help,*home 4IMPORTANT NOTICE
      msg *staff,*help,*home $chan has been put in the following state: Code RED - LOOK INTO THIS IMMEDITLY! PANIC!
    }
  }
}

on *:TEXT:!lockdown orange OFF:*: {
  if ($nick isop $chan) {
    if ($chan) { 
      msg $chan Code 7Orange 1has been deactivated! (Don't know what this means? Type '!lockdown HELP')
      mode $chan -pk
      msg *staff,*help,*home 4IMPORTANT NOTICE
      msg *staff,*help,*home $chan has left the following state: Code Orange
    }
  }
}

on *:TEXT:!lockdown yellow OFF:*: {
  if ($nick isop $chan) {
    if ($chan) { 
      msg $chan Code 8Yellow 1has been deactivated! (Don't know what this means? Type '!lockdown HELP')
      mode $chan -mR
      msg *staff,*help,*home 4IMPORTANT NOTICE
      msg *staff,*help,*home $chan has left the following state: Code Yellow
    }
  }
}

on *:TEXT:!lockdown blue OFF:*: {
  if ($nick isop $chan) {
    if ($chan) { 
      msg $chan Code 11Blue 1has been deactivated! (Don't know what this means? Type '!lockdown HELP')
      mode $chan -pmiRk
      msg *staff,*help,*home 4IMPORTANT NOTICE
      msg *staff,*help,*home $chan has left the following state: Code Blue
    }
  }
}

on *:TEXT:!lockdown black OFF:*: {
  if ($nick isop $chan) {
    if ($chan) { 
      msg $chan Code 1Black 1has been deactivated! (Don't know what this means? Type '!lockdown HELP')
      mode $chan -pmiRSNVk
      msg *staff,*help,*home 4IMPORTANT NOTICE
      msg *staff,*help,*home $chan has left the following state: Code Black
    }
  }
}

on *:TEXT:!lockdown red OFF:*: {
  if ($nick isop $chan) {
    if ($chan) { 
      msg $chan Code 4red 1has been deactivated! (Don't know what this means? Type '!lockdown HELP')
      mode $chan -pmiRSNVkmG
      msg *staff,*help,*home 4IMPORTANT NOTICE
      msg *staff,*help,*home $chan has left the following state: Code RED
    }
  }
}

Comments

Sign in to comment.
sk68   -  Oct 17, 2010

this whole thing could be 10-15 lines...

on @*:TEXT:!lockdown*:#:{ if ($2 == help) { ... }
  elseif ($2 == orange) { if (!$3) { ... }
    elseif ($3 == off) { ... }
  }
  elseif ($2 == yellow) { if (!$3) { ... }
    elseif ($3 == off) { ... }
  }
  ; And so on
}

or even shorter if you use $iif

 Respond  
blackvenomm666   -  Oct 16, 2010

not to mention but copyrighting a script is pointless since someone you don't know that doesnt know you and has never been on hawkee could have made the exact same script. and prolly has

 Respond  
Known   -  Oct 16, 2010

You could make the whole lockdown part into one on text event..and yeah like Nuk3d said you forgot to include the !tscript that follows with the !911 command.

Also why have it copyrighted? Isn't any script from mIRC under the GNU General Public License, unless bought/paid for?

 Respond  
Nuk3d   -  Oct 16, 2010

!911 is useless, there is no !tscript in that, and the !lockdown in that would do nothing unless that was first part and this script was on another client

 Respond  
Kirbeh_Pr0nz   -  Oct 16, 2010

immediately*
check for typos.
and also, you can definately use some elseif.
also what good is setting mode +k without adding an extra parameter. yay for a keyless channel.
code needs revising.
also, in the !911, it mentions !tscript. which triggers only the given desire to type it for no reason.
also,

on *:TEXT:!lockdown orange OFF:*: {
  if ($nick isop $chan) {

can be on @:text ... bla bla

maybe you shouldve "stripped" this code a little more, maybe 100% instead of 75%
kthxbai

 Respond  
blackvenomm666   -  Oct 16, 2010

could combine the setting of lockdowns on/off into one thing bye using if statements and leave the on text part like on :TEXT::*: { if (!lockdown orange ) blablablablablabla

 Respond  
napa182   -  Oct 16, 2010

a tad bit redundant..
=/

 Respond  
Tannn3r   -  Oct 16, 2010

Nice job. It seems to work pretty good.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.