View previous topic :: View next topic |
Author |
Message |
Palimpalim Newbie cheater Reputation: 0
Joined: 02 Jan 2012 Posts: 23 Location: Deutschland
|
Posted: Sat Aug 01, 2015 1:02 pm Post subject: aobscan only once!? |
|
|
Is it possible aobscanning only once? In ONE Script.
I meant it like this example:
Code: |
[ENABLE]
if (registersymbol(placing)): // First, check if the registered symbol is found.
// Nothing to do
else: // Registered Symbol not found -> aobscan and register it
aobscan(placing,FF 88 80000000 8B 85 58FAFFFF)
registersymbol(placing)
endif
placing:
db 90 90 90 90 90 90
[DISABLE]
placing:
db FF 88 80 00 00 00
|
ya ya.. there's no "if" in the assembler code but in c#/c++
I know how i can do that in two scripts. But it would looking stupid if i have 2 or more scripts like this.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Sat Aug 01, 2015 2:24 pm Post subject: |
|
|
something like this:
Code: |
[ENABLE]
{$lua}
errorOnLookupFailure(false) --without this the script would just fail to enable
if (getAddress("placing")==0) then --not yet defined
return [[
aobscan(placing,FF 88 80000000 8B 85 58FAFFFF)
registersymbol(placing)
]] --the returned string in lua sections get executed by the auto assembler. In this case, and aobscan line and it's registersymbol part are placed here (no return means an empty string)
end
{$asm}
placing:
db 90 90 90 90 90 90
[DISABLE]
placing:
db FF 88 80 00 00 00
|
Also, you could have the code in a main entry that scans both aob's, and then have children under it that use it. (aobscan's in a script get grouped into one single scan, which is faster than multiple scans over and over)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Palimpalim Newbie cheater Reputation: 0
Joined: 02 Jan 2012 Posts: 23 Location: Deutschland
|
Posted: Sat Aug 01, 2015 3:52 pm Post subject: Fuck yeah! |
|
|
THIS is it!
Thanks Dark Byte. This solves my problems.
Better have to learn lua too and not only c#
|
|
Back to top |
|
|
|