Valkyr Posted September 12, 2015 Share Posted September 12, 2015 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)))) )); 4 Quote Link to comment Share on other sites More sharing options...
Joseph Posted September 12, 2015 Share Posted September 12, 2015 eww Quote Link to comment Share on other sites More sharing options...
cutvision Posted September 13, 2015 Share Posted September 13, 2015 Only if I knew what this meant... Why did he say Eww? Anything wrong with what he posted? Quote Link to comment Share on other sites More sharing options...
Deceiver Posted September 13, 2015 Share Posted September 13, 2015 top tier leak 1 Quote Link to comment Share on other sites More sharing options...
Precise Posted September 13, 2015 Share Posted September 13, 2015 nice new frameowrk valk, izi 2 read 1 Quote Link to comment Share on other sites More sharing options...
Valkyr Posted September 13, 2015 Author Share Posted September 13, 2015 nice new frameowrk valk, izi 2 read my code is self-documenting 2 Quote Link to comment Share on other sites More sharing options...