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 


help me understand

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Sarbaz
How do I cheat?
Reputation: 0

Joined: 03 Dec 2011
Posts: 6

PostPosted: Sat Dec 03, 2011 3:39 am    Post subject: help me understand Reply with quote

This Code

dec [eax+40]
mov eax,[ebp-0000021C]

decrements the value by 1 and say if i wanted to change the big 1 with a 2 or 3

would it be possible. Question

and what does the eax+40 mean?? Very Happy
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25859
Location: The netherlands

PostPosted: Sat Dec 03, 2011 3:59 am    Post subject: Reply with quote

dec [eax+40]: Decrease the 4 byte value stored at the address pointed to by eax+40 with 1

to decrease with 2 you can replace this instruction with "sub [eax+40],2"
Note that this instruction is 1 byte longer than the original so it will break the next line (mov eax,...)

To get by this you need to do a code injection.
Do that by selecting the dec [eax+40] line
press ctrl+a (or go to tools->auto assemble)
click template->code injection
Just press ok (the input address should already be set to the address of dec [eax+40] )

And now you can just change the dec [eax+40] line with sub [eax+40],2

and press execute to do the code injection

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Sarbaz
How do I cheat?
Reputation: 0

Joined: 03 Dec 2011
Posts: 6

PostPosted: Sat Dec 03, 2011 11:12 am    Post subject: Thanks Reply with quote

Thanks Dark-Byte you'r cool like fool in the swimming pool Very Happy Very Happy
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