View previous topic :: View next topic |
Author |
Message |
Crimson Viper Newbie cheater Reputation: 0
Joined: 15 May 2011 Posts: 18 Location: Norway
|
Posted: Sun Sep 17, 2017 7:47 am Post subject: How can I get instant value on a script? |
|
|
I make lots of scripts, in all games, you must buy something to activate gold,
lose health and so on. So, how can i make this stuff activated as soon as you activate the script, without buy or sell something?
Example: Might & Magic 6 (Gold script)
To activate the script below, you must buy something, but i like the value get instantly then the script is turned on.
Does anyone have a solution for this "problem"?
Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//Gold
mov [MM6.exe+508D50],#9999999 // Set amount gold value
originalcode:
//sub [MM6.exe+508D50],ecx
exit:
jmp returnhere
"MM6.exe"+87693:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"MM6.exe"+87693:
sub [MM6.exe+508D50],ecx
//Alt: db 29 0D 50 8D 90 00
|
|
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Sun Sep 17, 2017 8:44 am Post subject: |
|
|
yes, instead of hooking the instructions thats writing to your address use the instruction that accessing your address.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Sep 17, 2017 1:59 pm Post subject: |
|
|
In this very specific case...
Code: | [ENABLE]
MM6.exe+508D50:
dd #9999999
[DISABLE]
MM6.exe+508D50:
dd #9999999 |
|
|
Back to top |
|
|
Crimson Viper Newbie cheater Reputation: 0
Joined: 15 May 2011 Posts: 18 Location: Norway
|
Posted: Sun Sep 17, 2017 4:37 pm Post subject: |
|
|
Thank you for answering, i'll check it out
|
|
Back to top |
|
|
|