Jump to content
  • 0

Help me Lua script experts, how do I copy the resulting offset value, then paste the value in the next search result that has been offset?


Question

Posted (edited)

gg.clearResults()

gg.clearList()

gg.searchNumber("4321", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)

local t = gg.getResults(1)

gg.addListItems(t)

gg.clearResults()

gg.searchNumber("4321", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)

local t = gg.getResults(1)

gg.addListItems(t)

gg.clearResults()

gg.searchNumber("4321", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)

local t = gg.getResults(1)

gg.addListItems(t) gg.clearResults()

local tc = gg.getListItems() gg.cleaeList()

for i, v in ipairs(tc) do

 v.address = v.address - 0x1C

end

gg.addListItems(tc)

local ttc = gg.getListItems()

gg.searchNumber("1234", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)

local t = gg.getResults(1)

gg.addListItems(t)

gg.clearResults()

gg.searchNumber("1234", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)

local t = gg.getResults(1)

gg.addListItems(t)

gg.clearResults()

gg.searchNumber("1234", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)

local t = gg.getResults(1)

gg.addListItems(t) gg.clearResults()

local tb = gg.getListItems() gg.cleaeList()

for i, v in ipairs(tb) do

 v.address = v.address + 0x1C

 v.value = ttc[1].value

end

gg.addListItems(tb)

gg.setValues(ttc)

Edited by POXO

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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