112 ObjectGuid bidderGuid = ObjectGuid::Create<HighGuid::Player>(auction->
bidder);
115 std::string bidderName;
116 bool logGmTrade =
false;
120 bidderAccId = bidder->GetSession()->GetAccountId();
121 bidderName = bidder->GetName();
135 ObjectGuid ownerGuid = ObjectGuid::Create<HighGuid::Player>(auction->
owner);
136 std::string ownerName;
142 sLog->outCommand(bidderAccId,
"GM %s (Account: %u) won item in auction: %s (Entry: %u Count: %u) and pay money: %u. Original owner %s (Account: %u)",
147 if (bidder || bidderAccId)
158 bidder->GetSession()->SendAuctionWonNotification(auction, item);
uint32 GetCount() const
Definition: Item.h:322
uint32 Realm
Definition: Realm.h:53
static bool HasPermission(uint32 accountId, uint32 permission, uint32 realmId)
Definition: AccountMgr.cpp:533
Realm realm
Definition: World.cpp:3485
ObjectGuid::LowType itemGUIDLow
Definition: AuctionHouseMgr.h:71
Definition: DBCEnums.h:271
#define sLog
Definition: Log.h:154
#define sObjectMgr
Definition: ObjectMgr.h:1567
static std::string BuildAuctionMailBody(uint64 lowGuid, uint32 bid, uint32 buyout, uint32 deposit, uint32 cut)
Definition: AuctionHouseMgr.cpp:877
This mail was returned. Do not allow returning mail back again.
Definition: Mail.h:50
Definition: PreparedStatement.h:74
void SendMailTo(SQLTransaction &trans, MailReceiver const &receiver, MailSender const &sender, MailCheckMask checked=MAIL_CHECK_MASK_NONE, uint32 deliver_delay=0)
Definition: Mail.cpp:173
std::string BuildAuctionMailSubject(MailAuctionAnswers response) const
Definition: AuctionHouseMgr.cpp:870
ObjectGuid::LowType owner
Definition: AuctionHouseMgr.h:74
Definition: AuctionHouseMgr.h:59
Battlenet::RealmHandle Id
Definition: Realm.h:86
uint32_t uint32
Definition: Define.h:150
uint32 bid
Definition: AuctionHouseMgr.h:76
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
ObjectGuid::LowType bidder
Definition: AuctionHouseMgr.h:79
Item * GetAItem(ObjectGuid::LowType id)
Definition: AuctionHouseMgr.h:154
uint32 buyout
Definition: AuctionHouseMgr.h:77
ObjectGuid const & GetGUID() const
Definition: Object.h:105
static bool GetPlayerNameByGUID(ObjectGuid const &guid, std::string &name)
Definition: ObjectMgr.cpp:2258
void setUInt64(const uint8 index, const uint64 value)
Definition: PreparedStatement.cpp:124
#define sAuctionMgr
Definition: AuctionHouseMgr.h:199
static uint32 GetPlayerAccountIdByGUID(ObjectGuid const &guid)
Definition: ObjectMgr.cpp:2302
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
uint32 GetEntry() const
Definition: Object.h:107
Definition: ObjectGuid.h:189
Definition: Language.h:78
TC_GAME_API Player * FindConnectedPlayer(ObjectGuid const &)
Definition: ObjectAccessor.cpp:215
LowType GetCounter() const
Definition: ObjectGuid.h:221
Definition: CharacterDatabase.h:136
ItemTemplate const * GetTemplate() const
Definition: Item.cpp:547
char const * GetDefaultLocaleName() const
Definition: ItemTemplate.cpp:33