Jump to content

why does'nt it make it noted


mousbros

Recommended Posts

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();                           
                            }
                        }

 

Link to comment
Share on other sites

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

        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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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