Jump to content
  • 0

Change several number in offset with only a command


MasterC

Question

Hello guys, i need make a command for edit severas numbers in offset

Example:

gg.searchNumber("257Q;6~51;8007~8123Q;1Q::113", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 1)
gg.refineNumber("257", gg.TYPE_QWORD, false, gg.SIGN_EQUAL, 0, -1)
 

r = gg.getResults(20)

local t = {}
t[1] = {}
t[1].address = r[1].address + 8
t[1].flags = gg.TYPE_DWORD
t[1].value = 999
t[1].freeze = true 
gg.addListItems(t)

local t = {}
t[1] = {}
t[1].address = r[2].address + 8
t[1].flags = gg.TYPE_DWORD
t[1].value = 999
t[1].freeze = true 
gg.addListItems(t)

local t = {}
t[1] = {}
t[1].address = r[2].address + 8
t[1].flags = gg.TYPE_DWORD
t[1].value = 999
t[1].freeze = true 
gg.addListItems(t)

...........

At 20 adress 

I Need only 

Ex: t[1].address = r[1~20].address + 8

Not work for me..

 

Anyone help?

 

Or have how Put loop = 20x?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

On 2/11/2022 at 10:04 AM, Lover1500 said:
r = gg.getResults(20)
local t = {}
for i, v in ipairs(r) do
  t[i]={address=v.address+8, flags=4, value=999, freeze=true}
end
gg.addListItems(t)

 

Add a litle sleep even 100ms i see gg failling when editing offset to fast

Link to comment
Share on other sites

On 2/11/2022 at 12:54 PM, MasterC said:

Hello guys, i need make a command for edit severas numbers in offset

Example:

gg.searchNumber("257Q;6~51;8007~8123Q;1Q::113", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 1)
gg.refineNumber("257", gg.TYPE_QWORD, false, gg.SIGN_EQUAL, 0, -1)
 

r = gg.getResults(20)

local t = {}
t[1] = {}
t[1].address = r[1].address + 8
t[1].flags = gg.TYPE_DWORD
t[1].value = 999
t[1].freeze = true 
gg.addListItems(t)

local t = {}
t[1] = {}
t[1].address = r[2].address + 8
t[1].flags = gg.TYPE_DWORD
t[1].value = 999
t[1].freeze = true 
gg.addListItems(t)

local t = {}
t[1] = {}
t[1].address = r[2].address + 8
t[1].flags = gg.TYPE_DWORD
t[1].value = 999
t[1].freeze = true 
gg.addListItems(t)

...........

At 20 adress 

I Need only 

Ex: t[1].address = r[1~20].address + 8

Not work for me..

 

Anyone help?

 

Or have how Put loop = 20x?

hello, Archero player, can you have any code for game?

Link to comment
Share on other sites

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.