This commit is contained in:
RedSparr0w
2019-10-21 13:44:45 +13:00
parent 16846e62d1
commit c1abc5f312
5 changed files with 24 additions and 14 deletions
@@ -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;
}
}
+3 -3
View File
@@ -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});
}
}