mIRC Homepage
Posted By: SuperMappy timed triggers - 24/09/04 04:06 AM
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.

Posted By: Sigh Re: timed triggers - 24/09/04 06:24 AM
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
© mIRC Discussion Forums