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
➜ Delayed one time triggers
Delayed one time triggers
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Nick Gammon
Australia (23,131 posts) Bio
Forum Administrator |
Date
| Wed 16 Apr 2008 09:19 PM (UTC) |
Message
| This would do that. It matches what you specified, and using a Lua script line, adds a one-shot timer to fire after 112 seconds, that sends "exp1" to the command processor (thus, exp1 can be an alias).
<triggers>
<trigger
enabled="y"
match="<hovering nearby> (Mythic) a green materia"
send_to="12"
sequence="100"
>
<send>DoAfterSpecial (112, "exp1", 10)</send>
</trigger>
</triggers>
See http://mushclient.com/pasting for how to paste that example into the client.
See http://www.gammon.com.au/scripts/doc.php?function=DoAfterSpecial for a description of DoAfterSpecial. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Shaun Biggs
USA (644 posts) Bio
|
Date
| Reply #1 on Thu 17 Apr 2008 (UTC) |
Message
| Either replace it with the number of seconds, or have it selected at random through a script.
<triggers>
<trigger
enabled="y"
match="<hovering nearby> (Mythic) a green materia"
send_to="12"
sequence="100"
>
<send>randtimes={60,100,112}
DoAfterSpecial (randtimes[ math.random(3) ], "exp1", 10)</send>
</trigger>
</triggers>
|
It is much easier to fight for one's ideals than to live up to them. | 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,977 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top