to sell all grey items
Code:
/run for bag=0,4,1 do for slot=1,GetContainerNumSlots(bag),1 do local name=GetContainerItemLink(bag,slot) if name and string.find(name,"ff9d9d9d") then DEFAULT_CHAT_FRAME:AddMessage("- Selling "..name) UseContainerItem(bag,slot) end end end
to sell an item of a specific name replace ff9d9d9d with whatever you wish to sell...
now ofc theres addons out there that does this, such as AutoProfit, SellOMatic, FuBar_GarbageFu .. probably a bunch more of those out there.
edit:
9d9d9d - grey
ffffff - white
1eff00 - green
0070dd - blue
a335ee - epic