WoW:API PickupMerchantItem: Difference between revisions
Jump to navigation
Jump to search
({{wowapi}}, format) |
No edit summary |
||
Line 2: | Line 2: | ||
Places the specified merchant item on the cursor. | Places the specified merchant item on the cursor. | ||
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) | |||
==Parameters== | ==Parameters== | ||
===Arguments=== | ===Arguments=== | ||
:;index : Number - The index of the item in the merchant's inventory. | :;index : Number - The index of the item in the merchant's inventory. |
Revision as of 18:50, 26 January 2007
← 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)
Parameters
Arguments
- index
- Number - The index of the item in the merchant's inventory.