WoW:API GetContainerItemID: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(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…')
 
m (Move page script moved page API GetContainerItemID to API GetContainerItemID without leaving a redirect)
 
(No difference)

Latest revision as of 04:45, 15 August 2023

WoW API < GetContainerItemID

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

itemId = GetContainerItemID(bag, slot);

Arguments[edit]

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

Returns[edit]

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