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 === Container / Bag === These functions manage containers, bags, backpacks. See also [[#Inventory]] and [[#Bank]] sections. :{{id|API|ContainerIDToInventoryID}}([[bagId|bagID]]) :{{id|API|GetBagName}}([[bagId|bagID]]) - Get the name of one of the player's bags. :{{id|API|GetContainerItemCooldown}}([[bagId|bagID]], slot) :{{id|API|GetContainerItemDurability}}(bag, slot) - Get current and maximum durability of an item in the character's bags. :{{id|API|GetContainerItemGems}}(bag, slot) - Returns item IDs of gems inserted into the item in a specified container slot. :{{id|API|GetContainerItemID}}(bag, slot) - Returns the item ID of the item in a particular container slot. :{{id|API|GetContainerItemInfo}}([[bagId|bagID]], slot) - Get the info for an item in one of the player's bags. :{{id|API|GetContainerItemLink}}([[bagId|bagID]], slot) - Returns the [[itemLink]] of the item located in bag#, slot#. :{{id|API|GetContainerNumSlots}}([[bagId|bagID]]) - Returns the total number of slots in the bag specified by the index. :{{id|API|GetContainerItemQuestInfo}}(bag, slot) - Returns information about quest and quest-starting items in your bags. (added 3.3.3) :{{id|API|GetContainerNumFreeSlots}}([[bagId|bagID]]) - Returns the number of free slots and type of slots in the bag specified by the index. (added 2.4) :{{id|API|HasKey}}() - Returns 1 if the player has a keyring, nil otherwise. :UI {{id|API|OpenAllBags}}() - Open all bags :UI {{id|API|CloseAllBags}}() - Close all bags :{{id|API|PickupBagFromSlot}}(slot) - Picks up the bag from the specified slot, placing it in the cursor. :{{id|API|PickupContainerItem}}([[bagId|bagID]],slot) :{{id|API|PutItemInBackpack}}() - attempts to place item in backpack (bag slot 0). :{{id|API|PutItemInBag}}(inventoryId) - attempts to place item in a specific bag. :UI {{id|API|PutKeyInKeyRing}}() - attempts to place item in your keyring. :{{id|API|SplitContainerItem}}([[bagId|bagID]],slot,amount) :UI {{id|API|ToggleBackpack}}() - Toggles your backpack open/closed. :UI {{id|API|ToggleBag}}([[bagId|bagID]]) - Opens or closes the specified bag. :PROTECTED {{id|API|UseContainerItem}}([[bagId|bagID]], slot[, onSelf]) - Uses an item located in bag# and slot#. Warning: If a vendor window is open, using items in your pack may sell them - 'onSelf'! Protected situationally? (added 1.12) 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