Jump to content

why does'nt it make it noted


Recommended Posts

Posted

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

 

Posted (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 by mousbros
Posted
        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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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