feat(Core/Misc): add log types player trade, mail & auctionhouse (#25430)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -153,6 +153,10 @@ void AuctionHouseMgr::SendAuctionWonMail(AuctionEntry* auction, CharacterDatabas
|
||||
.AddItem(pItem)
|
||||
.SendMailTo(trans, MailReceiver(bidder, auction->bidder.GetCounter()), auction, MAIL_CHECK_MASK_COPIED);
|
||||
}
|
||||
|
||||
LOG_INFO("entities.player.auctionhouse", "AuctionHouse: Auction #{} won: Bidder {} (GUID: {}), Item (Entry: {}) x{}, Bid: {} copper, Seller: {}",
|
||||
auction->Id, bidder ? bidder->GetName() : "offline", auction->bidder.GetCounter(),
|
||||
auction->item_template, auction->itemCount, auction->bid, auction->owner.GetCounter());
|
||||
}
|
||||
else
|
||||
RemoveAItem(auction->item_guid, true, &trans);
|
||||
@@ -212,6 +216,11 @@ void AuctionHouseMgr::SendAuctionSuccessfulMail(AuctionEntry* auction, Character
|
||||
.AddMoney(profit)
|
||||
.SendMailTo(trans, MailReceiver(owner, auction->owner.GetCounter()), auction, MAIL_CHECK_MASK_COPIED, sWorld->getIntConfig(CONFIG_MAIL_DELIVERY_DELAY));
|
||||
|
||||
LOG_INFO("entities.player.auctionhouse", "AuctionHouse: Auction #{} sold: Seller {} (GUID: {}), Buyer: {} (GUID: {}), Item (Entry: {}) x{}, Sale Price: {} copper, Profit: {} copper (cut: {} copper)",
|
||||
auction->Id, owner ? owner->GetName() : "offline", auction->owner.GetCounter(),
|
||||
auction->bidder.GetCounter(), auction->item_template, auction->itemCount,
|
||||
auction->bid, profit, auction->GetAuctionCut());
|
||||
|
||||
if (auction->bid >= 500 * GOLD)
|
||||
if (CharacterCacheEntry const* gpd = sCharacterCache->GetCharacterCacheByGuid(auction->bidder))
|
||||
{
|
||||
@@ -254,6 +263,10 @@ void AuctionHouseMgr::SendAuctionExpiredMail(AuctionEntry* auction, CharacterDat
|
||||
.AddItem(pItem)
|
||||
.SendMailTo(trans, MailReceiver(owner, auction->owner.GetCounter()), auction, MAIL_CHECK_MASK_COPIED, 0);
|
||||
}
|
||||
|
||||
LOG_INFO("entities.player.auctionhouse", "AuctionHouse: Auction #{} expired: Seller {} (GUID: {}), Item (Entry: {}) x{}, Buyout was: {} copper",
|
||||
auction->Id, owner ? owner->GetName() : "offline", auction->owner.GetCounter(),
|
||||
auction->item_template, auction->itemCount, auction->buyout);
|
||||
}
|
||||
else
|
||||
RemoveAItem(auction->item_guid, true, &trans);
|
||||
|
||||
Reference in New Issue
Block a user