If you freeze it you gone have a lot of crashes. I usually do like this to find my hacks same as what you want to do:
search = 100 --[giving a value]
for i = 0, 100 do -- [it will loop/add +1 a 100 times]
for i = 1, 3 do -- [it will loop/research the value 3 times (will minimize crashes in case you look in Ca)]
gg.searchNumber(search, gg.TYPE_FLOAT) -- [your searching the value 100 in float(can choose any type)]
end -- [your ending the loop from the therd line]
gg.getResults(10000) -- [taking the results]
gg.editAll(-500, gg.TYPE_FLOAT) -- [edit to -500]
gg.clearResults() -- [deletes the results after beeing edited]
search = search + 1 -- [add +1 till the loop of 100 is finished]
end -- [ending loop of the second line]
-- [you can also choose to search in a specific region if you want to(for example)]
local old = gg.getRanges();
gg.setRanges(gg.REGION_CODE_APP) -- [set region]
search = 100 -- [giving a value]
for i = 0, 100 do -- [it will loop/add +1 a 100 times]
for i = 1, 3 do -- [it will loop/research the value 3 times (will minimize crashes in case you look in Ca)]
gg.searchNumber(search, gg.TYPE_FLOAT) -- [your searching the value 100 in float(can choose any type)]
end -- [your ending the loop from the fifth line]
gg.getResults(10000) -- [taking the results]
gg.editAll(-500, gg.TYPE_FLOAT) -- [edit to -500]
gg.clearResults() -- [deletes the results after beeing edited]
search = search + 1 -- [add +1 till the loop of 100 is finished]
end -- [ending loop of the fourth line]
gg.setRanges(old) -- [return to original regions(the ones before you activated the script)]
-- [if you want to freeze]
local old = gg.getRanges();
gg.setRanges(gg.REGION_CODE_APP) -- [set region]
search = 100 -- [giving a value]
for i = 0, 100 do -- [it will loop/add +1 a 100 times]
for i = 1, 3 do -- [it will loop/research the value 3 times (will minimize crashes in case you look in Ca)]
gg.searchNumber(search, gg.TYPE_FLOAT) -- [your searching the value 100 in float(can choose any type)]
end -- [your ending the loop from the therd line]
a=gg.getResults(10000) -- [taking the results]
gg.addLustItems(a) -- [adding the results to the save list
for i, v in ipairs(a) do -- [will take the results]
a[i].value = '-500' -- [edit all to -500]
a[i].freeze = true -- freeze the values
a[i].freezeType = gg.freeze_NORMAL -- [Choose the freeze type]
end
gg.clearResults() -- [deletes the results after beeing edited]
search = search + 1 -- [add +1 till the loop of 100 is finished]
end -- [ending loop of the fourth line]
gg.setRanges(old) -- [return to original regions(the ones before you activated the script)]
-- [try it out :)]
Have fun