WoW:API GetInventoryItemBroken: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API GetInventoryItemBroken to API GetInventoryItemBroken without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<center>'''GetInventoryItemBroken''' - ''Documentation by [[User:Flickering|Flickering]]''</center>
{{wowapi}}


Determine if an inventory item is broken (no durability)
Determine if an inventory item is broken (no durability)
Line 9: Line 9:


:;unit : String - The [[API TYPE UnitId|UnitId]] of the unit whose inventory is to be queried.
:;unit : String - The [[API TYPE UnitId|UnitId]] of the unit whose inventory is to be queried.
:;slotId : Numeric - The inventory slot to be queried, obtained via [[API GetInventorySlotInfo|GetInventorySlotInfo]].
:;slotId : Numeric - The [[API TYPE InventorySlotID|inventory slot]] to be queried, obtained via [[API GetInventorySlotInfo|GetInventorySlotInfo]].
 
=== Returns ===
=== Returns ===
:isBroken
:isBroken
Line 16: Line 17:
----
----
__NOTOC__
__NOTOC__
{{Template:WoW API}}
[[Category:API Functions|GetInventoryItemBroken]]
[[Category:API Inventory Functions|GetInventoryItemBroken]]

Latest revision as of 04:46, 15 August 2023

WoW API < GetInventoryItemBroken

Determine if an inventory item is broken (no durability)

isBroken = GetInventoryItemBroken("unit", slotId)

Parameters[edit]

Arguments[edit]

("unit", slotId)
unit
String - The UnitId of the unit whose inventory is to be queried.
slotId
Numeric - The inventory slot to be queried, obtained via GetInventorySlotInfo.

Returns[edit]

isBroken
isBroken
Flag - Returns nil if the specified item is not broken, or 1 if it is.