wait.speedwalk

Posted by JoeScripter on Wed 08 Nov 2006 06:16 AM — 3 posts, 16,846 views.

#0
I'm quite fond of the wait.lua code which Nick has provided. It has opened up quite a few possibilities. One thing that I would really like to see though is a way to be able to tell that a speedwalk has finished running.

I have tried making an alias at run time which in turn is passed to the speedwalking queue via the Queue function but it seems the alias name is actually sent straight to the mud instead of through the mushclient command parser.. In other words I want to try to figure out how to get my own code executing once a speedwalk has completed. I see a way to discard the speedwalking queue, but not to monitor it.

Any suggestions on this? :)
Amended on Wed 08 Nov 2006 02:18 PM by JoeScripter
Russia #1
You can use the OnPluginSend callback for this. I have a plugin that uses the speedwalk queue to delay actions, and part of it is resetting the queue and resuming normal operation when a string is sent by the queue. You can dig into it for examples of some of the things that can be done:

http://www.freewebs.com/keldar/delayedaction.htm
#2
Ah.. While looking through your code I also noticed GetQueue (duh.. how did I miss it :X) That and OnPluginSend should be perfect for what I'm looking for.

Thanks :)