View previous topic :: View next topic |
Author |
Message |
aRandomGuy How do I cheat?
Reputation: 0
Joined: 05 Jan 2017 Posts: 2
|
Posted: Fri Jan 06, 2017 12:13 am Post subject: use item function |
|
|
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 |
|
 |
ulysse31 Master Cheater
Reputation: 2
Joined: 19 Mar 2015 Posts: 324 Location: Paris
|
Posted: Fri Jan 06, 2017 5:19 am Post subject: |
|
|
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 |
|
 |
aRandomGuy How do I cheat?
Reputation: 0
Joined: 05 Jan 2017 Posts: 2
|
Posted: Fri Jan 06, 2017 5:25 am Post subject: |
|
|
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 |
|
 |
ulysse31 Master Cheater
Reputation: 2
Joined: 19 Mar 2015 Posts: 324 Location: Paris
|
Posted: Fri Jan 06, 2017 6:32 am Post subject: Re: use item function |
|
|
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 |
|
 |
|