Jump to content

Question

Posted

Hello im wondering if is there a better way to coding this

i just want to edit every 4th index of the table 

 

Spoiler



gg.searchNumber("31,881,667;40;6;1065353216::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL,0, -1, 500)
     r = gg.getResults(9999)
    for i, v in ipairs(r) do
     p = 
{
    {
                address = r[3].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[3].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[3].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[7].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[7].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[7].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[11].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[11].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[11].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[15].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[15].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[15].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[19].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[19].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[19].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[23].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[23].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[23].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[27].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[27].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[27].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[31].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[31].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[31].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[35].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[35].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[35].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[39].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[39].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[39].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[43].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[43].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[43].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[47].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[47].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[47].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[51].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[51].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[51].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[55].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[55].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[55].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[59].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[59].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[59].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[63].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[63].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[63].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[67].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[67].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[67].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[71].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[71].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[71].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[75].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[75].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[75].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[79].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[79].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[79].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[83].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[83].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[83].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[87].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[87].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[87].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[91].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[91].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[91].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[95].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[95].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[95].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[99].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[99].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[99].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[103].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[103].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[103].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[107].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[107].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[107].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[111].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[111].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[111].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[115].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[115].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[115].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[119].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[119].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[119].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[123].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[123].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[123].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[127].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[127].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[127].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[131].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[131].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[131].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[135].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[135].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[135].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
    {
                address = r[139].address + 0x20,
                flags = gg.TYPE_DWORD,
                value = 4713,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[139].address + 0x30,
                flags = gg.TYPE_DWORD,
                value = 103706,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    },
 {
                address = r[139].address + 0x40,
                flags = gg.TYPE_DWORD,
                value = 13618,
                freeze=true,
                freezeType= gg.FREEZE_NORMAL
    }
}

gg.setValues(p)
gg.addListItems(p)

end
    

gg.clearResults()

 

 

15 answers to this question

Recommended Posts

  • 0
Posted (edited)

Send the script file in this case, it is better

Edited by MAARS
  • 0
Posted

Hope this help.

function lol(new_t, new_i, original_t, original_i, offset, valu)
new_t[new_i].address= original_t[original_i].address + offset
new_t[new_i].flags = gg.TYPE_DWORD
new_t[new_i].value = valu
new_t[new_i].freeze=true
new_t[new_i].freezeType= gg.FREEZE_NORMAL
end

gg.clearResults()
gg.searchNumber("31881667;40;6;1065353216::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL,0, -1, 500)
r = gg.getResults(gg.getResultsCount())
p={}

for i=3, #r, 4 do
p[i]={}
p[i+1]={}
p[i+2]={}
lol(p, i, r, i, 0x20, 4713)
lol(p, i+1, r, i, 0x30, 103706)
lol(p, i+2, r, i, 0x40, 13618)
end

gg.setValues(p)
gg.addListItems(p)

 

  • 0
Posted
36 minutes ago, Lover1500 said:

Hope this help.


function lol(new_t, new_i, original_t, original_i, offset, valu)
new_t[new_i].address= original_t[original_i].address + offset
new_t[new_i].flags = gg.TYPE_DWORD
new_t[new_i].value = valu
new_t[new_i].freeze=true
new_t[new_i].freezeType= gg.FREEZE_NORMAL
end

gg.clearResults()
gg.searchNumber("31881667;40;6;1065353216::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL,0, -1, 500)
r = gg.getResults(gg.getResultsCount())
p={}

for i=3, #r, 4 do
p[i]={}
p[i+1]={}
p[i+2]={}
lol(p, i, r, i, 0x20, 4713)
lol(p, i+1, r, i, 0x30, 103706)
lol(p, i+2, r, i, 0x40, 13618)
end

gg.setValues(p)
gg.addListItems(p)

 

Genius is what i needed TY SO MUCH

  • 0
Posted
4 hours ago, Lover1500 said:

Hope this help.


function lol(new_t, new_i, original_t, original_i, offset, valu)
new_t[new_i].address= original_t[original_i].address + offset
new_t[new_i].flags = gg.TYPE_DWORD
new_t[new_i].value = valu
new_t[new_i].freeze=true
new_t[new_i].freezeType= gg.FREEZE_NORMAL
end

gg.clearResults()
gg.searchNumber("31881667;40;6;1065353216::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL,0, -1, 500)
r = gg.getResults(gg.getResultsCount())
p={}

for i=3, #r, 4 do
p[i]={}
p[i+1]={}
p[i+2]={}
lol(p, i, r, i, 0x20, 4713)
lol(p, i+1, r, i, 0x30, 103706)
lol(p, i+2, r, i, 0x40, 13618)
end

gg.setValues(p)
gg.addListItems(p)

 

i need some further help

 

how to retrive the value of an offset address?

 


gg.searchNumber("19811;1065353216;10616;10606;10611::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 5)
     r = gg.getResults(gg.getResultsCount())
    
     t = 
{
    {
                address = r[1].address - 0x8

    }
}
    p = {
    {
                val = t[1].value
    }
}

print(' value: ', p[1].value)

 

  • 0
Posted
1 minute ago, hsusudhbsjwhdhdgsj said:

but can not use as variable and will return nil

its for table

t = {}
t[1] = {}
t[1].address = 0x18004030
t[1].flags = gg.TYPE_DWORD

t = gg.getValues(t)
print(t)

or

t = {address = 0x18004030,flags = gg.TYPE_DWORD}
t = gg.getValues(t)
print(t)

 

  • 0
Posted (edited)

  

1 hour ago, Lover1500 said:

its for table


t = {}
t[1] = {}
t[1].address = 0x18004030
t[1].flags = gg.TYPE_DWORD

t = gg.getValues(t)
print(t)

or


t = {address = 0x18004030,flags = gg.TYPE_DWORD}
t = gg.getValues(t)
print(t)

 

i've tried but is not giving me any result

i just need to retrive the value of the new address and use it to search again

 

gg.searchNumber("19811;1065353216;10616;10606;10611::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 5)
     r = gg.getResults(gg.getResultsCount())

t = {}
t[1] = {}
t[1].address = r[1].address - 0x8
t[1].flags = gg.TYPE_DWORD

t = gg.getValues(t)

AccID = t[1].value 

gg.searchNumber("AccID;40;6;1065353216::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 5)
     r = gg.getResults(gg.getResultsCount())

for some reason using AccID = r[1].value is working but i need the new address value that is t[1].address = r[1].address - 0x8 and is giving nil result using t[1].value 

Edited by hsusudhbsjwhdhdgsj
  • 0
Posted
19 minutes ago, hsusudhbsjwhdhdgsj said:

gg.searchNumber("AccID;40;6;1065353216::"

wrong coding. 

AccID is variable. not string

use

gg.searchNumber(AccID..";40;6;1065353216::"

  • 0
Posted (edited)

  

17 hours ago, Lover1500 said:

Hope this help.


function lol(new_t, new_i, original_t, original_i, offset, valu)
new_t[new_i].address= original_t[original_i].address + offset
new_t[new_i].flags = gg.TYPE_DWORD
new_t[new_i].value = valu
new_t[new_i].freeze=true
new_t[new_i].freezeType= gg.FREEZE_NORMAL
end

gg.clearResults()
gg.searchNumber("31881667;40;6;1065353216::", gg.TYPE_DWORD, false, gg.SIGN_EQUAL,0, -1, 500)
r = gg.getResults(gg.getResultsCount())
p={}

for i=3, #r, 4 do
p[i]={}
p[i+1]={}
p[i+2]={}
lol(p, i, r, i, 0x20, 4713)
lol(p, i+1, r, i, 0x30, 103706)
lol(p, i+2, r, i, 0x40, 13618)
end

gg.setValues(p)
gg.addListItems(p)

 

actually one last thing how to restore the original_t[original_i].address + offset value that got changed on lol(p, i, r, i, 0x20, 4713)? 

 

i've tried everythink i know to revert the changes back to original state value but im lost

Edited by hsusudhbsjwhdhdgsj
  • 0
Posted

I dont know 

51 minutes ago, hsusudhbsjwhdhdgsj said:

to revert the changes back to original state value

Then, create a table that will store original value.

and

58 minutes ago, hsusudhbsjwhdhdgsj said:

lol(p, i+2, r, i, 0x40, 13618)

Instead of those 13618, 4713 blah blah,

use table which stored original values. 

  • 0
Posted
5 hours ago, Lover1500 said:

reate a table that will store original value.

and

Instead of those 13618, 4713 blah blah,

use table which stored original values. 

ive tried but idk what im doing wrong the is saving the new value and not the original one

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

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.