yeah I know i dont need em on alot of them (actually i think it might have been all of them), and i considered not putting them in, but i just find, if i do it the same way everywhere (ie: have them) then it all works, better to have to many than to have to few I say, and yes they are evil!
I actually find this harder to read myself
on *:text:%getnews:#:{
if ($istok(%friend,$nick,32)) {
var %ticks = $ticks
.timer.kill.getnews. $+ $nick $+ . $+ %ticks 1 5 .timer.getnews. $+ $nick $+ . $+ %ticks off
;
;
.timer.getnews. $+ $nick $+ . $+ %ticks 1 6 play $nick NEWS.TXT 1000
;^ this plays the news.txt to the $nick in 6 seconds time
}
}
on *:text:%addnews:#:{
if ($istok(%friend,$nick,32)) {
var %ticks = $ticks
.timer.kill.addnews. $+ $nick $+ . $+ %ticks 1 5 .timer.addnews. $+ $nick $+ . $+ %ticks off
;
;
set -u7 %news. $+ $nick $+ . $+ %ticks $2-
.timer.addnews. $+ $nick $+ . $+ %ticks 1 6 write NEWS.TXT % $+ news. $+ $nick $+ . $+ %ticks
;^ this adds news to the NEWS.TXT file in 6 seconds
}
}
on *:notice:STATUS & &:?:{
if ((%friend.news) && ($nick == Nickserv) && ($istok(%friend,$2,32))) {
if ($3 == 3) { .timer.kill.*. $+ $2 $+ . $+ * off }
else { msg $2 %ID }
}
}
Attn : Angrycat : try that or the other one before it, DONT use the one
without the SET -u7 in the ON TEXT addnews either way.
And incase its hard to see what im doing im naming the timers such as...
Timer.addnews.Bobby.1660420408 & Timer.kill.addnews.Bobby.1660420408, the last number is $ticks (ticks since OS started), this within normal ircing well make it a unique timer name.
Thus the kill timers are unique and well kill there unique event timer, pretty crazy system but i felt it was a little simpler than having to spool & despool events, which can get harder if say three different nicks all went !addnews blah blah and then !news at the same time.