def main(): Helper.init() while True: Navigation.menu('questing') Questing.start() Questing.updateInfo() Questing.status() if args.force_zone: if Questing.is_major: print('major quest. will not skip') else: while Questing.quest_zone != args.force_zone: Questing.skip() Questing.start() Questing.updateInfo() Questing.status() # Inventory.boostCube() # unclutter inventory # invManagement(boost=2, merge=0) start = time.time() Adventure.adventureZone(Questing.quest_zone) Navigation.menu('questing') while not Questing.is_completed: # Navigation.menu('inventory') # farm that zone Navigation.menu('adventure') Adventure.turnIdleOff() kc = 0 while kc < args.kills: while not Adventure.enemySpawn(): sleep(0.03) # kill the enemy Adventure.snipe(fast=True) kc += 1 if args.verbose: print(f'killed {args.kills} monsters') print(f'time: ', end='') printTime() Navigation.menu('inventory') # Inventory.boostCube() # invManagement(boost=2, merge=0) Questing.turnInItems(Questing.quest_zone) # ygg() Questing.updateInfo() if args.verbose: Questing.status() Navigation.menu('questing') if Questing.is_completed: Questing.complete() end = time.time() print(f'completed quest at ') printTime() print(f'duration: {round((end-start)/60, 2)} minutes') break
def main(): Helper.init() Adventure.adventureZone(args.zone) if args.verbose: print(f'farming zone {args.zone}') print(f'boss only: {args.boss}') print(f'kills until inv management: {args.kills}') Adventure.turnIdleOff() killCounter = 0 lastKill = False while True: while not Adventure.enemySpawn(): sleep(0.03) if Adventure.isBoss(): if args.fast: Adventure.kill(fast=True) else: Adventure.snipe() killCounter += 1 lastKill = True if args.verbose: print(f'killed: {killCounter}') else: if args.boss: Adventure.refreshZone() lastKill = False else: if args.fast: Adventure.kill(fast=True) else: Adventure.snipe() killCounter += 1 lastKill = True if args.verbose: print(f'killed: {killCounter}') if lastKill and killCounter % args.kills == 0: if args.verbose: print(f'inv management:') Adventure.turnIdleOn() Navigation.menu('inventory') emptySlots = Inventory.getEmptySlots() if args.verbose: print(f'empty slots: {emptySlots}') if emptySlots < 20: invManagement(boost=4, merge=4) if not args.noygg: ygg() Navigation.menu('adventure') Adventure.turnIdleOff()