← Back to team overview

sikuli-driver team mailing list archive

[Question #171331]: how can i replay the 1st loop when the 2nd loop is finished?

 

New question #171331 on Sikuli:
https://answers.launchpad.net/sikuli/+question/171331

im playing mmorpg... so i trying to make a farm that can auto fight too... 

what i want is to make the 1st loop play automatically when the 2nd loop is finish...



while not exists(manster): #(this 1st loop wont replay if the 2nd loop is finish...)
		if exists(hemp):
			click(hemp)
		if exists(gather):
			click(gather)
		if exists(lvlup):
			click(lvlup)
		if exists(manster):
			continue
		
while exists(manster): #fight (this 2nd loop will trigger if the manster appear.. the problem is when the manster died or the manster disappear the 1st loop wont trigger anymore.. the whole loop will stop and need to play it again..)
 
        if exists(ready):
        	click(ready)
        if not exists(gobs):
            click(iop)
        if exists(lock):
        	click(lock)
        if exists(gobs):
        	click(turn)
        if exists(fnsh):
		click(fnsh)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.