예제 #1
0
def main():

    Helper.init()

    totalTime = 0
    duration = args.duration
    if args.nosetup:
        itopod_setup = True
    else:
        itopod_setup = False
    while True:
        if not args.notitans:
            if args.verbose:
                print('getting available titans')
            titans = Adventure.getTitans()
            if titans:
                # after this needs to reset loadout and diggers and e/m
                Adventure.turnIdleOff()

                print('calling killTitans with args.snipe {args.snipe}')
                Adventure.killTitans(titans,
                                     verbose=args.verbose,
                                     snipe=args.snipe)

                itopod_setup = False

        if not itopod_setup:
            Setup.setup(args.setup)
            itopod_setup = True

        Navigation.menu('adventure')

        if not args.nobeast:
            if not Statistics.checkPixelColor(*coords.BEAST_MODE_ON,
                                              coords.BEAST_MODE_COLOR):
                Helper.click(*coords.BEAST_MODE)

        print('*' * 30)
        Itopod.itopodExperimental(duration=duration,
                                  optimal_floor=args.optimal)
        totalTime += duration
        print(f'total exp: {Itopod.EXP_gained}')
        print(f'total ap: {Itopod.AP_gained}')
        print(f'kills: {Itopod.kills}')
        print(f'total time: {totalTime} minutes')
        print('*' * 30)

        Navigation.menu('inventory')
        if Inventory.getEmptySlots() < 20:
            invManagement(boost=0, merge=0)

        if not args.noygg:
            Yggdrasil.harvestAll()
예제 #2
0
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()