Jump to content

Won't interact with Rogue's Den Banker


Mornin

Recommended Posts

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 by Selena Gomez
Link to comment
Share on other sites

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 by TrEkBaNaAn
Link to comment
Share on other sites


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 by Czar
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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