mirror of
https://github.com/2006Scape-Scripts/ParaScript.git
synced 2026-07-03 00:38:36 +00:00
Try Catch
This commit is contained in:
@@ -31,6 +31,7 @@ public class MakeArrowShafts implements Strategy {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute() {
|
public void execute() {
|
||||||
|
try {
|
||||||
System.out.println("making arrow shafts");
|
System.out.println("making arrow shafts");
|
||||||
Inventory.getItem(947).interact(Items.Option.USE);
|
Inventory.getItem(947).interact(Items.Option.USE);
|
||||||
Inventory.getItem(1512).interact(Items.Option.USE_WITH);
|
Inventory.getItem(1512).interact(Items.Option.USE_WITH);
|
||||||
@@ -38,6 +39,9 @@ public class MakeArrowShafts implements Strategy {
|
|||||||
Time.sleep(3000);
|
Time.sleep(3000);
|
||||||
//Wait for the Player to chop the Tree
|
//Wait for the Player to chop the Tree
|
||||||
Time.sleep(() -> Players.getMyPlayer().getAnimation() == -1, 3000);
|
Time.sleep(() -> Players.getMyPlayer().getAnimation() == -1, 3000);
|
||||||
|
} catch (Exception err) {
|
||||||
|
System.out.println("Fletching error: ¯\\_(ツ)_/¯");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasRequiredItems(){
|
private boolean hasRequiredItems(){
|
||||||
|
|||||||
Reference in New Issue
Block a user