Jump to content
Sign in to follow this  

How to Bank at the bank of my choice?

Recommended Posts

Imagine this...



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


2. G.E

AND so on.


Share this post

Link to post
Share on other sites

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:


Share this post

Link to post
Share on other sites

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)
  • Like 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...