Wikia

WoWWiki

Watchlist Recent changes

API IsEquippedItemType

Main Menue




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.

Pages on WoWWiki

95,750pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
58,025photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki