View previous topic :: View next topic |
Author |
Message |
inflames66676 How do I cheat? Reputation: 0
Joined: 15 Mar 2017 Posts: 2
|
Posted: Fri Nov 24, 2017 12:06 pm Post subject: In game coordinates to target a monster |
|
|
Hello friends!
I'm writing a bot for a 3d game, and most of the memory preparations have been made.
My current goal is to target a monster and click it.
I have my character's coordinates, the coordinates of the monsters in my field of vision
(so finding the closest one is easy), and the mouse's in-game coordinates.
Parsing the in-game coords' to standard x,y coords' is useless for obvious reasons, so my question is:
given this data, how could one target a monster?
|
|
Back to top |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8515 Location: 127.0.0.1
|
Posted: Fri Nov 24, 2017 1:28 pm Post subject: |
|
|
Find the function used to click on a monster and target it and invoke it yourself.
Or properly translate the world cords to screen cords and move the mouse and click with standard API accordingly. (This is known as 'WorldToScreen' in various hacks.)
_________________
- Retired. |
|
Back to top |
|
|
inflames66676 How do I cheat? Reputation: 0
Joined: 15 Mar 2017 Posts: 2
|
Posted: Sat Nov 25, 2017 6:35 am Post subject: |
|
|
atom0s wrote: | Find the function used to click on a monster and target it and invoke it yourself.
Or properly translate the world cords to screen cords and move the mouse and click with standard API accordingly. (This is known as 'WorldToScreen' in various hacks.) |
I've read about the worldToScreen thing in various sites. It seems to be dealing with fps games (mine is an mmorpg) where you have 4x4 coord' information matrices, the best i could find in my game is the camera angles and coords', so it doesn't seem to help very much.
Tried finding the function that targets creatures by debugging the process with breakpoints, but with no success - the distance between the breakpoint and the actual targeting might be 1000s+ assembly steps (never got to the targeting itself, gave up after a lot of steps).
Thanks for the reply though.
|
|
Back to top |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8515 Location: 127.0.0.1
|
Posted: Sun Nov 26, 2017 9:27 pm Post subject: |
|
|
Doesn't matter what the type of game is, 3D space is still calculated in the same manner between game types. WorldToScreen is still something you will have to figure out either way. Don't over think it either, it's not as hard as it may seem.
_________________
- Retired. |
|
Back to top |
|
|
|