Couple of fixes and a new feature for bank/GB (#25)

* Exclude crafting spells using Fel Blood

Updated cost calculation to exclude spells using Fel Blood in crafting.

* Epoch lua error fix

* Slow mail loot when low FPS to avoid double looting

* Allowing withdrawing items from bank/GB using "AH shortfall" to withdraw based on post cap and now ALSO minPrice of those items has to be above current DBMinBuyout.

* Fixing an infinite loop bug with invalid custom price of Default Craft Value Method

---------

Co-authored-by: Szyler <Szyler@Szyler.com>
This commit is contained in:
Szyler
2025-10-29 00:40:48 +01:00
committed by GitHub
parent ea602dbbce
commit c1d9d3f7c6
7 changed files with 50 additions and 11 deletions
@@ -221,6 +221,29 @@ function Util:groupTree(grpInfo, src, all, ah)
end
if newgrp[itemString] < 0 then
newgrp[itemString] = nil
else
-- Get the group's auction operation
local operations = TSMAPI:GetItemOperation(itemString, "Auctioning")
if operations and operations[1] then
local operation = TSM.operations[operations[1]]
if operation then
-- Get the prices
local prices = TSM.Util:GetItemPrices(operation, itemString)
local marketValue = TSMAPI:GetItemValue(itemString, "DBMarket")
local currentMinPrice = TSMAPI:GetItemValue(itemString, "DBMinBuyout")
-- Compare the prices
if prices.minPrice and prices.maxPrice and prices.normalPrice then
if marketValue and currentMinPrice then
if prices.minPrice > currentMinPrice then
-- Handle the case where the prices do not meet the criteria
-- For example, you can remove the item from the group
newgrp[itemString] = nil
end
end
end
end
end
end
end
end