GetContainerItemID

From Wowpedia
Revision as of 04:48, 29 February 2020 by Ddcorkum (talk | contribs) (bagId -> bagID)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.