Advertisement
Codydude56

[wBot] Iron arrow looting

Jul 29th, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. //Put this in loop
  2. if (!Players.getLocal().inCombat()) {
  3.     loot();
  4. }
  5.  
  6. //Make this a method in your class.
  7. int IRON_ARROW = 885;
  8.  
  9. public void loot() {
  10.     for (GroundItem i : GroundItems.getLoaded()) {
  11.         if (i.getId() == IRON_ARROW) {
  12.             i.interact("Take");
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement