Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case LOOT:
- scriptState = "LOOT";
- GroundItem loot = ctx.groundItems.id(lootItems).poll();
- if (ctx.groundItems.get().contains(loot)) {
- lootOnGround = true;
- if (loot.valid()) {
- if (loot.inViewport()) {
- loot.interact("Take");
- Condition.sleep(300);
- } else {
- ctx.camera.turnTo(loot);
- ctx.movement.step(loot);
- ctx.camera.pitch(true);
- Condition.sleep(300);
- }
- }
- }
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement