Jump to content
kkbs4u

How to use offset in gg script

Recommended Posts


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
 

Share this post


Link to post
Share on other sites

Posted (edited)
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)

 

Edited by zam535582

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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)

 

Share this post


Link to post
Share on other sites
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.

Edited by MonkeySAN

Share this post


Link to post
Share on other sites
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👌

Share this post


Link to post
Share on other sites

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