Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String[] LOOT_NAMES = { "Green dragonhide", "Dragon bones", "Nature rune",
- "Rune dagger", "Clue scroll", "Dragon spear", "Shield left half" };
- public boolean checkLoot() throws InterruptedException {
- GroundItem GROUND_ITEM = closestGroundItemForName(this.LOOT_NAMES);
- if (GROUND_ITEM == null) {
- return false;
- }
- if ((this.client.getInventory().isFull())
- && (this.client.getInventory().contains(vars.UsedFoodId))) {
- this.client.getInventory().interactWithId(vars.UsedFoodId, "Eat");
- }
- if (!GROUND_ITEM.isVisible()) {
- try {
- walk(GROUND_ITEM);
- } catch (UnsupportedOperationException localUnsupportedOperationException) {
- }
- sleep(500);
- while (this.client.getMyPlayer().isMoving()) {
- sleep(200);
- }
- }
- GROUND_ITEM.interact("Take");
- sleep(500);
- while (this.client.getMyPlayer().isMoving()) {
- sleep(200);
- }
- return true;
- }
- checkLoot();
Advertisement
Add Comment
Please, Sign In to add comment