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.
type- Name of an item class, subclass, or equip location (
isEquipped- 1 if the player has equipped any items of the given type; otherwise nil (
-- 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