mIRC Home    About    Download    Register    News    Help

Print Thread
#156130 12/08/06 01:15 AM
Joined: Aug 2006
Posts: 27
Z
Zaephyr Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Aug 2006
Posts: 27
Here's my script:

on ^50:TEXT:nyce, get me some wine.:#: {
var %g = $getGender($nick)
var %mf = $getMF($nick)
var %s = $getSex($nick)

/timer 1 15
/msg $chan As you wish, %g $nick $+ .
/timer 1 15
/describe $chan lifts the wine and brings it over to %s $+ .
/timer 1 15
/msg $chan Your wine, %g $nick $+ .
}

Which works, the only problem is the timer's aren't firing.
I don't want all three lines flicking up onto the screen at once, I want them spaced out somewhat.

I figure I'm using the timer bit wrong, any ideas?

#156131 12/08/06 01:20 AM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Code:
on ^50:TEXT:nyce, get me some wine.:#: {
  var %g = $getGender($nick)
  var %mf = $getMF($nick)
  var %s = $getSex($nick)

  .timer 1 15 msg $chan As you wish, %g $nick $+ .
  .timer 1 15 describe $chan lifts the wine and brings it over to %s $+ .
  .timer 1 15 msg $chan Your wine, %g $nick $+ .
}


This should work better.

#156132 12/08/06 01:40 AM
Joined: Aug 2006
Posts: 27
Z
Zaephyr Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Aug 2006
Posts: 27
sorry Orion, the only timer that works with that is the first one. It waits the 15 seconds then all three messages play, as if the second and third timers arent there at all.

#156133 12/08/06 02:36 AM
Joined: Mar 2006
Posts: 47
C
Ameglian cow
Offline
Ameglian cow
C
Joined: Mar 2006
Posts: 47
mIRC doesn't wait for one trigger to finish before moving on to the next line. All timers are set at the same time, so they all trigger after 15 seconds. Just give the three triggers different times:
Code:
  .timer 1 5 msg $chan As you wish, %g $nick $+ .
  .timer 1 10 describe $chan lifts the wine and brings it over to %s $+ .
  .timer 1 15 msg $chan Your wine, %g $nick $+ .

Last edited by CitizenKane; 12/08/06 02:37 AM.

Link Copied to Clipboard