Mornin Posted November 11, 2014 Posted November 11, 2014 (edited) Hi, so i've been struggling with this for a while, so i decided to ask for help here. public void withdraw() throws InterruptedException { if (this.bank.isOpen()) { if (!this.inventory.contains(fishName)) { withdrawItem(this, fishName, 28, true); sleep(500); } }else { if (locationName.equals("Rogue's Den")) { NPC benedict = npcs.closest("Emerald Benedict"); if(benedict != null){ benedict.interact("Bank"); } } } } else { openBank(this, bankName, bankInteraction, 5000L); } Now it works but my last else is underlined Edited November 11, 2014 by Selena Gomez
TrEkBaNaAn Posted November 11, 2014 Posted November 11, 2014 (edited) i can help you sir, public void withdraw() throws InterruptedException { if (this.bank.isOpen()) { if (!this.inventory.contains(fishName)) { withdrawItem(this, fishName, 28, true); sleep(500); } else { if (locationName.equals("Rogue's Den")) { NPC benedict = npcs.closest("Emerald Benedict"); if(benedict != null){ benedict.interact("Bank"); } } } } else { openBank(this, bankName, bankInteraction, 5000L); } } is you replace that for this: public void withdraw() throws InterruptedException { if (this.bank.isOpen()) { if (!this.inventory.contains(fishName)) { withdrawItem(this, fishName, 28, true); sleep(500); } else { if (locationName.equals("Rogue's Den")) { NPC benedict = npcs.closest("Emerald Benedict"); if(benedict != null){ benedict.interact("Bank"); } } } } else { openBank(this, bankName, bankInteraction, 5000L); } } } it should be working now! still not working? pm me Edited November 11, 2014 by TrEkBaNaAn
Czar Posted November 11, 2014 Posted November 11, 2014 (edited) public boolean bank() { if (getBank().isOpen()) { if (!getInventory().contains(fishName)) { return getBank().withdraw(fishName, 0); } } else { NPC benedict = npcs.closest("Emerald Benedict"); if (benedict != null) { benedict.interact("Bank"); } } return false; } Edited November 11, 2014 by Czar