Originally Posted by
Makar
Search for the "isRanging" method in there and it's either a massive block of else-if checks or a massive switch statement. Just add Hexhunter bow in the same way all the other bows are added.
This right here?
Code:
public static final int isRanging(Player player) {
int weaponId = player.getEquipment().getWeaponId();
if (weaponId == -1)
return 0;
String name = ItemDefinitions.getItemDefinitions(weaponId).getName();
if (name != null) { // those dont need arrows
if (name.contains("knife") || name.contains("dart")
|| name.contains("javelin") || name.contains("thrownaxe")
|| name.contains("throwing axe")
|| name.contains("crystal bow")
|| name.equalsIgnoreCase("zaryte bow")
|| name.contains("chinchompa") || name.contains("hexhunter bow") || name.contains("Bolas"))
return 2;
}