Talk:API GetContainerItemInfo

Back to page

104,546pages on
this wiki
Add New Page
Add New 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

  1. For an empty slot, count is nil.
  2. 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:
--BryghtShadow (talk) 18:39, January 14, 2011 (UTC)

Extra return values in 4.0.3a Edit

This seems to be the current API (

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)

Also on Fandom

Random Wiki