Making an aimbot and calculating coordinates

I have all the addresses I just have trouble calculating the hack itself. So here are the types:

The player coordinates x, y and z are float type.
The cursor coordinates x and y are WORD type.

I have tried following the tutorial - <link censored>

But for some reason the cursor jumps all over and behaves weirdly.
Some help appreciated. Thanks in advance.

Last edited by master131; 10-06-2012 at 08:54 PM.

Even familiar landscapes will
reveal a different kind of beauty
if you change your viewpoint.
Where these new encounters
and new bonds will lead you...
Such dazzling golden days.
I, too, look forward to
what I might behold.

Handy Tools/Hacks:Extreme Injector v3.5*NEW* Windows 10 compatible!
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

Even familiar landscapes will
reveal a different kind of beauty
if you change your viewpoint.
Where these new encounters
and new bonds will lead you...
Such dazzling golden days.
I, too, look forward to
what I might behold.

You get the rotation in degrees/radians, not screen coordinates for your cursor
Easiest is using trigonometry to obtain the angles and writing those to your local players' angles. If you want to use screen coordinates you'll have to apply Pythagoras and more trig to calculate the screen coordinates(more work and slower)

Even familiar landscapes will
reveal a different kind of beauty
if you change your viewpoint.
Where these new encounters
and new bonds will lead you...
Such dazzling golden days.
I, too, look forward to
what I might behold.

It's just looking at something else and when I move the player it doesn't move too, so something is broken... With the algorithm I think.

OK just now I got told that this algorithm work only with cube engine.

Last edited by RageSmirk; 10-08-2012 at 05:16 PM.

Even familiar landscapes will
reveal a different kind of beauty
if you change your viewpoint.
Where these new encounters
and new bonds will lead you...
Such dazzling golden days.
I, too, look forward to
what I might behold.

Yes but the problem is that the mouse X and Y aren't in degrees nor radians.

First I need to know; When going up a ladder in the game, which one Y or Z will increase?

Here is the info about the X and Y of the mouse position:

The mouse Y:
straight = 0.
down = 50535.
up = 15000

The mouse X:

When setting to 0 and going to that direction the x coordinate get higher.
When setting to 32768 and going to that direction the x coordinate get lower.
When setting to 16384 and going to that direction the y coordinate get higher.
When setting to 49152 and going to that direction the y coordinate get lower.

I assume the Z coordinate is the one that gets increased.

Even familiar landscapes will
reveal a different kind of beauty
if you change your viewpoint.
Where these new encounters
and new bonds will lead you...
Such dazzling golden days.
I, too, look forward to
what I might behold.

Yes but the problem is that the mouse X and Y aren't in degrees nor radians.

First I need to know; When going up a ladder in the game, which one Y or Z will increase?

Here is the info about the X and Y of the mouse position:

The mouse Y:
straight = 0.
down = 50535.
up = 15000

The mouse X:

When setting to 0 and going to that direction the x coordinate get higher.
When setting to 32768 and going to that direction the x coordinate get lower.
When setting to 16384 and going to that direction the y coordinate get higher.
When setting to 49152 and going to that direction the y coordinate get lower.

I assume the Z coordinate is the one that gets increased.

Print the values on the screen.. "assuming" things isn't a good idea for this. But probably the Z increases when you get higher