sorry ..I didnt answer more directly in the first post coz the offsets are not easy to find, like mcrabben7, practice.
for finding the AVE , you can see in the CheckAbnormalVisualEffect that it has a cycle to calculate the AVE, then in the end of the cycle it sends a packet to the players
if you go see the packet format (lets say ..in a C1 l2j, since in C2+ that packet is not used) you can see that the AVE is the 3º value sent.
so you look at the code and see what register stored it, and look where it came from (or in this case where its going to be used again)
its easy to see
004487BE MOV DWORD PTR DS:[ESI+AB0], EDI
ESI is a register with the pointer to the CCreature struct (I know that coz at the start of the function there is a " MOV ESI, ECX " , and ECX at the start of a __thiscall function (class function) is allways the pointer to the instance)
so AB0 is the offset.
This is ONE way, using the packets is the easyer one.
but unfortunatly most of the times we just have the function flow ..and for that way I dont even know how to explain ...practice
|