 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Amaz1ng How do I cheat?
Reputation: 0
Joined: 27 Jul 2011 Posts: 8
|
Posted: Thu Jul 28, 2011 1:06 pm Post subject: Monster targeting? |
|
|
Hey I'm trying to do a basic bot for a game that reads memory and acts accordingly either by hooking into the input functions of the game or sending keypresses to the screen.
Anyways, I'm running into a problem. How do I do targeting and attacking? :p
I can search the monsters name in CE and I get some random address. Could these be part of structures that are allocated temporarily?
Main Question though : How is targeting usually automated in these types of games.
Last edited by Amaz1ng on Thu Jul 28, 2011 3:24 pm; edited 1 time in total |
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Thu Jul 28, 2011 3:01 pm Post subject: |
|
|
By usually finding the function that handles targeting or forcefully writing the information needed to target something else in its place.
A lot of games that I have played that have targeting usually use a structure specific for the target. Whether it inherits from a base object or not, it tends to have the same information from game to game.
1. Target name.
2. Target Id.
3. Target pointer. (Usually to the actual targets information/class.)
Not all games have all three of these, but most have at least one.
The easy way to find your target in these cases is to use two things that aren't moving or can be attacked so you can ensure they will not change. Typically yourself and an npc work well.
Target yourself and scan for your name.
Target something else and filter for the new name of your current target.
Keep going back and forth to see if you can land up finding something based on the name.
If that doesn't work, you can try using pointers. If you can find your own information try searching for a base pointer that points to your players info. Target yourself, search for that pointer. Target something else, filter search for unknown changed value. Target yourself, filter search for your pointer again, etc.
Stuff like that is generally a good start when you have nothing to work off of.
_________________
- Retired. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|