Cannot disable aob script.

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
polis27
Noobzor
Noobzor
Posts: 10
Joined: Tue Feb 13, 2018 11:49 am
Reputation: 1

Cannot disable aob script.

Post by polis27 »

I am stuck with this code here. I want to replace instruction to NOP. The code work but cannot be disable. Can anyone enlighten me?



[code]

[ENABLE]



aobscanmodule(stoc,Yumina.exe,89 41 04 0F BF 81 4E 02 00 00) // should be unique

define(address,stoc)

define(bytes,89 41 04 0F BF 81 4E 02 00 00)



assert(address,bytes)



address:

nop

nop

nop



[DISABLE]



address:

db 89 41 04 0F BF 81 4E 02 00 00

[/code]

User avatar
FreeER
Expert Cheater
Expert Cheater
Posts: 116
Joined: Fri Mar 10, 2017 7:11 pm
Reputation: 28

Cannot disable aob script.

Post by FreeER »

get rid of the defines and assert... the aobscan does both.



Then add [icode]registerSymbol(address)[/icode] in the enable section and [icode]unregisterSymbol(address)[/icode] in the disable section and make sure that name is unique (you don't have any other scripts registering the same symbol). That way the disable section can know where the code was found in the enable section (they're run separately and don't automagically know about each other)

polis27
Noobzor
Noobzor
Posts: 10
Joined: Tue Feb 13, 2018 11:49 am
Reputation: 1

Cannot disable aob script.

Post by polis27 »

It work. Didn't see that. Thank you

Post Reply

Who is online

Users browsing this forum: No registered users