All pastes #629377 Raw Edit

Someone

public text v1 · immutable
·published 2007-07-22 06:28 UTC
rendered paste body
on *:TEXT:!pc*:#:{
if ($nick isop $chan || $nick == Hotwizard00) {
if ($2 === on) { /msg $chan Pest control world is now on! Its turned on by $nick $+ ! | /set %pestcontrol.status [ $+ [ $chan ] ] on }
if ($2 === off) { /msg $chan Pest control world is now off. Its turned off by $nick $+ . | /unset %pestcontrol.status [ $+ [ $chan ] ] }
}
}
on $*:TEXT:/^[!@](setpcw|setworld)/Si:#:{
if (%pestcontrol.status [ $+ [ $chan ] ] == on) {
if ($nick isop $chan || $nick ishop $chan) && ($2 isnum) {
/set %pestcontrol.setter [ $+ [ $chan ] ] $nick
/set %pestcontrol.world [ $+ [ $chan ] ] $2
/msg $chan New Pest Control World! The pest control world is setted by $nick $+ ! Type !pcw or !world to view the new Pest Control World!
}
else { /notice $nick You must be a op or halfop to change the world! }
}
else { /notice $nick Pest Control is not on. PM a op or halfop to activate Pest Control. }
}
on $*:TEXT:/^[!@](pcw|world)/Si:#:{
if (%pestcontrol.status [ $+ [ $chan ] ] == on) {
/notice $nick The Pest Control World is %pestcontrol.world [ $+ [ $chan ] ] $+ , setted by %pestcontrol.setter [ $+ [ $chan ] ] $+ !
}
else { /notice $nick Pest Control is not on. PM a op or halfop to activate Pest Control. }
}