Open razorlz opened 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 },
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
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
buyout-bid-profit/10c result like this
buyout-bid-profit/10s result like this
I'm interested in this as well.
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