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
➜ Speed walking as fast as possible?
|
Speed walking as fast as possible?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Whininguser
Canada (30 posts) 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--- | | 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.
8,035 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top