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
➜ Lua
➜ Making a mixture of Alias and trigger??
Making a mixture of Alias and trigger??
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Rivius
(99 posts) Bio
|
Date
| Mon 05 Apr 2010 02:51 PM (UTC) |
Message
| I currently have an alias called cbash *
require "wait"
wait.make (function ()
Send ("swing %1")
Send ("swing %1")
wait.time (7)
Send ("STAND")
Send ("evoke pentagram")
Send ("clot")
Send ("clot")
Send ("clot")
Send ("clot")
Note ("@@@@@@@Check shield. Sip or sleep/med if needed.@@@@@@@@")
end)
However, instead of waiting, I would much much rather just wait until a certain line is sent before continuing the rest of the script.
For example, in pseudocode:
send swing
send swing
if I get message "You have recovered balance"
send swing
send swing
Is this possible? | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Tue 06 Apr 2010 04:56 AM (UTC) |
Message
| |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
10,888 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top