Filled Request Legend of Mushroom

bruhitsme

Platinian
Apr 8, 2022
6
0
1
24
Stockton
here's an updated version
Code:
function main()
    menu = gg.choice({"DMG Hack", "Exit"}, nil, "Select Cheat")
    if menu == 1 then
        setdmg()
    end
    if menu == 2 then
        os.exit()
    end
    if menu == nil then
        noselect()
    end
end

function setdmg()
    gg.setVisible(false)
    input = gg.prompt({"Input your current Final ATK"}, {[1] = "0"}, {[1] = "number"})
    if input == nil then
        gg.alert("You didn't enter a value")
        os.exit()
    end
    while true do
        gg.clearResults()
        gg.searchNumber(input[1], gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1, 0)
        gg.refineNumber(input[1], gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1, 0)
        gg.refineNumber(input[1], gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1, 0)
        gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
        gg.editAll("10000000", gg.TYPE_DOUBLE)
        if gg.isVisible(true) then
            main()
        end
        gg.sleep(300)
    end
end

function noselect()
    gg.toast("Please make a selection")
    os.exit()
end

while true do
    if gg.isVisible(true) then
        main()
    end
end
Works sometimes, but when the 'Final Attack' value changes it resets to normal hitting again
 

ehnoah

Platinian
May 21, 2017
7
3
3
38


{"content":"Non-existent game","code":2}

I think you need some kind of token from the Game Client iself?
 

Megastorm7

*1st-Class-Platinian*
VIP
Jul 3, 2018
31
11
8
France
here's an updated version
Code:
function main()
    menu = gg.choice({"DMG Hack", "Exit"}, nil, "Select Cheat")
    if menu == 1 then
        setdmg()
    end
    if menu == 2 then
        os.exit()
    end
    if menu == nil then
        noselect()
    end
end

function setdmg()
    gg.setVisible(false)
    input = gg.prompt({"Input your current Final ATK"}, {[1] = "0"}, {[1] = "number"})
    if input == nil then
        gg.alert("You didn't enter a value")
        os.exit()
    end
    while true do
        gg.clearResults()
        gg.searchNumber(input[1], gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1, 0)
        gg.refineNumber(input[1], gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1, 0)
        gg.refineNumber(input[1], gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1, 0)
        gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
        gg.editAll("10000000", gg.TYPE_DOUBLE)
        if gg.isVisible(true) then
            main()
        end
        gg.sleep(300)
    end
end

function noselect()
    gg.toast("Please make a selection")
    os.exit()
end

while true do
    if gg.isVisible(true) then
        main()
    end
end
Were you able to find attackSpeed, Skill CD, and def ? All these values are moving too ?
 

Megastorm7

*1st-Class-Platinian*
VIP
Jul 3, 2018
31
11
8
France
Managed attack and def
and cleaned a bit for optimization beacause GG is slow
Code:
function main()
    menu = gg.choice({"DMG Hack", "Exit"}, nil, "Select Cheat")
    if menu == 1 then
        setDmg()
    elseif menu == 2 then
        return true -- Use return true to indicate script should exit.
    else
        noselect()
    end
    return false -- Continue running the script.
end

function setDmg()
    gg.setVisible(false)
    local input = gg.prompt({"Input your current Final ATK"}, nil, {"number"})
    local input2 = gg.prompt({"Input your current Final DEF"}, nil, {"number"})
    if not input or not input2 then
        gg.alert("You didn't enter a value")
        return
    end
    input, input2 = input[1], input2[1] -- Simplify access to values.

    -- This loop is now dedicated to updating the values continuously.
    while true do
        if gg.isVisible() then
            return -- Exit this function when the GG overlay becomes visible, giving control back to the main loop.
        end
        gg.clearResults()
        searchAndEdit(input, "100000000")
        searchAndEdit(input2, "100000000")
        gg.sleep(100) -- Slight delay to prevent script from running too fast and consuming too much CPU.
    end
end

function searchAndEdit(searchValue, editValue)
    gg.searchNumber(searchValue, gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
    gg.refineNumber(searchValue, gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
    gg.getResults(100)
    gg.editAll(editValue, gg.TYPE_DOUBLE)
    gg.clearResults()
end

function noselect()
    gg.toast("Please make a selection")
end

gg.setVisible(false) -- Initially hide the overlay.
while true do
    if gg.isVisible(true) then
        gg.setVisible(false) -- Immediately hide the overlay after it becomes visible.
        if main() then break end -- Exit the script if main returns true.
    end
    gg.sleep(100) -- Keep the delay to prevent script from hogging CPU resources.
end
You can modify and improve it, i'll try to find attack speed now
 

Paulo9101

Platinian
Sep 19, 2022
17
6
3
33
lüdenscheider
could someone make a video where he does everything with bluestack ? so from the beginning like a little tut because i think many people like me don't get it would be the easiest for everyone :D