shirsig / aux-addon

Auction House addOn for Classic (1.13) IMPORTANT: The folder name must be "aux-addon" IMPORTANT: The Vanilla (1.12) version moved here https://github.com/shirsig/aux-addon-vanilla
https://www.curseforge.com/wow/addons/aux
196 stars 42 forks source link

Suggest a new filter condition #217

Open razorlz opened 5 years ago

razorlz commented 5 years ago

I need Compute buyout.price - bid.price so I add a new filter condition like this:

aux-addon\util\filter.lua 143 ['buyout-bid-profit'] = { 144 input_type = 'money', 145 validator = function(amount) 146 return function(auction_record) 147 return auction_record.buyout_price > 0 and auction_record.buyout_price - auction_record.bid_price >= amount 148 end 149 end 150 },

aux-addon\tabs\search\filter.lua 328 for _, filter in ipairs(T.temp-T.list('and', 'or', 'not', 'price', 'profit', 'vendor-profit', 'disenchant-profit', 'percent', 'bid-price', 'bid-profit', 'bid-vendor-profit', 'bid-disenchant-profit', 'bid-percent', 'buyout-bid-profit', 'item', 'tooltip', 'min-level', 'max-level', 'rarity', 'left', 'utilizable', 'seller')) do

Welcome discussion

razorlz commented 5 years ago

buyout-bid-profit/10c result like this

图片

razorlz commented 5 years ago

buyout-bid-profit/10s result like this

图片

Witnessthis commented 5 years ago

I'm interested in this as well.