Jump to content
  • 0

How to use offset in gg script


kkbs4u

Question

Posted


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

I Want To Set Offset On First Result 
Offset Is 38899787
and Edit Offset Value with Freeze -776588887


How To Do Please Help
 

5 answers to this question

Recommended Posts

Posted
On 6/20/2020 at 3:39 AM, zam535582 said:

gg.searchNumber("1179403647", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
r = gg.getResults(1)

local t = {}
t[1] = {}
t[1].address = r[1].address + 38899787
t[1].flags = 4
t[1].value = -776588887
t[1].freeze = true
gg.setValues(t)
gg.addListItems(t)

 

what if the search results are more than one ?.  I tried the code but only 1 result was edited

gg.searchNumber("10;20", gg.TYPE_FLOAT)
gg.refineNumber("10")
r = gg.getResults(10)

local t = {}
t[1] = {}
t[1].address = r[1].address - 0x4
t[1].flags = gg.TYPE_FLOAT
t[1].value = 10
t[1].freeze = true
gg.setValues(t)
gg.addListItems(t)

 

Posted
local t = gg.getResults(10)

for i,v in pairs(t) do
   
t[i].address = t[i].address - 0x4
t[i].flags = 16
t[i].value = 10
t[i].freeze = true
  
gg.setValues(t)
gg.addListItems(t)
gg.toast("Done")
end

someone gave me this method..a long time ago.

it could be work for you.

try it.

Posted
17 hours ago, MonkeySAN said:

local t = gg.getResults(10)

for i,v in pairs(t) do
   
t[i].address = t[i].address - 0x4
t[i].flags = 16
t[i].value = 10
t[i].freeze = true
  
gg.setValues(t)
gg.addListItems(t)
gg.toast("Done")
end

someone gave me this method..a long time ago.

it could be work for you.

try it.

Thanks sir, its work perfectly👌

Posted
gg.searchNumber("1179403647", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
r = gg.getResults(1)

local t = {}
t[1] = {}
t[1].address = r[1].address + 38899787
t[1].flags = 4
t[1].value = -776588887
t[1].freeze = true
gg.setValues(t)
gg.addListItems(t)

 

Posted
15 hours ago, zam535582 said:

gg.searchNumber("1179403647", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
r = gg.getResults(1)

local t = {}
t[1] = {}
t[1].address = r[1].address + 38899787
t[1].flags = 4
t[1].value = -776588887
t[1].freeze = true
gg.setValues(t)
gg.addListItems(t)

 

Working perfectly 

Thankyou very much sir

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.