Jump to content

Has Anyone Got A Skeleton Of A Fletching Script?


Recommended Posts

Posted

I'm asking this so I can practice making my own fletching script, All the others have a fault in some way or another. I would be most greatful if someone could help me in this situation. Thank you.

 

 

I have a script that chops down trees and then fletch's into arrow shafts?

Posted

Here's your logic.

        private State getState() {
                if (!isBusy()) {
                        if (!Inventory.containsAll(item1, item2) && !Bank.isOpen()) {
                                return State.OPENBANK;
                        } else if (Bank.isOpen() && !Inventory.containsAll(item1, item2)) {
                                return State.BANK;
                        } else if (Bank.isOpen() && Inventory.containsAll(item1, item2)) {
                                return State.CLOSEBANK;
                        } else if (Inventory.containsAll(item1, item2) && !Bank.isOpen()) {
                                return State.FLETCH;
                        }
                }
                return State.ANTIBAN;
        }
  • Like 1
  • 2 weeks later...
Posted

 

Here's your logic.

        private State getState() {
                if (!isBusy()) {
                        if (!Inventory.containsAll(item1, item2) && !Bank.isOpen()) {
                                return State.OPENBANK;
                        } else if (Bank.isOpen() && !Inventory.containsAll(item1, item2)) {
                                return State.BANK;
                        } else if (Bank.isOpen() && Inventory.containsAll(item1, item2)) {
                                return State.CLOSEBANK;
                        } else if (Inventory.containsAll(item1, item2) && !Bank.isOpen()) {
                                return State.FLETCH;
                        }
                }
                return State.ANTIBAN;
        }

 

So much unnecessary logic? :/ Doubt anyone ever puts open + close bank in their logic buddy

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

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