Jump to content
  • 0

Auto loop script every X seconds


cris078

Question

After retrieving in forum I found a method that looks like filter, it loops at the same instant something different from what I intend to do:

for i= 1, 10 do
  YOUR SEARCH
  end

 

So, first I'll look for current HP + max HP in group search and edit the results to 50000:

 gg.searchNumber('1657;1657::5', gg.TYPE_DWORD) 
  gg.getResults(500) 
  gg.editAll('50000', gg.TYPE_DWORD)

 

As I advance in the stage I will suffer damage decreasing my current HP. Now I just need to auto edit the values that were found in the previous search making a loop with gg.editAll in every X seconds.

Assuming that in this raid i can not use v.freeze becuse this will disconnect me from the room.

In short what i want to know is, i am able to loop this part infinitely every X seconds until I finish the raid and stop the script manually?

gg.editAll('50000', gg.TYPE_DWORD) -- Auto loop in every 10 seconds

 

Thanks in advance.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.