Jump to content
  • -1

Help Please About My Stupid Question


Vaster
 Share

Question

gg.searchNumber('3,470,333,575,360Q;472,446,403,368Q;-4,294,967,186Q;4,294,967,295Q;-4,294,967,296Q;-1Q;8,589,934,591Q::25', gg.TYPE_QWORD, false, gg.SIGN_EQUAL, 0x7000000000, 0x7FFFFFFFFF, 0)
if gg.getResultsCount() == 0 then gg.toast("Value Not Found")end
gg.refineAddress("8" ,0xff, gg.TYPE_QWORD, gg.SIGN_EQUAL, 0, -1, 0)
gg.refineNumber(3470333575360, gg.TYPE_QWORD)
local r = gg.getResults(1)
for i, v in pairs(r) do
v.address = v.address + 0x28
gg.loadResults(r)
local t = {}
t[1] = {}
t[1].address = r -- some desired address
t[1].flags = gg.TYPE_QWORD
t = gg.getValues(r)
-- use value as pointer
t[1].address = t[1].value
t = gg.getValues(t)
gg.loadResults(t)
local count = gg.getResultsCount(1)
local results = gg.getResults(1)
local values = {}
for i, v in ipairs(results) do
    local name = v.name
    local index = (i + 1) * 2
    local addr = v.address
    values[index + 1] = {address = addr + 0x0F900, flags = gg.TYPE_DWORD, value = 0x007F044C, freeze = false, name = "NeoS1"}    
    values[index + 2] = {address = addr + 0x0F9C0, flags = gg.TYPE_DWORD, value = 0x007F00B8, freeze = false, name = "NeoS2"}
gg.loadResults(values)
local change = gg.getResultsCount(2)
local value = {}
for i, v in ipairs(change) do
    local name = v.name
    local index = (i + 1) * 2
    local addr = v.address
    local value[index + 1] = value[index + 2]
gg.setValues(value)
gg.setVisible(false)
gg.toast('✅')
end
end
end

Any Sensei Can teach me ? how to switch results index 1 to index 2 and vice versa ? 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • 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.