|
|
|
|
@ -243,9 +243,14 @@ function private.OnItemBought(_, data)
|
|
|
|
|
total = total + quantity |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
local mailData = TSMAPI:ModuleAPI("ItemTracker", "playermail") |
|
|
|
|
if type(mailData) == "table" then |
|
|
|
|
total = total + (mailData[baseItemString] or 0) |
|
|
|
|
end |
|
|
|
|
local marketValue = TSM:GetMarketValue(itemID) |
|
|
|
|
local marketText = marketValue and (TSMAPI:FormatTextMoney(marketValue, "|cffffffff", true) or "---") or "---" |
|
|
|
|
TSM:Printf("Bought %s for %s (x%d). bags=%s dbmarket=%s", link, buyoutText, data.count or 1, tostring(total), marketText) |
|
|
|
|
local count = data.count or 1 |
|
|
|
|
local marketText = marketValue and (TSMAPI:FormatTextMoney(marketValue * count, "|cffffffff", true) or "---") or "---" |
|
|
|
|
TSM:Printf("Bought %s for %s (x%d). bags=%s dbmarket=%s (x%d)", link, buyoutText, count, tostring(total), marketText, count) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
function TSM:OnTSMDBShutdown() |
|
|
|
|
|