Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How can I get instant value on a script?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Crimson Viper
Newbie cheater
Reputation: 0

Joined: 15 May 2011
Posts: 18
Location: Norway

PostPosted: Sun Sep 17, 2017 7:47 am    Post subject: How can I get instant value on a script? Reply with quote

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
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Sun Sep 17, 2017 8:44 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Sep 17, 2017 1:59 pm    Post subject: Reply with quote

In this very specific case...
Code:
[ENABLE]
MM6.exe+508D50:
dd #9999999
[DISABLE]
MM6.exe+508D50:
dd #9999999
Back to top
View user's profile Send private message
Crimson Viper
Newbie cheater
Reputation: 0

Joined: 15 May 2011
Posts: 18
Location: Norway

PostPosted: Sun Sep 17, 2017 4:37 pm    Post subject: Reply with quote

Thank you for answering, i'll check it out Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites