WoW API: GetInventoryAlertStatus

From AddOn Studio
Revision as of 00:44, 25 February 2010 by WoWWiki>P3lim (Updated API and comment)
Jump to navigation Jump to search

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:
  1. Head
  2. Shoulders
  3. Chest
  4. Waist
  5. Legs
  6. Feet
  7. Wrists
  8. Hands
  9. Weapon
  10. Shield
  11. 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.