gg.searchNumber('', gg.TYPE_FLOAT)
gg.refineNumber('', gg.TYPE_FLOAT)
local count = gg.getResultsCount()
local results = gg.getResults(count)
local _x, _y = {}, {}
for i, v in ipairs(results) do
_x[i] = {address = v.address + 0x44, flags = gg.TYPE_FLOAT}
_y[i] = {address = v.address + 0x4C, flags = gg.TYPE_FLOAT}
end
_x, _y = gg.getValues(_x), gg.getValues(_y)
local x, y = {}, {}
for i, v in ipairs(results) do
if _x[i].value ~= '0' then
table.insert(x, x[i])
end
if _y[i].value ~= '0' then
table.insert(y, y[i])
end
end
if #x ~= #y then
return print "the results from x and y may not be the same!"
end
local xValue, yValue = x, y
for loop = 1, #x do
for i, v in ipairs(x) do
x[i].value = xValue[loop].value
y[i].value = yValue[loop].value
end
gg.setValues(x)
gg.setValues(y)
gg.sleep(500)
end
if i want to have the same result of y and x then i will add it under yValue and xValue like so