44 static final int[][] ARMOUR = {{1155, 1117, 1075}, {1153, 1115, 1067}, {1157, 1119, 1069}, {1165, 1125, 1077}, {1159, 1121, 1071}, {1161, 1123, 1073}, {1163, 1127, 1079}};
47 private static final int[] DEFENDER =
new int[]{8844, 8845, 8846, 8847, 8848, 8849, 8850, 12954};
50 static final int[] ANIMATED = {2450, 2451, 2452, 2453, 2454, 2455, 2456};
53 public static final int[]
CYCLOPS = {2463, 2464, 2465, 2466, 2467, 2468};
56 static int getDefenderIndex(
Player player) {
58 for (
int index = 0; index < DEFENDER.length; index++) {
59 if (player.inventory.
contains(DEFENDER[index]) || player.equipment.contains(DEFENDER[index]))
68 for (
int i = 0; i < DEFENDER.length; i++) {
69 if (player.inventory.
contains(DEFENDER[i]) || player.equipment.contains(DEFENDER[i]))
74 return DEFENDER[foundIndex];
80 for (
int index = 0; index < ARMOUR.length; index++) {
81 for (
int j = 0; j < ARMOUR[index].length; j++) {
82 if (itemId == ARMOUR[index][j]) {
84 for (
int k = 0; k < ARMOUR[index].length; k++) {
85 if (!player.inventory.
contains(ARMOUR[index][k])) {
86 player.send(
new SendMessage(
"You need a complete armour set to do this!"));
static int getDefender(Player player)
static int contains(Player player, int itemId)