Navigation menu

WoW:API UseContainerItem: Difference between revisions

Jump to navigation Jump to search
m
Move page script moved page API UseContainerItem to WoW:API UseContainerItem without leaving a redirect
(Redid page to follow the BoilerPlate, added onSelf, added more slot info)
m (Move page script moved page API UseContainerItem to WoW:API UseContainerItem without leaving a redirect)
 
(10 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}} __NOTOC__
{{protectedapi|2.0|Use the "/use" macro command, or type, item secure attributes}}


Use an item from a container. If Merchant window is open, this will sell the item.
Use an item from a container. If Merchant window is open, this will sell the item.  Triggered when an item is Right Clicked.


  UseContainerItem(bagId, slot [, onSelf])
  UseContainerItem(bagId, slot [, onSelf])
Line 22: Line 23:
==Details==
==Details==
:Slots in the bags are listed from left to right, top to bottom.  
:Slots in the bags are listed from left to right, top to bottom.  
:A 16 slot bag have the following slot numbers:
:A 16 slot bag has the following slot numbers:
::{| ! style="width: 150px; text-align: right; border: 1px solid white"
::{| ! style="width: 150px; text-align: right; border: 1px solid white"
|-
|-
Line 35: Line 36:




:An 18 slot bag have the following slot numbers:
:An 18 slot bag has the following slot numbers:
::{| ! style="width: 150px; text-align: right; border: 1px solid white"
::{| ! style="width: 150px; text-align: right; border: 1px solid white"
|-
|-
Line 48: Line 49:
| 15 || 16 || 17 || 18
| 15 || 16 || 17 || 18
|}
|}
==Protection Notes==
This function is protected except for the following:
* When the (Guild) Bank is open: Move the item to/from the (Guild) Bank.
* When the Merchant frame is open: Sell the item.
* When the Mail frame is open and on the "Send Mail" tab: Add the item to the attachments.
* When the item is equippable: Equip the item.
* When the slot is empty: Do nothing.
* When the item is a locked Lockbox: Show an error message that says it's locked.
* When the item is a container (Clam Shell, Unlocked Lockbox, etc.): Open the Loot frame and show the contents.
* When the item is a book: Open the book's Gossip frame for reading.
* When the item is not a usable item: Do nothing.
* When the item starts a quest: Open the quest Gossip frame for reading.
* When the Trade frame is open: Add the item to the list of items to be traded. (I have not confirmed this)
* When the Auctions tab is open: Add item for auction pricing and submission.
Anonymous user