Talk:API GetContainerItemInfo
98,472pages on
this wiki
this wiki
Back to page
Simple question or two
Edit
What's the value of ItemCount when the slot is empty? Is it nil or "nil" or 0? Is this the only way to tell if the slot is empty? -Seldemer
- For an empty slot, count is
nil. - For a simple boolean for that slot, I believe so. For a larger collection of empty slots, you might want to check
slotTable = GetContainerFreeSlots(container [, returnTable]). Have a look at the doc on wowprogramming: http://wowprogramming.com/docs/api/GetContainerFreeSlots
- For an empty slot, count is
- --BryghtShadow (talk) 18:39, January 14, 2011 (UTC)
Extra return values in 4.0.3a
Edit
This seems to be the current API (http://wowprogramming.com/forums/book/157):
texture, count, locked, quality, readable, lootable, link = GetContainerItemInfo(bag, slot)
The quality 'problem' mentioned in our article and on wowprogramming (where special items return -1 instead of their quality) is easily worked around with extra code. The last value returns an itemlink, which we can use to determine quality. --BryghtShadow (talk) 18:18, January 14, 2011 (UTC)