FreeER Grandmaster Cheater Supreme
Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Fri Jul 07, 2017 8:24 pm Post subject: |
|
|
As the celua.txt (and presumably the wiki I never use) says
Code: | registerSymbol(symbolname, address, OPTIONAL donotsave): Registers a userdefined symbol. If donotsave is true this symbol will not get saved when the table is saved
|
In lua registerSymbol takes a symbol name and an address eg.
Code: | registerSymbol("xSymbolName", xAddressValue) |
However in CE 6.7 you can use lua to calculate symbols in AA pretty easily, here's an arbitrary example
Code: | {$lua}
function calcAddr()
return readPointer('Tutorial-i386.exe+1FD5D0')+0x400+math.pow(2,7)
end
{$asm}
[ENABLE]
$calcAddr():
{$lua}
return "dd " .. math.random(-80,80)
[DISABLE]
$getAddress('[Tutorial-i386.exe+1FD5D0]+480'):
dd #100 |
both, as you might expect write to [Tutorial-i386.exe+1FD5D0]+480 (017801C0 during my testing) which is the pointer for step 2 of the tutorial.
|
|