Jump to content
  • 0

Help me with gg.toast count value


KarimIdris999997

Question

gg.setRanges(32)
gg.searchNumber("12345",4)
r=gg.getResults()
for i,v in pairs(r) do
  local A={[1]={address = v.address + 0x8}}
 if A[1].value == xxxxxx then
 r[1].address = r[1].address + 0x4
 r[1].value = xxxxxx
gg.setValues(r)
    
here is the editing value with conditioner
    

Now i want to use gg.toast('modifies'..blablabla) for how many value that has been modified.

I was only able to make gg.toast for the searched results which is r .

I want the gg.toast from the modified value count.

Let say i run this command and it give me 900 results..but modified value i dont know how much.So can someone help me with the gg.toast for the modified value only.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

gg.setRanges(32)
gg.searchNumber("12345",4)
r=gg.getResults()
local count = 0
for i,v in pairs(r) do
  local A={[1]={address = v.address + 0x8}}
 if A[1].value == xxxxxx then
 count = count + 1
 r[1].address = r[1].address + 0x4
 r[1].value = xxxxxx
gg.setValues(r)
gg.toast("Modified "..count.." values.")
    

This should do it

Link to comment
Share on other sites

On 1/22/2022 at 2:42 PM, KarimIdris999997 said:
gg.setRanges(32)
gg.searchNumber("12345",4)
r=gg.getResults()
for i,v in pairs(r) do
  local A={[1]={address = v.address + 0x8}}
 if A[1].value == xxxxxx then
 r[1].address = r[1].address + 0x4
 r[1].value = xxxxxx
gg.setValues(r)
    
here is the editing value with conditioner
    

Now i want to use gg.toast('modifies'..blablabla) for how many value that has been modified.

I was only able to make gg.toast for the searched results which is r .

I want the gg.toast from the modified value count.

Let say i run this command and it give me 900 results..but modified value i dont know how much.So can someone help me with the gg.toast for the modified value only.

gg.setRanges(32)
gg.searchNumber("12345",4)
r=gg.getResults(gg.getResultsCount())
local newResults = {}
for _, __ in next, r do
	local A = gg.getValues{{address = __.address + 0x8, flags = __.flags, value = __.value}}
	if A[1].value == xxxxxx then
		newResults[#newResults + 1] = {address = __.address + 0x4, flags = __.flags, =value = xxxxxx}
	end
end
gg.setValues(newResults)
gg.toast("All hacked :"..#newResults)

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.