Enzo_Funny_Gamer Posted June 9, 2021 Posted June 9, 2021 How To Freeze Values By Offset? Possible? Can any One Help? I tried adding Freezing Methots In The table Of Offset But Fails Every Time [added 0 minutes later] Just now, Enzo_Funny_Gamer said: How To Freeze Values By Offset? Possible? Can any One Help? I tried adding Freezing Methots In The table Of Offset But Fails Every Time We Normaly use gg.searchNumber("19811;10616;10606;10611:512",gg.TYPE_DWORD) local Lapiss = gg.getResults(gg.getResultsCount()) for i,v in pairs(Lapiss) do if v.value == 19811 then v.value = <your value> v.freeze = true end end gg.addListItems(Lapiss)
CmP Posted June 9, 2021 Posted June 9, 2021 If I understand you correctly, you can just construct a table with values at desired addresses and then call "addListItems" function with that table as argument: gg.searchNumber("19811;10616;10606;10611:512", gg.TYPE_DWORD) local Lapiss = gg.getResults(gg.getResultsCount()) local values = {} local offset = 0x20 local desiredValue = "123" for i, v in pairs(Lapiss) do if v.value == 19811 then values[#values + 1] = {address = v.address + offset, flags = v.flags, value = desiredValue, freeze = true} end end gg.addListItems(values)
Enzo_Funny_Gamer Posted June 9, 2021 Author Posted June 9, 2021 3 minutes ago, CmP said: If I understand you correctly, you can just construct a table with values at desired addresses and then call "addListItems" function with that table as argument: gg.searchNumber("19811;10616;10606;10611:512", gg.TYPE_DWORD) local Lapiss = gg.getResults(gg.getResultsCount()) local values = {} local offset = 0x20 local desiredValue = "123" for i, v in pairs(Lapiss) do if v.value == 19811 then values[#values + 1] = {address = v.address + offset, flags = v.flags, value = desiredValue, freeze = true} end end gg.addListItems(values) Thanks But I Figured it out my self
OGNewbie Posted June 10, 2021 Posted June 10, 2021 18 hours ago, Enzo_Funny_Gamer said: How To Freeze Values By Offset? Possible? Can any One Help? I tried adding Freezing Methots In The table Of Offset But Fails Every Time [added 0 minutes later] We Normaly use gg.searchNumber("19811;10616;10606;10611:512",gg.TYPE_DWORD) local Lapiss = gg.getResults(gg.getResultsCount()) for i,v in pairs(Lapiss) do if v.value == 19811 then v.value = <your value> v.freeze = true end end gg.addListItems(Lapiss) Why is my Lapiss code here. Anyway the offset will also help me for the topic.
Question
Enzo_Funny_Gamer
How To Freeze Values By Offset? Possible?
Can any One Help?
I tried adding Freezing Methots In The table Of Offset But Fails Every Time
We Normaly use
gg.searchNumber("19811;10616;10606;10611:512",gg.TYPE_DWORD)
local Lapiss = gg.getResults(gg.getResultsCount())
for i,v in pairs(Lapiss) do
if v.value == 19811 then
v.value = <your value>
v.freeze = true
end
end
gg.addListItems(Lapiss)
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.