Blizzard blocks vendor purchasing from macrosBuyMerchantItem 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

GoalMacro possible?Do this instead
Buy an item from a vendorNo — protected functionShift-click the item, type a quantity, confirm
Buy a full stack fastNoRight-click buys one stack; shift-click sets a custom amount
Sell junk / greysPartlyAddon (Vendor, Scrap, AutoVendor) — selling is far less restricted
Repair + sell in one goAddon onlyMost vendor addons repair on merchant open
Open a vendor NPCYes/target Innkeeper then interact manually

The fastest manual vendor routine

  1. Open the merchant window and hold Shift while left-clicking the item — a quantity box appears.
  2. Type the exact number you want (e.g. 200 for reagents) and hit Enter.
  3. For a plain stack, right-click the item — that buys one full stack instantly.
  4. Ctrl-click to link the item in chat if you're price-checking before committing.
  5. 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.