v0.13.8

GetInventoryItemCount

functionimplementedavailable in: camelot

Determine the quantity of an item in an inventory slot.

The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.

Parameters

nametypedescription
unitstringUnitId - The unit whose inventory is to be queried.
invSlotIdnumberInventorySlotId - to be queried, obtained via GetInventorySlotInfo.

Returns

count · number · Returns 1 on empty slots (Thus, on empty ammo slot, 1 is returned). For containers (Bags, etc.), this returns the number of items stored inside the container (Thus, empty containers return 0). Under all other conditions, this function returns the amount of items in the specified slot.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

sources

Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.