mIRC Home    About    Download    Register    News    Help

Print Thread
#98490 24/09/04 04:06 AM
Joined: Jan 2004
Posts: 16
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Jan 2004
Posts: 16
I'm not sure how to manipulate the timers to allow different responces to the ON TEXT command within time limits.

ex.

How can I use the timers to have the trigger word "fish" display responce number 1 and then have it display responce number 2 if it is displayed again within 5 mins. Then after 5 mins go back to responce numer 1 if it is displayed.


#98491 24/09/04 06:24 AM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
You can increase a global variable in a timer, then check if 2 is (not) a multiple of the value of the variable to see whether it should send response 1 or 2:

//set %myvar | .timerrmsg 0 300 inc $(%myvar |,) msg #chan/nick $($iif(2 \\ %myvar,response 1,response 2),)

Of course change #chan/nick to the recipient of the message, and response 1/2 to your liking


Link Copied to Clipboard