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 


AA & Script help

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

Joined: 29 Apr 2010
Posts: 1

PostPosted: Thu Apr 29, 2010 7:11 am    Post subject: AA & Script help Reply with quote

I've done the cheatengine tutorial but and read some AA tutorials, but I can't figure this out.

What i'm trying to do is do add values to this "mov [ecx+20],eax", but this comes too in the script used on cheat engine tutorial "mov eax,00000004"

So, it`s possible to simply put "add [ecx+20],eax],2000"? (if i want to add 2000 to the address that decrease my money by 1000)
I know that the code mov is to move that address to eax, or something like that, well that is the thing i cant figure out, do I need to follow the addresses and find where is being storaged? Sad

This is the script I get and don`t know how to change:
Code:
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)

136BC44B:
jmp newmem
nop
nop
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
//place your code here


originalcode:
mov [ecx+20],eax
mov eax,00000004

exit:
jmp returnhere
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Thu Apr 29, 2010 7:21 am    Post subject: Reply with quote

you can try and replace 'mov [ecx+20], eax' with 'mov [ecx+20], #2000'. usually a cleaner approach is to modify the value of eax before this mov instruction, but in your case, eax's contents are destroyed anyway

i'm not 100% sure what you're trying to do. if you're trying to increase [ecx+20] by 2000, you could also just do this :
add [ecx+20], #2000

the reason that 'mov eax, 4' was seemingly randomly dragged in there is because the jmp that was written to redirect code at 136BC44B: to newmem: has overwritten more than 1 instruction because of the size of the jmp. the overwritten instruction must therefore be executed in the redirect version of the code so that is what it is doing there.
Back to top
View user's profile Send private message
renzo.psi
How do I cheat?
Reputation: 0

Joined: 29 Apr 2010
Posts: 1

PostPosted: Thu Apr 29, 2010 10:50 am    Post subject: Reply with quote

Well, there is a button on a game ("buy") that makes me spend 1000 coins (duh!) Laughing so what im trying to do is to make this button increase my coins by 1000, since I saw this on step 7 of the tutorial I thought it would work. Thanks for your advice :O

Edit: Well i've tried but doesn't work, everyting goes ok but there is no change in the game Sad
Back to top
View user's profile Send private message
educofu
Expert Cheater
Reputation: 3

Joined: 21 Aug 2009
Posts: 171
Location: Brazil,MG,OP

PostPosted: Thu May 06, 2010 3:51 pm    Post subject: Reply with quote

the game changed EAX (which seems to the money you get) to -1000. then moved the value of EAX to [ecx+20] which is the address of your money.
So if u do like this:

mov eax,1000

before it changes your money, it should work.

_________________
"I finally started thinking outside of the box, only to find myself in a larger box."
Back to top
View user's profile Send private message MSN Messenger
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Tue Sep 21, 2010 2:08 pm    Post subject: Reply with quote

Code:
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)

136BC44B:
jmp newmem
nop
nop
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
add eax,(int)2000

originalcode:
mov [ecx+20],eax
mov eax,00000004

exit:
jmp returnhere
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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