Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.rsbot.script.ScriptManifest;
- import org.rsbot.script.Script;
- import org.rsbot.script.wrappers.RSObject;
- @ScriptManifest(authors = { "ZGP93" }, keywords = { "chopper, cutter, banker, dranynor" }, name = "ZGP93's Draynor Village Power Cutter", version = 0.1, description = "PowerCuts willow trees in Draynor Village")
- public class ZGP93Chopper extends Script {
- private int[] willowTree = {5551, 5552, 5553};
- private int bronzeHatchet = 1359;
- public boolean onStart(){
- mouse.setSpeed(random(6, 7));
- return true;
- }
- public int loop(){
- if(inventory.isFull()){
- inventory.dropAllExcept(bronzeHatchet);
- }else{
- if(getMyPlayer().getAnimation() != 867){
- RSObject tree = objects.getNearest(willowTree);
- if(tree != null){
- tree.doAction("Chop");
- sleep(500, 800);
- }
- }
- }
- return random(100, 200);
- }
- public void onFinish(){
- log("Script finished");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement