WoW API: GetInventoryAlertStatus

From AddOn Studio
Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetInventoryAlertStatus to API GetInventoryAlertStatus without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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");

Arguments[edit]

index
String - one of the following:
  • Head
  • Shoulders
  • Chest
  • Waist
  • Legs
  • Feet
  • Wrists
  • Hands
  • Weapon
  • Shield
  • Ranged

Returns[edit]

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[edit]

  • Used primarily for DurabilityFrame, ie the armor man placed under the Minimap when your equipment is damaged or broken.