Get client side X,Y co-ordinates, not wait for server?

Requests of new features and reports on bugs needs to be fixed

Moderators: Murderator+, Murderator

Post Reply
Jimmy
Posts: 3
Joined: 2004-09-11 18:48:59

Get client side X,Y co-ordinates, not wait for server?

Post by Jimmy »

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?
Beyonder
Expert!
Posts: 388
Joined: 2005-04-23 10:19:43
Contact:

Post by Beyonder »

What you mean is to make feature on letting client decide can you move there or not. That can be realised using ASM (Injection mod, find at this forum) it allows to get tileinfo without targeting it. So you just have to get a base of passable tiles, and scan the next tile before the moving.
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

what kind of moving you use
pressing keys or what?
Jimmy
Posts: 3
Joined: 2004-09-11 18:48:59

Post by Jimmy »

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?
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

there is no any easy moving on injection now
flake
Expert!
Posts: 746
Joined: 2004-08-11 23:56:17
Location: The Citadel
Contact:

Post by flake »

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
Post Reply