minekmar How do I cheat?
Reputation: 0
Joined: 22 Jul 2013 Posts: 5
|
Posted: Thu Sep 05, 2013 7:21 am Post subject: Aobscan need help |
|
|
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.
|
|