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.

Never really coded in java, where to start

Featured Replies

I literally went over this about 5-10 minutes after writing this post! The guide was really informative! Its more the fact I don't understand how to open banks reliably (Without spam clicking) etc which is more where I'm trying to learn stuff from. 

 

I've been looking at the API and picked up a bit but some of it still confuses me because not that many of them have understandable examples D:

 

Also any idea why this isn't working? I guess i forgot to define its class (Or whatever its called) at  the top of the project?

attachicon.gifbank.png

 

The simplest way to open a bank without spam clicking is using the following method:

public void openBank() throws InterruptedException{
        
    getBank().open(); // Open the bank
    new ConditionalSleep(5000) { // Sleep until the bank is open, or for 5 seconds
        @Override
        public boolean condition() throws InterruptedException {
            return getBank().isOpen();
        }
    }.sleep();
}

The same logic can be applied to many different tasks in scripts. For example, if you wanted to chop down a tree, to prevent spam clicking you could do something like:

@Override
public int onLoop throws InterruptedException {

    if(!myPlayer().isAnimating()){

        chopDownTree(); // Chop down a tree if we're not animating
    }
    return random(200, 300);
}

private void chopDownTree(){

    RS2Object tree = S.getObjects().closest("Tree");
    if(tree != null){
            
        tree.interact("Chop down"); // Chop down the tree
        new ConditionalSleep(5000) { // Sleep until the player is animating, or for 5 seconds
            @Override
            public boolean condition() throws InterruptedException {
                return S.myPlayer().isAnimating();
            }
        }.sleep();
    }
}

Edited by Explv

Thankyou biggrin.png

 

JD-GUI is what is used with Eclipse right? If so, how does one work that? 

I don't think that Eclipse inherently has the ability to decompile .jars without additional plugins.

 

JD GUI is a nice little program which does this for you though.

 

Here's a link if you need: http://jd.benow.ca/

  • Author

Thankyou both guys! One last thing... How do i make my bot walk? I understand (I think) how to set locations just not entirely sure how to make it move, i'll decompile some jars and look into that but I thought I might as well ask here too

Thankyou both guys! One last thing... How do i make my bot walk? I understand (I think) how to set locations just not entirely sure how to make it move, i'll decompile some jars and look into that but I thought I might as well ask here too

 

:???:

getWalking().walk(position);

or

getWalking().webWalk(position);

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.