Register for your free account! | Forgot your password?

You last visited: Today at 20:01

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Entity Movement

Discussion on Entity Movement within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2006
Posts: 774
Received Thanks: 8,578
Entity Movement

These are the results from a quick sniffing session:

; west (x--, y++)
18 00 15 27 71 00 00 00 XX XX XX XX 01 00 00 00 DF 8D 47 04 00 00 00 00

; north west (x--)
18 00 15 27 22 00 00 00 XX XX XX XX 01 00 00 00 D5 01 48 04 00 00 00 00

; north (x--, y--)
18 00 15 27 03 00 00 00 XX XX XX XX 01 00 00 00 ED A6 48 04 00 00 00 00

; north east (y--)
18 00 15 27 94 00 00 00 XX XX XX XX 01 00 00 00 DE 19 49 04 00 00 00 00

; east (x++, y--)
18 00 15 27 1D 00 00 00 XX XX XX XX 01 00 00 00 EB 80 49 04 00 00 00 00

; south east (x++)
18 00 15 27 BE 00 00 00 XX XX XX XX 01 00 00 00 64 2D 4A 04 00 00 00 00

; south (x++, y++)
18 00 15 27 3F 00 00 00 XX XX XX XX 01 00 00 00 6F 02 4B 04 00 00 00 00

; south west (y++)
18 00 15 27 60 00 00 00 XX XX XX XX 01 00 00 00 D7 3B 4B 04 00 00 00 00

XX XX XX XX = Player ID

How do you interpret the 4th offset? It looks random to me.. did I miss something?
phize is offline  
Thanks
1 User
Old 06/15/2011, 06:53   #2
 
Lateralus's Avatar
 
elite*gold: 0
Join Date: May 2005
Posts: 1,892
Received Thanks: 919
4th offset % 8 gives you the direction the character is moving in.
Lateralus is offline  
Thanks
2 Users
Old 06/15/2011, 07:07   #3
 
elite*gold: 0
Join Date: Sep 2006
Posts: 774
Received Thanks: 8,578
Thanks, that did it.
phize is offline  
Old 06/15/2011, 16:04   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,378
Quote:
Originally Posted by Lateralus View Post
4th offset % 8 gives you the direction the character is moving in.
Actually.... that changed back in 5165 yet no one ever changed it which is why steed walk has always been ****** up on every public source.





Fang removed the actual full guide to how it's setup because of harrassment but the picture he made is still in the thread.

Basically the speed 'bool' is no longer a bool and now controls walking running and riding. The directions now allow for more values to let riding cover more than 1 direction at once.

Because of that you use % 24 not % 8 like everyone has been using for ages.


As dev states a few posts into the thread... the (by FAR) most efficient/simplest way to write this is using an array holding the coords themselves.


That way you can just pull direction via dir = direction % 24 and then select from the array via...

X += deltax[dir];
Y += deltay[dir];


with some dmap checks obviously.
pro4never is offline  
Thanks
1 User
Old 06/15/2011, 19:55   #5
 
Lateralus's Avatar
 
elite*gold: 0
Join Date: May 2005
Posts: 1,892
Received Thanks: 919
Oh, my bad. I'm unfamiliar with current stuff.
Lateralus is offline  
Old 06/15/2011, 20:22   #6
 
elite*gold: 0
Join Date: Sep 2006
Posts: 774
Received Thanks: 8,578
Well, it still is % 8 for non-mounted movement.
phize is offline  
Old 06/15/2011, 21:12   #7
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,378
Quote:
Originally Posted by Synsia View Post
Well, it still is % 8 for non-mounted movement.
Yupp, either works just fine for most things... as fang said to me every time I showed him my walk codes "doing it right the first time just saves you that much time down the road". Maybe someday I'll listen to that ahaha.
pro4never is offline  
Reply


Similar Threads Similar Threads
Differing Entity ID's
02/25/2011 - CO2 Programming - 13 Replies
I just came to realize that the entity ID in spawn packets and the target ID in action packet. I am not sure if the ID decode has outdated or what; i qouted prog4never's code for decoding coordinates and targetID
Read Entity Name from memory
11/07/2009 - Aion - 0 Replies
I can't seem to read a name of an entity. Using Autoit3 with Nomad mem read. Does anyone have experience with this and what to pass to the memory read and how the data is returned in order to get the string from memory? Thanks
Ofsets to entity table for Radar
01/06/2009 - General Gaming Discussion - 1 Replies
Hello everyone, i have big problem to locate offsets for radar. Using CE 5.4 im trying to locate count of entities ( it should follow a pointer on array of entities ) - but its really hard to find well controlled place in game where i can control an amount of entities around me. Probably there are other methods to track this pointer down? Like reverse pointer search from Name of char? Or name of random entity? Thanks in advance.
Special Entity
09/01/2005 - World of Warcraft - 4 Replies
Well, I was doing a stockade gangbang to lvl my mage. I pulled all the mobs to the beginning, and waited in the wall. As I looked on the minimap and point in the "Mob Train" I saw this strange "Jcffb0b" Entity/Player/Mob/Npc/Shit. I was like goddammnitagmigottagetthefuckouttahere. When I did it again later, there were the same thing... Maybe someone knows what it is? Don't think it's something harmful anymore, just curious about it :P ...



All times are GMT +1. The time now is 20:01.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.