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 


use item function

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

Joined: 05 Jan 2017
Posts: 2

PostPosted: Fri Jan 06, 2017 12:13 am    Post subject: use item function Reply with quote

Hi guys,

currently having an issue finding a function.
For example: I have "ITEM A" in the inventory or in the Quickuse-Bar (or skillbar).
Question 1: Is it possible to like change some bytes to activate that item?
Question 2: What's the best approach to find the function im searching for?
Edit:
Question 3: Can I create a thread via Cheat Engine that executes a code which is already implemented in the Client, and will it for example execute that code just as normally?
I hope my issues are clear. Please ask if they aren't.
Looking forward to some help!


Last edited by aRandomGuy on Fri Jan 06, 2017 5:19 am; edited 1 time in total
Back to top
View user's profile Send private message
ulysse31
Master Cheater
Reputation: 2

Joined: 19 Mar 2015
Posts: 324
Location: Paris

PostPosted: Fri Jan 06, 2017 5:19 am    Post subject: Reply with quote

1/ Unlikely
2/ This is how I would proceed :
find the variable which holds the item ID relative to the quick use emplacement.
This means that you need to know item IDs before hand, place them in the quick use spot and scan for those IDs untill you find the quick use spot variable.
Then you put a data breakpoint on it and you use the item in game through its quick use emplacement.
You follow the variable's flow with the debugger (you are hoping to find a push instruction that's pushing your quick use variable content before a function is called.
Back to top
View user's profile Send private message
aRandomGuy
How do I cheat?
Reputation: 0

Joined: 05 Jan 2017
Posts: 2

PostPosted: Fri Jan 06, 2017 5:25 am    Post subject: Reply with quote

I already found the itemID on that specific quickuse but couldnt get any further with that. I will try to find the variable that holds the spot.
Can you take a look on question 3 aswell?
Thanks so far!
Back to top
View user's profile Send private message
ulysse31
Master Cheater
Reputation: 2

Joined: 19 Mar 2015
Posts: 324
Location: Paris

PostPosted: Fri Jan 06, 2017 6:32 am    Post subject: Re: use item function Reply with quote

aRandomGuy wrote:

Question 3: Can I create a thread via Cheat Engine that executes a code which is already implemented in the Client, and will it for example execute that code just as normally?

Yes you most definitely can and I have done it numerous times, however you must call the function with the correct stack frame and pushing the correct arguments.
If this is a member function you must be carefull because the member pointer is rarely pushed (and often passed through ecx register).

Basically you can do this but if you don't want to crash the program you should know exactly what the function does (know what arguments it's using) and be very carefull to stack and registers.

Also, if the function modifies its arguments and if those arguments are passed by ref/pointers then launching a new concurrent thread might not be thread safe with the original game thread executing at the same time
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