Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.rsbot.script.Script;
- import org.rsbot.script.ScriptManifest;
- import org.rsbot.script.wrappers.RSObject;
- @ScriptManifest(authors = { "180chix" }, name = "PowerChopper", version = 0.1, description = " Powerchops willows at crafting guild. be sure youu wield any hatchet", website = "")
- public class PowerChopper extends Script {
- int[] Willow = { 38616, 38627 };
- int LogID = 1519;
- public boolean onStart(){
- log("Thank you for using PowerChopper");
- return true;
- }
- public int loop() {
- mouse.setSpeed(random(2, 5));
- if(getMyPlayer().getAnimation() == -1) {
- camera.setAngle(random(1, 360));
- RSObject tree = objects.getNearest(Willow);
- if (tree != null && !inventory.isFull()) {
- tree.interact("Chop");
- sleep(random(200, 300));
- } else if (inventory.isFull()) {
- inventory.dropAll(LogID);
- sleep(random(200, 300));
- }
- }
- return 0;
- }
- }
Add Comment
Please, Sign In to add comment