WoW:API GetMerchantItemMaxStack: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Added GetMerchantItemMaxStack based on the FrameXML code.)
 
m (Move page script moved page API GetMerchantItemMaxStack to API GetMerchantItemMaxStack without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 12: Line 12:
== Returns ==
== Returns ==
:;maxStack : Number - The maximum stack size for the item.
:;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.

Latest revision as of 04:46, 15 August 2023

WoW API < GetMerchantItemMaxStack


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

maxStack = GetMerchantItemMaxStack(index)


Arguments[edit]

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


Returns[edit]

maxStack
Number - The maximum stack size for the item.


Note[edit]

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.