Jump to content
  • 0

save value to replace it in another value


KING_DROF

Question

Hello 

i want help to save the value and use the save value to replace another one in another function 

i try to make something like that but it's not working plz help me

gg.processResume()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("5,430,509,568", gg.TYPE_QWORD, false, gg.SIGN_EQUAL, 0, -1)
p = gg.getResultCount()
q = gg.getResults(p)
do
  do
    for i = 1, p do
      local s = {
        {
          address = q[i].address - 32,
          flags = gg.TYPE_QWORD,
          value = q[i].value
        }
      }
gg.addListItems(s)
gg.clearResults()
gg.processResume()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("25,769,803,836", gg.TYPE_QWORD, false, gg.SIGN_EQUAL, 0, -1)
p = gg.getResultCount()
q = gg.getResults(p)
do
  do
    for i = 1, p do
      local f = {
        {
          address = q[i].address - 48,
          flags = gg.TYPE_QWORD,
          value = q[i].value
        }
      }
      gg.getResults(10)
      gg.editAll(f,gg.TYPE_QWORD)--i want to edit " f " value to the " s " value
                      end
                   end
                end
            end
        end
     end

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

On 6/30/2021 at 1:51 PM, KING_DROF said:

Hello 

i want help to save the value and use the save value to replace another one in another function 

i try to make something like that but it's not working plz help me


gg.processResume()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("5,430,509,568", gg.TYPE_QWORD, false, gg.SIGN_EQUAL, 0, -1)
p = gg.getResultCount()
q = gg.getResults(p)
do
  do
    for i = 1, p do
      local s = {
        {
          address = q[i].address - 32,
          flags = gg.TYPE_QWORD,
          value = q[i].value
        }
      }
gg.addListItems(s)
gg.clearResults()
gg.processResume()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("25,769,803,836", gg.TYPE_QWORD, false, gg.SIGN_EQUAL, 0, -1)
p = gg.getResultCount()
q = gg.getResults(p)
do
  do
    for i = 1, p do
      local f = {
        {
          address = q[i].address - 48,
          flags = gg.TYPE_QWORD,
          value = q[i].value
        }
      }
      gg.getResults(10)
      gg.editAll(f,gg.TYPE_QWORD)--i want to edit " f " value to the " s " value
                      end
                   end
                end
            end
        end
     end

 

how to return the values (#2tylo6uc)

Easy, use gg.saveVariable.

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.