1- import math
2-
1+ from math import ceil
32from tools import *
43from AutoAFK import printGreen , printError , printWarning , printBlue , printPurple , settings
54import datetime
65import configparser
7- import random
86
97config = configparser .ConfigParser ()
108config .read (settings )
@@ -712,6 +710,9 @@ def infiniteSummons(woke, celehypo, x6mode=False):
712710 printBlue ('Attempting to run Unlimited Summons' )
713711 counter = 0 # Pull amount counter
714712 starttime = time .time () # Pull duration counter
713+ if not isVisible ('buttons/summons/summons_sidebar' ):
714+ printWarning ('Can\' t see the summons event button, scrolling the side menu down..' )
715+ swipe (50 , 800 , 50 , 500 , duration = 500 , seconds = 1 ) # scroll down
715716 if isVisible ('buttons/summons/summons_sidebar' , retry = 3 , click = True ):
716717 # List to match the dropdown name to the image file name
717718 wokes = {'Awakened Talene' : 'aTalene' , 'Gavus' : 'Gavus' , 'Maetria' : 'Maetria' , 'Awakened Ezizh' : 'aEzizh' ,
@@ -768,8 +769,8 @@ def infiniteSummons(woke, celehypo, x6mode=False):
768769 printBlue ('Rare found' )
769770 # Funky math for duration calculation, ceiling is used to roundup else it returns with a decimal place
770771 duration = time .time () - starttime
771- hours = str (math . ceil (duration // 3600 ))
772- minutes = str ((math . ceil (duration // 60 )) - (int (hours ) * 60 ))
772+ hours = str (ceil (duration // 3600 ))
773+ minutes = str ((ceil (duration // 60 )) - (int (hours ) * 60 ))
773774 printGreen ('Unlimited Summons finished!' )
774775 printGreen ('In just ' + str (counter ) + ' pulls and ' + hours + ' hours ' + minutes + ' minutes. Hooray!' )
775776 else :
@@ -1094,6 +1095,9 @@ def handleLabTile(elevation, side, tile):
10941095 if tile == '2' : # Multi
10951096 clickXY (250 , 1250 , seconds = 2 ) # Tile
10961097 clickXY (550 , 1500 , seconds = 4 ) # Click Go
1098+ if isVisible ('labels/notice' , confidence = 0.8 , retry = 3 ): # 'High Difficulty popup at first multi'
1099+ clickXY (450 , 1150 , seconds = 2 ) # Don't show this again
1100+ clickXY (725 , 1250 , seconds = 4 ) # Go
10971101 clickXY (750 , 1500 , seconds = 4 ) # Click Begin Battle
10981102 if tile == '3' : # Single
10991103 clickXY (400 , 1050 , seconds = 2 ) # Tile
@@ -1115,6 +1119,9 @@ def handleLabTile(elevation, side, tile):
11151119 if tile == '2' : # Multi
11161120 clickXY (800 , 1225 , seconds = 2 ) # Tile
11171121 clickXY (550 , 1500 , seconds = 4 ) # Click Go
1122+ if isVisible ('labels/notice' , confidence = 0.8 , retry = 3 ): # 'High Difficulty popup at first multi'
1123+ clickXY (450 , 1150 , seconds = 2 ) # Don't show this again
1124+ clickXY (725 , 1250 , seconds = 4 ) # Go
11181125 clickXY (750 , 1500 , seconds = 4 ) # Click Begin Battle
11191126 if tile == '3' : # Single
11201127 clickXY (700 , 1050 , seconds = 2 ) # Tile
0 commit comments