-
Notifications
You must be signed in to change notification settings - Fork 1
/
altar.py
32 lines (29 loc) · 1.31 KB
/
altar.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
28
29
30
31
32
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("---ALTAR---")
logging.warning("-----------")
while 1:
while global_utils.click_image(templates.replay_stage_start_button, 1) == 0:
logging.info("Start")
global_utils.click_image(templates.leaf_payment, 2)
global_utils.click_image(templates.replay_stage_start_button, 1)
while global_utils.click_image(templates.epic_seven_stage_clear, 1) == 0 and global_utils.click_image(templates.epic_seven_stage_failed, 1) == 0:
global_utils.click_image(templates.has_soul, 1)
logging.info("Stage clear")
global_utils.click_image(templates.cancel_friend_request, 3)
while global_utils.click_image(templates.confirm_stage_cleared, 1) == 0:
logging.info("Confirm stage cleared")
global_utils.click_image(templates.confirm_stage_cleared, 1)
while global_utils.click_image(templates.another_time, 1) == 0:
logging.info("Another time")
global_utils.click_image(templates.confirm_replay_stage, 2)