Sell Macro

Does anyone have a sell macro I could use? The one I used, no longer works.

I understand there are add-ons that achieve this function, but I don’t want it automated. I also understand there is a sell junk button by Blizzard, but it doesn’t allow me to purchase them back.

Can anyone help? The one I was using before:

/run c=C_Container for b=0,4,1 do for s=1,c.GetContainerNumSlots(b),1 do local n=c.GetContainerItemLink(b,s) if n and string.find(n,“ff9d9d9d”) then DEFAULT_CHAT_FRAME:AddMessage("- Selling "…n) c.UseContainerItem(b,s) end end end

Please, and thank you!

It’s for retail only atm until the Item Quality ID information in links is added to Classic versions of the game.

/run c=C_Container for b=0,4,1 do for s=1,c.GetContainerNumSlots(b),1 do local n=c.GetContainerItemLink(b,s) if n and string.find(n, "\124cnIQ0:") then DEFAULT_CHAT_FRAME:AddMessage("- Selling "..n)c.UseContainerItem(b,s) end end end

The poor item quality id. (0) is hard coded to fit into the length limitation.

2 Likes

Thank you. I tried your updated macro, and it still won’t sell trash items. I am currently on retail, not classic. Unsure if that matters.

Thank you :slight_smile:

The code got messed up by the forum formatting (replacing .. with …) when I copied your macro to fix.

Fixed in my original post.

I want to reply and say, it works flawlessly. Thank you so much! <3

Every so often Blizzard futzes with system and the macro I’ve been using for this purpose breaks and has to be replaced.

Thank you so much for your patience in understanding their scripting and sharing the fruits of that that knowledge. Having to click the “R U SURE!?!?!” pop up every time I wanted to just sell my junk was driving me nuts.

2 Likes