 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Gambler71 How do I cheat?
Reputation: 0
Joined: 14 Jun 2011 Posts: 2
|
Posted: Tue Jun 14, 2011 7:01 pm Post subject: ADD to money not lock it at 999999 |
|
|
The game I will use for example here is Stronghold 2 (v1.40.1). I know how to find values and change them by hand, that is, if I have 2 gold I can change it to 100 gold by finding where the memory allocation of gold is via NEW SCAN, changing the gold value in game, next scan etc. But I wanna do it via a script.
| 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)
005DCB1D:
jmp newmem
nop
returnhere:
newmem: //this is allocated memory, you have read,write,execute access
fld dword ptr [ebp+00000cb4]
mov [ebp+00000cb4],497423F0
//place your code here
originalcode:
//fld dword ptr [ebp+00000cb4]
exit:
jmp returnhere
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
005DCB1D:
fld dword ptr [ebp+00000cb4]
//Alt: db D9 85 B4 0C 00 |
I forgot who origonally wrote that code, someone from this site, thanks to them.
Anyway, the line mov [ebp+00000cb4],497423F0 will take the gold I have now and change it to 999,999. What I want to do is just increase the value of the gold I have now by say 512 gold, to do this I tried:
| Code: | replacing:
mov [ebp+00000cb4],497423F0
with:
add [ebp+00000cb4],44003E70 |
but nothing happened. however, I could change
| Code: | replacing:
mov [ebp+00000cb4],497423F0
with:
mov [ebp+00000cb4],44003E70 |
to lock it at 512, but I want to add 512 on top of what I already have.
I am very new to this stuff, and I am not sure if I first have to look up the value somehow, and use something like mov [ebp+00000cb4],"looked up value"+44003E70
Any help appreciated.
_________________
The mind is willing. |
|
| Back to top |
|
 |
JohnT Expert Cheater
Reputation: 0
Joined: 24 May 2011 Posts: 130 Location: Next To Osama
|
Posted: Tue Jun 14, 2011 7:40 pm Post subject: |
|
|
the add instruction means you add 512 or 999999 gold any time you press it
P.s you dont have to put it in hex use cheat engine 6.0 or 6.1 and use normal dec numbers
look
| 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)
005DCB1D:
jmp newmem
nop
returnhere:
newmem: //this is allocated memory, you have read,write,execute access
fld dword ptr [ebp+00000cb4]
mov [ebp+00000cb4],497423F0
//place your code here
originalcode:
//fld dword ptr [ebp+00000cb4]
exit:
jmp returnhere
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
005DCB1D:
fld dword ptr [ebp+00000cb4]
//Alt: db D9 85 B4 0C 00
so you give me that ... Ha
well you dont have to put fld dword ptr [blah ]
and then mov blah blah look how i would make it
|
[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)
005DCB1D:
jmp newmem
nop
returnhere:
newmem: //this is allocated memory, you have read,write,execute access
add dword ptr [ebp+00000cb4],512
originalcode:
//fld dword ptr [ebp+00000cb4]
exit:
jmp returnhere
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
005DCB1D:
fld dword ptr [ebp+00000cb4]
//Alt: db D9 85 B4 0C 00
[/code]
|
|
| Back to top |
|
 |
Gambler71 How do I cheat?
Reputation: 0
Joined: 14 Jun 2011 Posts: 2
|
Posted: Tue Jun 14, 2011 9:06 pm Post subject: |
|
|
Thank you ever so much. I get it now.
I did have 6.1 but didnt know I did not have to convert. Thanks for that as well.
Learnt 2 things from 1 question. I am in your debt.
_________________
The mind is willing. |
|
| Back to top |
|
 |
JohnT Expert Cheater
Reputation: 0
Joined: 24 May 2011 Posts: 130 Location: Next To Osama
|
Posted: Wed Jun 15, 2011 7:11 am Post subject: |
|
|
| I am happy to hear that .
|
|
| 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
|
|