Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. import org.rsbot.script.ScriptManifest;
  2. import org.rsbot.script.Script;
  3. import org.rsbot.script.wrappers.RSObject;
  4.  
  5. @ScriptManifest(authors = { "nutty" }, keywords = { "Woodcutting" }, name = "Powercutter", version = 1.0, description = "Powercuts Trees")
  6. public class powercutter extends Script {
  7.  
  8. private int[] Hatchet = { 1349, 1351, 1353, 1355, 1357, 1359, 1361, 6739, 13470, 995 };
  9. private int[] OakTree = { 1281 };
  10. private int[] normtree = { 1278 };
  11.  
  12. public boolean onStart(){
  13. mouse.setSpeed(random(4, 7));
  14. return true;
  15. }
  16.  
  17. public int loop(){
  18. if(inventory.isFull()){
  19. inventory.dropAllExcept(Hatchet);
  20. }else{
  21. if(getMyPlayer().getAnimation() != 867){
  22. RSObject tree = objects.getNearest(OakTree);
  23. if(tree != null){
  24. tree.doAction("chop");
  25. sleep(500, 800);
  26. }
  27.  
  28. }
  29. }
  30. return random(500, 1500);
  31. }
  32.  
  33. public void onFinish(){
  34.  
  35. }
  36. private void antiban() {
  37. if (random(1, 10) == 1) {
  38. mouse.moveRandomly(random(30, 250));
  39. sleep(random(700, 1200));
  40. }
  41. if (random(15, 10) == 9) {
  42. mouse.moveOffScreen();
  43. sleep(random(600, random(8000, 10000)));
  44. }
  45. if (random(0, 10) == 1) {
  46. camera.setAngle(random(0, 120));
  47. sleep(random(150, 300));
  48. if (random(0, 10) == 1) {
  49. game.openTab(1);
  50. skills.doHover(skills.INTERFACE_WOODCUTTING);
  51. sleep(random(2100, 3400));
  52.  
  53.  
  54.  
  55. }
  56. }
  57.  
  58.  
  59. }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement