def exit_event(self): UI.click_back_button() sleep(7) self.log.debug('Clicking door') Clicking.click_in_game_region_point(BACK_POS) sleep(7)
def run(self): self.log.debug('Checking for free throws') while free_throws(): self.log.info('Free throw is available - throwing') Clicking.click_in_game_region_point(THROW_POS) UI.move_mouse_out_of_game_screen() sleep(10) if complete_quest(): self.log.info('Landed on quest, exiting') break sleep(1)
def is_available(self): # Wealth Tree self.log.debug("Trying to find Wealth Tree Position") self.wealth_tree_pos = Imging.locate_in_game_screen( Util.image_path_module('Tree', MODULE_NAME)) if self.wealth_tree_pos is None: self.log.info( "Couldn't find wealth tree event , considering it as not live") UI.reset_menus() return False else: self.log.debug("Found Wealth Tree at : %s", str(self.wealth_tree_pos)) self.log.debug('Entering wealth tree') Clicking.click_in_game_region_point(self.wealth_tree_pos) time.sleep(2) return True
def exit_event(self): UI.click_back_button() sleep(1)
def get_to_event(self): self.log.debug('Clicking on treasure map') Clicking.click_in_game_region_point(TREASURE_MAP_POS) UI.move_mouse_out_of_game_screen() sleep(6)
def exit_event(self): UI.click_exit_button() time.sleep(3)
def get_to_event(self): UI.click_f_gamplay() time.sleep(1)