Jump to content

Czar Flesh Crawlers leaked!


Valkyr

Recommended Posts

        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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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