Jump to content
  • -2

is it possible to hide our search values in the script?


_yourram
 Share

Question

I asked this question casually, I just wanna know whether this is possible or not and if it is possible then "how"?

If you still don't understand what I mean, here's the video link↓

https://drive.google.com/file/d/1-kb0YmzsvWlGW2tTVspOPLhRH-5vPNIz/view?usp=drivesdk

 

function Ram()

choices = gg.choice({"Prepare cost","Engery cost","Water cost","Script end"})

   prepares(choices)

  end

 

function prepares(choices)

 

 if choices == 1 then

-------------Flying cost--------------------

gg.searchNumber( "-8.0004e10",16)

gg.refineNumber(' -8.0004e10',16)

Fly = gg.getResults(gg.getResultsCount())

gg.addListItems(Fly)

gg.clearResults()

-------------Energy cost--------------------

gg.searchNumber('55;53', 16)

gg.refineNumber('53', 16)

Energy = gg.getResults(gg.getResultsCount())

gg.clearResults()

-------------Water cost--------------------

gg.clearResults()

gg.searchNumber("7018090782024269824", 32)

gg.refineNumber("7018090782024269824", 32)

Water = gg.getResults(gg.getResultsCount())

gg.clearResults()

 elseif choices == 2 then

gg.loadResults(Water)

gg.getResults(1000)

gg.editAll("7018090361117474816", 32)

gg.loadResults(Energy)

gg.getResults(1000)

gg.editAll('25', 16)

gg.clearResults()

gg.loadResults(Fly)

gg.editAll('0', 16)

gg.clearResults()

 elseif choices == 3 then

gg.loadResults(Fly)

gg.editAll(' -8.0004e10', 16)

gg.clearResults()

gg.loadResults(Energy)

gg.getResults(1000)

gg.editAll('53', 16)

gg.clearResults()

gg.loadResults(Water)

gg.getResults(1000)

gg.editAll("7018090782024269824", 32)

gg.clearResults()

  elseif choices == 4 then

   os.exit()

 end

end

 

while gg.isVisible(true) do

  gg.setVisible(false)

  Ram()

 end

---

Edited by _yourram
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
5 hours ago, _yourram said:

I just wanna know whether this is possible or not and if it is possible then "how"?

Possible version of your script.
Search is done once when script starts.
Then it goes into invisible mode and waits for GG icon to be pressed.
Until you select “Exit”, all found data in tables will be saved.

 
gg.isVisible(false)
gg.clearResults()
gg.clearList()

-------------Flying cost--------------------
	gg.searchNumber( "-8.0004e10",gg.TYPE_FLOAT)
-- Why do a refining if you don’t have a group search?
	gg.refineNumber(' -8.0004e10',gg.TYPE_FLOAT)
	Fly = gg.getResults(gg.getResultsCount())
	gg.clearResults()

-------------Energy cost--------------------
	gg.searchNumber('55;53', gg.TYPE_FLOAT)
-- Refining is needed here.
	gg.refineNumber('53', gg.TYPE_FLOAT)
	Energy = gg.getResults(gg.getResultsCount())
	gg.clearResults()

-------------Water cost--------------------
	gg.searchNumber("7018090782024269824",gg.TTYPE_QWORD)
-- Why do a refining if you don’t have a group search?
	gg.refineNumber("7018090782024269824",gg.TTYPE_QWORD)
	Water = gg.getResults(gg.getResultsCount())
	gg.clearResults()

::retr1::
choices = gg.choice({'Engery cost', 'Water cost', 'Exit'}, 0, '\tSelect item cost:\n⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯')
if choices == 1 then 
	for i = 1, #Water do
		gg.setValues({{ address = Water[i].address, flags = gg.TTYPE_QWORD, value = 7018090361117474816 }})
	end
	for i = 1, #Energy do
		gg.setValues({{ address = Energy[i].address, flags = gg.TYPE_FLOAT, value = 25 }})
	end
	for i = 1, #Fly do
		gg.setValues({{ address = Fly[i].address, flags = gg.TYPE_FLOAT, value = 0 }})
	end
	gg.toast('Engery cost')
end
if choices == 2 then
	for i = 1, #Fly do
		gg.setValues({{ address = Fly[i].address, flags = gg.TYPE_FLOAT, value = -8.0004e10 }})
	end
	for i = 1, #Energy do
		gg.setValues({{ address = Energy[i].address, flags = gg.TYPE_FLOAT, value = 53 }})
	end
	for i = 1, #Water do
		gg.setValues({{ address = Water[i].address, flags = gg.TTYPE_QWORD, value = 7018090782024269824 }})
	end
	gg.toast('Water cost')
end
if choices == nil or choices == 3 then
	gg.setVisible(true)
	os.exit()
end
while not gg.isVisible() do gg.sleep(100) end
gg.setVisible(false)
goto retr1
os.exit()

 

Edited by Count_Nosferatu
Link to comment
Share on other sites

  • 0

@Count_Nosferatu 】

---

4 hours ago, Count_Nosferatu said:
gg.isVisible(false)
gg.clearResults()
gg.clearList()

-------------Flying cost--------------------
	gg.searchNumber( "-8.0004e10",gg.TYPE_FLOAT)
-- Why do a refining if you don’t have a group search?
	gg.refineNumber(' -8.0004e10',gg.TYPE_FLOAT)
	Fly = gg.getResults(gg.getResultsCount())
	gg.clearResults()

-------------Energy cost--------------------
	gg.searchNumber('55;53', gg.TYPE_FLOAT)
-- Refining is needed here.
	gg.refineNumber('53', gg.TYPE_FLOAT)
	Energy = gg.getResults(gg.getResultsCount())
	gg.clearResults()

-------------Water cost--------------------
	gg.searchNumber("7018090782024269824",gg.TTYPE_QWORD)
-- Why do a refining if you don’t have a group search?
	gg.refineNumber("7018090782024269824",gg.TTYPE_QWORD)
	Water = gg.getResults(gg.getResultsCount())
	gg.clearResults()

::retr1::
choices = gg.choice({'Engery cost', 'Water cost', 'Exit'}, 0, '\tSelect item cost:\n⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯')
if choices == 1 then 
	for i = 1, #Water do
		gg.setValues({{ address = Water[i].address, flags = gg.TTYPE_QWORD, value = 7018090361117474816 }})
	end
	for i = 1, #Energy do
		gg.setValues({{ address = Energy[i].address, flags = gg.TYPE_FLOAT, value = 25 }})
	end
	for i = 1, #Fly do
		gg.setValues({{ address = Fly[i].address, flags = gg.TYPE_FLOAT, value = 0 }})
	end
	gg.toast('Engery cost')
end
if choices == 2 then
	for i = 1, #Fly do
		gg.setValues({{ address = Fly[i].address, flags = gg.TYPE_FLOAT, value = -8.0004e10 }})
	end
	for i = 1, #Energy do
		gg.setValues({{ address = Energy[i].address, flags = gg.TYPE_FLOAT, value = 53 }})
	end
	for i = 1, #Water do
		gg.setValues({{ address = Water[i].address, flags = gg.TTYPE_QWORD, value = 7018090782024269824 }})
	end
	gg.toast('Water cost')
end
if choices == nil or choices == 3 then
	gg.setVisible(true)
	os.exit()
end
while not gg.isVisible() do gg.sleep(100) end
gg.setVisible(false)
goto retr1
os.exit()

thank you bro 😇

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.