Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:API GetMerchantItemInfo
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} __NOTOC__ Returns information about a merchant's item. name, texture, price, quantity, numAvailable, isUsable, extendedCost = GetMerchantItemInfo(index) ==Parameters== === Arguments === :;index : Number - The index of the item in the merchant's inventory === Returns === :;name : String - The name of the item :;texture : String - The texture that represents the item's icon :;price : Number - The price of the item (in copper). Note that if quantity is greater than one (i.e. the item is sold in batches by default), then this is the price per batch, not the unit price. :;quantity : Number - The quantity that will be purchased (the ''batch size'', e.g. 5 for vials) :;numAvailable : Number - The number of this item that the merchant has in stock. -1 for unlimited stock. :;isUsable : Number - Is 1 if the player can use this item, nil otherwise :;extendedCost : Number - Is 1 if the item has extended (PvP) cost info, nil otherwise == Example == local name, texture, price, quantity, numAvailable, isUsable, extendedCost = GetMerchantItemInfo(4); message(name .. " " .. price .. "c"); === Result === A message stating the name and price of the item in merchant slot 4 appears. ==See also== *[[API GetMerchantItemCostInfo|GetMerchantItemCostInfo]]
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)