WoW:API GetInventoryAlertStatus: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Updated API and comment) |
||
Line 22: | Line 22: | ||
=== Returns === | === Returns === | ||
:alertStatus: One of the following: | :alertStatus: One of the following: | ||
*0 - Normal, | *0 - Normal, 6 or more durability left | ||
*1 | *1 - Durability is low, 5 to 1 durability left | ||
*2 - Broken, 0 durability left | |||
* | |||
==Details== | ==Details== | ||
: Used primarily for DurabilityFrame, the | : Used primarily for DurabilityFrame, ie the armor man placed under the Minimap when your equipment is damaged or broken. | ||
---- | ---- | ||
__NOTOC__ | __NOTOC__ |
Revision as of 00:44, 25 February 2010
← WoW API < GetInventoryAlertStatus
Returns one of several codes describing the "status" of an equipped item. The main use for this function is generalized durability checks.
alertStatus = GetInventoryAlertStatus("index");
Parameters
Arguments
- index is one of the following:
- Head
- Shoulders
- Chest
- Waist
- Legs
- Feet
- Wrists
- Hands
- Weapon
- Shield
- Ranged
Returns
- alertStatus: One of the following:
- 0 - Normal, 6 or more durability left
- 1 - Durability is low, 5 to 1 durability left
- 2 - Broken, 0 durability left
Details
- Used primarily for DurabilityFrame, ie the armor man placed under the Minimap when your equipment is damaged or broken.