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
➜ Lua
➜ How to execute a function in Speedwalk
How to execute a function in Speedwalk
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Lichleo
(6 posts) Bio
|
Date
| Sun 13 Sep 2020 10:06 AM (UTC) |
Message
| For example, I want to go north for 3 time, and then kill dragon. After kill dragon and continue walking.
I write a function to discard the queue,kill dragon, and requeue after dragon is killed.
But it cannot be done with the following simple Queue function.
Queue(EvaluateSpeedwalk("3n (/killnpc(dragon) n s"), true) | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #1 on Sun 13 Sep 2020 02:09 PM (UTC) |
Message
| Queue doesn't execute scripts. It just sends messages to the server. Your idea about discarding the queue and restarting it is a fine idea, but you'd have to do it from outside of the queue sequence. You could use a trigger for example that fires when you enter the room with the dragon. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #2 on Mon 14 Sep 2020 06:54 AM (UTC) Amended on Tue 15 Sep 2020 04:59 AM (UTC) by Nick Gammon
|
Message
| You might be better off following the ideas here:
http://www.gammon.com.au/forum/?id=4957
You can make an alias that does scripted actions, including moving, pausing, and then doing stuff. |
- 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.
11,709 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top