on $*:TEXT:/^[!@]start/Si:#:{
if ($nick isop $chan || $nick ishop $chan) {
if (%blah) { unset %blah }
/msg $chan 12The game 4"undead"12 has started! To register: 4!reg10. Game starts in 2 minutes!
/timer 1 60 /msg $chan 4Attention! 12There is only 1 minute left! To register: 4!reg12!
/timer 1 120 /msg $chan 12Registration is almost over, those who haven't registered yet, this is your last chance!
/timer 1 150 /mode $chan +m
//timer 1 150 /msg $chan 12Regestration has ended and now the roles will be given out
//timer 1 150 set %blah on
} /timer 1 150 /msg
}
on $*:TEXT:/^[@!]reg/Si:#:{
if (%blah) { .notice $nick sorry, registration has ended. | halt }
/mode $chan +v-oh $nick $nick $nick
}
on $*:TEXT:/^[@!]halt/Si:#:{
if ($nick isop $chan || $nick ishop $chan) {
set %blah on
/timers off
/msg $chan 4the bot has been halted by operator $nick
/mode $chan -m
var %i 1,%t $nick($chan,0)
while (%i <= %t) {
if ($nick($chan,%i) != $me) /mode $chan -v $nick($chan,%i)
inc %i
}
}
}
on $*:TEXT:/^!unreg ?/Si:#:{
/mode $chan -v+ $nick
/msg $chan 12Seems that 4 $nick 12has decided not to play
}
}
on $*:TEXT:/^[!@]endreg/Si:#:{
if ($nick isop $chan || $nick ishop $chan) {
/msg $chan 4forcing regestration to end.
/mode $chan +m
set %blah on
}
}