here you can do it like this or you can use function
-- 1st Search Results ↓
gg.searchNumber("8243126118139469840", 32)
gg.refineNumber("8243126118139469840", 32)
-- Check if there are results
if gg.getResultsCount() > 0 then
local t = gg.getResults(1)
for i,v in pairs(t) do
t[i].address = t[i].address - 0xC
t[i].flags = 4
t[i].value = 0
t[i].freeze = false
gg.setValues(t)
end
local t = gg.getResults(10)
for i,v in pairs(t) do
t[i].address = t[i].address + 0x2C
t[i].flags = 16
t[i].value = 0
t[i].freeze = true
gg.addListItems(t)
end
gg.setValues(t)
local t = gg.getResults(10)
-- for how many milliseconds do you want to spawn troll? (1 second = 1000)
gg.sleep(1060)
for i,v in pairs(t) do
t[i].address = t[i].address + 0x2C
t[i].flags = 16
t[i].value = 190
t[i].freeze = true
gg.addListItems(t)
end
gg.setValues(t)
gg.removeListItems(t)
gg.clearResults()
else
print("No results found for the 1st search. Moving to the 2nd search.")
-- 2nd Search Results ↓
gg.searchNumber("7243116118139472821", 32)
-- Continue with the rest of the script for the 2nd search...
end