Timing script - 08/01/10 12:55 AM
Basically what Im trying to do is when <text> is displayed in <#Chan> a timer will be activated and begin to countdown for 5 mins, Once this 5 mins is over a page will be sent to <user>.
on *:text:*:#:{ ;checks if nick is correct & your nick is in the first word. if ($nick = OnOeS) && ($me isin $1) { ;checks timer to not reset timer until 5 min is up. if (!%onoes) { ;sets variable so you wont keep resetting it. ;as long as variable exists it wont reset the timer and send a message. set -u300 %onoes $true ;!weap if ($2 = !weap) timeronoes 1 300 msg #batcave You just used the !weap command, Please wait 5 minutes. ;has join the channel elseif ($2-3 = has joined) timeronoes_join 1 300 msg #Batcave 5 minute countdown started. } ;check timer duration status if ($2 = !c4) msg # Join timer: $calc($timer(onoes_join).secs / 60) minute(s). Weap timer: $calc($timer(onoes).secs / 60) minute(s). } }
on 1:TEXT:$(*Dave4989 $+ $chr(58) !weap*):#n00bless-aow:{
on 1:TEXT:*:#n00bless-aow:{ if ($nick = OnOeS) && ($me isin $1) { if (!%onoes) { if ($2 = !char) timerC 1 300 msg #batcave You can now use the !char command. if ($2 = !veh) timerV 1 300 msg #batcave You can now use the !veh command. if ($2 = !weap) timerW 1 300 msg #batcave You can now use the !weap command. } if ($2 = !c4) msg #Batcave Char: $calc($timer(c).secs / 60) minute(s). Veh: $calc($timer(v).secs / 60) minute(s). Weap: $calc($timer(w).secs / 60) minute(s). } }