Jump to content
hsusudhbsjwhdhdgsj

I need some help CODING RELATED

Recommended Posts

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

 

 

Share this post


Link to post
Share on other sites
Posted (edited)

Send the script file in this case, it is better

Edited by MAARS

Share this post


Link to post
Share on other sites

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)

 

Share this post


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

Share this post


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

 

Share this post


Link to post
Share on other sites
9 hours ago, hsusudhbsjwhdhdgsj said:

how to retrive the value of an offset address?

Use gg.getValues() for that purpose

Share this post


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

 

Share this post


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

Share this post


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

Share this post


Link to post
Share on other sites
19 minutes ago, Lover1500 said:

wrong coding. 

AccID is variable. not string

use

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

Oh God I'm ashamed

Thank you so much everythink working now

 

Share this post


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

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites
1 hour ago, Lover1500 said:

 

create a table that will store original value.

 

but how cause i can not store the value of the address with offset

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

  • Similar Content

    • By ManManEpic
      How do I search for a value such as 20F,3D:32 ? I saw it being used with another thing's search and was wondering what it meant and how to use it. Thanks if anyone can help!
    • By EatAlterWalter
      When I tick a feature on and press ok, it just skips the entire thing up until the toast, and then after the second try, it works, but I don't want to have to tap it 2 times just to activate it
    • By rand1337
      Hi, Is it possible to hook field offsets using lua? If its possible, can u send a template? Thanks. 
    • By hsdbql
      There are five samples in the attachment.
      Among them, No.1-4 are specially processed luac files, which can be run in GameGuardian, but cannot be unluac normally.
      As for 0.lua, it cannot be used in the official version of gg, and it seems to require a special environment.
      Does anyone know how to decrypt these scripts?
       
      unluac_2021_06_10.jar.zip lua files.zip
    • By PunyGod
      I am new to this so looking for some advice on if it is possible or what to look for.
      The game is brand new Marvel Future Revelation for android. I have been told that it has excellent security on it. After a mixture of LSPosed, XprivacyLua, sudosu and Tai Chi I managed to get GG to work without being detected. As practice I found gold, gems, HP potions, stamina, cool down,  but as expected they are all server side and reverted back. I
      Is there anything I could try that isn't server side.... or should I just give up 
×
×
  • Create New...