mirror of
https://github.com/2006Scape-Scripts/ParaScript.git
synced 2026-07-02 16:49:02 +00:00
fletching
This commit is contained in:
@@ -42,7 +42,7 @@ public class Main extends Script implements MessageListener, Paintable {
|
||||
// strategies.add(new Crafting());
|
||||
// }
|
||||
if(Variables.skill_to_train == Skill.WOODCUTTING) {
|
||||
strategies.add(new MakeArrowShafts());
|
||||
strategies.add(new Fletch());
|
||||
strategies.add(new WoodcutTree());
|
||||
}
|
||||
if(Variables.skill_to_train == Skill.MINING) {
|
||||
|
||||
+3
-2
@@ -8,11 +8,12 @@ import org.rev317.min.api.methods.Inventory;
|
||||
import org.rev317.min.api.methods.Items;
|
||||
import org.rev317.min.api.methods.Players;
|
||||
|
||||
public class MakeArrowShafts implements Strategy {
|
||||
|
||||
public class Fletch implements Strategy {
|
||||
// TODO: Handle fletching other items such as shortbows, longbows etc
|
||||
@Override
|
||||
public boolean activate() {
|
||||
if (Variables.running
|
||||
&& Variables.woodcutting_method.equalsIgnoreCase("Fletch")
|
||||
&& hasRequiredItems()
|
||||
&& (Variables.getStatus() == "none" || Variables.getStatus() == "making arrow shafts")
|
||||
&& !Players.getMyPlayer().isInCombat()
|
||||
Reference in New Issue
Block a user