Macro: Sell Junk

This is a very sophisticated macro that makes use of a lot of lua calls. Note that you can’t have the code indented as shown within a macro due to how the /script command works so find the compressed version below. Please not it is exceptionally important their is no new line character present or this macro will not work this has been an issue that has troubled a lot of users. Also note that you really want to only use this when a vendor window is open otherwise the UseContainerItemLink(bag, slot) will “use” all the greys in your inventory which generally result in you equipping a lot of random items you didn’t want, this is a limitation of the API and not of my code I advise you grab the addon SellJunk from here wow.curse.com if you are into addons however it is less resource intensive to simply have a macro handy as you don’t have to have the code loaded into memory at all times when you play the game. /script for bag = 0, 4 do for slot = 1, GetContainerNumSlots(bag) do local name = GetContainerItemLink(bag,slot) if name and string.find(name,”ff9d9d9d”) then UseContainerItem(bag,slot) end end end Please comment, rate and subscribe and message me with questions and I will make a video about it. I am hoping to start a new series soon on making World of Warcraft addons. As always you can find us at uberwolf.com
Video Rating: 0 / 5

Get the book now