 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
sumsar1812 How do I cheat?
Reputation: 0
Joined: 09 Apr 2009 Posts: 2
|
Posted: Tue Dec 25, 2012 2:07 pm Post subject: Help with script in auto assembly |
|
|
Hey so I am trying to make it a bit easier for my self i a game on kongregate.
What I want to do is if my "hp" goes under a point it will set it back to full.
This is my script(please keep in mind that it is the first i ever made)
| Code: |
[ENABLE]
alloc(startup,1024)
alloc(loops,2048)
//code from here to '[DISABLE]' will be used to enable the cheat
043EF25C:
mov eax,2
cmp ecx,5000
JNE startup
JE loops
startup:
mov eax,2
mov ecx,5000
jmp 043EF25C
loops:
cmp eax,2
je 043EF25C
jne loops
[DISABLE]
dealloc(startup)
dealloc(loops)
//code from here till the end of the code will be used to disable the cheat
|
I have a few questions about my own code,
first of, for some reason i can't just use mov[043EF25C],100 to change the value so i changed eax instead whitch got the value to change, so yea why wont mov[043EF25C],100 work ?
also i am trying to make loops and a startup process any suggestions to how i could do this a more awesome way ?(as the one i am using now kinda feels messed up?)
Sorry if my english aint the best but english aint my first language.
Hope u can help me.
|
|
| Back to top |
|
 |
TsTg Master Cheater
Reputation: 5
Joined: 12 Dec 2012 Posts: 340 Location: Somewhere....
|
Posted: Tue Dec 25, 2012 2:44 pm Post subject: |
|
|
From what you say, you're not able to use mov [043EF25C] because that address is executable only (not for writing), however, you decided to edit it's code, meaning it's not the value of the hp you wish to freeze.
And instead of these useless loops, just let the game writes your eax and ecx everytime(and it will never change).
| Code: | [ENABLE]
043EF25C:
mov eax,2
mov ecx,5000
[DISABLE]
043EF25C:
//Put the original code here (the code just before enabling the cheat) |
|
|
| Back to top |
|
 |
sumsar1812 How do I cheat?
Reputation: 0
Joined: 09 Apr 2009 Posts: 2
|
Posted: Tue Dec 25, 2012 3:27 pm Post subject: |
|
|
| ah yes this was what i started with, but i want it to continue running in a loop when i activate it,and when the value of the adresse goes under a certain value it sets the adresse eax and ebx
|
|
| Back to top |
|
 |
TsTg Master Cheater
Reputation: 5
Joined: 12 Dec 2012 Posts: 340 Location: Somewhere....
|
Posted: Tue Dec 25, 2012 4:43 pm Post subject: |
|
|
You don't need to make a loop here, the game will run your code everytime it steps on 043EF25C, so the loop here is the whole program cycle.
If you used a loop like the one you posted above, you will make the game enters an infinite loop of your code only, AND GAME WILL FREEZE.
I guess you didn't yet learn how to find pointers of values instead of assembly lines, did you ?, in case the game DOESN'T access the hp all the runtime, you need to find the hp's pointer, then add it to a loop in ANOTHER THREAD that runs independently away from the game code.
|
|
| Back to top |
|
 |
minipasha How do I cheat?
Reputation: 0
Joined: 26 Dec 2012 Posts: 2 Location: USA
|
Posted: Wed Dec 26, 2012 10:14 am Post subject: help me |
|
|
| how can i learn this ?
|
|
| 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
|
|