多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 这些函数管理您的库存,特别是装备物品。 [BankButtonIDToInvSlotID](https://wow.gamepedia.com/API_BankButtonIDToInvSlotID "API BankButtonIDToInvSlotID")(buttonID, isBag) - Returns the ID number of a bank button or bag in terms of inventory slot ID. [CancelPendingEquip](https://wow.gamepedia.com/API_CancelPendingEquip "API CancelPendingEquip")(index) - This function is used to cancel a pending equip. PROTECTED[ConfirmBindOnUse](https://wow.gamepedia.com/API_ConfirmBindOnUse "API ConfirmBindOnUse")() PROTECTED[ConfirmNoRefundOnUse](https://wow.gamepedia.com/index.php?title=API_ConfirmNoRefundOnUse&action=edit&redlink=1 "API ConfirmNoRefundOnUse (page does not exist)")() [ContainerIDToInventoryID](https://wow.gamepedia.com/API_ContainerIDToInventoryID "API ContainerIDToInventoryID")([bagID](https://wow.gamepedia.com/BagID "BagID")) [EquipPendingItem](https://wow.gamepedia.com/API_EquipPendingItem "API EquipPendingItem")([invSlot](https://wow.gamepedia.com/InventorySlotId "InventorySlotId")) - Equips the currently pending Bind-on-Equip or Bind-on-Pickup item from the specified inventory slot. (Internal — do not use.) [GetAverageItemLevel](https://wow.gamepedia.com/API_GetAverageItemLevel "API GetAverageItemLevel")() - Returns the character's current average iLevel and current average iLevel equipped. [GetInventoryAlertStatus](https://wow.gamepedia.com/API_GetInventoryAlertStatus "API GetInventoryAlertStatus")(index) - Returns one of several codes describing the "status" of an equipped item. [GetInventoryItemBroken](https://wow.gamepedia.com/API_GetInventoryItemBroken "API GetInventoryItemBroken")("unit", invSlot) - Determine if an inventory item is broken (no durability). [GetInventoryItemCooldown](https://wow.gamepedia.com/API_GetInventoryItemCooldown "API GetInventoryItemCooldown")("unit", invSlot) - Get cooldown information for an inventory item. [GetInventoryItemCount](https://wow.gamepedia.com/API_GetInventoryItemCount "API GetInventoryItemCount")("unit", invSlot) - Determine the quantity of an item in an inventory slot. [GetInventoryItemDurability](https://wow.gamepedia.com/API_GetInventoryItemDurability "API GetInventoryItemDurability")([invSlot](https://wow.gamepedia.com/InventorySlotId "InventorySlotId")) - Returns the maximum and remaining durability points for an inventory item. [GetInventoryItemID](https://wow.gamepedia.com/API_GetInventoryItemID "API GetInventoryItemID")("unit", invSlot) - Returns the item id of the item in the specified inventory slot. [GetInventoryItemLink](https://wow.gamepedia.com/API_GetInventoryItemLink "API GetInventoryItemLink")("unit", invSlot) - Returns an[itemLink](https://wow.gamepedia.com/ItemLink "ItemLink")for an inventory (equipped) item. [GetInventoryItemQuality](https://wow.gamepedia.com/API_GetInventoryItemQuality "API GetInventoryItemQuality")("unit", invSlot) - Returns the quality of an inventory item. [GetInventoryItemTexture](https://wow.gamepedia.com/API_GetInventoryItemTexture "API GetInventoryItemTexture")("unit", invSlot) - Returns the texture for an inventory item. [GetInventorySlotInfo](https://wow.gamepedia.com/API_GetInventorySlotInfo "API GetInventorySlotInfo")([invSlotName](https://wow.gamepedia.com/InventorySlotName "InventorySlotName")) - Get the info for a named inventory slot (slot ID and texture) [HasWandEquipped](https://wow.gamepedia.com/API_HasWandEquipped "API HasWandEquipped")() - Returns 1 if a wand is equipped, false otherwise. [IsInventoryItemLocked](https://wow.gamepedia.com/API_IsInventoryItemLocked "API IsInventoryItemLocked")(id) - Returns whether an inventory item is locked, usually as it awaits pending action. [SetInventoryPortraitTexture](https://wow.gamepedia.com/index.php?title=API_SetInventoryPortraitTexture&action=edit&redlink=1 "API SetInventoryPortraitTexture (page does not exist)")(texture, unit, slot) [UpdateInventoryAlertStatus](https://wow.gamepedia.com/index.php?title=API_UpdateInventoryAlertStatus&action=edit&redlink=1 "API UpdateInventoryAlertStatus (page does not exist)")() PROTECTED[UseInventoryItem](https://wow.gamepedia.com/API_UseInventoryItem "API UseInventoryItem")([invSlot](https://wow.gamepedia.com/InventorySlotId "InventorySlotId")) - Use an item in a specific inventory slot.