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.
Heh, I've been considering writing just that myself. ... except not creating categories and rather allowing the user to specify one or more categories to autosell.
And perhaps also having automailing of certain categories to different chars.
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
--
function MultiTool:autoSellJunk()
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
UseContainerItem(bag,slot)
end
end
end
end
end -- end for loop
end -- if vendJunkFlag
end -- autoSellJunk()
Well, that was the whole point. Baggins already HAS all the code needed to add and remove items from a set. So then you could just junk a set and be done.
I already have a "trash" subcategory of the "Other" bag defined in Baggins. This might be nice if I didn't already have 2 other addons that sell trash items as a secondary feature >.>
I already have a "trash" subcategory of the "Other" bag defined in Baggins. This might be nice if I didn't already have 2 other addons that sell trash items as a secondary feature >.>
Hence why it should be a plugin, not a core feature.
And your other addons can't sell items flagged "Vendor" by auctioneer :P
I don't use Auctioneer - even AucAdvanced was bloated and unintuitive last I checked, and I lost interest in daily AH scanning a year ago (did Blizz even ever fix their AH scanning API?)
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.
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.
And perhaps also having automailing of certain categories to different chars.
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)
Hence why it should be a plugin, not a core feature.
And your other addons can't sell items flagged "Vendor" by auctioneer :P