def end_match(): while not onscreen("./captures/find match ready.png"): # added a main loop for the end match function to ensure you make it to the find match button. while onscreen("./captures/missions ok.png"): click_to("./captures/missions ok.png") time.sleep(2) while onscreen("./captures/skip waiting for stats.png"): click_to("./captures/skip waiting for stats.png") time.sleep(5) while onscreen("./captures/play again.png"): click_to("./captures/play again.png") while onscreen("./captures/play.png"): click_to("./captures/play.png") time.sleep(5) while onscreen("./captures/confirm.png"): click_to("./captures/confirm.png") time.sleep(5)
old:
def end_match(): while not onscreen("./captures/find match ready.png"): # added a main loop for the end match function to ensure you make it to the find match button. while onscreen("./captures/missions ok.png"): click_to("./captures/missions ok.png") time.sleep(2) while onscreen("./captures/skip waiting for stats.png"): click_to("./captures/skip waiting for stats.png") time.sleep(5) while onscreen("./captures/play again.png"): click_to("./captures/play again.png")
soe the changes are at the end:
while onscreen("./captures/play.png"): click_to("./captures/play.png") time.sleep(5) while onscreen("./captures/confirm.png"): click_to("./captures/confirm.png") time.sleep(5)
new:
def end_match(): while not onscreen("./captures/find match ready.png"): # added a main loop for the end match function to ensure you make it to the find match button. while onscreen("./captures/missions ok.png"): click_to("./captures/missions ok.png") time.sleep(2) while onscreen("./captures/skip waiting for stats.png"): click_to("./captures/skip waiting for stats.png") time.sleep(5) while onscreen("./captures/play again.png"): click_to("./captures/play again.png") while onscreen("./captures/play.png"): click_to("./captures/play.png") time.sleep(5) while onscreen("./captures/confirm.png"): click_to("./captures/confirm.png") time.sleep(5)
old:
def end_match(): while not onscreen("./captures/find match ready.png"): # added a main loop for the end match function to ensure you make it to the find match button. while onscreen("./captures/missions ok.png"): click_to("./captures/missions ok.png") time.sleep(2) while onscreen("./captures/skip waiting for stats.png"): click_to("./captures/skip waiting for stats.png") time.sleep(5) while onscreen("./captures/play again.png"): click_to("./captures/play again.png")
soe the changes are at the end:
while onscreen("./captures/play.png"): click_to("./captures/play.png") time.sleep(5) while onscreen("./captures/confirm.png"): click_to("./captures/confirm.png") time.sleep(5)
the needed immages are: