Skip 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.

Banking at GE

Featured Replies

This code does not open or deposit items into the GE bank. Please help! Thank you.

    if (!bank.isOpen()) {
            NPC banker = npcs.closest("Banker");
            if (banker != null) {
                if (banker.isOnScreen()) {
                    banker.interact("Bank");
                    sleep(random(450,1000));
                    if (!getBank().isOpen()) {
                        getBank().open();
                    
                    }
                } else {
                    camera.toEntity(banker);
                }
            } else {
                bank.depositAll();
                sleep(random(250,450));
                
            }
        }

 

bank.open();
// insert shitty antiban sleep here
bank().depositAll();
// insert more shitty antiban here
bank().close();

done

you dont need any of the specific banker interaction

What errors are you getting?

Easiest way to do it would be something like

if (Banks.GRAND_EXCHANGE.constains(myPlayer()) {
	if (bank.isOpen) {
      	bank.depositAll();
      	CONDITIONAL_SLEEP_UNTIL_INVENTORY_EMPTY // Search in forums for code to do this
    } else {
      try {
      	bank.open();
      } catch (Exception e) {
      }
    }
} else {
  walking.webwalk(Banks.GRAND_EXCHANGE);
}

Didn't check code or syntax

  • Author
28 minutes ago, Butters said:

What errors are you getting?

Easiest way to do it would be something like


if (Banks.GRAND_EXCHANGE.constains(myPlayer()) {
	if (bank.isOpen) {
      	bank.depositAll();
      	CONDITIONAL_SLEEP_UNTIL_INVENTORY_EMPTY // Search in forums for code to do this
    } else {
      try {
      	bank.open();
      } catch (Exception e) {
      }
    }
} else {
  walking.webwalk(Banks.GRAND_EXCHANGE);
}

Didn't check code or syntax

if (Banks.GRAND_EXCHANGE.contains(myPlayer())) {
            if (bank.isOpen()) {
                  bank.depositAll();
                  new ConditionalSleep(1900, 5100) {
                      @Override
                      public boolean condition() throws InterruptedException {
                          return true;
                      }
                  };
            } else {
              try {
                  bank.open();
              } catch (Exception e) {
              }
            }
        } else {
          walking.webWalk(Banks.GRAND_EXCHANGE);
        }

 

fixed some errors But it's not working

7 minutes ago, RS123 said:

if (Banks.GRAND_EXCHANGE.contains(myPlayer())) {
            if (bank.isOpen()) {
                  bank.depositAll();
                  new ConditionalSleep(1900, 5100) {
                      @Override
                      public boolean condition() throws InterruptedException {
                          return true;
                      }
                  };
            } else {
              try {
                  bank.open();
              } catch (Exception e) {
              }
            }
        } else {
          walking.webWalk(Banks.GRAND_EXCHANGE);
        }

 

fixed some errors But it's not working

Replace conditional sleep with something like this

new ConditionalSleep(5000 250) {
                      @Override
                      public boolean condition() throws InterruptedException {
                          return inventory.isEmpty();
                      }
                  };

And reading some examples/playing around would help.

What's not working?

  • Author
41 minutes ago, ThatGamerBlue said:

bank.open();
// insert shitty antiban sleep here
bank().depositAll();
// insert more shitty antiban here
bank().close();

done

you dont need any of the specific banker interaction

I'm kinda new so I don't understand the antiban sleep thing... 

  • Author
8 minutes ago, Butters said:

Replace conditional sleep with something like this


new ConditionalSleep(5000 250) {
                      @Override
                      public boolean condition() throws InterruptedException {
                          return inventory.isEmpty();
                      }
                  };

And reading some examples/playing around would help.

What's not working?

Hmm... code didn't work. It will not open the grand exchange bank and deposit

I'd do something like                           

 



NPC banker = npcs.closest("Banker");
            if (banker != null) {
                banker.interact("Bank");
new ConditionalSleep( ) {
                      @Override
                      public boolean condition() throws InterruptedException {
                          return getBank().isOpen
                      }
                }.sleep();
                  
          if getBank().isOpen()
              getBank().depositAll();
        }
                

 

Don't know whats up with the black lines 

Edited by Dab in a Lab

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.