| View previous topic :: View next topic |
| Author |
Message |
cosinegamingniggaballs How do I cheat?
Reputation: 0
Joined: 11 Oct 2023 Posts: 2
|
Posted: Wed Oct 11, 2023 2:12 pm Post subject: AoB script |
|
|
| how would I make a script that does an AoB scan, takes that value, adds an offset, assigns that (aob+offset) to a symbol?
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4715
|
Posted: Wed Oct 11, 2023 3:09 pm Post subject: |
|
|
Scanning for unique code pattern:
| Code: | local result = AOBScanUnique('12 34 ...', '+X-C-W')
assert(result, 'AOB pattern not found')
registerSymbol('my_symbol', result + offset, true) |
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
cosinegamingniggaballs How do I cheat?
Reputation: 0
Joined: 11 Oct 2023 Posts: 2
|
Posted: Wed Oct 11, 2023 4:06 pm Post subject: Error |
|
|
| ParkourPenguin wrote: | Scanning for unique code pattern:
| Code: | local result = AOBScanUnique('12 34 ...', '+X-C-W')
assert(result, 'AOB pattern not found')
registerSymbol('my_symbol', result + offset, true) |
|
I am not sure if it is because of the length of my string or what, but I got a 2nd line error for could not be compiled:
| Code: | [ENABLE]
local result = AOBScanUnique('00 00 00 00 07 00 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF', '+X-C-W')
assert(result, 'AOB pattern not found')
registerSymbol('inv', result + 0xC5C, true)
[DISABLE]
unregisterSymbol('inv') |
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4715
|
Posted: Wed Oct 11, 2023 4:21 pm Post subject: |
|
|
That's an AA script, not a Lua script...
Also, that aob pattern isn't code.
| Code: | [ENABLE]
aobscan(result,00 00 00 00 07 00 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF)
label(inv)
result+C5C:
inv:
registersymbol(inv)
[DISABLE]
unregistersymbol(inv) |
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
|