Register forum user name Search FAQ

Gammon Forum

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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Registering a callback for speedwalk moves

Registering a callback for speedwalk moves

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


Posted by BabbleOn   (2 posts)  Bio
Date Wed 30 Jun 2010 07:12 AM (UTC)
Message
I want speedwalk to work so that it only sends the next move in the sequence when it recognizes a new room has been entered. I can write a regexp that catches new room titles for the MUD, what I want to do now is to get the speedwalker to wait for the trigger that confirms that a new room has been entered before sending the next speedwalk direction. Is there a simple way to do this?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 30 Jun 2010 07:43 AM (UTC)
Message
I think the simplest way would be to turn the speedwalk into a list of directions (there is a function to do that) and instead of using the automatic speedwalking, simply pull out the next item from the speedwalk list when you enter a new room.

Template:function=EvaluateSpeedwalk EvaluateSpeedwalk

The documentation for the EvaluateSpeedwalk script function is available online. It is also in the MUSHclient help file.



That converts a speedwalk into a string with newlines between each direction. So you could break that up at newlines, and send them one at a time (removing the first one each time).


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #2 on Wed 30 Jun 2010 10:18 AM (UTC)
Message
This plugin addresses a lot of these issues:

Template:post=6008 Please see the forum thread: http://gammon.com.au/forum/?id=6008.


- 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.


13,358 views.

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

Go to topic:           Search the forum


[Go to top] top

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