Originally Posted by
arch337
Check your items array and see if it goes beyond 15k.
heres my ItemDefinitions
Code:
public class ItemDefinitions {
public static final ItemDefinitions[] ITEM_DEFINITIONS = new ItemDefinitions[19687];
private final int id;
private final String name;
private final String examine;
private final double lowAlch;
private final double highAlch;
private final double storePrice;
private final double specialPrice;
private final boolean noteable;
private final boolean noted;
private final int unnotedId;
private final int equipSlot;
private final double weight;
private final boolean twoHanded;
private final boolean fullHelm;
private final boolean stackable;
private final boolean platebody;
private final boolean tradable;
private final int[] bonus;
final boolean wearable;
public ItemDefinitions(int id, String name, String examine, double lowAlch, double highAlch,
double storePrice, double specialPrice, boolean noteable, boolean noted, int unnotedId, int equipSlot,
double weight, boolean twoHanded, boolean fullHelm, boolean stackable,
boolean platebody, boolean tradable, int[] bonus) {
this.id = id;
this.name = name;
this.examine = examine;
this.lowAlch = lowAlch;
this.highAlch = highAlch;
this.storePrice = storePrice;
this.specialPrice = specialPrice;
this.noteable = noteable;
this.noted = noted;
this.unnotedId = unnotedId;
this.equipSlot = equipSlot;
this.weight = weight;
this.twoHanded = twoHanded;
this.fullHelm = fullHelm;
this.stackable = stackable;
this.platebody = platebody;
this.tradable = tradable;
this.bonus = bonus;
wearable = equipSlot != -1;
}
public static ItemDefinitions forId(int id) {
return ITEM_DEFINITIONS[id];
}
/**
* @return the id
*/
public int getId() {
return id;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @return the examine
*/
public String getExamine() {
return examine;
}
/**
* @return the lowAlch
*/
public double getLowAlch() {
return lowAlch;
}
/**
* @return the highAlch
*/
public double getHighAlch() {
return highAlch;
}
/**
* @return the storePrice
*/
public double getStorePrice() {
return storePrice;
}
/**
* @return the specialPrice
*/
public double getSpecialPrice() {
return specialPrice;
}
/**
* @return the noteable
*/
public boolean isNoteable() {
return noteable;
}
/**
* @return the equipSlot
*/
public int getEquipSlot() {
return equipSlot;
}
/**
* @return the weight
*/
public double getWeight() {
return weight;
}
/**
* @return the twoHanded
*/
public boolean isTwoHanded() {
return twoHanded;
}
/**
* @return the fullHelm
*/
public boolean isFullHelm() {
return fullHelm;
}
/**
* @return the stackable
*/
public boolean isStackable() {
return stackable;
}
/**
* @return the platebody
*/
public boolean isPlatebody() {
return platebody;
}
/**
* @return the tradable
*/
public boolean isTradable() {
return tradable;
}
/**
* @return the bonus
*/
public int[] getBonus() {
return bonus;
}
/**
* @return the noted
*/
public boolean isNoted() {
return noted;
}
/**
* @return the unnotedId
*/
public int getUnnotedId() {
return unnotedId;
}
public boolean isWeapon() {
return equipSlot == 3;
}
public boolean isWearable() {
return wearable;
}
}