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 


Aobscan need help

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

Joined: 22 Jul 2013
Posts: 5

PostPosted: Thu Sep 05, 2013 7:21 am    Post subject: Aobscan need help Reply with quote

Hi

My code look like this:
Code:

[ENABLE]
alloc(newmem,2048)
label(hp_start)
label(hp_return)
label(hp_origi)
label(aob_hp_label)
registersymbol(aob_hp_label)
aobscan(aob_hp_scan,0F 88 * * * D0 89 11 83 3D 60 8A E5 00 00 0F 85 5F 00 00 00)

//code main start
newmem:
//infinite hp
hp_start:
 cmp ecx,20C65E14
 jne hp_origi
 cmp dword ptr [pcsx2-r5350.exe+528A60],00
 jmp hp_return

hp_origi:
 mov [ecx],edx
 cmp dword ptr [pcsx2-r5350.exe+528A60],00
 jmp hp_return

//code hook start
//hp hook
aob_hp_scan+6:
aob_hp_label:
jmp hp_start
nop
nop
nop
nop
hp_return:

[DISABLE]
//code origi replace
dealloc(newmem)
//hp origi
aob_hp_label:
mov [ecx],edx
cmp dword ptr [pcsx2-r5350.exe+528A60],00
   //Alt: db 89 11 83 3D 60 8A E5 00 00
unregistersymbol(aob_hp_label)


It is only give address when the code is in use(when i get hit or when i damage something and stay on the address until i change the map or something else).
So i need to reenable the AA script, after the next "fight start".

What i want is to make the AA script's aobscan recheck it self when needed.
Like this:
Code:

.
.
.
scan:
aobscan(aob_hp_scan,0F 88 * * * D0 89 11 83 3D 60 8A E5 00 00 0F 85 5F 00 00 00)

if(aob_hp_scan==null){      //if it's don't find the code or the location changed
  sleep(1000)
  jmp scan
}
.//rest of the code
.
.

I glad for any help.
It's good if u can help solve this in lua script(i'm totaly newbie in lua "don't even know how to use and where")
I don't want to use other program, just the CE. So plz help me solve this in CE.
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