Jump to content
  • 0

Script help


Maksup
 Share

Question

Main()

menu = gg.choice({'mooney hack','Gem hack'},nil,'hi')

if menu==1 then Menu1() end

if menu==2 then Menu2()end

end

end

function Menu1()

menu1 = gg.choice({'Hack money'})

if menu1==1 then

gg.setRanges(gg.REGION_C_ALLOC)

gg.searchNumber('100', gg.TYPE_CODE_APP)

gg.getResults('100')

gg.editAll('13', gg.TYPE_C_ALLOC)

gg.clearResults()

end

 

function Menu2()

menu2 = gg.choice({'Hack gems'})

if menu2==1 then

gg.setRanges(gg.REGION_C_ALLOC)

gg.searchNumber('115', gg.TYPE_CODE_APP)

gg.getResults('100')

gg.editAll('99', gg.TYPE_C_ALLOC)

gg.clearResults()

end

 

 

this is an example dont mind the values

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

i dont know what kind of help you need but maybe you can take a look at this example script :

local gg = gg

function main() -- this for test
local menu = gg.choice({
        "\n> Menu A",
        "\n> Menu B",
        "\n> Menu C",
        "\n< EXIT"},
nil,"Multi Menu")

if menu == nil then gg.toast("minimize menu") return
elseif
menu == 1 then menu_A()
elseif
menu == 2 then menu_B()
elseif
menu == 3 then menu_C()
elseif
menu == 4 then os.exit()
end
end

function menu_A()
local menuA = gg.choice({
	"\nHack A1",
	"\nHack A2",
	"\nHack A3"},
nil,"Menu A")

if menuA == nil then main()
elseif
menuA == 1 then A1()
elseif
menuA == 2 then A2()
elseif
menuA == 3 then A3()
end
end

function A1()
--your codes here
gg.toast("Hack A1 Done")
end

function A2()
--your codes here
gg.toast("Hack A2 Done")
end

function A3()
--your codes here
gg.toast("Hack A3 Done")
end


function menu_B()
local menuB= gg.choice({
	"\nHack B1",
	"\nHack B2",
	"\nHack B3"},
nil,"Menu B")

if menuB == nil then main()
elseif
menuB == 1 then B1()
elseif
menuB == 2 then B2()
elseif
menuB == 3 then B3()
end
end

function B1()
--your codes here
gg.toast("Hack B1 Done")
end

function B2()
--your codes here
gg.toast("Hack B2 Done")
end

function B3()
--your codes here
gg.toast("Hack B3 Done")
end


function menu_C()
local menuC= gg.choice({
	"\nHack C1",
	"\nHack C2",
	"\nHack C3"},
nil,"Menu C")

if menuC == nil then main()
elseif
menuC == 1 then C1()
elseif
menuC == 2 then C2()
elseif
menuC == 3 then C3()
end
end

function C1()
--your codes here
gg.toast("Hack C1 Done")
end

function C2()
--your codes here
gg.toast("Hack C2 Done")
end

function C3()
--your codes here
gg.toast("Hack C3 Done")
end


 
 
while true do
while gg.isVisible() do
gg.setVisible(false)
main()
end
end

and as far as i've known there is no such "TYPE_CODE_APP" value.

only :

Screenshot_2023-05-14-07-20-57-281_com.vphonegaga.titan-edit.thumb.jpg.cfe0a5b58ca35cf52e386634cc432b46.jpg

CODE_APP is a memory ranges.

Screenshot_2023-05-14-07-23-12-011_com.vphonegaga.titan.thumb.jpg.aa49d3c22b2b2635b0795b76d12331ec.jpg

Link to comment
Share on other sites

  • 0
On 5/14/2023 at 1:25 AM, MonkeySAN said:

i dont know what kind of help you need but maybe you can take a look at this example script :

local gg = gg

function main() -- this for test
local menu = gg.choice({
        "\n> Menu A",
        "\n> Menu B",
        "\n> Menu C",
        "\n< EXIT"},
nil,"Multi Menu")

if menu == nil then gg.toast("minimize menu") return
elseif
menu == 1 then menu_A()
elseif
menu == 2 then menu_B()
elseif
menu == 3 then menu_C()
elseif
menu == 4 then os.exit()
end
end

function menu_A()
local menuA = gg.choice({
	"\nHack A1",
	"\nHack A2",
	"\nHack A3"},
nil,"Menu A")

if menuA == nil then main()
elseif
menuA == 1 then A1()
elseif
menuA == 2 then A2()
elseif
menuA == 3 then A3()
end
end

function A1()
--your codes here
gg.toast("Hack A1 Done")
end

function A2()
--your codes here
gg.toast("Hack A2 Done")
end

function A3()
--your codes here
gg.toast("Hack A3 Done")
end


function menu_B()
local menuB= gg.choice({
	"\nHack B1",
	"\nHack B2",
	"\nHack B3"},
nil,"Menu B")

if menuB == nil then main()
elseif
menuB == 1 then B1()
elseif
menuB == 2 then B2()
elseif
menuB == 3 then B3()
end
end

function B1()
--your codes here
gg.toast("Hack B1 Done")
end

function B2()
--your codes here
gg.toast("Hack B2 Done")
end

function B3()
--your codes here
gg.toast("Hack B3 Done")
end


function menu_C()
local menuC= gg.choice({
	"\nHack C1",
	"\nHack C2",
	"\nHack C3"},
nil,"Menu C")

if menuC == nil then main()
elseif
menuC == 1 then C1()
elseif
menuC == 2 then C2()
elseif
menuC == 3 then C3()
end
end

function C1()
--your codes here
gg.toast("Hack C1 Done")
end

function C2()
--your codes here
gg.toast("Hack C2 Done")
end

function C3()
--your codes here
gg.toast("Hack C3 Done")
end


 
 
while true do
while gg.isVisible() do
gg.setVisible(false)
main()
end
end

and as far as i've known there is no such "TYPE_CODE_APP" value.

only :

Screenshot_2023-05-14-07-20-57-281_com.vphonegaga.titan-edit.thumb.jpg.cfe0a5b58ca35cf52e386634cc432b46.jpg

CODE_APP is a memory ranges.

Screenshot_2023-05-14-07-23-12-011_com.vphonegaga.titan.thumb.jpg.aa49d3c22b2b2635b0795b76d12331ec.jpg

Bro i acidedantly swaped xa region and float type ;(

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • 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.