mIRC Home    About    Download    Register    News    Help

Print Thread
#250239 06/01/15 09:01 AM
Joined: Dec 2014
Posts: 23
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Dec 2014
Posts: 23
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.

Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
/help /timer

Use "/timername off" to stop the timer with that name


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard