How to execute a function in Speedwalk

Posted by Lichleo on Sun 13 Sep 2020 10:06 AM — 3 posts, 17,303 views.

#0
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)
USA Global Moderator #1
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.
Australia Forum Administrator #2
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.