mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
Information on a timer can be retrieved with $timer. For example $timer(name).com to return the command

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
//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