Jump to content
  • 0

Help


mhmdgaza

Question

Posted

When i search value dword manually and then i edit the qword value on the dword address its successfully working , but when i make it into a script , it doesnt work

Like this :

gg.clearResults()

gg.searchNumber("131842", gg.TYPE_DWORD)

gg.getResults(50000)

gg.editAll("288515153958273024", gg.TYPE_QWORD)

gg.clearResults()

3 answers to this question

Recommended Posts

Posted
gg.clearResults()

gg.searchNumber("131842", gg.TYPE_DWORD)

local t = gg.getResults(50000)

for i,v in pairs(t) do
    if v.value == 131482 then
       v.value = 288515153958273024
       v.flags = 32-- is type Qword
    end
end
gg.setValues(t)
gg.clearResults()
end

 

Posted

The solution above from MonkeySAN is correct, but has some minor issues and redundancies. Slightly modified version of it: 

gg.clearResults()
gg.searchNumber("131842", gg.TYPE_DWORD)
local t = gg.getResults(50000)
for i, v in ipairs(t) do
  v.flags = gg.TYPE_QWORD -- referencing the constant by it's name instead of substituting it with it's value
  v.value = "288515153958273024" -- using value of type expected by the function instead of relying on implicit conversion of number to string
end
gg.setValues(t)
gg.clearResults()

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.