hi all. I need so help here. I want to create a lua script to constantly increase value '1200' to the 2 addresses found if value change. My script as below but I not sure why sometimes the values will increase 1200 and sometimes the value will increase 2400. Any one can help?
while true do
local t = gg.getResults(2)
local old = {}
old = t[1].value
t= gg.getValues(t)
if old ~=t[1].value then
t[1].value=t[1].value+data[3]
t[2].value=t[1].value
end
gg.setValues(t)
end
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Question
edwinn
hi all. I need so help here. I want to create a lua script to constantly increase value '1200' to the 2 addresses found if value change. My script as below but I not sure why sometimes the values will increase 1200 and sometimes the value will increase 2400. Any one can help?
data = gg.prompt({[1]='Search Address 1', [2]='Search Address 2', [3]='Value'}, {[1]='13EE7610', [2]='13EE75A0', [3]='1200'})
gg.searchAddress(data[1], gg.TYPE_DWORD)
gg.searchAddress(data[2], gg.TYPE_DWORD)
while true do
local t = gg.getResults(2)
local old = {}
old = t[1].value
t= gg.getValues(t)
if old ~=t[1].value then
t[1].value=t[1].value+data[3]
t[2].value=t[1].value
end
gg.setValues(t)
end
Thanks and have a good day.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.