WoW:API GetInventoryAlertStatus: Difference between revisions

From AddOn Studio
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, ie not under any of the other conditions.
*0 - Normal, 6 or more durability left
*1 - Temporarily enchanted. Poisons, weapon sharpeners, etc.
*1 - Durability is low, 5 to 1 durability left
*2 - Unknown.
*2 - Broken, 0 durability left
*3 - Durability is low. (Don't know exact % --Moof)  (item's durability = 5 ? --SonicXP)
*4 - Broken.


==Details==
==Details==
: Used primarily for DurabilityFrame, the little thingy that comes up on the right under the minimap when your equipment is damaged or broken.
: 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:
  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.