Grandmaster Cheater Supreme
Joined: 09 Aug 2013
|Posted: Fri Jul 07, 2017 8:24 pm Post subject:
|As the celua.txt (and presumably the wiki I never use) says
|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.
|registerSymbol("xSymbolName", xAddressValue) |
However in CE 6.7 you can use lua to calculate symbols in AA pretty easily, here's an arbitrary example
return "dd " .. math.random(-80,80)
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.