Hello,
what im trying is to get all results and put them in table array,
lets say all result are 100,
then i need to check 1 by 1 with offset,
if the value after calculate offset is the same as i want,
then only add that into saved list,
i also see some previous example in this link
Read value in offset (#an95zfus)
and here what my code looks like :
gg.searchNumber('119;1;16777216::50', 4)
gg.refineNumber('119', 4)
local searchResults = gg.getResults(100)
local q = {}
local checkValue = '16777216'
if #searchResults == 0 then
os.exit
end
for i, v in ipairs(searchResults) do
q[i] = {address = v.address + 0xC, flags = 4}
end
q = gg.getValues(q)
for i, v in ipairs(q) do
if v.value == checkValue then
gg.addListItems({{address = q[1].address - 0xC, flags = 4, value = 25, freeze = true, name = 'SKILL'}})
end
end