Returns whether any items of a given type are currently equipped. Possible arguments include the localized names of item classes (as returned from GetAuctionItemClasses; e.g. "Weapon", "Armor"), subclasses (as returned from GetAuctionItemSubClasses; e.g. "One-handed axes", "Shields", "Cloth"), and the global tokens or localized names for equip locations (as returned from GetAuctionInvTypes; e.g. "INVTYPE_WEAPONMAINHAND", "Off Hand").
See also Item functions, Inventory functions.
Signature:
isEquipped = IsEquippedItemType("type")
Arguments:
type- Name of an item class, subclass, or equip location (string)
Returns:
isEquipped- 1 if the player has equipped any items of the given type; otherwise nil (1nil)
Examples:
-- Check to see if the player currently has a shield equipped
local hasShield = IsEquippedItemType("Shields")
if hasShield then
print("You currently have a shield equipped")
else
print("You do not have a shield equipped")
end