53 public static Item[] JUNK = {
60 public static int RUNES_AND_AMMUNITION[] = {
64 public static int BARROWS[] = {4708, 4710, 4712, 4714, 4708, 4710, 4712, 4714, 4716, 4718, 4720,
65 4722, 4724, 4718, 4720,
66 4722, 4724, 4718, 4720,
67 4722, 4724, 4726, 4728, 4730, 4732, 4734, 4736, 4738, 4745, 4747,
68 4749, 4751, 4753, 4755, 4757, 4759};
70 public static final int[][] BROKEN_BARROWS = {
71 {4708, 4860}, {4710, 4866},
72 {4712, 4872}, {4714, 4878}, {4716, 4884}, {4720, 4896},
73 {4718, 4890}, {4720, 4896}, {4722, 4902}, {4732, 4932},
74 {4734, 4938}, {4736, 4944}, {4738, 4950}, {4724, 4908},
75 {4726, 4914}, {4728, 4920}, {4730, 4926}, {4745, 4956},
76 {4747, 4926}, {4749, 4968}, {4751, 4994}, {4753, 4980},
77 {4755, 4986}, {4757, 4992}, {4759, 4998}};
80 public static boolean teleportPlayer(
Player player) {
82 if (player.
getPosition().inLocation(brother.getSouthWest(), brother.getNorthEast(),
true)) {
83 player.
move(brother.getCryptPosition());
84 player.send(
new SendMessage(
"You dig a hole and fall into " + brother.name().toLowerCase() +
"s crypt!"));
92 List<BrotherData> brother =
new ArrayList<>();
93 for (
int i = 0; i < player.barrowKills.length; i++) {
94 if (!player.barrowKills[i]) {
101 static void generateRewards(
Player player) {
102 Set<Item> rewards =
new HashSet<>();
103 Item[] rewardDisplay =
new Item[5];
108 if (junk.getId() == 995) {
109 junk.setAmount(
Utility.random(5000, 25000));
114 if (runes.getId() == runes2.getId()) {
115 runes.setAmount(runes.getAmount() + runes2.getAmount());
122 if (
Utility.random(100) >= 90) {
129 for (Item item : rewards) {
130 value += item.getValue() * item.getAmount();
131 rewardDisplay[count] = item;
139 rewards.forEach(player.inventory::addOrDrop);
140 player.interfaceManager.
open(33300);
static void activate(Player player, AchievementKey achievement)