Returns the durability warning status of an equipped item. Looking up the status returned by this function in the INVENTORY_ALERT_COLORS
table provides color values, used in the default UI to highlight parts of the DurabiltyFrame (i.e. the "armored man" image) that appears when durability is low.
See also Inventory functions.
Signature:
status
=
GetInventoryAlertStatus(slot)
Arguments:
slot
- An inventory slot number, as can be obtained fromGetInventorySlotInfo
(number
, inventoryID)
Returns:
status
- Alert status for the item in the given slot (number
)0
- No alert; the slot is empty, contains an item whose durability is above critical levels, or contains an item without a durability value1
- The item's durability is dangerously low2
- The item's durability is at zero (the item is broken)