Hey,
I have been trying to work out the skill attack packets in Waren Story the last couple of days. I have finally figured out the entire packet, but I need to update the current target ID in order to make it work.
I looked at where the game calls the function to attack and traced up a little bit and found this:
0x22F0294 is the first Monster struct in the Array for mobs, somewhere in here when I put a breakpoint I get the address 0x6349C10, this address is about 100bytes away from the "Target" address witch is simply an address that reads 0xFFFFFFFF when no target(invalid target) and 1 when a valid target is selected(also has the current targets HP here).
If I put a breakpoint on the instruction in bold above, I instantly get the address of the current mob I have targeted.
Now given the information I have found above, anybody have any ideas how I can do this myself in C++, take the current target and find its placement in the monster array so that I can grab its ID and update my attack packets with them.
Any help would be greatly appreciated as always.
I have been trying to work out the skill attack packets in Waren Story the last couple of days. I have finally figured out the entire packet, but I need to update the current target ID in order to make it work.
I looked at where the game calls the function to attack and traced up a little bit and found this:
Code:
004F5748 |. D95C24 44 FSTP DWORD PTR SS:[ESP+44] 004F574C |. 8B4424 48 MOV EAX,DWORD PTR SS:[ESP +48] 004F5750 |. D980 2C152F02 FLD DWORD PTR DS:[EAX +22F152C] 004F5756 |. 8D4C24 28 LEA ECX,DWORD PTR SS:[ESP +28] 004F575A |. D84424 44 FADD DWORD PTR SS:[ESP+44] 004F575E |. 8D80 94022F02 [B]LEA EAX,DWORD PTR DS:[EAX +22F0294][/B]
If I put a breakpoint on the instruction in bold above, I instantly get the address of the current mob I have targeted.
Now given the information I have found above, anybody have any ideas how I can do this myself in C++, take the current target and find its placement in the monster array so that I can grab its ID and update my attack packets with them.
Any help would be greatly appreciated as always.