Jump to content
  • 0

McStankey

Question

I want to make a script wich uses gg.prompt to search the users input number and then after searching it closes the prompt and once the user clicks game guardian it opens a new prompt wich gets your new imputed number after that it edits that searched value to 999999999 and freezes it 

If you can make this please give me the file thanks or comment the code

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Zzz = 0
function HOME()
MENU = gg.choice({
"Search value",
"Edit Value",
"•EXIT•"},nil,"________TITLE___Here_______")
if MENU == nil then
else
if MENU == 1 then SEARCH() end
if MENU == 2 then EDIT() end
if MENU == 3 then EXIT() end
end
LOL = -1
end




function SEARCH()
gg.clearResults()
local input = gg.prompt(
	{'Enter a value :'},
	{[1] = nil},
	{[1] = 'number'}
)
gg.searchNumber( input[1] ,gg.TYPE_DWORD)
Zzz = 1
end



function EDIT()
if Zzz == 1 then
local input = gg.prompt(
	{'Enter a value :'},
	{[1] = nil},
	{[1] = 'number'}
)
-- if you dont want to freeze use only "gg.editAll(input[1])" and remove the below code

local t = gg.getResults(999, nil, nil, nil, nil, nil, nil, nil, nil)
gg.addListItems(t)
for i, v in ipairs(t) do
	if v.flags == gg.TYPE_DWORD then
		v.value = input[1]
		v.freeze = true
		v.freezeType = gg.FREEZE_NORMAL
	end
end
gg.addListItems(t)
else
gg.alert("Search value first ")
end
end



function EXIT()
gg.toast("Thx to Jay_s_p")
print("Print Msg here\n.\n.\n.Here you can write Your Last Msg") --Here You can write you last message!!!
os.exit()
end



while true do
  if gg.isVisible(true) then
    LOL = 1
    gg.setVisible(false)
  end
  if LOL == 1 then
    HOME()
  end
end

-- Contact me here,
-- Telegram : t.me/zswnx

It's easy.

But Use my code as reference not to copy Paste...

😴😴😴

Script.Prompt.lua

Link to comment
Share on other sites

maybe this will help...

local gg = gg

--1st step Search
gg.setVisible(false)
local d = gg.prompt({"Enter Number"},{0},{"number"})
if d == nil then gg.toast("Canceled") os.exit() end
gg.searchNumber(d[1], 4)
gg.getResults(10000)
gg.alert("Refine Number and get back to script")

::sleep::
gg.sleep(100)
if gg.isVisible(true) then
gg.setVisible(false)

--2nd step Refine and edit
local d = gg.prompt({"Refine Number"},{0},{"number"})
if d == nil then gg.toast("Canceled") os.exit() end
gg.searchNumber(d[1], 4)
local t = gg.getResults(1)
  
for i,v in pairs(t) do
  
 if v.flags == 4 then
    v.value = 999999999
    v.freeze = true
    end
end
gg.addListItems(t)
t = nil 
gg.clearResults()
gg.toast("Done")
else
goto sleep
end

 

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.