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
This commit is contained in:
1 parent
11b6ae7924
commit
b9eb4ddf2e
9 files changed
+1365
-1163
No files matched your search
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user