Advertisement
Guest User

Untitled

a guest
Jul 5th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mport org.rsbot.script.Script;
  2. import org.rsbot.script.ScriptManifest;
  3. import org.rsbot.script.wrappers.*;
  4.  
  5. @ScriptManifest(authors={"Busy_Botz"}, keywords={"None"}, name="Busy_CutZ", description="Draynor Willow Chopper",
  6. version=1.0)
  7. public class Busy_CutZ extends Script {
  8. private RSArea BankArea = new RSArea(new RSTile(3092, 3246), new RSTile(3097, 3240));
  9. private RSTile[] walkingPath = { new RSTile(3087, 3234), new RSTile(3092, 3243);
  10. public int [] HatchetID = { 1349, 1351, 1353, 1355, 1357, 1359};
  11. public int [] TreeID = {5552, 5551, 5553};
  12. public int LogID = 1519;
  13. public boolean onStart() {
  14. return true;
  15. }
  16.  
  17. public int loop(){
  18. AntiBan(); // YOUR SEXY ANTI-BAN BY PAULPKYOU <3
  19.  if(inventory.isFull()){ if(!BankArea.contains(players.getMyPlayer().getLocation()) {  walking.walkPathMM(walkingPath); } else { bank.open(); bank.depositAllExcept(HatchetID); bank.close(); }while(BankArea.contains(players.getMyPlayer().getLocation()) { walking.walkPathMM(walking.reversePath(walkingPath)); sleep(200, 400); }
  20. }else{ // IF ABOVE STATEMENT IS FALSE (IF INVENTORY IS NOT FULL)
  21. if(getMyPlayer().getAnimation() != 867){ // IF PLAYER ANIMATION IS NOT 867 (867 is WC ANIMATION) So if player is IDLE
  22. RSObject tree = objects.getNearest(TreeID); //RETURNS NEAREST OBJECT, SPECIFIED BY THE TREE ID.
  23. if(tree != null && getMyPlayer().getAnimation() == -1){ // IF TREE IS ALIVE
  24. tree.doAction("Chop");
  25. camera.turnToObject(tree);}
  26. }
  27. }
  28. return random(100, 200);
  29. }
  30.  
  31. public void AntiBan()
  32. {
  33. int i = random(100,500);
  34. if(i == 100) { camera.setAngle(random(0, 360)); sleep(200,1000); }
  35. if(i == 200) { mouse.moveOffScreen(); sleep(1000,3000); }
  36. if(i == 300) { mouse.moveSlightly(); sleep(100, 600); }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement