Page 1 of 1

Charactor Rotation & In Battle Addys

Posted: Mon Jun 08, 2009 3:07 pm
by Chaosis
Anyone know the offset for your characters rotation? I am working on my own bot navigation bot, but don't know how to find it. There are too many addresses and my computer freezes up.
And how do I check if you and your target are in battle? The offset is 0x572 but I just get random numbers...

Thanks in advance!

Re: Charactor Rotation & In Battle Addys

Posted: Mon Jun 08, 2009 6:51 pm
by Administrator
Copy the rotation code from my bot. The direction you are facing is not stored in degrees or radians, but rather in unit vectors (camUVec). You'll need to do some math to get the actual direction.

The battle flag is a byte. If you are reading 4 bytes, then it will seem random. When you are in combat, the battle flag will be 1, otherwise, it will be 0.

Re: Charactor Rotation & In Battle Addys

Posted: Mon Jun 08, 2009 9:47 pm
by Chaosis
Thanks that explains the rotation. And I know the battle flag is a byte, but I will try again.

Re: Charactor Rotation & In Battle Addys

Posted: Mon Jun 08, 2009 9:58 pm
by Administrator
Remember that the battling flag is an offset from the static base, and not the character. This could also be causing the random number problem you were explaining.

Re: Charactor Rotation & In Battle Addys

Posted: Mon Jun 08, 2009 10:16 pm
by Chaosis
Yes, that explains it! Thank you!