adaptusaaf Advanced Cheater Reputation: 0
Joined: 13 Jan 2008 Posts: 52
|
Posted: Fri Sep 04, 2015 7:26 pm Post subject: Put address-value in another address with lua hotkey macro? |
|
|
Code: | function main()
if isKeyPressed(VK_U) then
writeInteger("10CAD73C", 900)
end
end
t = createTimer(nil, false) -- create a Timer object and assign it to variable t
timer_onTimer(t, main) -- When the timer ticks, call the function main
timer_setInterval(t, 50) -- Sets the tickrate of the timer in milliseconds
timer_setEnabled(t, true) -- Turns the timer on |
The above is my working lua script
Instead of putting "900" as the value in the address 10CAD73C, I'd rather have it dynamically update to be whatever the value of another address is, the address of 10CAD748.
writeInteger("10CAD73C", "10CAD748")
doesn't seem to work
does anything work for this?
|
|