mIRC Homepage

How do I make a time delay?

Posted By: allcaps

How do I make a time delay? - 25/04/09 12:39 AM

Here is my current script:
on *:ACTION:*slaps [fku]allcaps around a bit with a large trout:*: {
/describe $chan makes $nick apologize for his uncalled for acts. Shame on you $nick $+
}

Everything is working fine with it but I would like to know how to put a timer delay so when someone spam slaps me it wont go off for another 30 seconds. Can anyone help me please?
Posted By: RusselB

Re: How do I make a time delay? - 25/04/09 01:10 AM

Use the /timer command in front of your /describe line

See /help /timer
Posted By: allcaps

Re: How do I make a time delay? - 25/04/09 02:42 AM

So like this?
on *:ACTION:*slaps [fku]allcaps around a bit with a large trout:*: {
/timer 0 20 /describe $chan makes $nick apologize for his uncalled for acts. Shame on you $nick $+
}
Because I did that and it wouldnt stop. Can someone please script it for me?
Posted By: RusselB

Re: How do I make a time delay? - 25/04/09 02:52 AM

You have the right idea, but using the 0 where you have it tells mIRC to run the timer indefinetely. Change the 0 to a 1 for a single post 20 seconds after the action is matched.
Posted By: allcaps

Re: How do I make a time delay? - 25/04/09 02:59 AM

Originally Posted By: RusselB
You have the right idea, but using the 0 where you have it tells mIRC to run the timer indefinetely. Change the 0 to a 1 for a single post 20 seconds after the action is matched.

How do I get the script to appear after someone trout slaps me but if they do it a second time the script doesnt appear for 20 or so seconds even if they slap me?
Posted By: RusselB

Re: How do I make a time delay? - 25/04/09 04:12 AM

the code you have, with the alteration I specified, will wait for 20 seconds after someone slaps you with that specific slap, then post the message. If you want to have no delay the first time, then you're going to have to use a variable to track the number of times a person slaps you.
© 2019 mIRC Discussion Forums