Wikia

WoWWiki

API IsEquippedItemType

Talk0
98,518pages on
this wiki
Revision as of 16:10, June 15, 2007 by Ravas (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)


Determines if an item of a given type is equipped.

isEquipped = IsEquippedItemType("type")


Arguments

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


Returns

isEqupped 
Boolean - is an item of the given type equipped


Example

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.

Advertisement | Your ad here

Photos

Add a Photo
62,044photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki