isEquipable
isEquipable: (ItemStats) -> booleanWhether the item can be worn.
ItemStats.new(…)
itemManager:getItemStats(…)| Method | Returns | Description |
|---|---|---|
isEquipable() | boolean | Whether the item can be worn. |
getWeight() | number | The weight in kilograms (0 when the client has not loaded the item). |
getGeLimit() | number | The Grand Exchange buy limit (0 when unknown). |
getEquipment() | ItemEquipmentStats? | The equipment bonuses, or nil for an item that is not worn. |
new(boolean, number, number, ItemEquipmentStats?) | ItemStats | ItemStats.new(equipable, weight, geLimit, equipment). |
| Method | Returns | Description |
|---|---|---|
ItemManager.getItemStats | ItemStats? | The item's stats, or nil for a noted item or one with no known stats: equipable, weight (kg), buy limit and equipment bonuses, of its can… |
ItemStatsClass.new | ItemStats | ItemStats.new(equipable, weight, geLimit, equipment). |
isEquipableisEquipable: (ItemStats) -> booleanWhether the item can be worn.
getWeightgetWeight: (ItemStats) -> numberThe weight in kilograms (0 when the client has not loaded the item).
getGeLimitgetGeLimit: (ItemStats) -> numberThe Grand Exchange buy limit (0 when unknown).
getEquipmentgetEquipment: (ItemStats) -> ItemEquipmentStats?The equipment bonuses, or nil for an item that is not worn.
newnew: (boolean, number, number, ItemEquipmentStats?) -> ItemStatsItemStats.new(equipable, weight, geLimit, equipment).