- 0
Lua script error can't figure out.
-
Similar Content
-
- 12 answers
- 3,350 views
-
- 1 answer
- 1,044 views
-
- 1 answer
- 1,000 views
-
- 1 answer
- 763 views
-
- 2 answers
- 1,135 views
-
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
CoyFanatic
I've been working on this script where I do a group search with static values and a specific offset to get the address of that one hack value whose address changes after restart . Something like this:
gg.setRanges(gg.REGION_CODE_APP)
function Zoom()
gg.searchNumber('36;0~~0::377', gg.TYPE_DOUBLE)
gg.refineNumber('1;0~~0::265', gg.TYPE_DOUBLE)
local t = gg.getResults(67)
t[14].value = '9' print('done',gg.setValues(t))
end
local a = gg.choice({'Zoom','exit'})
if a == 1 then Zoom() end
if a == 2 then os.exit() end
So basically I want the 14th value of the table to be 9 (value type double) but unfortunately it's not changing when I launch the script. When I manually edit the value (without script) it works like a charm. Can anyone please tell me where I went wrong:(
20 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now