return w = Window() i = Inputs() nav = Navigation() feature = Features() Window.x, Window.y = i.pixel_search(coords.TOP_LEFT_COLOR, 0, 0, 400, 600) nav.menu("inventory") u = UpgradeEM(37500, 37500, 2, 2, 3) print(w.x, w.y) tracker = Tracker(5) c = Challenge() while True: # main loop #feature.questing() feature.itopod_snipe(300) tracker.progress() feature.boost_cube() feature.ygg() feature.gold_diggers([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]) #feature.snipe(13, 120) #time.sleep(120) #c.start_challenge(9) #speedrun(3, feature)
spells = feature.check_spells_ready() if spells: # check if any spells are off CD feature.reclaim_ngu(True) # take all magic from magic NGUs for spell in spells: feature.cast_spell(spell) feature.reclaim_bm() feature.assign_ngu(feature.get_idle_cap(True), [x for x in range(1, 8)], True) feature.toggle_auto_spells() # retoggle autospells if rt.days > 0: # rebirth is at >24 hours print(f"rebirthing at {rt}") # debug feature.nuke() feature.spin() feature.deactivate_all_diggers() feature.ygg(equip=1) # harvest with equipment set 1 feature.ygg(eat_all=True) feature.level_diggers() # level all diggers feature.do_rebirth() time.sleep(3) rt = feature.get_rebirth_time() start_procedure(feature, rt) else: feature.ygg() feature.save_check() feature.pit() if rt.timestamp.tm_hour <= 12: # quests for first 12 hours feature.boost_cube() feature.questing() else: # after hour 12, do itopod in 5-minute intervals feature.itopod_snipe(300)