 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
pilgrams Expert Cheater
Reputation: 0
Joined: 25 Apr 2011 Posts: 203
|
Posted: Tue May 24, 2011 7:47 pm Post subject: need help with non static address |
|
|
Ok, I found the health of a non static address so how can i fix it where I can have unlimited health? So does this look right, I have the address just need to know how I can make my health unlimited?
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
mov [ebx],edx
mov al,[esi+2C]
exit:
jmp returnhere
"TMNTGame.exe"+358E9A:
jmp newmem
returnhere:
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
mov [ecx+64],eax
mov al,01
exit:
jmp returnhere
"TMNTGame.exe"+34A6F5:
jmp newmem
returnhere:
|
|
Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5636
|
Posted: Tue May 24, 2011 8:46 pm Post subject: |
|
|
My old god mode script for TMNT 2007.
Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
005E99D8:
jmp newmem
nop
returnhere:
newmem: //this is allocated memory, you have read,write,execute access
cmp [esi+00000170],0
je exit
originalcode:
mov [esi+00000174],eax
exit:
jmp returnhere
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
005E99D8:
mov [esi+00000174],eax
//Alt: db 89 86 74 01 00 00 |
_________________
|
|
Back to top |
|
 |
pilgrams Expert Cheater
Reputation: 0
Joined: 25 Apr 2011 Posts: 203
|
Posted: Wed May 25, 2011 10:12 am Post subject: |
|
|
Ok, I will use your script. So here another code using the vehdebugger. So where did you find this information in your code? In the code i found the last part do I just delete that? I am also guessing does the dealloc mean disable? So where did you find this "//Alt: db 89 86 74 01 00 00" cause I am looking and I have not seen it yet? So never mind I found db 89 86 74 01 00 00 and what about //Alt: what does this command do?
Also how did you know how to change it to this "[esi+00000170],0" cause I didn't see this and how to know what to change it to? Also as I was writing what you wrote into my code I had errors on some lines so I had to do it again until it became a script.
your code
005E99D8:
jmp newmem
nop
returnhere:
newmem: //this is allocated memory, you have read,write,execute access
cmp [esi+00000170],0
je exit
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
005E99D8:
mov [esi+00000174],eax
//Alt: db 89 86 74 01 00 00
what I found
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
mov [esi+00000174],eax
exit:
jmp returnhere
"TMNTGame.exe"+1E99D8:
jmp newmem
nop
returnhere:
|
|
Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5636
|
Posted: Wed May 25, 2011 11:08 am Post subject: |
|
|
Quote: | //Alt: what does this command do? |
Nothing. It is a comment. Those bytes are the original code in hex, in case you want to restore them that way instead of letting CE to compile the original code (sometimes it is useful because CE is compiling a few things differently than some games).
Quote: | Also how did you know how to change it to this "[esi+00000170],0" |
I didn't change it. It is a compare to check the player ID. If it is 0, it means that the structure is belonging to the player and the code which is changing the health will be skipped over. If it is not 0, everything will go as usual and the health will be changed.
_________________
|
|
Back to top |
|
 |
pilgrams Expert Cheater
Reputation: 0
Joined: 25 Apr 2011 Posts: 203
|
Posted: Wed May 25, 2011 12:47 pm Post subject: |
|
|
Ok, here is infinite rage mode script. Thanks for geri for the help he gave to make this script possible.
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
005A9FC3:
jmp newmem
nop
returnhere:
newmem: //this is allocated memory, you have read,write,execute access
mov eax,1569325056
originalcode:
mov [edi+00000C84],eax
exit:
jmp returnhere
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
005A9FC3:
mov [edi+00000C84],eax
//Alt: db 89 87 84 0C 00 00
|
|
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
|
|