Jump to content
  • 0

Offset


soffter

Question

Posted

hello, can anyone help me with this? after the offset I want to add another offset and then edit the value, I searched but I can't find a way to achieve it


gg.clearResults()
gg.searchNumber("100;300;450;25" , gg.TYPE_DWORD) 
gg.refineNumber("25", gg.TYPE_DWORD) 
p = gg.getResults(2)
local q = {}
q[1] = {}
q[1].address = p[2].address + 16 

 

                                                       <----------- ADD OTHER OFFSET, BUT HOW?


q[1].flags = 4 
q[1].value = 100 
gg.setValues(q)  
gg.alert('Done')
 

1 answer to this question

Recommended Posts

Posted
gg.clearResults()
gg.searchNumber("100;300;450;25" , gg.TYPE_DWORD) 
gg.refineNumber("25", gg.TYPE_DWORD) 
p = gg.getResults(2)

local q = {
  { -- First target address you wanna modified.
    address = p[2].address + 16,
    flags = gg.TYPE_DWORD,
    value = 100
  },
  { -- Make another table to modified other address.
    address = p[2].address + 0x30, -- Offset
    flags = gg.TYPE_DWORD,
    value = 1000
  }
}

gg.setValues(q)  
gg.alert('Done')

Search your question before creating new thread. 

Use table to add new address.

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.