Jump to content
  • 0

I can't find a way to fix this. help me!


hoangninyb

Question

Posted

hello, my script is written as follows:

local P = gg.prompt(
        {"πŸ„ΈπŸ„½πŸ…‚πŸ„΄πŸ…πŸ…ƒ πŸ„ΈπŸ„³ πŸ……πŸ„°πŸ„»πŸ…„πŸ„΄πŸ…‚\n ‒━━━"..TenQV.." βŒΎβ”β”β”β€’\n\nSKILL - 1","SKILL - 2","SKILL - 3"},
        {SKP_1,SKP_2,SKP_3},
        {"number","number","number"})
    if P ~= nil then
        if string.len(P[1]) > 5 or string.len(P[1]) < 4 or string.len(P[2]) > 5 or string.len(P[2]) < 4 or string.len(P[3]) > 5 or string.len(P[3]) < 4 then
            gg.alert('Invalid skill!')
            return ModAPet()
        end
        local values = {}
        for i, v in ipairs(results) do
            local index = (i - 1) * 4
            local addr = v.address
            values[index + 1] = {address = addr + 32, flags = gg.TYPE_DWORD, value = P[1], freeze = true}
            values[index + 2] = {address = addr + 40, flags = gg.TYPE_DWORD, value = P[2], freeze = true}
            values[index + 3] = {address = addr + 48, flags = gg.TYPE_DWORD, value = P[3], freeze = true}
            values[index + 4] = {address = addr + 56, flags = gg.TYPE_DWORD, value = "0", freeze = true}
        end
        gg.setValues(values)
        gg.addListItems(values)

but it's not working well!

When the match ends, all skills will return to their original state,Β and just click on the GG icon and the skills will be modified

you can see in the script the values are frozen

7 answers to this question

Recommended Posts

Posted
1 hour ago, HEROGAMEOfficial said:

"I can't find a way to fix this. help me!"Β what isΒ problem?

modified values always return to original value, I don't want that to happen!

Posted
18 hours ago, hoangninyb said:

hello, my script is written as follows:

local P = gg.prompt(
        {"πŸ„ΈπŸ„½πŸ…‚πŸ„΄πŸ…πŸ…ƒ πŸ„ΈπŸ„³ πŸ……πŸ„°πŸ„»πŸ…„πŸ„΄πŸ…‚\n ‒━━━"..TenQV.." βŒΎβ”β”β”β€’\n\nSKILL - 1","SKILL - 2","SKILL - 3"},
        {SKP_1,SKP_2,SKP_3},
        {"number","number","number"})
    if P ~= nil then
        if string.len(P[1]) > 5 or string.len(P[1]) < 4 or string.len(P[2]) > 5 or string.len(P[2]) < 4 or string.len(P[3]) > 5 or string.len(P[3]) < 4 then
            gg.alert('Invalid skill!')
            return ModAPet()
        end
        local values = {}
        for i, v in ipairs(results) do
            local index = (i - 1) * 4
            local addr = v.address
            values[index + 1] = {address = addr + 32, flags = gg.TYPE_DWORD, value = P[1], freeze = true}
            values[index + 2] = {address = addr + 40, flags = gg.TYPE_DWORD, value = P[2], freeze = true}
            values[index + 3] = {address = addr + 48, flags = gg.TYPE_DWORD, value = P[3], freeze = true}
            values[index + 4] = {address = addr + 56, flags = gg.TYPE_DWORD, value = "0", freeze = true}
        end
        gg.setValues(values)
        gg.addListItems(values)

but it's not working well!

When the match ends, all skills will return to their original state,Β and just click on the GG icon and the skills will be modified

you can see in the script the values are frozen

I'm not an expert on the subject, but I have a suspicion about what it might be. possibly the skill values change your location every game, so in a game the value will be changed by your mod, but when you start another game, you'll have to change it again. I don't know how to fix it, but I think the error is not in the script. (Sorry for bad English) xD

Posted

oh i found it

local v = gg.getTargetInfo()
if v.x64 == true then
Β  Β  gg.alert("64")
else Β  Β 
Β  Β  gg.alert("32")
end

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.