aboutsummaryrefslogtreecommitdiff
path: root/src/game/Mail.cpp
diff options
context:
space:
mode:
authorChaz Brown <iamparadox@netscape.net>2009-08-06 03:00:45 -0400
committerChaz Brown <iamparadox@netscape.net>2009-08-06 03:00:45 -0400
commitb9eb4ddf2e231310d660426ea8492aaa0ce2105a (patch)
tree126bbaae0eac60a10dd12a2d4685fb72455333fe /src/game/Mail.cpp
parent11b6ae792416c0b9a77f5a38d32c8867894764c0 (diff)
AHBot rewrite, pulled from TC2-3.0.9 repo, in no particular order.
*Any file named README.Something (including the original README) will be copied to the build directory when compiled with VS *Converted AuctionHouseBot to class structure, implemented Singleton for class *Moved global variables inside of AuctionHouseBot class, *Minor code cleanups, reformated headers, fixed switch logic errors *Parts of this code are from Naicisum's Mangos version. *Prevent endless looping condition where Item Quality has no percentage *Fix situation where items in the AH would be less than the maxitems setting *Move AHBot item filters to initialization so the items that are not allowed only get evaluated once. *Change the way Bid prices are calculated, along with Maximius' uint64 fix, prices should look a lot better now. *Includes a fix for grey items from MrSmite --HG-- branch : trunk
Diffstat (limited to 'src/game/Mail.cpp')
-rw-r--r--src/game/Mail.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Mail.cpp b/src/game/Mail.cpp
index 9a71c87cd23..94f40f0079e 100644
--- a/src/game/Mail.cpp
+++ b/src/game/Mail.cpp
@@ -390,7 +390,7 @@ void WorldSession::HandleMailReturnToSender(WorldPacket & recv_data )
}
}
- if (m->sender == AHBplayerGUID)
+ if (m->sender == auctionbot.GetAHBplayerGUID())
{
SendReturnToSender(MAIL_CREATURE, GetAccountId(), m->receiver, m->sender, m->subject, m->itemTextId, &mi, m->money, m->mailTemplateId);
}
@@ -836,7 +836,7 @@ void WorldSession::HandleQueryNextMailTime(WorldPacket & /*recv_data*/ )
void WorldSession::SendMailTo(Player* receiver, uint8 messageType, uint8 stationery, uint32 sender_guidlow_or_entry, uint32 receiver_guidlow, std::string subject, uint32 itemTextId, MailItemsInfo* mi, uint32 money, uint32 COD, uint32 checked, uint32 deliver_delay, uint16 mailTemplateId)
{
- if (receiver_guidlow == AHBplayerGUID)
+ if (receiver_guidlow == auctionbot.GetAHBplayerGUID())
{
if(messageType == MAIL_AUCTION && mi) // auction mail with items
{