Fandom

WoWWiki

API IsEquippedItemType

104,631pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < IsEquippedItemType


Determines if an item of a given type is equipped.

isEquipped = IsEquippedItemType("type")


Arguments Edit

("type")
type 
String (ItemType) - any valid inventory type, item class, or item subclass


Returns Edit

isEqupped 
Boolean - is an item of the given type equipped


Example Edit

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.

Also on Fandom

Random Wiki