[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  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] Refresh page


Posted by Lichleo   (6 posts)  [Biography] 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)
[Go to top] top

Posted by Fiendish   USA  (2,525 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (23,016 posts)  [Biography] 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
[Go to top] 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,787 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]