mIRC Home    About    Download    Register    News    Help

Print Thread
#248686 18/10/14 03:33 AM
Joined: Oct 2014
Posts: 10
H
Habilis Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Oct 2014
Posts: 10
Hi again. I feel pretty dumb for not figuring this out, but I've stumped. So what I was trying to do was write script that, when activated starts to strictly increase an integer. That part is easy. I simply setup a timer.

Now, I'm not sure how to message the channel after a set period of time. From experimenting:
Code:
.timer1 0 600 inc %variable ;increases variable
.timer2 0 600 /msg $chan %variable ;statically casts variable when called


Thus, even though the increasing timer continues incrementing the variable, the other timer does not acknowledge the increasing variable. I can't seem to find a good way in the mIRC help files to update the timed message.

Any help would be appreciated!

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
%variable is resolved when you define the timer, prevent this by using $(%variable,0)


Link Copied to Clipboard