mIRC Home    About    Download    Register    News    Help

Print Thread
#102662 11/11/04 07:30 PM
B
boxbred
boxbred
B
I'm curious as to how to add a delay to a script....
Such and such slaps Boxbred around with a trout...after this I auto slap them back...Now they also have the auto slap script, so when they slap me, it triggers their script also. How can I add a delay in the script to keep from getting kicked for scrolling? Any help would be greatful. Thanks

#102663 11/11/04 07:47 PM
R
ricky_knuckles
ricky_knuckles
R
just throw in a timer
i dont know what the remote for recognizing a slap would look like so i wont bother
but when you get to the command portion just slap a timer of whatever length you need
ie { /timer 1 5 /action slaps $nick around a bit with a large trout }

#102664 11/11/04 07:49 PM
S
shaka
shaka
S
You have create an alias which will be executed by a timer

alias hello:/echo hello

timerdelay 1 60 /hello

after 60 secs the alias will be executed

i hope i could fix you out

shaka

maybe there are other possibilities

#102665 11/11/04 07:56 PM
S
Sigh
Sigh
S
Use a timer, /.timerslap $+ # 1 3 describe # slaps $nick back

"slap $+ #" is the name assigned to the timer, 1 is the number of times to perform the command, 3 is the time delay in seconds and the proceeding text is the command. Look at /help /timer

#102666 13/11/04 02:53 PM
A
adri
adri
A
Sorry, totally n00b question here:

Say I wanted a delayed reply every time someone says the phrase "Who Wants Chicken?" and I want my reply to be "Everyone!" (just an example)

ON *:TEXT:Chicken?:#: msg $chan Everyone

is that what my line of code should look like and where do i add the delay part to it?


Link Copied to Clipboard