WoW API: GetMerchantItemMaxStack

From AddOn Studio
Revision as of 05:46, 2 February 2008 by WoWWiki>Baudzilla (Corrected fact that this function only doesn't work for items that sell in stacks.)
Jump to navigation Jump to search

WoW API < GetMerchantItemMaxStack


Gets the maximum stack size for an item from the active merchant.

maxStack = GetMerchantItemMaxStack(index)


Arguments

index
Number - The index of the item in the merchant's inventory.


Returns

maxStack
Number - The maximum stack size for the item.


Note

This does not seem to work properly as of patch 2.3, and always returns 1 for items that sell in stacks (such as arrows). Try GetItemInfo() instead.