Advertisement
joeybots

Untitled

Nov 30th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1.  
  2. if (myPlayer().isAnimating()) {
  3.  
  4. double x = Math.random();
  5.  
  6. if (x<0.05) {
  7. mouse.move(random(0,500),random(0,500));
  8. sleep(random(0,200));
  9. }
  10.  
  11. if (mouse.isOnScreen()) {
  12. mouse.moveOutsideScreen();
  13. }
  14.  
  15. } else {
  16.  
  17. RS2Object tree = getObjects().closest("Tree");
  18. double x = Math.random();
  19.  
  20. if (tree!=null) {
  21.  
  22. tree.interact("Chop");
  23. sleep(random(0,200));
  24.  
  25. if (x<0.1) {
  26. tree.interact("Chop");
  27. }
  28.  
  29. if (x<0.9) {
  30. mouse.move(random(0, 500), random(0, 500));
  31. sleep(random(20,500));
  32. }
  33.  
  34. if (x>0.3) {
  35. mouse.moveOutsideScreen();
  36. }
  37.  
  38. sleep(randomUtil.gRandom(500,3000));
  39.  
  40. }
  41.  
  42.  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement