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

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  wait.speedwalk
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

wait.speedwalk

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


Posted by JoeScripter   (12 posts)  [Biography] bio
Date Wed 08 Nov 2006 06:16 AM (UTC)

Amended on Wed 08 Nov 2006 02:18 PM (UTC) by JoeScripter

Message
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? :)
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Reply #1 on Wed 08 Nov 2006 10:21 AM (UTC)
Message
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
[Go to top] top

Posted by JoeScripter   (12 posts)  [Biography] bio
Date Reply #2 on Wed 08 Nov 2006 04:23 PM (UTC)
Message
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 :)
[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.


3,985 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 FutureQuest]