Peddler (Junk seller)

Peddler simply allows you to flag items that you plan to sell, automatically selling them later when you interact with a vendor. It automatically flags grey items you loot to be sold, but you're free to un-flag them.

While going back to complete low-level quests with regards to getting a few quest achievements, I found my bags full of green quest rewards that I would try to sell whenever I could. However, after leaving a vendor I would notice that I'd missed one or two items; I made this addon so that I could immediately mark the newly received items without having to scour my bags for them later on!

Usage

CTRL+Right-click on an item in your inventory and it will be flagged for peddling at your next trip to a vendor! A small set of coins appears in the item's icon to highlight that it will be automatically sold.

ALT+Left-click on a quest-reward in the quest-log and it will be flagged!

/peddler displays the interface's options:

Modifier Key - allows the user to change the marking modifier from the CTRL-key.

Sell Limit - toggles whether or not Peddler should sell items in sets of 12, allowing the user to buyback any mistakenly marked items.

Silent Mode - toggles whether or not Peddler will print anything to the chat-log when selling items.

5.6:

- Updated support for the 'cargBags Nivaya' bag addon.

5.5:

- Properly handling quest rewards - both chosen and standard rewards!

5.4:

- Now defaults to selling grey items.
- Temp. fix for throwing an error when opening the quest log in some weird cases...

5.3:

- Now able to mark items from the quest log! Due to API (or my coding) restrictions, you have to use ALT + Left-click to mark rewards in the quest-log!

5.2:

- Waiting for the LUI bag frame to exist before attempting to mark items in it...

5.1:

- Adding support for LUI bags.

5.0:

- Adding support for Demon Hunters and Warglaives!
- Moving the coins icon to the bottom-left by default.
- Allowing Peddler to use double key-modifiers.

4.9:

- Just updating the toc interface number for Legion pre-patch.

4.8:

- Just updating the toc interface number.

4.7:

- No longer attempts to use remaining unsold items if you leave the merchant before all items are sold!

4.6:

- Inventorian support added.
- LiteBag support added.
- Attempt to account for the new item-usage limit to alleviate "This Item is in Use" errors when selling lots of items at once.

4.5:

- Updated to work with ArkInventory's new scrolling frame.
- Slight adjustment to Adibag's bag-count.

4.4:

- ElvUI bag support implemented!

4.3:

- Just updating the version number...

4.2:

- Added support for DerpyStuffing bags!

4.1:

- Extra support for cargBags_naviya MoP update.
- The sale summary can now be toggled independently of the Silent Mode.

