def rebirth_init(rt): """Procedure that handles start of rebirth.""" Misc.reclaim_all() # make sure we reset e/m if we run this mid-rebirth FightBoss.nuke(101) # PPP Inventory.loadout(respawn_loadout) Adventure.adventure(highest=True) TimeMachine.time_machine(5e11, magic=True) Augmentation.augments({"CI": 0.7, "ML": 0.3}, 1e12) BloodMagic.blood_magic(8) BloodMagic.toggle_auto_spells() GoldDiggers.gold_diggers() if rt.timestamp.tm_hour > 0 or rt.timestamp.tm_min >= 13: print("assigning adv training") else: duration = (12.5 - rt.timestamp.tm_min) * 60 print(f"doing itopod for {duration} seconds while waiting for adv training to activate") Adventure.itopod_snipe(duration) AdvancedTraining.advanced_training(2e12) GoldDiggers.gold_diggers() Misc.reclaim_bm() Wandoos.wandoos(True) NGU.assign_ngu(Misc.get_idle_cap(2), range(1, 11), False) NGU.assign_ngu(Misc.get_idle_cap(1), range(1, 9), True)
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)
"""ITOPOD Sniping script.""" import time # Helper classes from classes.features import Adventure, GoldDiggers, MoneyPit, Inventory from classes.helper import Helper from classes.stats import Tracker import constants as const Helper.init(True) Helper.requirements() tracker = Tracker(5) while True: # main loop titans = Adventure.check_titan_status() if titans: for titan in titans: Adventure.kill_titan(titan) Adventure.itopod_snipe(300) MoneyPit.pit() tracker.progress() GoldDiggers.gold_diggers(const.DEFAULT_DIGGER_ORDER) Inventory.boost_equipment(boost_cube=True) time.sleep(3) # Need to wait for tooltip to disappear