I have not looked at that addon, but I automatically sell grey loot to vendors when I meet them with:
Code:
-- Create a simple frame that allows grey quality items to be sold automatically
local sellFrame = CreateFrame("Frame")
sellFrame:SetScript("OnEvent", function()
for bag = 0, 4 do
for slot = 1, GetContainerNumSlots(bag) do
local _, _, locked, _, _, _, link = GetContainerItemInfo(bag, slot) -- will return -1 for quality a lot
if nil ~= link then
local _, _, realQuality, _, _, _, _, _, _, _, vendorPrice = GetItemInfo(link)
if 0 == realQuality and 0 ~= vendorPrice and not locked then
UseContainerItem(bag, slot)
end
end
end
end
end)
sellFrame:RegisterEvent("MERCHANT_SHOW")
You might be able to adapt it to your needs.