def open_inventory_if_closed(): inventory = Mouse.get_on_screen(PanelIcons.ICON_INVENTORY_SELECTED, 0.991) if inventory is None: inventory = Mouse.get_on_screen(PanelIcons.ICON_INVENTORY_UNSELECTED, 0.991) if inventory is None: sys.exit('Could not find inventory icon, exiting script') else: Mouse.move_humanly_mouse_random_location_in_box(inventory) Mouse.click(200) Mouse.sleep_with_countdown(400, 450, 450)
def drink_dose(pots_location_list): Mouse.move_humanly_mouse_random_location_in_box( (pots_location_list[0].x, pots_location_list[0].y, pots_location_list[0].width, pots_location_list[0].height)) Mouse.click(170)
def guzzle_rock_cake(): Mouse.right_click() sleep = Mouse.get_rand_int(67, 133) Mouse.click(sleep)