Guest User

Untitled

a guest
Oct 22nd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.95 KB | None | 0 0
  1. import org.rsbot.script.Script;
  2. import org.rsbot.script.ScriptManifest;
  3. import org.rsbot.script.wrappers.RSObject;
  4.  
  5.  
  6.  
  7. @ScriptManifest(authors = { "180chix" }, name = "PowerChopper", version = 0.1, description = " Powerchops willows at crafting guild. be sure youu wield any hatchet", website = "")
  8. public class PowerChopper extends Script {
  9.  
  10.    
  11.     int[] Willow = { 38616, 38627 };
  12.     int LogID = 1519;
  13.  
  14.      public boolean onStart(){
  15.             log("Thank you for using PowerChopper");
  16.            
  17.              
  18.            
  19.             return true;
  20.         }
  21.      
  22.    
  23.      
  24.    
  25.      
  26.    
  27.    
  28.     public int loop() {
  29.         mouse.setSpeed(random(2, 5));
  30.        
  31.          if(getMyPlayer().getAnimation() == -1) {
  32. camera.setAngle(random(1, 360));
  33.  
  34.                 RSObject tree = objects.getNearest(Willow);
  35.                 if (tree != null && !inventory.isFull()) {
  36.             tree.interact("Chop");
  37.             sleep(random(200, 300));
  38.         } else if (inventory.isFull()) {
  39.             inventory.dropAll(LogID);
  40.             sleep(random(200, 300));
  41.             }
  42.         }
  43.         return 0;
  44.     }
  45.  
  46.  
  47.     }
Add Comment
Please, Sign In to add comment