AddOn Stud… Editing (section) World of Warcraft API 0 You are not logged in. The rich text editor does not work with JavaScript switched off. Please either enable it in your browser options, or visit your preferences to switch to the old MediaWiki editor === 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. Loading editor Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above. Insert: – — … ° ≈ ≠ ≤ ≥ ± − × ÷ ← → · § Sign your username: ~~~~ Wiki markup: {{}} | [] [[]] [[Category:]] #REDIRECT [[]] <s></s> <sup></sup> <sub></sub> <code></code> <blockquote></blockquote> <ref></ref> {{Reflist}} <references/> <includeonly></includeonly> <noinclude></noinclude> {{DEFAULTSORT:}} <nowiki></nowiki> <!-- --> <span class="plainlinks"></span> Symbols: ~ | ¡ ¿ † ‡ ↔ ↑ ↓ • ¶ # ¹ ² ³ ½ ⅓ ⅔ ¼ ¾ ⅛ ⅜ ⅝ ⅞ ∞ ‘ “ ’ ” «» ¤ ₳ ฿ ₵ ¢ ₡ ₢ $ ₫ ₯ € ₠ ₣ ƒ ₴ ₭ ₤ ℳ ₥ ₦ № ₧ ₰ £ ៛ ₨ ₪ ৳ ₮ ₩ ¥ ♠ ♣ ♥ ♦ View this template This field is a spam trap. DO NOT fill it in! Edit summary Preview Mobile Desktop Show changes