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.

How to Bank at the bank of my choice?

Featured Replies

Imagine this...

 

String [] allBanks = {Banks.AL_KHARID,Banks.GRAND_EXCHANGE,Banks.LUMBRIDGE_UPPER,Banks.VARROCK_EAST,Banks.VARROCK_EAST};

Now here is where we ask the user when starting the script

 

USER -> STARTS SCRIPT -> SCRIPT THEN ASK -> Where would you like to go with the options 1-10, and names next to them

1. - AL KHARID BANK

2. G.E

AND so on.

 

You need to make a GUI, put a Combo Box in the GUI, assigned the array to the combo box, then add a listener to the GUI to retrieve the selected item in the combo box (selected bank in this case).

Take a look at Explv GUI tutorial here:

 

I recommend what Ace99 said, learning the swing library will come in handy alot.

You can also use the class in java called JOptionPane. It allows you to show a dialog rather quickly.

The bank names will need to match the order of the banks areas.

private Area[] allBanks = new Area[]{Banks.AL_KHARID, Banks.GRAND_EXCHANGE, Banks.LUMBRIDGE_UPPER, Banks.VARROCK_EAST, Banks.VARROCK_WEST};
private String[] bankNames = new String[]{"Al-Kharid", "Grand Exchange", "Lumbridge Upper", "Varrock East", "Varrock West"};

 

int chosenOption = JOptionPane.showOptionDialog(getBot().getCanvas(), "Select location", "Location Selector",
        JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, bankNames, bankNames[0]);

if (chosenOption != -1)
    getWalking().webWalk(allBanks[chosenOption]);

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.