Jump to content
  • 0

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


hoangninyb

Question

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

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

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

Link to comment
Share on other sites

@HEROGAMEOfficialΒ @Jhosefbr

thank you! I solved the following:

values[index + 1] = {address = addr + 56, flags = gg.TYPE_DWORD, value = P[1], freeze = true, freezeType = gg.FREEZE_IN_RANGE, freezeFrom = P[1], freezeTo = P[1]}

use freeze in range

I have a question:

can i check 32bit or 64bit device?

@HEROGAMEOfficialΒ @Jhosefbr

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.