From ab712b78bae10022be1045c20621cb0136866f67 Mon Sep 17 00:00:00 2001 From: Chaz Brown Date: Fri, 5 Jun 2009 20:51:45 -0400 Subject: Fix AHBot to calculate the deposit for auctions so it can be used to check the code for figuring deposit amount on a wide range of items. Fix ahbotoptions command so it works from the server console again. change commented out lines in GetAuctionDeposit so they display in debug loglevel. Min/Max Time settings replaced with a function that selects 12 24 and 48 randomly as the auction times. --HG-- branch : trunk --- src/game/AuctionHouseMgr.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/game/AuctionHouseMgr.cpp') diff --git a/src/game/AuctionHouseMgr.cpp b/src/game/AuctionHouseMgr.cpp index c8876c36063..ba412dea8be 100644 --- a/src/game/AuctionHouseMgr.cpp +++ b/src/game/AuctionHouseMgr.cpp @@ -92,11 +92,13 @@ uint32 AuctionHouseMgr::GetAuctionDeposit(AuctionHouseEntry const* entry, uint32 faction_pct = 0.0f; deposit = 0.0f; } - //sLog.outString("SellPrice:\t\t%u", MSV); - //sLog.outString("Deposit Percent:\t%f", faction_pct); - //sLog.outString("Min Auction Time:\t%u", (time / MIN_AUCTION_TIME )); - //sLog.outString("Count:\t\t\t%u", pItem->GetCount()); - //sLog.outString("Deposit:\t\t%f", deposit); + sLog.outDebug("SellPrice:\t\t%u", MSV); + sLog.outDebug("Deposit Percent:\t%f", faction_pct); + sLog.outDebug("Auction Time1:\t\t%u", time); + sLog.outDebug("Auction Time2:\t\t%u", MIN_AUCTION_TIME); + sLog.outDebug("Auction Time3:\t\t%u", (time / MIN_AUCTION_TIME )); + sLog.outDebug("Count:\t\t\t%u", pItem->GetCount()); + sLog.outDebug("Deposit:\t\t%f", deposit); if (deposit > 0) return (uint32)deposit; else -- cgit v1.2.3