Wikia

WoWWiki

Changes: API GetContainerItemDurability

Edit

Back to page

(Created page with '{{wowapi}} Returns current and maximum durability of an equipped item. current, maximum = GetContainerItemDurability(bag, slot); == Arguments == ; bag : Number - [[BagID|Index …')
 
 
Line 1: Line 1:
 
{{wowapi}}
 
{{wowapi}}
Returns current and maximum durability of an equipped item.
+
Returns current and maximum durability of an item in the character's bags.
 
current, maximum = GetContainerItemDurability(bag, slot);
 
current, maximum = GetContainerItemDurability(bag, slot);
   

Latest revision as of 11:25, March 16, 2010

WoW API < GetContainerItemDurability

Returns current and maximum durability of an item in the character's bags.

current, maximum = GetContainerItemDurability(bag, slot);

Arguments Edit

bag 
Number - Index of the bag slot the bag storing the item is in.
slot 
Number - Index of the bag slot containing the item to query durability of.

Returns Edit

current 
Number - current durability value.
maximum 
Number - maximum durability value.

See also Edit

Around Wikia's network

Random Wiki