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