View previous topic :: View next topic |
Author |
Message |
simonzack Newbie cheater Reputation: 0
Joined: 19 Jun 2014 Posts: 15
|
Posted: Thu Oct 30, 2014 3:33 am Post subject: Simplifying some aobscan code |
|
|
Is there any way to simplify the below aobscan code by moving the byte constants into variables/labels?
[ENABLE]
aobscan(addr, 01 02 03 04 05)
addr:
db 01 02 03 04 06
[DISABLE]
aobscan(addr, 01 02 03 04 06)
addr:
db 01 02 03 04 05
aobscan is used here due to loading/unloading of the game code.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
|
Posted: Thu Oct 30, 2014 6:39 am Post subject: |
|
|
If it is .net or mono and the bytes point to jitted code you can activate those features first and then get the address from there using only the name
If it's just data or flash then aob's are the best option. (If it's java then you may be able to change the bytecode. Unlike .net and mono it only jit's a function after executing it thousands of times)
_________________
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 |
|
|
simonzack Newbie cheater Reputation: 0
Joined: 19 Jun 2014 Posts: 15
|
Posted: Thu Oct 30, 2014 2:04 pm Post subject: |
|
|
It's AS2 which is not jitted, so aobscan works, but the constants are really long in this case, is there a way to store the list of bytes as a variable?
|
|
Back to top |
|
|
panraven Grandmaster Cheater Reputation: 55
Joined: 01 Oct 2008 Posts: 942
|
Posted: Fri Nov 07, 2014 2:29 pm Post subject: |
|
|
Let me guess... you want something like this.
@commonpart = 96 02 05 07
aobscan(addr1, @commonpart , 01 02 03 04 05)
// equivalent to aobscan(addr1, 96 02 05 07 01 02 03 04 05)
aobscan(addr2, @commonpart , 11 22 33 44 55)
// equivalent to aobscan(addr2, 96 02 05 07 11 12 13 14 15)
if yes, no for aa script up to ver 6.4.
|
|
Back to top |
|
|
|