def _check_repair_sort(self): if not kca_u.kca.exists('upper_right', 'repair|repairlist_icon.png'): Log.log_msg("Changing repair list sort.") sort_button = Region(kca_u.kca.game_x + 1125, kca_u.kca.game_y + 155, 58, 26) while not kca_u.kca.exists('upper_right', 'repair|repairlist_icon.png'): sort_button.click()
def _click_quest_idx(self, idx): Log.log_debug(f"Clicking quest at position {idx}.") quest_list_region = Region(kca_u.kca.game_x + 230, kca_u.kca.game_y + 173 + (idx * 102), 830, 30) quest_list_region.click() api.api.update_from_api( {KCSAPIEnum.QUEST_LIST, KCSAPIEnum.QUEST_TURN_IN}, need_all=False) kca_u.kca.sleep(1)