|
Speed walking as fast as possible?
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Whininguser
Canada (28 posts) 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--- | 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.
383 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )