The plugin would create a category in Baggins called "Vendor Trash" and optionally sell all items in this category automatically. Any items added to this category through Baggins item filter management would also be vendored.
Most addons that sell vendor trash only sell gray items or have unintuitive ways of adding custom items. This usually requires adding each item individually as well which can be tedious. Baggins' powerful filtering system would make things much easier.
Auto vending all gray items is fairly trivial... as soon as you start getting into a whitelist/blacklist scenerio, or add in other specific items, the code gets a lot more complicated.
There's a dead-simple addon called "CrapAway" that just dumps anything of poor quality when at a vendor. I added in profile flag to turn this on or off (the part with self.db.profile.vendJunkFlag)
-- Auto Sell Junk - Inspired by CrapAway
if (self.db.profile.vendJunkFlag) then
-- iterate through bags
for bag = 0, 4 do
-- need to know the number of slots we have to look in
local numSlots = GetContainerNumSlots(bag)
-- we have slots
if (numSlots > 0) then
-- go through items in bag
for slot = 1, numSlots + 1 do
local currentItem = GetContainerItemLink(bag,slot)
if (currentItem ~= nil) then
-- Gotta get the item info using the link
-- local currentItemQuality = Select(3, GetItemInfo(currentItem))
local currentItemQuality = nil
_,_,currentItemQuality,_,_,_,_,_,_,_ = GetItemInfo(currentItem)
if (currentItemQuality ~= nil and currentItemQuality == 0) then
end -- end for loop
end -- if vendJunkFlag
end -- autoSellJunk()
No, Baggins_Scrap is the other way around. The idea HERE was to create the VT list using baggins categories, and then have a plugin that vendors everything in that section. Not just have baggins show info from another addon, which had already been done with e.g. Baggins_GarbageFu ages ago.