WoW:API PickupMerchantItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API PickupMerchantItem to API PickupMerchantItem without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<center>'''PickupMerchantItem''' ''-Documentation by [[user:Fenaoin|Fenaoin]]-''</center>
{{wowapi}} __NOTOC__
 
Places the specified merchant item on the cursor.
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
 
  PickupMerchantItem(index);
  PickupMerchantItem(index);
Interesting thing is this function can be used to drop an item to the merchant as well. This will happen if the cursor already holds an item from player's bag:
PickupContainerItem(bag, slot)
PickupMerchantItem(0)


<!-- Describe the purpose of the function, though exhausting detail can be saved for a later section -->
As of patch 2.3 using this function to sell stacks of items does not work, instead it fails silently. Selling unstacked items work, so unstacking and selling items one by one is an alternative.
Places the specified merchant item on the cursor.
 
----
;''Arguments''
 
<!-- List each argument, together with its type -->
:(index)
:;index : Number - The index of the item in the merchant's inventory
 
----
;''Returns''
 
<!-- List each return value, together with its type -->
:nothing
 


----
Blizzard is aware of this issue: [http://forums.worldofwarcraft.com/thread.html?topicId=2855994059#12 http://forums.worldofwarcraft.com/thread.html?topicId=2855994059#12]
{{WoW API}}


[[Category:World of Warcraft API]]
==Parameters==
===Arguments===
:;index : Number - The index of the item in the merchant's inventory.

Latest revision as of 04:47, 15 August 2023

WoW API < PickupMerchantItem

Places the specified merchant item on the cursor.

PickupMerchantItem(index);

Interesting thing is this function can be used to drop an item to the merchant as well. This will happen if the cursor already holds an item from player's bag:

PickupContainerItem(bag, slot)
PickupMerchantItem(0)

As of patch 2.3 using this function to sell stacks of items does not work, instead it fails silently. Selling unstacked items work, so unstacking and selling items one by one is an alternative.

Blizzard is aware of this issue: http://forums.worldofwarcraft.com/thread.html?topicId=2855994059#12

Parameters[edit]

Arguments[edit]

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