Jump to content

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.


Link to comment
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
Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...