ulysse31 Master Cheater
Reputation: 2
Joined: 19 Mar 2015 Posts: 324 Location: Paris
|
Posted: Thu Mar 03, 2016 4:12 am Post subject: Re: two questions |
|
|
kitesan wrote: | when you found coords how you recognize which one is X Y Z?
when you find a game's function can you create a thread and then call the function in your thread or if necessary push the arguments it needs and then call the function? |
1/ Usually coordonates are floats (usually 4 bytes large). In almost every case the lowest address (as a value number) is X then 4 bytes later comes Y and 4 bytes later Z.
Example, if all coord addresses were :
02556058
0255605C
02556060
Then 02556058 would be X, 0255605C would be Y, 02556060 would be Z.
You can jump in game and see which address changes to find out Z. Then technically on a mathetmatical point of view, X can be Y and Y can be X, they mean the same thing just on a different vector but usually if you set your game camera (direction in which your character is oriented) to 0, you usually get to what we consider the X axis.
Question 2/
It depends of the function, most of the time this will fail and cause a crash although if you put enough time and effort into it, it can be done properly and work.
You'd need to make sure you don't miss out on anything that the function does (watch out for the stack, the return instruction, buffers or other function calls within the function you are trying to call).
I have done this before, I have used the encryption function from a MMORPG to encrypt my own packets at run time through the game's function.
|
|