mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2004
Posts: 7,168
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
At times my bot sets a timer using
Code:
$+(.timer.,$nick,.,%timer) 1 %time <commands>  


If the person leaves the room before the timer expires, I want to store that information so that I can restart the timer when they get back. I'm not sure how I would pull the information from the timer line for storage, or if there might be a simpler way of doing this.

I realize that there is the -p & -r options for the /timer command, but I also know that they don't literally pause & resume the timer that they're associated with.

And my apologies if this sounds familiar.. I thought I'd done something like this before, but couldn't find the post in the search.

S
Sigh
Sigh
S
Information on a timer can be retrieved with $timer. For example $timer(name).com to return the command

D
DaveC
DaveC
D
//echo -a 1 $timer($+(.,$nick,.,%timer)).secs $timer($+(.,$nick,.,%timer)).com

that should do, as the timer is only a once off timer


Link Copied to Clipboard