Blizzard blocks vendor purchasing from macros — BuyMerchantItem and friends are protected, so a /run line returns "action blocked" or simply does nothing. What genuinely works: shift-click a vendor item to open a stack-quantity box, use /click MerchantFrame-style clicks only for opening UI, and lean on addons like Vendor or AutoVendor for the repetitive selling side.
What works and what doesn't
| Goal | Macro possible? | Do this instead |
| Buy an item from a vendor | No — protected function | Shift-click the item, type a quantity, confirm |
| Buy a full stack fast | No | Right-click buys one stack; shift-click sets a custom amount |
| Sell junk / greys | Partly | Addon (Vendor, Scrap, AutoVendor) — selling is far less restricted |
| Repair + sell in one go | Addon only | Most vendor addons repair on merchant open |
| Open a vendor NPC | Yes | /target Innkeeper then interact manually |
The fastest manual vendor routine
- Open the merchant window and hold Shift while left-clicking the item — a quantity box appears.
- Type the exact number you want (e.g. 200 for reagents) and hit Enter.
- For a plain stack, right-click the item — that buys one full stack instantly.
- Ctrl-click to link the item in chat if you're price-checking before committing.
- Repeat purchases hit the vendor's stock limit on limited-supply items; those restock on a timer, not instantly.
A sell-side macro that does work
Selling is where macros still have room. This one drops a targeted bag item onto the merchant frame — useful for a specific junk item you clear every run:
/run for b=0,4 do for s=1,CContainer.GetContainerNumSlots(b) do local i=CContainer.GetContainerItemLink(b,s) if i and i:find("ff9d9d9d") then C_Container.UseContainerItem(b,s) end end end- That targets grey-quality items by their colour code and sells them while a merchant window is open.
- It will error out of combat-protected states, and Blizzard tightens container functions between expansions — test it before trusting it on a full bag.
Why won't my /run BuyMerchantItem macro fire?
Purchase calls are flagged protected specifically to stop automated buying — gold-selling bots and AH sniping were the reason. Any macro or addon calling them triggers taint, and the client refuses the action. There's no workaround, and addons advertising "auto-buy" either use a hardware-event click you still have to press, or they're outdated.
Is there a macro to buy reagents in bulk?
Not directly, but shift-click with a typed quantity is nearly as fast — you can pull 500 of a vendor reagent in about four seconds. For crafting mats, most players use TradeSkillMaster's shopping lists or Auctionator to track what's cheaper at a vendor versus the auction house.
What addons handle vendor trips best?
Vendor and Scrap handle rule-based junk selling. Auctionator adds a search bar to merchant frames. TSM covers repair, sell, and restock lists in one profile. None of them can buy for you — the buying half of the loop stays manual by design.
Does right-clicking really buy a full stack?
Yes. On a merchant item that sells in stacks (reagents, poisons, ammo-era items), a right-click purchases one complete stack at the listed stack price. It's the single biggest time-saver most players miss, and it needs no macro at all.
If the reason you're chasing a vendor macro is that you're grinding gold or consumables for raid prep, PewPewShop's coaches can shortcut a lot of that. Vetted human players — no bots, no cheats, a long clean record — run play-together sessions on gold routes, profession setups, and raid or M+ progression, so you spend your evenings on the fight rather than the vendor window. Coaching runs by the hour and usually pays for itself in the first week of a tier.