def loop(idle_majors: bool = False) -> None: """Run infinite loop to prevent idling after task is complete. Keyword arguments idle_majors -- Set to True if you wish to idle major and minor quests. Set to False if you wish to idle minor quests only. Currently active quest will be idled regardless. """ Questing.set_use_majors(idle_majors) print("Engaging idle loop") while True: # main loop Questing.questing( subcontract=True) # Questing first, as we are already there MoneyPit.pit() MoneyPit.spin() Inventory.boost_cube() GoldDiggers.gold_diggers() Yggdrasil.ygg() Adventure.itopod_snipe(300)
Inventory.merge_inventory(8) # merge uneqipped guffs spells = BloodMagic.check_spells_ready() if spells: # check if any spells are off CD NGU.reclaim_ngu(True) # take all magic from magic NGUs for spell in spells: BloodMagic.cast_spell(spell) Misc.reclaim_bm() NGU.assign_ngu(Misc.get_idle_cap(1), range(1, 9), True) BloodMagic.toggle_auto_spells() # retoggle autospells if rt.days > 0: # rebirth is at >24 hours print(f"rebirthing at {rt}") # debug FightBoss.nuke() MoneyPit.spin() GoldDiggers.deactivate_all_diggers() Yggdrasil.ygg(equip=1) # harvest with equipment set 1 Yggdrasil.ygg(eat_all=True) GoldDiggers.level_diggers() # level all diggers Rebirth.do_rebirth() time.sleep(3) rt = Rebirth.get_rebirth_time() rebirth_init(rt) else: Yggdrasil.ygg() Misc.save_check() MoneyPit.pit() if rt.timestamp.tm_hour <= 12: # quests for first 12 hours titans = Adventure.check_titan_status() if titans: for titan in titans: Adventure.kill_titan(titan)
parser = argparse.ArgumentParser() parser.add_argument("-z", "--zone", required=True, type=int, help="select which zone you wish to snipe") args = parser.parse_args() Adventure.adventure(0) if Inputs.check_pixel_color(*coords.IS_IDLE): Inputs.click(*coords.ABILITY_IDLE_MODE) time.sleep(userset.MEDIUM_SLEEP) while True: # main loop GoldDiggers.diggers([4, 1]) if Inputs.check_pixel_color(*coords.COLOR_MEGA_BUFF_READY): Adventure.snipe(args.zone, 1, manual=True, bosses=True, once=True) Adventure.adventure(0) # go wait at safe zone if Inputs.check_pixel_color(*coords.IS_IDLE): Inputs.click(*coords.ABILITY_IDLE_MODE) Inputs.click(*coords.WASTE_CLICK) else: MoneyPit.pit() MoneyPit.spin() Yggdrasil.ygg() Inventory.merge_equipment() Inventory.boost_equipment()