diff options
author | Chaz Brown <iamparadox@netscape.net> | 2009-08-06 03:00:45 -0400 |
---|---|---|
committer | Chaz Brown <iamparadox@netscape.net> | 2009-08-06 03:00:45 -0400 |
commit | b9eb4ddf2e231310d660426ea8492aaa0ce2105a (patch) | |
tree | 126bbaae0eac60a10dd12a2d4685fb72455333fe /src/game/World.cpp | |
parent | 11b6ae792416c0b9a77f5a38d32c8867894764c0 (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/World.cpp')
-rw-r--r-- | src/game/World.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/World.cpp b/src/game/World.cpp index 47f18362ce3..4669590392c 100644 --- a/src/game/World.cpp +++ b/src/game/World.cpp @@ -1587,7 +1587,7 @@ void World::SetInitialWorldSettings() poolhandler.Initialize(); sLog.outString("Initialize AuctionHouseBot..."); - AuctionHouseBotInit(); + auctionbot.Initialize(); // possibly enable db logging; avoid massive startup spam by doing it here. if (sLog.GetLogDBLater()) @@ -1713,7 +1713,7 @@ void World::Update(uint32 diff) /// <ul><li> Handle auctions when the timer has passed if (m_timers[WUPDATE_AUCTIONS].Passed()) { - AuctionHouseBot(); + auctionbot.Update(); m_timers[WUPDATE_AUCTIONS].Reset(); ///- Update mails (return old mails with item, or delete them) |