Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1.  
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. import org.rsbot.script.*;
  33. import org.rsbot.script.wrappers.*;
  34.  
  35. @ScriptManifest(authors = {"Casand"}, keywords = {""}, name = "CasandsSheepShearer", description = "A script to shear sheep and spin/bank wool", version = 1)
  36. public class CasandsSheepShearer extends Script {
  37.  
  38. int[] SheepID = {3310, 3311};
  39. int[] ChiselID = {1755, 1756};
  40.  
  41. @Override
  42. public boolean onStart() {
  43. return true;
  44. }
  45.  
  46. public int loop() {
  47. if (players.getMyPlayer().getAnimation() == -1) {
  48. RSObject sheep = objects.getNearest(SheepID);
  49.  
  50. if (sheep != null) {
  51. sheep.interact("Shear");
  52. return random(500, 1500);
  53. }
  54. }
  55. return random(5,150);
  56. }
  57.  
  58. @Override
  59. public void onFinish() {
  60. }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement