diff options
| author | KingPin <KingPin@Trinitycore.org> | 2009-01-20 16:44:05 -0600 |
|---|---|---|
| committer | KingPin <KingPin@Trinitycore.org> | 2009-01-20 16:44:05 -0600 |
| commit | e1f765a972f3039cd4e7d80b1dfd7b0e20acdd88 (patch) | |
| tree | ed6c0d20763e6630b6f5d2ce9aa35b46d303b607 /src/game/AuctionHouse.cpp | |
| parent | 5a549389d62c9e08f944160d8c376f16acc81da4 (diff) | |
AuctionHouseBot patch added. thanx to everyone who worked on it especially Paradox. Only apply 930_characters.sql if you dont already have AHBot installed. AHBot requires an account ID and a character ID to work with, set them in trinitycore.conf and also login atleast once to this character.
--HG--
branch : trunk
Diffstat (limited to 'src/game/AuctionHouse.cpp')
| -rw-r--r-- | src/game/AuctionHouse.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/AuctionHouse.cpp b/src/game/AuctionHouse.cpp index 71a8bb495b4..c200c9751a6 100644 --- a/src/game/AuctionHouse.cpp +++ b/src/game/AuctionHouse.cpp @@ -28,6 +28,7 @@ #include "UpdateMask.h" #include "AuctionHouseObject.h" #include "Util.h" +#include "AuctionHouseBot.h" //please DO NOT use iterator++, because it is slower than ++iterator!!! //post-incrementation is always slower than pre-incrementation ! @@ -171,7 +172,10 @@ void WorldSession::SendAuctionOutbiddedMail(AuctionEntry *auction, uint32 newPri std::ostringstream msgAuctionOutbiddedSubject; msgAuctionOutbiddedSubject << auction->item_template << ":0:" << AUCTION_OUTBIDDED; - if (oldBidder) + if (oldBidder && !_player) + oldBidder->GetSession()->SendAuctionBidderNotification( auction->location, auction->Id, AHBplayerGUID, newPrice, objmgr.GetAuctionOutBid(auction->bid), auction->item_template); + + if (oldBidder && _player) oldBidder->GetSession()->SendAuctionBidderNotification( auction->location, auction->Id, _player->GetGUID(), newPrice, objmgr.GetAuctionOutBid(auction->bid), auction->item_template); WorldSession::SendMailTo(oldBidder, MAIL_AUCTION, MAIL_STATIONERY_AUCTION, auction->location, auction->bidder, msgAuctionOutbiddedSubject.str(), 0, NULL, auction->bid, 0, MAIL_CHECK_MASK_NONE); |