- An option for toggling unwanted items for your class has been added. As per usual, items which are automatically marked via this option CAN be unmarked with CTRL-Rightclick (or whichever modifier key you're using).

- Improved default WoW bag support, with regards to only opening a few bags at a time.
- Improved AdiBags support.

2.6:

- Added an options panel.
- Removed command-line options.
- Peddler's options are now account-wide, rather than character specific. This probably means you'll need to go into the options and configure them to your liking again, sorry! At least you won't need to do that on every character anymore. :)

2.5:

- Fixed AdiBags support (now correctly displays coins on all (?) items).
- A 'sellLimit' command has been added, allowing the user to limit sales to 12, meaning one can safely use the addon and buyback anything they may have accidentally sold.

2.4:

- The modifier key can now be changed from the CTRL default via the command "/peddler modifier CTRL/Shift/ALT".

- Chat output when peddling wares will no longer be larger than the chat log!

1.8:

- Now automatically marks gray items for sale!

1.7:

- Baggins: Should now correctly draw all coins in the correct places, even while looting items with the bags closed.

1.6:

- Baggins: Coin textures now redraw correctly on the correct items when new items are added to the inventory.
- All bag addons now correctly remember your marked items after relogging.

1.5:

- Phew! Fixed the bug where coins wouldn't move when moving a tagged item.
- Tagged items are now remembered even after relogging!
- All items of a given type are sold at once (e.g. choosing to sell one stack of linen cloth will mark and sell them all)
- The above changes mean that I have to write bag addon-specific code, and I took some of the most popular ones to begin with: Baggins, Bagnon, Combuctor, OneBag3, as well as the default WoW bags are all supported.

1.4:

- Errors are no longer caused by CTRL-Rightclicking an empty bag slot.
- Items that cannot be sold cannot be peddled!
- Tried to remember flagged items after relogging, but failed completely. :(

1.3:

- Added item-count and currency colours to the output.

1.2:

- Tried to make the coin icon a bit more recognisable.
- Added an output of what Peddler has been selling and for how much.

1.1:

- Moved Peddler into a folder to make 'installation' all that much sweeter!

As per your suggestions, I've added toggles in the Options panel to allow automatic marking of Grey, White & Green items. As was the usual with Grey items before, you can use the modifier key & right-click to un-mark an item, and the addon will never again attempt to sell that item. Let me know what you make of it!

Tymesink: Mind if I implement the famBags fix into the code? I didn't want to just take it without asking your permission first!

I'll have a look at ElvUI and see what addon they're using and see if I can't add support.

hey love the addon.. great idea. I really like the idea of flagging items that I want to sell to the vendor. If I can make a request, please allow selling junk/grey items to be optional to allow the user to use this addon but not compete for the same feature that is in other addons such as ElvUI.

It does the job, but I have problem with the fact that all the modifiers for right-click are being used with the famBags addon. I can temporarily use shift+right click but that also triggers a "split" dialog. Any suggestions would be greatly appreciated.

jeruku: Thanks for the advice! I'll see if I can't get this into my code sometime in a future update, when I have the time!

Originally Posted by biznachio

I stumbled upon Peddler today and already find it an indispensable tool for my grinding and profession workflow. I have but one question. I use SkaarjUI as I love its functionality and flow. Skaarj uses CargBags (which is listed as an outdated mod here on WoWInterface) and the only thing missing is the coin stack icon on items I set to be sold. Is there currently support in Peddler for CargBags? Thanks for answering back!

The support for cargBags_Nivaya should now be in and working - let me know how it goes!

jeruku: Thanks for the advice! I'll see if I can't get this into my code sometime in a future update, when I have the time!

Originally Posted by biznachio

I stumbled upon Peddler today and already find it an indispensable tool for my grinding and profession workflow. I have but one question. I use SkaarjUI as I love its functionality and flow. Skaarj uses CargBags (which is listed as an outdated mod here on WoWInterface) and the only thing missing is the coin stack icon on items I set to be sold. Is there currently support in Peddler for CargBags? Thanks for answering back!

The support for cargBags_Nivaya should now be in and working - let me know how it goes!

I stumbled upon Peddler today and already find it an indispensable tool for my grinding and profession workflow. I have but one question. I use SkaarjUI as I love its functionality and flow. Skaarj uses CargBags (which is listed as an outdated mod here on WoWInterface) and the only thing missing is the coin stack icon on items I set to be sold. Is there currently support in Peddler for CargBags? Thanks for answering back!

The event BAG_UPDATE returns a vararg that equals the bag changed in sequential order. Events, in general, may have varargs so it simplifies things a little. Switching items from bag 1 and bag 2 will fire BAG_UPDATE with ... = 1 THEN ... = 2.(or vice-a-verse, either way works)
So the funtion would look something like:

As far as I'm aware, the list of which items you wish to sell is char-specific. This means that your example should never occur. If you check the .toc file, it should say '## SavedVariablesPerCharacter: ItemsToSell, UnmarkedGrayItems', so the ItemsToSell listing should never sell an item just because you wished it to be sold on another of your characters.

As per your request, however, I could add an option in the options panel that, when toggled, clears the ItemsToSell array on selling to a merchant. Would that suffice?

Hmm. I'm trying to think if you can still bite yourself in the ass. With a always-sell and a separate only-sell-this-once, you don't accidentally have something sold that you don't realize -- thinking of equipment here. To my mind, it feels a bit safer to put something high-value on a do-only-once list on the off chance that, say, you at some later point decide to hold on to it for an alt or xfer to someone else or whatever. You could just unflag it but some of us old codgers don't have the memory we, um, er, what were we talking about?

I'd hate to clear the ItemsToSell list automatically in-and-of-itself; adding functionality, rather than changing existing, seems to right direction if any change along these lines is done; however, I'll grant that with the ItemsToSell already being per-char, the impetus for the added functionality is dramatically lessened.

So, after using this for a while, I have to admit, the intuitive design is quite nice; however, the pre-select feature leaves something to be desired: namely, a one-time-use list.

Example: I may look at item X and note that it is useless and add it to Peddler's list just after I get it. Later, I get the same item on another char, that could use it, but it's marked to sell and...you can see where this goes.

The click-add is great but it is so useful that it needs to be expanded to have a one-use or sell-and-forget list to compliment the always-sell list.

Pretty-please-with-a-panda-on-top.

Hi old chap!

As far as I'm aware, the list of which items you wish to sell is char-specific. This means that your example should never occur. If you check the .toc file, it should say '## SavedVariablesPerCharacter: ItemsToSell, UnmarkedGrayItems', so the ItemsToSell listing should never sell an item just because you wished it to be sold on another of your characters.

As per your request, however, I could add an option in the options panel that, when toggled, clears the ItemsToSell array on selling to a merchant. Would that suffice?

So, after using this for a while, I have to admit, the intuitive design is quite nice; however, the pre-select feature leaves something to be desired: namely, a one-time-use list.

Example: I may look at item X and note that it is useless and add it to Peddler's list just after I get it. Later, I get the same item on another char, that could use it, but it's marked to sell and...you can see where this goes.

The click-add is great but it is so useful that it needs to be expanded to have a one-use or sell-and-forget list to compliment the always-sell list.

It would be nice if the addon allowed you to limit the number of items sold each time the merchant is opened. For example, if the addon only sold 12 items at a time we could easily recover any items we incorrectly marked to be sold.

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.