diff --git a/README_Geojak.md b/README_Geojak.md index 4b24ebf..866fb3e 100644 --- a/README_Geojak.md +++ b/README_Geojak.md @@ -1,9 +1,9 @@ 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 +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 5. FIXED TWILLIGHT CULTIST SET NOT DISENCHATABLE -6. use SHagu tweaks vendor values if aux values not avaialbe +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 8. new filter disenchant-percent and bid-disencahnt-percent 9. enchanting created wands are not encahntabke, same with twillight stuff at 5. reworked implementation for easier addition diff --git a/core/post.lua b/core/post.lua index 0e8415f..2fd8100 100644 --- a/core/post.lua +++ b/core/post.lua @@ -91,7 +91,7 @@ function post_auction(slot, k) local vendor_price = 0 if aux.account_data.merchant_sell[item_info.item_id] ~= nil then vendor_price = tonumber(aux.account_data.merchant_sell[item_info.item_id]) - elseif ShaguTweaks.SellValueDB[item_info.item_id] ~= nil then + elseif ShaguTweaks and ShaguTweaks.SellValueDB[item_info.item_id] ~= nil then local charges = 1 if info.max_item_charges(item_info.item_id) ~= nil then charges=info.max_item_charges(item_info.item_id) diff --git a/core/tooltip.lua b/core/tooltip.lua index 353e893..4d7919d 100644 --- a/core/tooltip.lua +++ b/core/tooltip.lua @@ -77,7 +77,7 @@ function M.extend_tooltip(tooltip, link, quantity) end if settings.merchant_sell then local price = info.merchant_info(item_id) - if price == nil and ShaguTweaks.SellValueDB[item_id] ~= nil then + if price == nil and ShaguTweaks and ShaguTweaks.SellValueDB[item_id] ~= nil then local charges = 1 if info.max_item_charges(item_id) ~= nil then charges=info.max_item_charges(item_id) diff --git a/util/filter.lua b/util/filter.lua index e997192..579f2c4 100644 --- a/util/filter.lua +++ b/util/filter.lua @@ -186,7 +186,7 @@ M.filters = { validator = function(amount) return function(auction_record) local vendor_price = info.merchant_info(auction_record.item_id) - if not vendor_price then + if not vendor_price and ShaguTweaks then vendor_price = ShaguTweaks.SellValueDB[auction_record.item_id] if vendor_price then local charges = 1 @@ -206,7 +206,7 @@ M.filters = { validator = function(amount) return function(auction_record) local vendor_price = info.merchant_info(auction_record.item_id) - if not vendor_price then + if not vendor_price and ShaguTweaks then vendor_price = ShaguTweaks.SellValueDB[auction_record.item_id] if vendor_price then local charges = 1