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)

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.