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/NewTroops'): print('Clicking on New Troops button') coord = ImageCoordinate.coords('images/newTroops', shot=False) print(coord) clicker.move_click(coord) else: clicker.click(clicker.mouse_pos()) 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 ClickNewTroopButtonForGathering.coord: ClickNewTroopButtonForGathering.coord = ImageCoordinate.is_on_screen( 'images/NewTroops') if ClickNewTroopButtonForGathering.coord: clicker.click(ClickNewTroopButtonForGathering.coord) else: ClickNewTroopButtonForGathering.coord = ImageCoordinate.is_on_screen( 'images/NewTroops') if ClickNewTroopButtonForGathering.coord: clicker.click(ClickNewTroopButtonForGathering.coord) else: clicker.click(clicker.mouse_pos()) 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): clicker.centerclick() clicker.click(clicker.mouse_pos()) clicker.repeat_click(1) print('Clicked on hospital') 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()