 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Negima I post too much
Reputation: 6
Joined: 22 May 2007 Posts: 2221
|
Posted: Fri Sep 14, 2007 12:51 am Post subject: [qustion] about AA scripts |
|
|
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 |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Sep 14, 2007 10:35 am Post subject: |
|
|
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.
What you did here, you made the address change itselves value. |
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Fri Sep 14, 2007 6:02 pm Post subject: Re: [qustion] about AA scripts |
|
|
| 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 |
|
 |
|
|
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
|
|