All pastes #621923 Raw Edit

Jemand

public text v1 · immutable
·published 2007-07-16 14:45 UTC
rendered paste body
on *:TEXT:!setpcw*:#: { 
  if ($nick isop # || $nick ishop #) || $nick isvoice #) && ($2 isnum 2-144) { 
    set %pcw.nick. [ $+ [ $chan ] ] $nick 
    set %pcw.world. [ $+ [ $chan ] ] $2 
    set %pcw.time. [ $+ [ $chan ] ] $ctime 
    msg $chan 12The current pest control world has been changed in 7 $chan 7 ! - 14Type:14 7!pc/!pcw/!world7 
  } 
  else { 
    notice $nick Access denied. 
  } 
} 
on $*:TEXT:/^[!@.](pc(w)?|world)/Si:#:{ 
  if (%pcw. [ $+ [ $chan ] ] == on)   { 
    inc %pestcontrol. 
    if (%pcw. [ $+ [ $chan ] ] == off) { HALT } 
    elseif (%pcw.nick. [ $+ [ $chan ] ] != $null) { 
      notice $nick 12Current Pest control World: 4 %pcw.world.   [ $+ [ $chan ] ] $+ 4, 12was set by:14 4 %pcw.nick. [ $+ [ $chan ] ] 4 12and was set14: 4 $duration($calc( $ctime - %pcw.time. [ $+ [ $chan ] ] )) ago ( %pestcontrol. )7 
    } 
  } 
} 
on *:text:!pestbot on*:#:{ 
  if ($nick isop #) || ($nick ishop #) || ($nick = Gsus) { 
    set %pcw. $+ $chan on 
    msg $chan Mode: 14Pest Control14 7"on"7 14in14 7 $chan 7 
  } 
} 
on *:text:!pestbot off*:#:{ 
  if ($nick isop #) || ($nick ishop #) || ($nick = Gsus) { 
    set %pcw. $+ $chan off 
    msg $chan Mode: 14Pest Control 7"off"7 14in14 7 $chan7 
  } 
}
on *:text:!timer*:#pcwstaff:{
  if ($nick isop $chan) { 
   if ($2 == on) {
   msg $chan World timer on
   timer 0 15 notice #pcw 12Current Pest control World: 4 %!pcw.world. [ $+ [ $chan ] ]
 } if ($2 == off) {
   timers off
   msg #pcw pcw timer off
}
}
}