Thread Tools Display Modes
09-15-14, 08:49 AM   #1
Voxxel
A Chromatic Dragonspawn
Join Date: Mar 2009
Posts: 193
Question Vendor item buy macro/code?

Hi there,

I'm looking for a way to buy a single item from a vendor in the case he sells it in stacks.

I mean if the vendor have the said item in stacks of 5 on his panel but I need only 1 not 5. Is there a way to buy a single piece in any way? (script, macro, addon, code)

(I know this request may sound strange but lets say the item is not stackable so I am unable to buy a stack of 5 but the vendor sells it in stacks due to a PTR bug.)

Thanks for any help!
  Reply With Quote
09-15-14, 09:08 AM   #2
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
In many cases you can shift click the item and you'll get a window to enter the amount you want to buy.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
09-15-14, 09:11 AM   #3
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
http://wowprogramming.com/docs/api/BuyMerchantItem at least takes a 'quantity' argument.

You could try
Code:
/script BuyMerchantItem(<number of item in the vendors list>, 1)
To find the items list number use
Code:
/script for i = 1,  GetMerchantNumItems() do  print(i, GetMerchantItemInfo(i)) end
  Reply With Quote
09-16-14, 12:34 AM   #4
Voxxel
A Chromatic Dragonspawn
Join Date: Mar 2009
Posts: 193
Duugu, thank you very much it works perfectly!

You guys here at wowinterface are very smart! I like this place very much. Thanks for your helps!
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Macro Help » Vendor item buy macro/code?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off