Speed walking as fast as possible?

Posted by Whininguser on Thu 07 Jun 2012 03:21 AM — 1 posts, 8,397 views.

Canada #0
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---