Lore archive · Warcraft Wiki, 2023 dump
API IsEquippedItemType
Last wiki revision 2023-08-13
Returns true if an item of a given type is equipped. isEquipped = IsEquippedItemType(type)
- type: (ItemType) - any valid inventory type, item class, or item subclass
- isEquipped: - is an item of the given type equipped
if IsEquippedItemType("Shields") then DEFAULT_CHAT_FRAME:AddMessage("I have a shield") end
Result
Outputs "I have a shield" to the default chat window if the player has a shield equipped.
Source
https://warcraft.wiki.gg/wiki/API_IsEquippedItemType · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.