I'm sure I am just missing something completely silly, but I have tried multiple things to make the items go within the correct slots. I'm having difficulty with weapon items and wanting to go into the helmet spot, but I have them hard coded to not.
ItemAssistant.java within the
boolean wearItem();
Code:
switch (wearID) {
case 13739:
case 13741:
case 13743:
case 13745:
case 13735:
case 13662:
targetSlot = 5;
break;
}
Item.java within the
boolean playerShield();
Code:
public static boolean playerShield(int itemId) {
String[] data = { "kiteshield", "book", "Kiteshield", "shield",
"Shield", "Kite", "kite", "Arcane", "Elysian", "Divine",
"Spectral", "Spirit Shield"};
String item = getItemName(itemId);
if (item == null) {
return false;
}
boolean item1 = false;
for (int i = 0; i < data.length; i++) {
if (item.endsWith(data[i]) || item.contains(data[i])) {
item1 = true;
}
}
return item1;
}