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

Gammon Software Solutions 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?

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


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

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.


365 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]