Jump to content

Mornin

Members
  • Posts

    149
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by Mornin

  1. 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

×
×
  • Create New...