All pastes #732089 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-10-10 17:16 UTC
rendered paste body
code:

on *:text:!setworld1*:#: {
  if ($2 isnum 1 - 144) { 
    if ($Nick isop $chan || $nick ishop $chan) {
      set %pestworld1 [ $+ [ $chan ] ] $2
      msg $chan 10 A new pestcontrol world has been set for 4boat 110, type !pcw to see it
    }
  }
}
on *:text:!setworld2*:#: { 
  if ($2 isnum 1 - 144) {
    if ($Nick isop $chan || $nick ishop $chan) {
      set %pestworld2 [ $+ [ $chan ] ] $2
      msg $chan 10 A new pestcontrol world has been set for 4boat 210, type !pcw to see it!
    }
  }
}
on *:text:!setworld3*:#: { 
  if ($2 isnum 1 - 144) {
    if ($Nick isop $chan || $nick ishop $chan) {
      set %pestworld3 [ $+ [ $chan ] ] $2
      msg $chan 10 A new pestcontrol world has been set for 4boat 310, type !pcw to see it!
    }
  }
}
on *:text:!pcw*:#: {
  notice $nick 10 The pestcontrol world set for4 $chan 10is currently4 ||10W %pestworld1 [ $+ [ $chan ]  ] for 40+ 4||10 W %pestworld2 [ $+ [ $chan ] ] for 70+4 ||10W %pestworld3 [ $+ [ $chan ] ] for 100+!4 ||
}

on *:text:!timer on*:#: {
  if ($Nick ishop $chan || $Nick isop $chan) {
    set %timer [ $+ [ $chan ] ] on
    notice $Nick timer is now on for $chan
  }
}

on *:text:!timer off*:#: {
  if ($Nick ishop $chan || $Nick isop $chan) {
    set %timer [ $+ [ $chan ] ] off
    notice $Nick timer is now off for $chan
  }
}

if (%timer [ $+ [ $chan ] ]  = on) {
  .timer 1 25 msg $chan 10 The pestcontrol world set for4 $chan 10is currently4 ||10W %pestworld1 [ $+ [ $chan ]  ] for 40+ 4||10 W %pestworld2 [ $+ [ $chan ] ] for 70+4 ||10W %pestworld3 [ $+ [ $chan ] ] for 100+!4 ||
}