Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Reading values that passes through an instruction in C++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
toboi
How do I cheat?
Reputation: 0

Joined: 04 Jul 2023
Posts: 2
Location: Midgard

PostPosted: Tue Jul 04, 2023 3:25 pm    Post subject: Reading values that passes through an instruction in C++ Reply with quote

I'm making a bot for an old MMORPG (private server), and I want to find the coordinate of the selected enemy (it's a tab-target MMORPG). I was able to find the selected enemy's HP/Name but I couldn't find the X or Y position in the addresses near the HP/Name addresses. I was able to find my own X, Y position with just Pointers. What I noticed was that the positions of the mobs are "read" in an instruction whose AOB is "D9 80 10 08 00 00 53", and these are the results I get:

Pointer of My X Position (The float value is divided by 20 = 1050 / 20 = 52,5) = it's only shown in Integer in the game:
(Idk why I can't post images/urls)
1.png Image

Print of the game showing my Position:
2.png Image

When I right-click it and click "Find out what access...":
3.png Image

When I click "Show Disassembler" and then "Find out what address this instruction access":
The address "32B45828" is "My X Position" as shown above in the first printscreen:
4.png Image

But idk what to do from here. I tried to Auto Assemble AOB Injection in this instruction, and as far as I can tell, this instruction only reads the X position of the mobs in the game screen (the Y value is offset +4).

I'm writing this bot in C++, I want to be able to read all the mobs coordinates (in the screen) in my bot (read all those values that are passing through this instruction in the print above and store them in an vector of floats (maybe?), so I can make an "auto pick items" with the mobs coordinates, making the char walk to the mob and pick the loot.

Do you guys have any suggestions on how to make this?

Again, it's a private server.

Thanks in advance!



4.png
 Description:
 Filesize:  86.91 KB
 Viewed:  1214 Time(s)

4.png



3.png
 Description:
 Filesize:  44.63 KB
 Viewed:  1213 Time(s)

3.png



1.png
 Description:
 Filesize:  3.34 KB
 Viewed:  1213 Time(s)

1.png




Last edited by toboi on Wed Jul 05, 2023 2:54 pm; edited 2 times in total
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Wed Jul 05, 2023 12:27 am    Post subject: Reply with quote

We do not support online/multiplayer hacking on this site:
https://forum.cheatengine.org/faq.php#0

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
toboi
How do I cheat?
Reputation: 0

Joined: 04 Jul 2023
Posts: 2
Location: Midgard

PostPosted: Wed Jul 05, 2023 2:49 pm    Post subject: Reply with quote

It's a private server, I edited the post and removed game's name.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites