v0.13.8

C_Item

namespaceavailable in: camelot

Status in wowlua

121 functions: 31 implemented, 1 recorded, 89 guessed. 19 events, 4 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
ActionBindsItemConfirms this will bind this item to you.
()
guessed
BindEnchantConfirms that enchanting an item will make it soulbound.
()
guessed
CanBeRefundedWhether the item can be refunded. · by wowlua
(itemLocation: ItemLocationMixin): boolean
guessed
CanItemTransmogAppearanceWhether the item's appearance can be used for transmogrification, and the reason when it cannot. · by wowlua
(itemLoc: ItemLocationMixin): (boolean, TransmogOutfitSlotError)
guessed
CanScrapItemWhether the item can be scrapped. · by wowlua
(itemLoc: ItemLocationMixin): boolean
guessed
CanViewItemPowersWhether the item's powers can be viewed. · by wowlua
(itemLoc: ItemLocationMixin): boolean
guessed
ConfirmBindOnUseConfirms binding an item that binds when used. · by wowlua
()
guessed
ConfirmDeleteItemConfirms deleting an item. · by wowlua
(itemGUID: string)
guessed
ConfirmNoRefundOnUseWhen a user purchases a refundable item from a vendor with an on-use effect (such as a toy or cosmetic) and attempts to use that item, the game will pop up a StaticPopup dialog informing the user that the item would no longer be refundable. If the user clicks the Okay button to continue using the item, this function confirms the use and dismisses the dialog.
()
guessed
ConfirmOnUseConfirms you want to use the item.
()
guessed
DeleteItemDeletes an item. · by wowlua
(itemGUID: string)
guessed
DoesItemContainSpecWhether the item is meant for the class, and for the specialization if one is given. · by wowlua
(itemInfo: ItemInfo, classID: number, specID: number): boolean
guessed
DoesItemExistWhether there is an item at the location. · by wowlua
(emptiableItemLocation: ItemLocationMixin): boolean
implemented
DoesItemExistByIDWhether the item exists. · by wowlua
(itemInfo: ItemInfo): boolean
implemented
DoesItemMatchBonusTreeReplacementWhether the item matches the current bonus tree replacement. · by wowlua
(itemLoc: ItemLocationMixin): boolean
guessed
DoesItemMatchSpellItemConditionWhether the item meets the item condition of the spell being targeted. · by wowlua
(itemLoc: ItemLocationMixin): boolean
guessed
DoesItemMatchTargetEnchantingSpellWhether the item is a valid target for the enchanting spell being cast. · by wowlua
(itemLoc: ItemLocationMixin): boolean
guessed
DoesItemMatchTrackJumpWhether the item matches the current upgrade track jump. · by wowlua
(itemLoc: ItemLocationMixin): boolean
guessed
DropItemOnUnitDrops an item from the cursor onto a unit, i.e. to initiate a trade.
(unitGUID: string)
guessed
EndBoundTradeableConfirms this will make this item non-tradeable.
(type: string)
guessed
EndRefundConfirms this will make this item non-refundable.
(type: number)
guessed
EquipItemByNameEquips an item, optionally into a specified slot.
(itemInfo: ItemInfo, dstSlot: number?)
guessed
GetAppliedItemTransmogInfoReturns the transmog appearance applied to the item. · by wowlua
(itemLoc: ItemLocationMixin): ItemTransmogInfoMixin?
guessed
GetBaseItemTransmogInfoReturns the item's own appearance, without any transmog. · by wowlua
(itemLoc: ItemLocationMixin): ItemTransmogInfoMixin?
guessed
GetCurrentItemLevelReturns the item level of the item at a location. · by wowlua
(itemLocation: ItemLocationMixin): number?
guessed
GetCurrentItemTransmogInfoReturns the appearance the item currently shows, including any transmog. · by wowlua
(itemLoc: ItemLocationMixin): ItemTransmogInfoMixin?
guessed
GetDelvePreviewItemLinkReturns the link of the item as it would drop in a delve with the given creation context. · by wowlua
(itemID: number, context: ItemCreationContext): string?
guessed
GetDelvePreviewItemQualityReturns the quality of the item as it would drop in a delve with the given creation context. · by wowlua
(itemID: number, context: ItemCreationContext): ItemQuality
guessed
GetDetailedItemLevelInfoReturns detailed item level info.
(itemInfo: ItemInfo): (number?, boolean?, number?)
guessed
GetFirstTriggeredSpellForItemReturns the ID of the first spell the item triggers at the given quality. · by wowlua
(itemID: number, itemQuality: number): number?
guessed
GetItemChildInfoReturns the IDs of the item's child items. · by wowlua
(itemInfo: ItemInfo, slotID: number?): number[]
guessed
GetItemClassInfoReturns the name of the item type.
(itemClassID: number): string
implemented
GetItemConversionOutputIconReturns the icon of the item the given item converts into. · by wowlua
(itemLoc: ItemLocationMixin): number?
guessed
GetItemCooldownReturns cooldown info for an item ID.
(itemInfo: ItemInfo): (number, number, boolean)
guessed
GetItemCountReturns the number (or available charges) of an item in the inventory.
(itemInfo: ItemInfo, includeBank: boolean, includeUses: boolean, includeReagentBank: boolean, includeAccountBank: boolean): number
implemented
GetItemCreationContextReturns the item's ID and the context it was created in. · by wowlua
(itemInfo: ItemInfo): (number, string)
guessed
GetItemFamilyReturns the bag type that an item can go into, or for bags the type of items that it can contain.
(itemInfo: ItemInfo): number?
guessed
GetItemGUIDReturns the GUID of the item at a location. · by wowlua
(itemLocation: ItemLocationMixin): string
guessed
GetItemGemReturns the name and link of a gem socketed in the item. · by wowlua
(hyperlink: string, index: number): (string?, string?)
guessed
GetItemGemIDReturns the item ID of a gem socketed in the item. · by wowlua
(itemInfo: ItemInfo, index: number): number?
guessed
GetItemIDReturns the ID of the item at a location. · by wowlua
(itemLocation: ItemLocationMixin): number
implemented
GetItemIDByGUIDReturns the ID of the item with the given GUID. · by wowlua
(itemGUID: string): number?
guessed
GetItemIDForItemInfoReturns the ID of an item given by ID, name or link, or 0 when it names no item. · by wowlua
(itemInfo: ItemInfo): number
guessed
GetItemIconReturns the icon texture for an item.
(itemLocation: ItemLocationMixin): number?
implemented
GetItemIconByIDReturns the item's icon file ID. · by wowlua
(itemInfo: ItemInfo): number?
implemented
GetItemInfoReturns info for an item.
(itemInfo: ItemInfo): (string?, string?, ItemQuality?, number?, number?, string?, string?, number?, string?, number?, number?, number?, number?, number?, number?, number?, boolean?, string?)
implemented
GetItemInfoInstantReturns readily available info for an item.
(itemInfo: ItemInfo): (number?, string?, string?, string?, number?, number?, number?)
implemented
GetItemInventorySlotInfoReturns the localized name of the equipment slot for an inventory type. · by wowlua
(inventorySlot: InventoryType): string
implemented
GetItemInventorySlotKeyReturns the global string key of the equipment slot name for an inventory type. · by wowlua
(inventorySlot: InventoryType): string
guessed
GetItemInventoryTypeReturns the inventory type of the item at a location. · by wowlua
(itemLocation: ItemLocationMixin): InventoryType?
guessed
GetItemInventoryTypeByIDReturns the item's inventory type. · by wowlua
(itemInfo: ItemInfo): InventoryType?
guessed
GetItemLearnTransmogSetReturns the ID of the transmog set the item teaches. · by wowlua
(itemInfo: ItemInfo): number?
guessed
GetItemLinkReturns the link of the item at a location. · by wowlua
(itemLocation: ItemLocationMixin): string?
implemented
GetItemLinkByGUIDReturns the link of the item with the given GUID. · by wowlua
(itemGUID: string): string?
guessed
GetItemLocationReturns the location of the item with the given GUID. · by wowlua
(itemGUID: string): ItemLocationMixin?
guessed
GetItemMaxStackSizeReturns how many of the item at a location fit in one stack. · by wowlua
(itemLocation: ItemLocationMixin): number?
guessed
GetItemMaxStackSizeByIDReturns how many of the item fit in one stack. · by wowlua
(itemInfo: ItemInfo): number?
implemented
GetItemNameReturns the name of the item at a location. · by wowlua
(itemLocation: ItemLocationMixin): string?
implemented
GetItemNameByIDReturns the item's name. · by wowlua
(itemInfo: ItemInfo): string?
implemented
GetItemNumAddedSocketsReturns the number of sockets added to the item. · by wowlua
(itemInfo: ItemInfo): number
guessed
GetItemNumSocketsReturns the number of sockets the item has. · by wowlua
(itemInfo: ItemInfo): number
guessed
GetItemQualityReturns the quality of the item at a location. · by wowlua
(itemLocation: ItemLocationMixin): ItemQuality?
implemented
GetItemQualityByIDReturns the item's quality, once its data is loaded. · by wowlua
(itemInfo: ItemInfo): ItemQuality?
implemented
GetItemQualityColorReturns the color for an item quality.
(quality: ItemQuality): (number, number, number, string)
guessed
GetItemSetInfoReturns the name of an item set. · by wowlua
(setID: number): string
guessed
GetItemSpecInfoReturns the IDs of the specializations the item is meant for. · by wowlua
(itemInfo: ItemInfo): number[]?
guessed
GetItemSpellReturns the spell effect for an item.
(itemInfo: ItemInfo): (string?, number?)
implemented
GetItemStatDeltaReturns the difference between the stats of two items. · by wowlua
(itemLink1: string, itemLink2: string): LuaValueVariant?
guessed
GetItemStatsReturns a table of stats for an item.
(itemLink: string): LuaValueVariant?
guessed
GetItemSubClassInfoReturns the name of the item subtype.
(itemClassID: number, itemSubClassID: number): (string?, boolean?)
implemented
GetItemUniquenessReturns the item's uniqueness limits. · by wowlua
(itemInfo: ItemInfo): (number?, number?)
guessed
GetItemUniquenessByIDReturns whether the item is unique, its limit category name, and its limits. · by wowlua
(itemInfo: ItemInfo): (boolean?, string?, number?, number?)
guessed
GetItemUpgradeInfoReturns the item's upgrade information. · by wowlua
(itemInfo: ItemInfo): ItemUpgradeInfo?
guessed
GetLimitedCurrencyItemInfoReturns information about a currency item with a limited quantity. · by wowlua
(itemInfo: ItemInfo): (string?, number?, number?, number?, number?)
guessed
GetSetBonusesForSpecializationByItemIDReturns the IDs of the set bonuses the item gives for a specialization. · by wowlua
(specID: number, itemID: number): number[]?
guessed
GetStackCountReturns how many items are in the stack at a location. · by wowlua
(itemLocation: ItemLocationMixin): number
implemented
GetWeaponEnchantInfoReturns the temporary enchants on a weapon slot. · by wowlua
(weaponSlot: WeaponSlot): WeaponEnchantInfo[]
recorded
IsAnimaItemByIDWhether the item is an anima item. · by wowlua
(itemInfo: ItemInfo): boolean
guessed
IsArtifactPowerItemWhether the item grants artifact power. · by wowlua
(itemInfo: ItemInfo): boolean
guessed
IsBoundWhether the item at a location is bound. · by wowlua
(itemLocation: ItemLocationMixin): boolean
implemented
IsBoundToAccountUntilEquipYou can use IsItemBindToAccountUntilEquip instead if the item is not in your inventory
(itemLocation: ItemLocationMixin): boolean
guessed
IsConsumableItemWhether the item is a consumable. · by wowlua
(itemInfo: ItemInfo): boolean
guessed
IsCorruptedItemWhether the item is corrupted. · by wowlua
(itemInfo: ItemInfo): boolean?
implemented
IsCosmeticItemWhether the item is a cosmetic item. · by wowlua
(itemInfo: ItemInfo): boolean?
implemented
IsCurioItemReturns whether the item is a consumable curio that can be applied to a delves companion.
(itemInfo: ItemInfo): boolean?
implemented
IsCurrentItemWhether the player is currently using the item, such as casting its use spell. · by wowlua
(itemInfo: ItemInfo): boolean
guessed
IsDecorItemReturns whether the item is a consumable decor item.
(itemInfo: ItemInfo): boolean?
implemented
IsDressableItemByIDReturns true if the item is an Armor or Weapon type and false for all other items (Necklace, Trinkets, Rings, Consumables, etc.).
(itemInfo: ItemInfo): boolean
guessed
IsEquippableItemReturns true if an item is equipable by the player.
(itemInfo: ItemInfo): boolean
implemented
IsEquippedItemWhether the player has the item equipped. · by wowlua
(itemInfo: ItemInfo): boolean
guessed
IsEquippedItemTypeReturns true if an item of a given type is equipped.
(type: string): boolean
guessed
IsHarmfulItemReturns whether an item can be used against hostile units.
(itemInfo: ItemInfo): boolean
guessed
IsHelpfulItemReturns whether an item can be used on the player or friendly units.
(itemInfo: ItemInfo): boolean
guessed
IsItemBindToAccountWhether the item binds to the account. · by wowlua
(itemInfo: ItemInfo): boolean
guessed
IsItemBindToAccountUntilEquipYou can use IsBoundToAccountUntilEquip instead if the item exists in your inventory
(itemInfo: ItemInfo): boolean
guessed
IsItemConduitWhether the item is a conduit. · by wowlua
(itemLoc: ItemLocationMixin): boolean
guessed
IsItemConvertibleAndValidForPlayerWhether the item can be converted and the result is valid for the player. · by wowlua
(itemLoc: ItemLocationMixin): boolean
guessed
IsItemCorruptedWhether the item is corrupted. · by wowlua
(itemLoc: ItemLocationMixin): boolean
guessed
IsItemCorruptionRelatedWhether the item is related to corruption. · by wowlua
(itemLoc: ItemLocationMixin): boolean
guessed
IsItemCorruptionResistantWhether the item resists corruption. · by wowlua
(itemLoc: ItemLocationMixin): boolean
guessed
IsItemDataCachedWhether the data of the item at a location is loaded. · by wowlua
(itemLocation: ItemLocationMixin): boolean
guessed
IsItemDataCachedByIDWhether the item's data is loaded. · by wowlua
(itemInfo: ItemInfo): boolean
implemented
IsItemGUIDInInventoryWhether the item with the given GUID is in the player's bags or equipped. · by wowlua
(itemGUID: string): boolean
guessed
IsItemInRangeReturns whether the item is in usable range of the unit.
(itemInfo: ItemInfo, targetToken: string): boolean?
guessed
IsItemKeystoneByIDWhether the item is a Mythic+ keystone. · by wowlua
(itemInfo: ItemInfo): boolean
guessed
IsItemSpecificToPlayerClassWhether the item is restricted to the player's class. · by wowlua
(itemInfo: ItemInfo): boolean
guessed
IsLockedWhether the item at a location is locked, such as while it is being moved or traded. · by wowlua
(itemLocation: ItemLocationMixin): boolean
implemented
IsRelicItemReturns whether the item is a consumable relic that can be applied to an artifact weapon.
(itemInfo: ItemInfo): boolean?
implemented
IsUsableItemReturns whether the player can use the item, and whether using it fails only for lack of mana. · by wowlua
(itemInfo: ItemInfo): (boolean, boolean)
guessed
ItemHasRangeWhether the item's use has a range. · by wowlua
(itemInfo: ItemInfo): boolean
guessed
LockItemLocks the item at a location. · by wowlua
(itemLocation: ItemLocationMixin)
implemented
LockItemByGUIDLocks the item with the given GUID. · by wowlua
(itemGUID: string)
guessed
PickupItemPuts the item on the cursor. · by wowlua
(itemInfo: ItemInfo)
guessed
ReplaceEnchantConfirms the "Replace Enchant" dialog.
()
guessed
ReplaceTradeEnchantConfirms that an enchant applied to the trade frame should replace an existing enchant.
()
guessed
ReplaceTradeskillEnchantConfirms replacing the item's existing enchant with the one being applied. · by wowlua
()
guessed
RequestLoadItemDataRequests item data and fires ITEM_DATA_LOAD_RESULT.
(itemLocation: ItemLocationMixin)
guessed
RequestLoadItemDataByIDAsks the server for the item's data, so it can be read once loaded. · by wowlua
(itemInfo: ItemInfo)
implemented
UnlockItemUnlocks the item at a location. · by wowlua
(itemLocation: ItemLocationMixin)
implemented
UnlockItemByGUIDUnlocks the item with the given GUID. · by wowlua
(itemGUID: string)
guessed
UseItemByNameUses the specified item.
(itemInfo: ItemInfo, target: string?)
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
ACTION_WILL_BIND_ITEMno payloadnot implemented
BIND_ENCHANTno payloadnot implemented
CHARACTER_ITEM_FIXUP_NOTIFICATIONfixupVersion: numbernot implemented
CONFIRM_BEFORE_USEno payloadnot implemented
CONVERT_TO_BIND_TO_ACCOUNT_CONFIRMno payloadnot implemented
DELETE_ITEM_CONFIRMitemName: string, qualityID: number, bonding: number, questWarn: number, itemGUID: string?implemented
END_BOUND_TRADEABLEreason: stringnot implemented
GET_ITEM_INFO_RECEIVEDitemID: number, success: booleanimplemented
ITEM_CHANGEDpreviousHyperlink: string, newHyperlink: stringnot implemented
ITEM_CONVERSION_DATA_READYitemGUID: stringnot implemented
ITEM_COUNT_CHANGEDitemID: numberimplemented
ITEM_DATA_LOAD_RESULTitemID: number, success: booleanimplemented
MERCHANT_CONFIRM_TRADE_TIMER_REMOVALitemLink: stringnot implemented
REPLACE_ENCHANTexistingStr: string, replacementStr: stringnot implemented
REPLACE_TRADESKILL_ENCHANTexisting: string, replacement: stringnot implemented
TRADE_REPLACE_ENCHANTexisting: string, replacement: stringnot implemented
USE_BIND_CONFIRMno payloadnot implemented
USE_NO_REFUND_CONFIRMno payloadnot implemented
WEAPON_ENCHANT_CHANGEDno payloadnot implemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("ACTION_WILL_BIND_ITEM").

Structures

  • ItemInfoResult · itemName, itemLink, itemQuality, itemLevel, itemMinLevel, itemType, itemSubType, itemStackCount, itemEquipLoc, itemTexture, sellPrice, classID, subclassID, bindType, expansionID, setID?, isCraftingReagent, itemDescription
  • ItemUpgradeInfo · currentLevel, maxLevel, maxItemLevel, trackString?, trackStringID?
  • WeaponEnchantInfo · hasEnchant, enchantType, timeLeft, charges, enchantID, enchantIconID

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Item system, camelot 1.60.1). Descriptions: Blizzard's API documentation (Blizzard_APIDocumentationGenerated); warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.