Han Posted February 2, 2014 Share Posted February 2, 2014 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. Link to comment Share on other sites More sharing options...
Freak Posted February 2, 2014 Share Posted February 2, 2014 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? Link to comment Share on other sites More sharing options...
Han Posted February 2, 2014 Author Share Posted February 2, 2014 I have a script that chops down trees and then fletch's into arrow shafts? I'm looking for one that; Cuts maple logs; Then strings them into maple longbows. Not that difficult but I need a rough idea. Link to comment Share on other sites More sharing options...
FearMe Posted February 4, 2014 Share Posted February 4, 2014 sAIO Fletcher gave me a really good idea how to make a fletching script, you can look at my fletcher script source code too, it works great as far as I'm aware. 1 Link to comment Share on other sites More sharing options...
Wyn Posted February 4, 2014 Share Posted February 4, 2014 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; } 1 Link to comment Share on other sites More sharing options...
Han Posted February 14, 2014 Author Share Posted February 14, 2014 sAIO Fletcher gave me a really good idea how to make a fletching script, you can look at my fletcher script source code too, it works great as far as I'm aware. Too bad I can't see the code now, would really like to learn from you. Link to comment Share on other sites More sharing options...
Extreme Scripts Posted February 22, 2014 Share Posted February 22, 2014 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 Link to comment Share on other sites More sharing options...