def do_work(self): clicker.move(368 * 2 + 150, -127 * 2 - 100) # sys.exit('Adjust hospital') clicker.click(clicker.mouse_pos()) clicker.repeat_click(3) print('Clicked on hospital') self.next()
def do_work(self): if ImageCoordinate.is_on_screen('images/search'): print('Clicking search button to search for the target') coord = ImageCoordinate.coords('images/search', shot=False) clicker.move_click(coord) clicker.move(500, -160) clicker.click(clicker.mouse_pos()) else: pass self.next()
def do_work(self): if not HelpOthers.coord: HelpOthers.coord = ImageCoordinate.is_on_screen( 'images/help_others') if HelpOthers.coord: clicker.move(HelpOthers.coord[0],HelpOthers.coord[1]) clicker.repeat_click(5, -20, 40) print('Helped alliance members') else: print('Alliance members do not need any help') self.next()
def do_work(self): print('Clicking search button to search for the target') coord = ImageCoordinate.coords('images/search') clicker.click(coord) while ImageCoordinate.is_on_screen('images/search'): sleep(2) DecreaseLevel().do_work() sleep(2) coord = ImageCoordinate.coords('images/search', shot=True) clicker.move_click(coord) else: clicker.move(0, -127) clicker.click(clicker.mouse_pos()) self.next()
def do_work(self): print('Moving over scout camp and clicking on it to open scout menu') clicker.move(368 * 2 - 140, -127 * 2 - 140) clicker.click(clicker.mouse_pos()) self.next()