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 


It crashes when I enable this AA script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Sohail__Saha
Advanced Cheater
Reputation: 0

Joined: 21 May 2014
Posts: 82
Location: India

PostPosted: Fri Jun 27, 2014 3:59 am    Post subject: It crashes when I enable this AA script Reply with quote

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??? Confused
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.
Laughing
Back to top
View user's profile Send private message Visit poster's website
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Fri Jun 27, 2014 4:58 am    Post subject: Re: It crashes when I enable this AA script Reply with quote

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??? Confused
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
View user's profile Send private message
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