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.
Entire forum
➜ MUSHclient
➜ Tips and tricks
➜ waiting period in triggers
waiting period in triggers
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Diwafiven
(1 post) Bio
|
Date
| Wed 02 Dec 2009 03:18 PM (UTC) |
Message
| I have searched the forums and google for a solution for this problem, but haven't been able to find it.
I play a mud where exp botting is legal (but not recommended once you go pk ready) but I have a problem with the trigger. every so often I need to get ammo, but you can only do that so often. so I sometimes get this message:
Your headquarters tells you to try again in 4 seconds.
or some other amount of seconds. Is there a way to make a trigger try again in that amount of time (+1 second in case the mud is rounding it's seconds down)? | Top |
|
Posted by
| Rakon
USA (123 posts) Bio
|
Date
| Reply #1 on Wed 02 Dec 2009 09:00 PM (UTC) |
Message
| IF you're using LUA for the scripting language, the following should work.
NOTE: I am not a LUA user/programmer. I'm not aware if there's an easier, or better way, I just know that this works.
<triggers>
<trigger
enabled="y"
expand_variables="y"
match="^Your headquarters tells you to try again in (\d+) seconds\.$"
regexp="y"
send_to="12"
sequence="100"
>
<send>local secs_to_wait = tonumber('%1') + 1
DoAfterSpecial(secs_to_wait,'Note("You can cast the spell again!")',12)</send>
</trigger>
</triggers>
|
Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for. | Top |
|
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.
11,761 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top