Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mport org.rsbot.script.Script;
- import org.rsbot.script.ScriptManifest;
- import org.rsbot.script.wrappers.*;
- @ScriptManifest(authors={"Busy_Botz"}, keywords={"None"}, name="Busy_CutZ", description="Draynor Willow Chopper",
- version=1.0)
- public class Busy_CutZ extends Script {
- private RSArea BankArea = new RSArea(new RSTile(3092, 3246), new RSTile(3097, 3240));
- private RSTile[] walkingPath = { new RSTile(3087, 3234), new RSTile(3092, 3243);
- public int [] HatchetID = { 1349, 1351, 1353, 1355, 1357, 1359};
- public int [] TreeID = {5552, 5551, 5553};
- public int LogID = 1519;
- public boolean onStart() {
- return true;
- }
- public int loop(){
- AntiBan(); // YOUR SEXY ANTI-BAN BY PAULPKYOU <3
- 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); }
- }else{ // IF ABOVE STATEMENT IS FALSE (IF INVENTORY IS NOT FULL)
- if(getMyPlayer().getAnimation() != 867){ // IF PLAYER ANIMATION IS NOT 867 (867 is WC ANIMATION) So if player is IDLE
- RSObject tree = objects.getNearest(TreeID); //RETURNS NEAREST OBJECT, SPECIFIED BY THE TREE ID.
- if(tree != null && getMyPlayer().getAnimation() == -1){ // IF TREE IS ALIVE
- tree.doAction("Chop");
- camera.turnToObject(tree);}
- }
- }
- return random(100, 200);
- }
- public void AntiBan()
- {
- int i = random(100,500);
- if(i == 100) { camera.setAngle(random(0, 360)); sleep(200,1000); }
- if(i == 200) { mouse.moveOffScreen(); sleep(1000,3000); }
- if(i == 300) { mouse.moveSlightly(); sleep(100, 600); }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement