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 


[qustion] about AA scripts

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Negima
I post too much
Reputation: 6

Joined: 22 May 2007
Posts: 2221

PostPosted: Fri Sep 14, 2007 12:51 am    Post subject: [qustion] about AA scripts Reply with quote

ok I dont understand what is wrong with this script

Code:
[Enable]
address:
mov [address], 99999 //moves the value of the address to 99999
[disable]
address:
dec [address], 99999// moves the value of the address back to what it was before you ticked


This isent an acual script, im just trying to learn ASM, so lets say this sets the value of my HP address to 99999. would this work?
Back to top
View user's profile Send private message Visit poster's website
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri Sep 14, 2007 10:35 am    Post subject: Reply with quote

This moves the addresses value, you can see it when you add address manualy.
Usally, you move eax to the value you want.
Like mov eax,FFFFFFFF would be a lot of hp. Shocked
What you did here, you made the address change itselves value.
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Fri Sep 14, 2007 6:02 pm    Post subject: Re: [qustion] about AA scripts Reply with quote

Negima wrote:
ok I dont understand what is wrong with this script

Code:
[Enable]
address:
mov [address], 99999 //moves the value of the address to 99999
[disable]
address:
dec [address], 99999// moves the value of the address back to what it was before you ticked


This isent an acual script, im just trying to learn ASM, so lets say this sets the value of my HP address to 99999. would this work?


mov [address],99999 moves hex of 99999 in to the address, not the address to it.
If this was score then it would make it 629145, Because Hexadecimal 99999 is 629145 in decimal.

So moving 99999 to that address the game will show 629145.

This code should look something like:
There is a few ways to do it but this one gives you a good grasp on what to do. Also i would look at my sticky in the General GameHacking Section about AA scripts. To see some great examples that will help you out.
Code:

[Enable]
label(back)

code_cave_address: // <--- Code cave so you can write your code.
mov ecx,1869F //<--- Moves the decimal value of 99999 to ecx
mov [address],ecx // <--- Moves ecx to the address.
jmp back     //<-- jump to the label

address: //<--- original address "When game reaches this address"
jmp code_cave_address   //<----" Jump to the code cave to read your code"
nop //<-- cleaning up left over trash
back: // <--- label to jump to
[Disable]
address:  //<--- original address
mov [address],ecx /// <-- original code write it back.
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