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