Jump to content
  • 0

How to change the value of some searched values when in game without having to pause.


Question

Posted

Hey guys I'm a newbie,

I don't know how to change the value of a particular data mid game without pausing the game (i.e opening game guardian). For eg if I am playing slither.io and in search menu if I search 36 as double I get 4 values now these values can be changed to increase and decrease the zoom from 36 to 0(0 being the farthest). Now if I want to change the value (To zoom out or zoom in) in mid game how can I do that without having to open game guardian? Casue if I open game guardian and change the  value I'll be dead by then(online mode). Basically I am asking for a similar feature that game guardian provides when you hold down the gg icon (Speed hack) . However in this case I want to change the zoom and not the speed but in a similar way. 

Recommended Posts

  • 0
  • Administrators
Posted

  

3 hours ago, CoyFanatic said:

if ret == 1 then editAll('0',gg.TYPE_DOUBLE) end

gg.editAll not editAll

  • 0
Posted
5 minutes ago, Enyby said:

  

gg.editAll not editAll

Yessir the script is all good now.

gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber('36',gg.TYPE_DOUBLE)
local r = gg.getResults(4)
function doAction()
local ret = gg.choice({'Zoom out', 'Moderate', 'Zoom in', 'Cancel', 'Exit'})
if ret == 1 then r[1].value = '0' print('done',gg.setValues(r)) end
if ret == 2 then r[1].value = '13'print('done',gg.setValues(r)) end
if ret == 3 then r[1].value = '36'print('done',gg.setValues(r)) end
if ret == 5 then os.exit() end
end
gg.setVisible(false)
while true do
if gg.isVisible() then       gg.setVisible(false)       doAction()
end
gg.sleep(100)
end

And I can't explain how helpful those gg reference pages were it took me only one night to understand all these concepts.

  • 0
Posted (edited)
4 hours ago, CoyFanatic said:

I made the changes as per your instructions and I got these errors. 

The script (after changing)

function doAction()
local ret = gg.choice({'Zoom out', 'Moderate', 'Zoom in', 'Cancel', 'Exit'})
if ret == 1 then editAll('0',gg.TYPE_DOUBLE) end
if ret == 2 then editAll('13',gg.TYPE_DOUBLE) end
if ret == 3 then editAll('36',gg.TYPE_DOUBLE) end
if ret == 5 then os.exit() end
end
gg.setVisible(false)
gg.searchNumber('36',gg.TYPE_DOUBLE) gg.getResults(4)
while true do
if gg.isVisible() then       gg.setVisible(false)       doAction()
end
gg.sleep(100)
end

The error occurs with all the first three options.

Screenshot_20200331-081029.jpg

nvm.

Edited by TheMech
  • 0
Posted
Just now, TheMech said:

nononono you did it wrong I think he meant you need to change searchNumber with getResults

I did not mean it and why do you think that he did it wrong? The only mistake in the code from the message you quoted was pointed out by Enyby several posts above. As per my suggestion, he did exactly what I described.

  • 0
Posted
4 hours ago, CoyFanatic said:

I made the changes as per your instructions and I got these errors. 

The script (after changing)

function doAction()
local ret = gg.choice({'Zoom out', 'Moderate', 'Zoom in', 'Cancel', 'Exit'})
if ret == 1 then editAll('0',gg.TYPE_DOUBLE) end
if ret == 2 then editAll('13',gg.TYPE_DOUBLE) end
if ret == 3 then editAll('36',gg.TYPE_DOUBLE) end
if ret == 5 then os.exit() end
end
gg.setVisible(false)
gg.searchNumber('36',gg.TYPE_DOUBLE) gg.getResults(4)
while true do
if gg.isVisible() then       gg.setVisible(false)       doAction()
end
gg.sleep(100)
end

The error occurs with all the first three options.

Try this, logically change the search values

Template.lua

  • 0
Posted (edited)
6 hours ago, -SAICOBO- said:

Changed the memory ranges and removed the refine search function.

And the script works like a charm thanks alot my man.

-- https://www.gameguardian.net/
-- test #1

if gg.isVisible(true) then
   gg.setVisible(false)
end
gg.clearResults()
gg.toast('Welcome')
lua = 1

function main()
   menu = gg.choice({'Change zoom', 'Exit'}, nil, 'Saicobo')
   if menu == 1 then a() end
   if menu == 3 then c() end
   if menu == nil then choice(none) end
   lua = -1
end

function choice(none)
   os.exit()
end

function a()
   gg.setRanges(gg.REGION_CODE_APP)
   gg.searchNumber('36', gg.TYPE_DOUBLE)
   gg.getResults(4)
   gg.editAll('30', gg.TYPE_DOUBLE)
   gg.toast('Zoom -')
   gg.sleep(1000)
   gg.clearResults()
   gg.toast('To chenge zoom -, touch the gameguardian icon')
    gg.sleep(1000)
   gg.setVisible(false)
   while true do
       if gg.isVisible() then
           gg.setVisible(false)
           zoom2()
       end
   end
end

function zoom2()
   gg.setRanges(gg.REGION_CODE_APP)
   gg.searchNumber('36', gg.TYPE_DOUBLE) 
   gg.getResults(4)
   gg.editAll('0', gg.TYPE_DOUBLE)
   gg.toast('Zoom +')
   gg.sleep(1000)
   gg.clearResults()
   gg.toast('To chenge zoom +, touch the gameguardian icon')
    gg.sleep(1000)
   gg.setVisible(false)
   while true do
       if gg.isVisible() then
           gg.setVisible(false)
           a()
       end
   end
end

function c()
   gg.clearResults()
   os.exit()
end

while(true) do
   if gg.isVisible(true) then
      lua = 1
      gg.setVisible(false)
   end
   gg.clearResults()
   if lua == 1 then
      main()
   end
end

Thanks again really I appreciate this.

Edited by CoyFanatic
Typos***

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