[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]  General
. . -> [Subject]  Speed walking as fast as possible?
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Speed walking as fast as possible?

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


Posted by Whininguser   Canada  (30 posts)  [Biography] bio
Date Thu 07 Jun 2012 03:21 AM (UTC)

Amended on Thu 07 Jun 2012 11:33 PM (UTC) by Whininguser

Message
I have an idea but can't make it happen. Hopefully someone could help me out. Suppose my code looks likes this:

SetSpeedWalkDelay(1000)
Queue(EvaluateSpeedwalk("n s e w"))

But I want to move as fast as possible instead of waiting 1000ms after each step, so I wish I could do something like this:


#1: Send "north", and before the server even responds, immediately change the speedwalk delay to a big number, say 10000, so the next move will wait for 10 seconds at this point. The big number is just a measure against lags.

#2: as soon as I have finished moving north, change the delay to a small number, say 20. Now I'll need to wait only 20ms instead of 1000ms and move south.

#3: Send "south", and repeat everything in #1


The problem is after I set the delay to 20ms, I have no idea how to change it back to 10000ms at the right time. Does anyone have any suggestions? Thanks for any help.


ps: if you find this confusing, here's an example:

---start---
input: north
input: SetSpeedWalkDelay(10000)
output: You're in a nice room.
output: End of room description.
input: SetSpeedWalkDelay(20)

input: south
input: SetSpeedWalkDelay(10000)
output: You're in a nice room.
output: End of room description.
input: SetSpeedWalkDelay(20)
---end---
[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.


1,506 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]