gg.searchNumber(123, gg.TYPE_DWORD)
t = gg.getResults(gg.getResultsCount())
Now I want to check every float value at offset -0x24. So i wrote a function. This function will check value at commanded offset. And the equal values will be stored in table. and return.
function MemoryOffset(Table, Offset, Type, Value)local temp={}local original_flag=Table[1].flags
for i, v in ipairs(Table)do
v.address=v.address+Offset
v.flags=Type end
Table=gg.getValues(Table)for i, v in ipairs(Table)doif v.value==Value then table.insert(temp, v)endend
Table=nil
Table={}for i, v in ipairs(temp)do
table.insert(Table, v)endfor i, v in ipairs(Table)do
v.address=v.address-Offset
v.flags=original_flag end
Table=gg.getValues(Table)return Table end
If I want to check float 45 at offset -0x6c usage will be
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.
Question
Lover1500
I am making a function in lua.
Now I want to check every float value at offset -0x24. So i wrote a function. This function will check value at commanded offset. And the equal values will be stored in table. and return.
If I want to check float 45 at offset -0x6c usage will be
edit::must be -0x6c.my writing mistake.
It works fine.But it seems long texts in my mind. I want to know if there is a more better way. I'm very appreciated whoever help me.
6 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.