Jump to content
  • 0

How to edit and repeat the automatic edit many times?


Question

Posted (edited)

hi .  

In this game, when you finish one chapter and move on to the next. The damage always returns the same. So, I need to let the script run again. How can I make the script run automatically every few seconds, multiple times?

Example code I use .. 

gg.searchNumber(9999, gg.TYPE_DOUBLE)
gg .refineNumber ("9999", gg .TYPE_DOUBLE)

gg.getResults(1000)

while true do
gg .editAll ("9999999", gg .TYPE_DOUBLE)
end

Edited by powerspeed

2 answers to this question

Recommended Posts

  • 0
Posted (edited)
19 minutes ago, powerspeed said:

hi .  

In this game, when you finish one chapter and move on to the next. The damage always returns the same. So, I need to let the script run again. How can I make the script run automatically every few seconds, multiple times?

Example code I use .. 

gg.searchNumber(9999, gg.TYPE_DOUBLE)
gg .refineNumber ("9999", gg .TYPE_DOUBLE)

gg.getResults(1000)

while true do
gg .editAll ("9999999", gg .TYPE_DOUBLE)
end

 

gg.searchNumber(1, gg.TYPE_DOUBLE)
gg.refineNumber("1", gg.TYPE_DOUBLE)

local results = gg.getResults(1000)

gg.alert("Editing values every second. Click Game Guardian to stop.")

gg.setVisible(false)

-- Start the editing loop
while true do
    gg.editAll("9999999", gg.TYPE_DOUBLE)
    gg.sleep(1000) 
    

    if gg.isVisible(true) then
        break
    end
end

gg.alert("Editing stopped.")
gg.setVisible(true) 

try this one i made its old but i think it would work on you

using on a local gg choice
 

local credit = [[ hi ]]

function Tutorial()
local g = gg.choice({"REPEAT","EXIT"},nil,"Hi")
if g == nil then end
if g == 1 then
gg.searchNumber(1, gg.TYPE_DOUBLE)
gg.refineNumber("1", gg.TYPE_DOUBLE)

local results = gg.getResults(1000)

gg.alert("Editing values every second. Click Game Guardian to stop.")

gg.setVisible(false)

-- Start the editing loop
while true do
    gg.editAll("9999999", gg.TYPE_DOUBLE)
    gg.sleep(1000) 
    

    if gg.isVisible(true) then
        break
    end
end
end
if g == 2 then
gg.alert(credit)
os.exit()
end

gg.alert("Editing stopped.")
end

while true do
  if gg.isVisible(true) then
    r = 1
    gg.setVisible(false)
  end
  if r == 1 then
    Tutorial()
  end
end

Edited by Zeps
Add
  • 0
Posted
5 minutes ago, Zeps said:

gg.searchNumber(1, gg.TYPE_DOUBLE)
gg.refineNumber("1", gg.TYPE_DOUBLE)

local results = gg.getResults(1000)

gg.alert("Editing values every second. Click Game Guardian to stop.")

gg.setVisible(false)

-- Start the editing loop
while true do
    gg.editAll("9999999", gg.TYPE_DOUBLE)
    gg.sleep(1000) 
    

    if gg.isVisible(true) then
        break
    end
end

gg.alert("Editing stopped.")
gg.setVisible(true) 

try this one i made its old but i think it would work on you

thank sir . 

It worked. 🥰

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.