WoW:API GetInventoryAlertStatus: Difference between revisions
Jump to navigation
Jump to search
(Updated API and comment) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} | ||
Returns one of several codes describing the "status" of an equipped item. The main use for this function is generalized durability checks. | 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"); | alertStatus = GetInventoryAlertStatus("index"); | ||
== Arguments == | |||
; index : String - one of the following: | |||
: | :* Head | ||
:* Shoulders | |||
:* Chest | |||
:* Waist | |||
:* Legs | |||
:* Feet | |||
:* Wrists | |||
:* Hands | |||
:* Weapon | |||
:* Shield | |||
:* Ranged | |||
: | |||
* | |||
== | == Returns == | ||
: | ;alertStatus : Number - 0 for normal (6 or more durability points left), 1 for yellow (5 to 1 durability points left), 2 for broken (0 durability points left). | ||
==Notes== | |||
* Used primarily for DurabilityFrame, ie the armor man placed under the Minimap when your equipment is damaged or broken. |
Revision as of 01:27, 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");
Arguments
- index
- String - one of the following:
- Head
- Shoulders
- Chest
- Waist
- Legs
- Feet
- Wrists
- Hands
- Weapon
- Shield
- Ranged
Returns
- alertStatus
- Number - 0 for normal (6 or more durability points left), 1 for yellow (5 to 1 durability points left), 2 for broken (0 durability points left).
Notes
- Used primarily for DurabilityFrame, ie the armor man placed under the Minimap when your equipment is damaged or broken.