Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. import com.rsbuddy.script.ActiveScript;
  2. import com.rsbuddy.script.Manifest;
  3. import com.rsbuddy.script.methods.Bank;
  4. import com.rsbuddy.script.methods.GroundItems;
  5. import com.rsbuddy.script.methods.Inventory;
  6. import com.rsbuddy.script.methods.Walking;
  7. import com.rsbuddy.script.util.Filter;
  8. import com.rsbuddy.script.wrappers.GroundItem;
  9.  
  10. @SuppressWarnings("deprecation")
  11. @Manifest(authors={"wasup1"},
  12. name="nightshade",
  13. keywords={"nightshade"},
  14. version=0.3,
  15. description="Picks up nightshades, so you don't have too!")
  16. public abstract class nightshade extends ActiveScript {
  17. public static int herbID = 2398;
  18. public int loop; {{
  19. if (Inventory.isFull()) {
  20. if (Bank.isOpen())
  21. Bank.deposit(herbID, 26);
  22. else
  23. Bank.open();
  24.  
  25. } else {
  26. GroundItem adolf = GroundItems.getNearest(new Filter<GroundItem>() {
  27. public boolean accept(GroundItem adolf) {
  28. return adolf.getItem().getId() == 2398;
  29. }
  30. });
  31.  
  32. if (adolf != null){
  33. if (adolf.isOnScreen())
  34. adolf.interact("Take");
  35. else
  36. Walking.setRun(true);}
  37. }
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement