Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Delay in a timer
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Gutlan
(4 posts) Bio
|
| Date
| Wed 03 Dec 2008 10:11 PM (UTC) |
| Message
| | I'm trying to set up a timer that adds a delay into the timer allowing 2 commands to be executed. The full length of the timer would be about 60 seconds. The timer would fire 'prepare rejuvenate'; -wait 20 seconds-;'cast rejuvenate' which would last about 40 seconds, then it would refire the timer. making a loop of the command over and over and over until I disable the timer. Any suggestions? I'm new to this. | | Top |
|
| Posted by
| Worstje
Netherlands (899 posts) Bio
|
| Date
| Reply #1 on Wed 03 Dec 2008 10:53 PM (UTC) |
| Message
| Make a timer that ticks every minute. In it, put the following code (use Send to Script with Lua language):
Send("prepare rejuvenate")
DoAfter(20, "cast rejuvenate")
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Wed 03 Dec 2008 11:47 PM (UTC) |
| Message
| |
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
14,510 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top