mIRC Homepage
Posted By: SBDOnslaught Cancelling Timers. - 06/01/15 09:01 AM
Hey Guys! It's me again :P

So today I was working on a different feature to be added to my script. I have a point system and people can lose and win more points. Well I was thinking up a script and was wondering if you could cancel a timer.

The basics:
Quote:

on *:text:!steal *:#: {
msg $chan $nick wants to steal $2 points from $3 $+ !!!
msg $chan $3 you have 30 seconds to stop them!
.timerOne 1 30 doaddpoints # $nick $2
}

Now if the "victim" would put in a command let's say "!stop", they wouldn't lose their points. Kinda like block the timer?
I don't know exactly how that would work. I'm sure there's actually a proper way of doing this.

(Also, I just wrote that ex in here.. I'm not actually using that one, don't worry about errors)

Sorry for the long post.
Posted By: Wims Re: Cancelling Timers. - 06/01/15 09:04 AM
/help /timer

Use "/timername off" to stop the timer with that name
© mIRC Discussion Forums