Detergent13 / tft-bot

Automate Teamfight Tactics (TFT) for token/mission farming. Updated for Set 11!
GNU Affero General Public License v3.0
81 stars 45 forks source link

Code Idea for "skip waiting for stats" #109

Closed RomeoAlphaEkko closed 1 year ago

RomeoAlphaEkko commented 1 year ago

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:

play confirm

Detergent13 commented 1 year ago

Thank you! Could you make this a Pull Request so that it's easier to merge and you get credit?

RomeoAlphaEkko commented 1 year ago

Should be able to within the next days

Detergent13 commented 1 year ago

Sounds good, no rush :)

RomeoAlphaEkko commented 1 year ago

112