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
}
}
}
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