WoW:API GetBuybackItemInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (cat)
mNo edit summary
Line 1: Line 1:
Get infos on the last item sold to the merchant (the one in the merchant slot)
Get info on an item sold to a merchant.
 
----
 
 
'''name,texture,price,quantity = GetBuybackItemInfo(index);'''




Line 5: Line 10:




'''name,texture,price,quantity = GetBuybackItemInfo();'''
;''Arguments''
 
<!-- List each argument, together with its type -->
 
:(index)
:;index : Number - The index of the item in the merchant's buyback inventory.  The item to buyback in the Merchant tab is the last item in the Buyback tab.




----
----


;''Returns''
<!-- List each return value, together with its type -->
:(name)
:;name : String - the name of the item
:(texture)
:;texture : String - the directory/filename of the texture used for the item


name : the name of the item


texture : the directory/filename of the texture used for the item
:(price)
:;price : Number - the price to buy the item back


price : the price (lol)


quantity : so... the quantity
:(quantity)
:;quantity : Number - the quantity of items in the stack





Revision as of 19:58, 10 August 2006

Get info on an item sold to a merchant.



name,texture,price,quantity = GetBuybackItemInfo(index);




Arguments


(index)
index
Number - The index of the item in the merchant's buyback inventory. The item to buyback in the Merchant tab is the last item in the Buyback tab.



Returns


(name)
name
String - the name of the item


(texture)
texture
String - the directory/filename of the texture used for the item


(price)
price
Number - the price to buy the item back


(quantity)
quantity
Number - the quantity of items in the stack



--Enatrak 09:45, 6 May 2005 (EDT) Template:WoW API