Just a thought...
Walking around is very slow when you must wait for server reply every step to make sure you have moved. Would it not be easy to just get the client side player co-ordinates from memory instantly (as new command), to check if you have moved, rather than waiting for server reply to know you have moved. Can just check server position every few steps to stay synced in script, client gets pushed back if server says you cant move there anyway.
Yoko suggested using UOAP in another post, can it walk quick? Not that i want to run multiple progs anyway, just wondering?
Get client side X,Y co-ordinates, not wait for server?
Moderators: Murderator+, Murderator
Argh. Sorry i took so long to reply, i know how annying that is, i couldnt remember password, went to bed, then forgot all about it afterwards.
I use keypresses to move, my problem is not actual moving, it moves fine, but problem is checking to see if it has moved or ran into something and didnt move.
is there a better way to move with injection?
I use keypresses to move, my problem is not actual moving, it moves fine, but problem is checking to see if it has moved or ran into something and didnt move.
is there a better way to move with injection?
Jimmy wrote:I use keypresses to move, my problem is not actual moving, it moves fine, but problem is checking to see if it has moved or ran into something and didnt move.
Why not to use UO.GetX() and UO.GetY()?
Something like
Code: Select all
MyX = UO.GetX()
MyY = UO.GetY()
UO.Press(36)
If MyX <> UO.GetX() Or MyY <> UO.GetY() Then
.... ; your char had moved
EndIf