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 = { "nutty" }, keywords = { "Woodcutting" }, name = "Powercutter", version = 1.0, description = "Powercuts Trees")
- public class powercutter extends Script {
- private int[] Hatchet = { 1349, 1351, 1353, 1355, 1357, 1359, 1361, 6739, 13470, 995 };
- private int[] OakTree = { 1281 };
- private int[] normtree = { 1278 };
- public boolean onStart(){
- mouse.setSpeed(random(4, 7));
- return true;
- }
- public int loop(){
- if(inventory.isFull()){
- inventory.dropAllExcept(Hatchet);
- }else{
- if(getMyPlayer().getAnimation() != 867){
- RSObject tree = objects.getNearest(OakTree);
- if(tree != null){
- tree.doAction("chop");
- sleep(500, 800);
- }
- }
- }
- return random(500, 1500);
- }
- public void onFinish(){
- }
- private void antiban() {
- if (random(1, 10) == 1) {
- mouse.moveRandomly(random(30, 250));
- sleep(random(700, 1200));
- }
- if (random(15, 10) == 9) {
- mouse.moveOffScreen();
- sleep(random(600, random(8000, 10000)));
- }
- if (random(0, 10) == 1) {
- camera.setAngle(random(0, 120));
- sleep(random(150, 300));
- if (random(0, 10) == 1) {
- game.openTab(1);
- skills.doHover(skills.INTERFACE_WOODCUTTING);
- sleep(random(2100, 3400));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement