Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:World of Warcraft API
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Inventory === These functions manage your inventory, that is 'equipped items'. See also the [[#Container / Bag]] and [[#Bank]] sections. :{{id|API|AutoEquipCursorItem}}() - Causes the equipment on the cursor to be equipped. :{{id|API|BankButtonIDToInvSlotID}}(buttonID, isBag) - Returns the ID number of a bank button or bag in terms of inventory slot ID. :{{id|API|CancelPendingEquip}}(index) - This function is used to cancel a pending equip. :{{id|API|ConfirmBindOnUse}}() :{{id|API|ContainerIDToInventoryID}}([[bagId|bagID]]) :{{id|API|CursorCanGoInSlot}}([[inventorySlotId|invSlot]]) - Return true if the item currently held by the cursor can go into the given inventory (equipment) slot :{{id|API|EquipCursorItem}}([[inventorySlotId|invSlot]]) :{{id|API|EquipPendingItem}}([[inventorySlotId|invSlot]]) - Equips the currently pending Bind-on-Equip or Bind-on-Pickup item from the specified inventory slot. (Internal - do not use.) :{{id|API|GetInventoryAlertStatus}}(index) - Returns one of several codes describing the "status" of an equipped item. :{{id|API|GetInventoryItemBroken}}("[[unitId|unit]]",[[inventorySlotId|invSlot]]) - Determine if an inventory item is broken (no durability). :{{id|API|GetInventoryItemCooldown}}("[[unitId|unit]]",[[inventorySlotId|invSlot]]) - Get cooldown information for an inventory item. :{{id|API|GetInventoryItemCount}}("[[unitId|unit]]",[[inventorySlotId|invSlot]]) - Determine the quantity of an item in an inventory slot. :{{id|API|GetInventoryItemDurability}}([[inventorySlotId|invSlot]]) - Returns the maximum and remaining durability points for an inventory item. :{{id|API|GetInventoryItemGems}}(invSlot) - Returns item ids of the gems socketed in the item in the specified inventory slot. :{{id|API|GetInventoryItemID}}("unit", invSlot) - Returns the item id of the item in the specified inventory slot. :{{id|API|GetInventoryItemLink}}("[[unitId|unit]]",[[inventorySlotId|slotId]]) - Returns an [[itemLink]] for an inventory (equipped) item. :{{id|API|GetInventoryItemQuality}}("[[unitId|unit]]",[[inventorySlotId|invSlot]]) - Return the quality of an inventory item. :{{id|API|GetInventoryItemTexture}}("[[unitId|unit]]",[[inventorySlotId|invSlot]]) - Return the texture for an inventory item. :{{id|API|GetInventorySlotInfo}}([[inventorySlotName|invSlotName]]) - Get the info for a named inventory slot (slot ID and texture) :{{id|API|GetWeaponEnchantInfo}}() - Return information about main and offhand weapon enchantments. :{{id|API|HasWandEquipped}}() - Returns 1 if a wand is equipped, false otherwise. :{{id|API|IsInventoryItemLocked}}(id) - Returns whether an inventory item is locked, usually as it awaits pending action. :{{id|API|KeyRingButtonIDToInvSlotID}}(buttonID) - Map a keyring button to an inventory slot button for use in inventory functions. :{{id|API|PickupBagFromSlot}}(slot) - Picks up the bag from the specified slot, placing it in the cursor. If an item is already picked up, this places the item into the specified slot, swapping the items if needed. :{{id|API|PickupInventoryItem}}([[inventorySlotId|invSlot]]) - "Picks up" an item from the player's worn inventory. :{{id|API|UpdateInventoryAlertStatus}}() :PROTECTED {{id|API|UseInventoryItem}}([[inventorySlotId|invSlot]]) - Use an item in a specific inventory slot.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)