Jump to content

Czar Flesh Crawlers leaked!


Recommended Posts

Posted
        context.getTaskExecutor().execute(
                new SelectionTask(context,
                        () -> !context.getInventory().contains(food), // When out of food
                        new WebWalkTask(context, context.getWebWalker().getClosest(bank))
                                .chain(new WithdrawTask(context, food, -1)),
                        new ExecuteOnConditionTask(context, context::isIdle, // Only run when idle
                                new WebWalkTask(context, context.getWebWalker().getClosest(FLESH_CRAWLER))
                                        .chain(new InteractEntityTask(context, FLESH_CRAWLER, ATTACK))
                                        .chain(new ExecuteOnConditionTask(context,
                                                () -> context.getCombat().getHealthPercent() < 25, // Eat when HP is low
                                                new InteractItemTask(context, food, EAT))))
        ));

:troll:

  • Like 4

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...