Filled Request Legend of Mushroom

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
 
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 ?
 
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
 
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
 
Anyone found how to not trigger This message ?
1710929797702.png
 
If you have a number where it goes into decimal, just do a range scan.
e.g. if you have 1144.6k, search for 1143551~1144699 to find the exact result.
i followed the range scan method and was able to find certain values but when i changed the value to 999999, it didnt work, and game keeps crashing
 
yes as you might be changing too many things. Have you tried refining these values ?
yea i did. what value types are you u using to scan? Double or D-word? I tried both and still cant get it to work. Maybe i'm doing it wrong. I'm not too familiar with game guardian. Just started using it 2 days ago.
 
Back
Top Bottom