Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (â‹®) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Bloody powerchopper

Featured Replies

  • Author
2 minutes ago, PICwarior381 said:

Would be great if you included the sources so we can give you advices and help you 😃

Sure I am going to upload the source

 

Looks good but you might want to add some conditional sleeps for cutting the tree, otherwise it looks like its going to keep randomly clicking on the tree even if its still chopping it down.

 

something like

else if(tree != null && !myPlayer().isAnimating()){
    log("Chopping...");
    if(tree.interact("Chop down")){
        new ConditionalSleep(10000, 600) {
            @Override
            public boolean condition() throws InterruptedException {
                return !myPlayer().isAnimating() && !myPlayer().isMoving() &&
                        !tree.exists();
            }
        }.sleep();
    }
}

Edited by skillerkidos1

  • Author
56 minutes ago, skillerkidos1 said:

Looks good but you might want to add some conditional sleeps for cutting the tree, otherwise it looks like its going to keep randomly clicking on the tree even if its still chopping it down.

 

something like

else if(tree != null && !myPlayer().isAnimating()){
    log("Chopping...");
    if(tree.interact("Chop down")){
        new ConditionalSleep(10000, 600) {
            @Override
            public boolean condition() throws InterruptedException {
                return !myPlayer().isAnimating() && !myPlayer().isMoving() &&
                        !tree.exists();
            }
        }.sleep();
    }
}

 

if(getInventory().dropAll("logs")){
    new ConditionalSleep(10000, 600) {
        @Override
        public boolean condition() throws InterruptedException {
            return !getInventory().contains("logs");
        }
    }.sleep();
}

Yeah I saw that but I couldnt find out how to create them, thank you very much for your help :D

57 minutes ago, skillerkidos1 said:

Looks good but you might want to add some conditional sleeps for cutting the tree, otherwise it looks like its going to keep randomly clicking on the tree even if its still chopping it down.

 

something like

else if(tree != null && !myPlayer().isAnimating()){
    log("Chopping...");
    if(tree.interact("Chop down")){
        new ConditionalSleep(10000, 600) {
            @Override
            public boolean condition() throws InterruptedException {
                return !myPlayer().isAnimating() && !myPlayer().isMoving() &&
                        !tree.exists();
            }
        }.sleep();
    }
}

 

if(getInventory().dropAll("logs")){
    new ConditionalSleep(10000, 600) {
        @Override
        public boolean condition() throws InterruptedException {
            return !getInventory().contains("logs");
        }
    }.sleep();
}

So you type in the bigger value first and the lower as 2nd? kinda weird but thank you.

1 hour ago, BloodyNoah said:

Yeah I saw that but I couldnt find out how to create them, thank you very much for your help :D

So you type in the bigger value first and the lower as 2nd? kinda weird but thank you.

first number is max time to sleep before waking up, 2nd number is how often it checks so 600 is every game tick

 

  • Author
2 hours ago, FuryShark said:

This guide includes how to do interactions and conditional sleeps correctly

Nice Thanks :D didnt thought scripters would be that nice to new onces. Cause thats like more competition. But thanks to everyone who helped

 

  • 5 months later...

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.