Guest User

Untitled

a guest
Jul 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. public int loop() {
  2. if (InventoryContains(pickId)) {
  3. if (distanceTo(new RSTile(3286, 3368)) > 10) {
  4. walkTo(new RSTile(3286, 3368));
  5. status = "Walking";
  6. return 500;
  7. }
  8. if (isInventoryFull()) {
  9. status = "Dropping";
  10. dropAllExcept(pickId);
  11. return 500;
  12. }
  13. RSObject iron = getNearestObjectByID(ironId);
  14. if (iron == null) {
  15. return 500;
  16. }
  17. atObject(iron, "Mine");
  18. status = "Mining";
  19. return 2500;
  20. }
  21. else{
  22. if (distanceTo(new RSTile(3253, 3421)) > 5) {
  23. walkTo(new RSTile(3253, 3421));
  24. status = "Walking";
  25. return 500;
  26. }
  27. }
  28. }
Add Comment
Please, Sign In to add comment