TradeSkillMaster_TDAutoVendoring
Video & Description
Here is the video how it works (just vendoring part):
Automatic vendoring of salvage yard items and generic green/blue trash not worth auctioning. Based on TradeSkillMaster api.
- Update 1.1 Added option to disenchant valuable items! check it out below.
- Update 1.2 Added option to open soulbound containers and weapon/armor containers for easy selling to vendor.
- Update 1.3 Changed the way auto open works, now it is based on item id table, there is now argument to provide your own list of item ids which will be also opened/used
- Update 1.4 Added function to send items that could be sold to AH toon
THIS IS NOT TRADESKILLMASTER MODULE! It is a super small library based on TSM api to make life easier. Done because of this thread.
What is needed
- Install TradeSkillMaster - Follow installation guide and setup their desktop App to have up to date prices (you will know you have done this step correctly if you will see AH prices on item tooltips)
- No additional configuration is required inside TSM
Vendoring
This function sells items that are junk (quality = 0), or blue/green items with specific max level (default 630) that are not worth auctioning according to TSM.
Syntax:
function TDAutoVendor(maxValue, priceSource, maxQuality, maxIlvl, sellCrapBlue, debug, disenchant, valueDiff)
Macro
#showtooltip /run TDAutoVendor() /use Bag of Salvaged Goods /use Big Crate of Salvage /use Crate of Salvage
Usage
- Go to salvage yard, open merchant window (just talk to the salvager in your salvage yard)
- Keep spaming macro untill u have no more Crates
Options:
maxValue
(default 5000000): maximum value of item that should be vendored in copper ex 4443322 equals 444g 33s 22cpriceSource
(default 'DBGlobalSaleAvg'): source of price according to TSM, if you don't know what it is, don't change it or put nil there. By default it check global AH price.maxQuality
(default 3): maximum item quality to consider: 0 = junk, 1 = normal, 2 = green, 3 = blue, 4 = purple, 5 = legendarymaxIlvl
(default 630): maximum item level to considersellCrapBlue
(default true): addon actually checks if you are not enchanter and sells soulbound items between 570 and 630 if this is set to true;debug
(default false): if this is set to true, it will only print what it would sell without actually selling anything (if you are affraid that wrong items would be sold, set it to true and test)disenchant
(default false): set this to true to NOT sell items you think are worth disenchanting (see option below)valueDiff
(default 100000): minimum price difference between vendor price and disenchant price to consider as disenchantable, default 10g
debugging with default values:
/run TDAutoVendor(nil, nil, nil, nil, nil, true)
Disenchanting (NEW 1.1)
New version has another AUTO macro that will disenchant items worth disenchanting. Obviously you need to be on toon that has Enchanting proffesion otherwise it will not work.
Macro
/run TD_debug = false; /run TD_maxValue = 5000000; /run TD_valueDiff = 100000; /click TDDisButton
Each option needs to be set before using macro (because of lua restrictions) using following syntax (see above for example):
/run option = value;
Options:
TD_debug
(default: false): set this to true if you wish to see what it would disenchantTD_maxValue
(default: 5000000): maximum market price of items to consider, default 500gTD_valueDiff
(default: 100000): minimum price difference between vendor and disenchanting value, default 10gTD_priceSource
(default 'DBGlobalSaleAvg'): source of price according to TSM, if you don't know what it is, don't change it or put nil there. By default it check global AH price.TD_maxQuality
(default 3): maximum item quality to consider: 0 = junk, 1 = normal, 2 = green, 3 = blue, 4 = purple, 5 = legendaryTD_maxIlvl
(default 630): maximum item level to consider
Opening (NEW 1.2)
Opening in one macro souldbound containers like: Enhancement Tokens, Runic Pouch, Cache of Highmaul Treasures, Iron Fleet Treasure Chest, Blackrock Foundry Spoils also gear tokens: Tormented, Formidable, Baleful, Grandiose, Turbulent, Munificent (only soulbound ones)
Macro
/run TD_debug = false; /click TDOpenButton
Macro is very similar to disenchant macro, options are set the same way and be wary: TD_debug
IS THE SAME GLOBAL VARIABLE as the one from version 1.1 so keep it always above both macros
Options:
TD_debug
(default: false): set this to true if you wish to see what it would openTD_customOpenList
(default: {}): list of items that are also opened alongside with built in list. You need to provide it as TABLE in following format: /run TD_customOpenList = {12, 2412, 51512, 535123};
List of items that are opened automatically (check main lua for reference):
Tormented, Formidable, Baleful, Grandoise, Turbulent, Munificent,Enhancement Token, Follower Retraining Scroll Case, Runic Pouch, Cache of Highmaul Treasures, Iron Fleet Treasure Chest, Blackrock Foundry Spoils
Mailing (NEW 1.4)
Sends everything you have in bag that is not Soulbound or Account bound and can be sold in AH to AH Toon (for now just tome of clear mind is in built in exclude list).
Macro
/run TDAutoAH(debug, AHToon, priceSource, exclude)
Options:
debug
(default: false): set this to true if you wish to see what it would openAHToon
(*required*): Name of the AH toon to send items to, this is a string so it needs to be in format: 'Nameoftoon'priceSource
(default 'DBGlobalSaleAvg'): source of price according to TSM, if you don't know what it is, don't change it or put nil there. By default it check global AH price.exclude
(default: {}): item id list excluded from mailing. You need to provide it as TABLE in following format: {12, 2412, 51512, 535123}
Example
/run TDAutoAH(false, 'Bankertoon', nil, {3412, 215, 5152})