WoW API: GetContainerItemID

From AddOn Studio
Revision as of 22:57, 26 March 2010 by WoWWiki>Starlightblunder (Created page with '{{wowapi}} Returns the item id of the item in a particular container slot. itemId = GetContainerItemID(bag, slot); == Arguments == ; bag : Number (BagId) - Index of the bag…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetContainerItemID

Returns the item id of the item in a particular container slot.

itemId = GetContainerItemID(bag, slot);

Arguments

bag
Number (BagId) - Index of the bag to query.
slot
Number - Index of the slot within the bag to query; ascending from 1.

Returns

itemId
Number - item ID of the item held in the container slot, nil if there is no item in the container slot.