mirror of
https://github.com/2006Scape-Scripts/ParaScript.git
synced 2026-07-03 00:38:36 +00:00
ಠ_ಠ
This commit is contained in:
@@ -32,7 +32,7 @@ public class BuryBones implements Strategy {
|
||||
Inventory.getItem(527).interact(Items.Option.SECOND);
|
||||
Time.sleep(500);
|
||||
if (Game.isLoggedIn() && hasBones()) buryBones();
|
||||
} catch (Exception err) {
|
||||
} catch (Exception ಠ_ಠ) {
|
||||
System.out.println("Bone burying error: ¯\\_(ツ)_/¯");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ public class MakeArrowShafts implements Strategy {
|
||||
Time.sleep(3000);
|
||||
//Wait for the Player to chop the Tree
|
||||
Time.sleep(() -> Players.getMyPlayer().getAnimation() == -1, 3000);
|
||||
} catch (Exception err) {
|
||||
} catch (Exception ಠ_ಠ) {
|
||||
System.out.println("Fletching error: ¯\\_(ツ)_/¯");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,19 +40,23 @@ public class PickupItems implements Strategy {
|
||||
break;
|
||||
}
|
||||
}
|
||||
} catch (Exception err){
|
||||
} catch (Exception ಠ_ಠ){
|
||||
System.out.println("Pickup items error: ¯\\_(ツ)_/¯");
|
||||
}
|
||||
Variables.addItemGained(Inventory.getCount(true) - currentItemAmount);
|
||||
}
|
||||
|
||||
private GroundItem[] getItems(){
|
||||
return GroundItems.getNearest(getItemIDs());
|
||||
}
|
||||
|
||||
private int[] getItemIDs(){
|
||||
int[] itemIDs = new int[]{};
|
||||
if (Variables.skill_to_train == Skill.ATTACK){
|
||||
if (Variables.fighting_bury_bones)
|
||||
itemIDs = new int[]{526}; // TODO: need to add all the other bones
|
||||
}
|
||||
itemIDs = Methods.combineIntArrays(Variables.fighting_item_ids, itemIDs);
|
||||
return GroundItems.getNearest(itemIDs);
|
||||
return itemIDs;
|
||||
}
|
||||
}
|
||||
@@ -327,7 +327,7 @@ public class UI extends JFrame {
|
||||
for (int i = 0; i < sample.length; i++)
|
||||
customIDs[i] = Integer.parseInt(sample[i]);
|
||||
Variables.fighting_npc_selected.setIDs(customIDs);
|
||||
} catch (Exception err) {
|
||||
} catch (Exception ಠ_ಠ) {
|
||||
FightingNpcs.CUSTOM.setIDs(new int[]{0});
|
||||
}
|
||||
}
|
||||
@@ -371,7 +371,7 @@ public class UI extends JFrame {
|
||||
for (int i = 0; i < sample.length; i++)
|
||||
customIDs[i] = Integer.parseInt(sample[i]);
|
||||
Variables.fighting_item_ids = customIDs;
|
||||
} catch (Exception err) {
|
||||
} catch (Exception ಠ_ಠ) {
|
||||
Variables.fighting_item_ids = new int[]{};
|
||||
}
|
||||
}
|
||||
@@ -435,7 +435,7 @@ public class UI extends JFrame {
|
||||
for (int i = 0; i < sample.length; i++)
|
||||
customIDs[i] = Integer.parseInt(sample[i]);
|
||||
Variables.thieving_npc_selected.setIDs(customIDs);
|
||||
} catch (Exception err) {
|
||||
} catch (Exception ಠ_ಠ) {
|
||||
ThievingNpcs.CUSTOM.setIDs(new int[]{0});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user