Alice0725 Expert Cheater
Reputation: 11
Joined: 24 Jul 2012 Posts: 145
|
Posted: Sat Jul 28, 2012 7:57 am Post subject: [solved]How to toggle a 2 level pointer's value in AAscript? |
|
|
Example:
Infinite Ammo(byte):[[[0116F1CC]+48]+18]=? // 1:Enable, 0:Disable
I know, we can use CE'S Hotkey Action to toggle freeze, but can't toggle Value!
So I try to change the value in AAScript , then we use the toggleScript Action.
I write the codes, It doesn't work
| Code: |
[ENABLE]
globalalloc(cheater,2048)
cheater:
pushad
pushfd
mov eax,[0116F1CC]
mov ebx,[eax+48]
mov byte [ebx+18],01
popfd
popad
[DISABLE]
globalalloc(cheater,2048)
cheater:
pushad
pushfd
mov eax,[0116F1CC]
mov ebx,[eax+48]
mov byte [ebx+18],00
popfd
popad
dealloc(cheater)
|
then , I use this :
| Code: |
[ENABLE]
globalalloc(cheater,2048)
label(returnhere)
004F915A:
jmp cheater
nop
nop
returnhere:
cheater:
mov byte ptr [eax+000015D4],01 //enable Infinite Ammo
cmp byte ptr [eax+000015D4],00 //original code
jmp returnhere //always return
[DISABLE]
globalalloc(cheater,2048)
label(returnhere)
004F915A:
jmp cheater
nop
nop
returnhere:
cheater:
mov byte ptr [eax+000015D4],00 //disable Infinite Ammo
cmp byte ptr [eax+000015D4],00 //original code
jmp returnhere //always return
|
This time, It worked, but not so good! Even disable the cheat, It also change the game's code! How to fix this? Help?????
Last edited by Alice0725 on Sat Jul 28, 2012 8:50 am; edited 1 time in total |
|