Yoko

All sides of Injection
It is currently 2024-04-19 04:33:45

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 2005-06-16 16:09:11 
Offline

Joined: 2004-09-11 18:48:59
Posts: 3
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?


Top
   
 Post subject:
PostPosted: 2005-06-16 20:31:53 
Offline
Expert!
User avatar

Joined: 2005-04-23 10:19:43
Posts: 388
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.


Top
   
 Post subject:
PostPosted: 2005-06-17 22:58:14 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
what kind of moving you use
pressing keys or what?


Top
   
 Post subject:
PostPosted: 2005-07-03 13:26:32 
Offline

Joined: 2004-09-11 18:48:59
Posts: 3
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?


Top
   
 Post subject:
PostPosted: 2005-07-05 15:55:50 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
there is no any easy moving on injection now


Top
   
 Post subject:
PostPosted: 2005-07-05 23:19:36 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
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:
MyX = UO.GetX()
  MyY = UO.GetY()
  UO.Press(36)
    If MyX <> UO.GetX() Or MyY <> UO.GetY() Then
      ....   ; your char had moved
    EndIf


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited