Quote:
Originally Posted by dabnoj
wich version do you play? you dont need atk speed addy at all for this script in newest ph client
|
It would be faster to level if i have atk speed address xDD.
I still dont get this one >.<
So first to find it i found the animation spot address, which is a float value and incements by little every frame so the players animation goes on, this is near the beginning of the player struct where the coordinates and HP and Chi and that stuff is. The value is constantly changing so its very easy to find with CE memory view.
Next we want to know what code changes it so we can speed it up. I did this with CE's "Find what writes to this address", if you do that, you see that when you stand just one or two opcodes change it but if you click on somewhere and move a bit you see that another opcode changed it this time. Now attack something with a skill and see what writes to it this time.
When you follow the address in CE's asm view you should see this:
Code:
0049B34F - D8 1D BC7C5600 - fcomp dword ptr [00567CBC] : [(float)121.0000]
0049B355 - DFE0 - fnstsw ax
0049B357 - F6 C4 05 - test ah,F6
0049B35A - 7A 1E - jp 0049B37A //this jumps over the animation stuff if your not using a attack skill
0049B35C - D9 45 0C - fld dword ptr [ebp+0C] //load the base animation value
0049B35F - D8 4D FC - fmul dword ptr [ebp-04] //multiplies it by elapsed time probably
0049B362 - D8 0D B87C5600 - fmul dword ptr [00567CB8] : [(float)0.3000] //heres what we are looking for: a constant address holding a float that is used in the animation calculation
0049B368 - 8B 45 F4 - mov eax,[ebp-0C]
0049B36B - D8 80 AB000000 - fadd dword ptr [eax+000000AB] //add the old animation value to it
0049B371 - 8B 4D F4 - mov ecx,[ebp-0C]
0049B374 - D9 99 AB000000 - fstp dword ptr [ecx+000000AB] //this writes the final animation value to the address in player struct
0049B37A - DB 45 F8 - fild dword ptr [ebp-08]
0049B37D - 8B 55 F4 - mov edx,[ebp-0C]
0049B380 - D8 9A AB000000 - fcomp dword ptr [edx+000000AB]
0049B386 - DFE0 - fnstsw ax