mirror of
https://github.com/2006Scape-Scripts/ParaScript.git
synced 2026-07-03 00:38:36 +00:00
catch
This commit is contained in:
@@ -46,7 +46,7 @@ public class Fighting implements Strategy {
|
||||
return victim;
|
||||
}
|
||||
}
|
||||
} catch (Exception err){}
|
||||
} catch (Exception ಠ_ಠ){}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -29,6 +29,12 @@ public class Fish implements Strategy {
|
||||
@Override
|
||||
public void execute() {
|
||||
try {
|
||||
if (Variables.shouldDropItems()) {
|
||||
if (Inventory.getCount(441) >= 1) Inventory.getItem(441).interact(Items.Option.DROP);
|
||||
}
|
||||
for (int item_id: items)
|
||||
if (Inventory.getItem(item_id + 1) != null)
|
||||
Menu.sendAction(431, item_id, Inventory.getItem(item_id + 1).getSlot(), 5064, 3);
|
||||
fishingSpot.interact(Variables.fishing_type_selected);
|
||||
Time.sleep(1000);
|
||||
// Wait for the Player to finish fishing (max 60 seconds)
|
||||
|
||||
@@ -39,7 +39,7 @@ public class Mine implements Strategy {
|
||||
ore.interact(SceneObjects.Option.MINE);
|
||||
Time.sleep(1000);
|
||||
Time.sleep(() -> Players.getMyPlayer().getAnimation() == -1, 3000);
|
||||
} catch (Exception err){
|
||||
} catch (Exception ಠ_ಠ){
|
||||
System.out.println("Mining error: ¯\\_(ツ)_/¯");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public class Thieving implements Strategy {
|
||||
return victim;
|
||||
}
|
||||
}
|
||||
} catch (Exception err){}
|
||||
} catch (Exception ಠ_ಠ){}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user