- Joined
- Oct 1, 2017
- Messages
- 13
- Thread Author
- #1
Code:
GameObject rocks = GameObjects.newQuery().filter((go) -> go.getId() == 7491 || go.getId() == 7458 && go.distanceTo(Players.getLocal()) < 3).results().nearest();
if (rocks != null && rocks.isValid() && rocks.isVisible()
&& rocks.distanceTo(Players.getLocal()) < 3
&& !Players.getLocal().isMoving()) {
if (rocks.interact("Mine")) {
Execution.delayUntil(() -> Players.getLocal().isMoving(), 3000, 15000);
Execution.delayUntil(() -> Players.getLocal().getAnimationId() != -1, 5000, 15000);
}
}