View previous topic :: View next topic |
Author |
Message |
Twistedfate Expert Cheater
Reputation: 1
Joined: 11 Mar 2016 Posts: 231
|
Posted: Tue May 09, 2017 2:03 pm Post subject: How to add register symbo with lua to use it in AA script ? |
|
|
I seen this in main.lua but I cannot figure out how to use it .
registerSymbol(symbolname, address, OPTIONAL donotsave)
I want to store this equation in register symbol(x) then use[ x ] in AA script
In Lua
Code: | x=(m/y)+7
add x as registersymbol() ...
|
In AA
Code: | mov ecx,[x]
cmp [esi+20],ecx
je code |
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 468
Joined: 09 May 2003 Posts: 25706 Location: The netherlands
|
Posted: Tue May 09, 2017 2:09 pm Post subject: |
|
|
registersymbol('x',math.floor(x))
or
registersymbol('x',math.floor((m/y)+7))
_________________
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 |
|
 |
Twistedfate Expert Cheater
Reputation: 1
Joined: 11 Mar 2016 Posts: 231
|
Posted: Wed May 10, 2017 10:37 am Post subject: |
|
|
is there something messing ?
I open lua script
and write
registerSymbol('x',math.floor(x))
then open AA trying to
mov edx,[x] → doesnot work looks like the registerSymbol is not in memory what is the wrong ?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 468
Joined: 09 May 2003 Posts: 25706 Location: The netherlands
|
Posted: Wed May 10, 2017 12:25 pm Post subject: |
|
|
what value have you set to x?
is x a readable address ?
did you execute the lua first ?(so not just write it, also execute)
_________________
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 |
|
 |
Twistedfate Expert Cheater
Reputation: 1
Joined: 11 Mar 2016 Posts: 231
|
Posted: Wed May 10, 2017 2:43 pm Post subject: |
|
|
I want to execute lua first .
I want to make equations with Lua .
x=equation
Then use [x] in AA script as register symbol created from Lua .
example :
in lua
Code: | a=readnteger(blah)
b=readnteger(blahblah)
x=a/b
|
then use x in AA script
Code: | mov eax,[x]
cmp [ecx+10],eax |
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 468
Joined: 09 May 2003 Posts: 25706 Location: The netherlands
|
Posted: Wed May 10, 2017 3:24 pm Post subject: |
|
|
the registered symbol has to contain an address in memory
also, each time x changes you will have to reregister the symbol
and keep in mind that you will have to reassemble the code again with the new value
perhaps you want to use a timer instead that writes the result of yoyr calculation somewhere in the target process instead
_________________
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 |
|
 |
panraven Grandmaster Cheater
Reputation: 61
Joined: 01 Oct 2008 Posts: 958
|
|
Back to top |
|
 |
|