def loop() -> None: while len(Glop.reagents["glop.png"]) < Glop.target: Navigation.menu("inventory") # Find the glop reagent we have the fewest of target = min(Glop.reagents, key=lambda x: len(Glop.reagents[x]) if x != "glop.png" else float('Inf')) for reagent in Glop.reagents[target]: Inputs.click(*coords.INVENTORY_PAGE[reagent.page]) Inputs.click(reagent.x, reagent.y, button="right") Inputs.ctrl_click(reagent.x, reagent.y) print(f"converted {len(Glop.reagents[target])} glops") Adventure.snipe(Glop.GLOP_ZONE_MAP[target], 2) Glop.update_inventory() elapsed = round(time.time() - Glop.start) print( f"Finished collecting {Glop.target} glops in {datetime.timedelta(seconds=elapsed)}" )
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()
"""Challenge start script.""" import argparse import time # Helper classes from classes.features import Adventure, MoneyPit from classes.helper import Helper Helper.init(True) Helper.requirements() parser = argparse.ArgumentParser() parser.add_argument("-z", "--zone", required=True, type=int, help="select which zone you wish to snipe") args = parser.parse_args() while True: # main loop titans = Adventure.check_titan_status() if titans: for titan in titans: Adventure.kill_titan(titan) Adventure.snipe(args.zone, duration=300, manual=True, bosses=True) MoneyPit.pit() time.sleep(3)
"""Snipe without Mega Buff.""" import time # Helper classes from classes.features import Adventure, MoneyPit from classes.helper import Helper Helper.init(True) while True: # main loop Adventure.snipe(0, 10, manual=True, bosses=True, highest=True) Adventure.adventure(0) # go wait at safe zone MoneyPit.pit() MoneyPit.spin() time.sleep(10)