OSBOTTESTER101 Posted April 21, 2020 Share Posted April 21, 2020 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. Quote Link to comment Share on other sites More sharing options...
Ace99 Posted April 21, 2020 Share Posted April 21, 2020 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: Quote Link to comment Share on other sites More sharing options...
BravoTaco Posted April 22, 2020 Share Posted April 22, 2020 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]); 1 Quote Link to comment Share on other sites More sharing options...