diff --git a/README_Geojak.md b/README_Geojak.md index 866fb3e..7bf5d45 100644 --- a/README_Geojak.md +++ b/README_Geojak.md @@ -1,7 +1,7 @@ 1. Added auto bid feature, doubled the existing auto buy code and slighly editted 2. Added auto pricing heuristic, these are activate when posting an item with bid price 0, the buyout price works as a minimum 3. Added a keybind for the post button, this significantly speeds up mass posting of items when you dont need to change saved prices -4. Changed the default post stack size to rand(1,max) instead of always max +4. New option to change the default post stack size to rand(1,max) instead of always max stacks, use /aux post stack to toggle 5. FIXED TWILLIGHT CULTIST SET NOT DISENCHATABLE 6. use SHagu tweaks vendor values if aux values not avaialbe (might need fixing if you dont actually have shaguweaks) 7. dont auto bid on own items @@ -9,4 +9,5 @@ 9. enchanting created wands are not encahntabke, same with twillight stuff at 5. reworked implementation for easier addition 10. disenchant values are calcualted from min(value,value_today), this protects users from low enchanting mat prices 11. advanced trade skill menu compabillity to display aux crafting cost -12. changed default post duration from 8 to 24, since turtle wow got no fees anyway \ No newline at end of file +12. changed default post duration from 8 to 24, since turtle wow got no fees anyway +13. new filter "isgear" which can be used to generic filter out all white and green armor and weapons that have incosinstent market value \ No newline at end of file diff --git a/tabs/search/filter.lua b/tabs/search/filter.lua index eaac271..b95d33d 100644 --- a/tabs/search/filter.lua +++ b/tabs/search/filter.lua @@ -323,7 +323,7 @@ function set_filter_display_offset(x_offset, y_offset) end function initialize_filter_dropdown() - for _, filter in ipairs(T.temp-T.list('and', 'or', 'not', 'price', 'profit', 'vendor-profit', 'disenchant-profit', 'percent', 'disenchant-percent', 'bid-price', 'bid-profit', 'bid-vendor-profit', 'bid-disenchant-profit', 'bid-percent', 'bid-disenchant-percent', 'item', 'tooltip', 'min-level', 'max-level', 'rarity', 'left', 'utilizable', 'seller')) do + for _, filter in ipairs(T.temp-T.list('and', 'or', 'not', 'price', 'profit', 'vendor-profit', 'disenchant-profit', 'percent', 'disenchant-percent', 'bid-price', 'bid-profit', 'bid-vendor-profit', 'bid-disenchant-profit', 'bid-percent', 'bid-disenchant-percent', 'item', 'tooltip', 'min-level', 'max-level', 'rarity', 'left', 'utilizable', 'seller', 'isgear')) do UIDropDownMenu_AddButton(T.map( 'text', filter, 'value', filter, diff --git a/util/filter.lua b/util/filter.lua index 579f2c4..b4341f9 100644 --- a/util/filter.lua +++ b/util/filter.lua @@ -38,7 +38,7 @@ M.filters = { return default_filter(str).validator() end, }, - + ['item'] = { input_type = 'string', validator = function(name) @@ -229,6 +229,16 @@ M.filters = { end end }, + + ['isgear'] = { + input_type = '', + validator = function() + return function(auction_record) + return not(info.item(auction_record.item_id).slot == '') + end + end, + }, + } function operator(str)