Browse Source

refine auctiondb buyout log

dev
Jørgen Lien Sellæg 4 months ago
parent
commit
01371c7c2d
  1. 2
      TradeSkillMaster/TradeSkillMaster.toc
  2. 9
      TradeSkillMaster_AuctionDB/TradeSkillMaster_AuctionDB.lua
  3. 4
      TradeSkillMaster_AuctionDB/TradeSkillMaster_AuctionDB.toc

2
TradeSkillMaster/TradeSkillMaster.toc

@ -2,7 +2,7 @@
## Title: |cff00fe00TradeSkillMaster: Revived|r
## Notes: Core addon for the TradeSkillMaster suite, revived for Wrath of the Lich King. Does nothing without modules installed.
## Author: Sapu94, Bart39, Gnomezilla [Warmane-Icecrown(A)], BlueAo [Warmane], andrew6180, Yoshiyuka, DimaSheiko, and other contributors...
## Version: 2.3.18
## Version: 2.3.19
## SavedVariables: TradeSkillMasterAppDB, AscensionTSMDB
## OptionalDeps: AccurateTime, Ace3, LibDataBroker-1.1, LibDBIcon-1.0, LibExtraTip, TipHelper, LibParse, LibCompress, LibGraph-2.0, SharedMedia, TheUndermineJournal, TheUndermineJournalGE
## X-Embeds: AccurateTime, Ace3, LibDataBroker-1.1, LibDBIcon-1.0, LibExtraTip, TipHelper, LibParse, LibCompress, LibGraph-2.0

9
TradeSkillMaster_AuctionDB/TradeSkillMaster_AuctionDB.lua

@ -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()

4
TradeSkillMaster_AuctionDB/TradeSkillMaster_AuctionDB.toc

@ -2,10 +2,10 @@
## Title: |cff00ff00TradeSkillMaster_AuctionDB|r
## Notes: Stores auction house data and calculates market prices.
## Author: Sapu94, Bart39
## Version: 2.3.18
## Version: 2.3.19
## SavedVariables: AscensionTSM_AuctionDB
## Dependency: TradeSkillMaster
## X-Curse-Packaged-Version: 2.3.18
## X-Curse-Packaged-Version: 2.3.19
## X-Curse-Project-Name: TradeSkillMaster_AuctionDB
## X-Curse-Project-ID: tradeskillmaster_auctiondb
## X-Curse-Repository-ID: wow/tradeskillmaster_auctiondb/mainline

Loading…
Cancel
Save