mousbros Posted March 12, 2020 Share Posted March 12, 2020 Hello as you can see I improve alot and fast, the question is why doesnt the script note the clay before it trades. the script opens the bank withdraws the items and after that it trade the player so it does everything I want except the note part. thanks in advance guys x if (Banks.DRAYNOR.contains(myPosition()) && !getBank().open()) { new ConditionalSleep(3000, 500) { @Override public boolean condition() throws InterruptedException { return getBank().isOpen() && getBank().enableMode(BankMode.WITHDRAW_NOTE); //we will stop sleeping when bank is open. } }.sleep(); }else { log("Depositing Ore and walking back to mine"); getBank().withdrawAll("Clay"); if (getPlayers().closest("name") !=null);{ if (getPlayers().closest("name").interact("Trade with")) { new ConditionalSleep(10000, 5000) { @Override public boolean condition() throws InterruptedException { return getTrade().isFirstInterfaceOpen(); //we will stop sleeping when first interface is open. } }.sleep(); } } Quote Link to comment Share on other sites More sharing options...
mousbros Posted March 12, 2020 Author Share Posted March 12, 2020 (edited) I found it!! love for they guys who are helping me in my journey, love for the people in this community. I know im making really stupid mistakes and it is ''spoonfeeding'' but ill start my IT classes soon and hopefully I can pay back to the commmunity what I gained. love Edited March 12, 2020 by mousbros Quote Link to comment Share on other sites More sharing options...
iJabba Posted March 12, 2020 Share Posted March 12, 2020 if (this.bank.isOpen()) { switch (this.bank.getWithdrawMode()) { case WITHDRAW_ITEM: case REARRANGE_SWAP: case REARRANGE_INSERT: this.bank.enableMode(Bank.BankMode.WITHDRAW_NOTE); break; } } check the current mode, if the current mode isn't withdraw note, then set the mode to withdraw note, then perform your banking actions Quote Link to comment Share on other sites More sharing options...