-
Notifications
You must be signed in to change notification settings - Fork 1
/
hunt.py
27 lines (24 loc) · 1.11 KB
/
hunt.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import os
import time
import templates
from stages import stage_replay
from utils import global_utils, android_connection
import logging
import coloredlogs
coloredlogs.install()
logging.basicConfig(format='%(asctime)s %(message)s',
datefmt='%m/%d/%Y %I:%M:%S %p', level=logging.DEBUG)
android_connection.connect(0)
logging.warning("----------")
logging.warning("---HUNT---")
logging.warning("----------")
while 1:
if global_utils.click_image(templates.epic_seven_arena_pnj_fight_2, 4) == 1:
while global_utils.click_image(templates.epic_seven_stage_clear, 5) == 0 and global_utils.click_image(templates.epic_seven_stage_failed, 5) == 0:
logging.info("Retry finish fight")
global_utils.click_position(660, 660, 4, "Cancel")
while global_utils.click_image(templates.epic_seven_confirm_hunt_2, 2) == 0:
global_utils.click_position(932, 290, 4, "Confirm")
global_utils.click_image(templates.epic_seven_confirm_hunt, 2)
while global_utils.click_image(templates.epic_seven_hunt_another_time, 2) == 0:
logging.info("Retry another time")