Esempio n. 1
0
def rewind():
    print("rewind start")
    event.search_click(image.rewind_menu.value)
    while event.find_image(image.rewind_locked.value) == False:
        event.search_click(image.rewind_select.value)
        event.search_click(image.rewind_confirm.value)
        event.search_click(image.stat_icon.value)
        game.level_battle_skill(image.skill_devastation.value)
        event.search_click(image.rewind_menu.value)
def clear_daily_popup(quest, reward, purchase, json_daily_status):
    """
    input: none
    output: none
    """
    count = 0
    dailies.reset_all(quest, reward, purchase, json_daily_status)
    event.search_click(image.check_in_claim.value)
    if image.check_in_close == False and image.confirm_button.value == False:
        pyautogui.click(560,400)
        time.sleep(2)
    if event.find_image(image.confirm_button.value) != False:
        event.search_click(image.confirm_button.value)
    while event.find_image(image.skill_knockback_icon.value) == False:
        event.search_click(image.check_in_close.value)
        count += 1
        if count == 10:
            raise Exception("Daily Reward Failure - Game Restarted")
    return True
def sell_hunt_gear():
    gears = [
        image.helmet_tab.value,
        image.armour_tab.value,
        image.boots_tab.value,
        image.ring_tab.value
    ]

    if event.find_image(image.weapons.value) == True:
        event.click_next_screen_validate(image.weapons.value, image.gears.value)
    else:
        event.search_click(image.gears.value)

    for gear in gears:
        event.search_click(gear)
        event.search_click(image.sell_button.value)
        event.search_click_offset(image.bs_logo.value, 1090, 245)
        event.search_click_offset(image.bs_logo.value, 1090, 325)
        event.search_click_offset(image.bs_logo.value, 1090, 400)
        event.search_click(image.sell_button_2.value)
        event.search_click_offset(image.bs_logo.value, 500, 500)
Esempio n. 4
0
 def claim_quests(self):
     """
     Description: Check quests and check off any quests that can be completed.
     Input: none
     Output: (Boolean) true or false
     """
     outcome = False
     #if self.quest_list["status"]["daily_quests"] != True:
     if event.find_image(image.quest_window_title.value) == False:
         event.search_click(image.quest_icon.value)
     time.sleep(1)
     pyautogui.moveTo(1017, 419)
     pyautogui.dragTo(1017, 438, 0.5, button='left')
     while imagesearch(image.quest_claim_x5.value, 0.9)[0] != -1:
         event.search_click(image.quest_claim_x5.value)
     if imagesearch(image.quest_claim_x15.value, 0.9)[0] != -1:
         event.search_click(image.quest_claim_x15.value)
         outcome = True
     event.click_button_validate(image.close_quest.value)
     print('All quest claimed:', outcome)
     return outcome
Esempio n. 5
0
 def check_quests(self):
     """
     Input: none
     Output: (Dictionary) full updated quest dictionary 
     """
     #active_quests = []
     # print('quest list - status - quest_checked', self.quest_list["status"]["quest_checked"])
     if event.find_image(image.quest_window_title.value) == False:
         event.search_click(image.quest_icon.value)
         time.sleep(1)
     if event.find_image(image.quest_dungeon.value):
         self.quest_list["status"]["dungeon"] = True
     if event.find_image(image.quest_spells.value):
         self.quest_list["status"]["spells"] = True
     if event.find_image(image.quest_expedition.value):
         self.quest_list["status"]["expedition"] = True
     if event.find_image(image.quest_leviathan.value):
         self.quest_list["status"]["leviathan"] = True
     if event.find_image(image.quest_asmodeus.value):
         self.quest_list["status"]["asmodeus"] = True
     self.quest_list["status"]["quest_checked"] = True
     #event.search_click(image.close_quest.value)
     print('quest list is:', self.quest_list)
     return self.quest_list