Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API PickupMerchantItem

Last wiki revision 2022-07-22

Places a merchant item onto the cursor. If the cursor already has an item, it will be sold. 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

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

Source

https://warcraft.wiki.gg/wiki/API_PickupMerchantItem · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.