 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Sohail__Saha Advanced Cheater
Reputation: 0
Joined: 21 May 2014 Posts: 82 Location: India
|
Posted: Fri Jun 27, 2014 3:59 am Post subject: It crashes when I enable this AA script |
|
|
I am trying to solve the multi-level pointers tutorial by AA script. I have to increase my float health value at this address: [[[[00631390]+C]+14]]+18
I used this script, but it does not compile. Then, I used 'man' instead of 'm', and then it compiled. But when I enable this AA Script, the tutorial crashes. What have I done wrong???
Code: |
[enable]
globalalloc(m,1024)
createthread(m)
m:
mov eax,[00631390]
lea eax,[eax+C] // you could use add or sub
mov eax,[eax]
lea eax,[eax+14]
mov eax,[eax]
mov eax,[eax] // offset is 0
lea eax,[eax+18]
mov eax,[eax]
mov [eax],(float)5000 // your hp is float?,you could also do inc [eax] to do hp regeneration
push #100 //This will wait 0.1s
call sleep
jmp m
[disable]
m:
ret
|
_________________
Don't underestimate the power of a common code.
 |
|
Back to top |
|
 |
Redouane Master Cheater
Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Fri Jun 27, 2014 4:58 am Post subject: Re: It crashes when I enable this AA script |
|
|
Sohail__Saha wrote: | I am trying to solve the multi-level pointers tutorial by AA script. I have to increase my float health value at this address: [[[[00631390]+C]+14]]+18
I used this script, but it does not compile. Then, I used 'man' instead of 'm', and then it compiled. But when I enable this AA Script, the tutorial crashes. What have I done wrong???
Code: |
[enable]
globalalloc(m,1024)
createthread(m)
m:
mov eax,[00631390]
lea eax,[eax+C] // you could use add or sub
mov eax,[eax]
lea eax,[eax+14]
mov eax,[eax]
mov eax,[eax] // offset is 0
lea eax,[eax+18]
mov eax,[eax]
mov [eax],(float)5000 // your hp is float?,you could also do inc [eax] to do hp regeneration
push #100 //This will wait 0.1s
call sleep
jmp m
[disable]
m:
ret
|
|
Use CE 6.4 and it will compile.
Also,are you sure about those offsets?
The code won't increase your hp,it will keep writing 5000 to it,maybe maxhealth is 100,in that case,it's not recommended to make hp>maxhp.
If you want to keep increasing it,do this after getting the address in eax:
Code: |
label(value_to_add)
//Inside m
finit
fld dword ptr[eax]
fadd dword ptr[value_to_add]
fstp dword ptr[eax]
ret
value_to_add:
dd (float)1 |
|
|
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
|
|