Macro to vendor all in bag 0

Mine isnt working anymore for some reason. Probably cuz the games been updated and screwed them up.

Any CURRENT macros that work to vendor everything in the backpack?

Bunch of stuff got added to the C_Container namespace.

is that what messed my macro up, you think?
it used to work. I had it all set up, but now it doesnt

Yup

10char

1 Like

if you post your current macro someone might be nice enough to fix it.

a macro doesnt really contain enough characters for something safe though. cant you just download one of the junk mods?

1 Like

honestly, I went ahead and deleted it, lol…I found this on the web, it looks like it might be it or close to what I had found before that worked. Been a while since I actually looked at the macro itself.

/run for bag=0 do for slot=1,GetContainerNumSlots(bag),1 do local name=GetContainerItemLink(bag,slot) if name and string.find(name,"") then DEFAULT_CHAT_FRAME:AddMessage("- Selling "..name) UseContainerItem(bag,slot) end end end

the original macro maker had it deleting ALL bags. I changed it to bag 0.
It used to work.
Ive mostly been using Scrap addon lately, but tired of patches making them not work for a while, so I’d rather just go back to using a macro

You have to change the macro for updated api:

C_Container.GetContainerNumSlots
C_Container.GetContainerItemLink
C_Container.UseContainerItem

2 Likes