diff options
author | Chaz Brown <iamparadox@netscape.net> | 2009-06-05 20:51:45 -0400 |
---|---|---|
committer | Chaz Brown <iamparadox@netscape.net> | 2009-06-05 20:51:45 -0400 |
commit | ab712b78bae10022be1045c20621cb0136866f67 (patch) | |
tree | 4a3e0f5b43542e9bb9aa0d177b2ba21299c15d7b /src/game/Level3.cpp | |
parent | 16d3c8378f779face4f1194f194e41907a9cca63 (diff) |
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
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r-- | src/game/Level3.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp index 2082c7e5339..bc0e3b8f80f 100644 --- a/src/game/Level3.cpp +++ b/src/game/Level3.cpp @@ -88,8 +88,8 @@ bool ChatHandler::HandleAHBotOptionsCommand(const char* args) PSendSysMessage("ahexpire"); PSendSysMessage("minitems"); PSendSysMessage("maxitems"); - PSendSysMessage("mintime"); - PSendSysMessage("maxtime"); + //PSendSysMessage(""); + //PSendSysMessage(""); PSendSysMessage("percentages"); PSendSysMessage("minprice"); PSendSysMessage("maxprice"); @@ -132,6 +132,9 @@ bool ChatHandler::HandleAHBotOptionsCommand(const char* args) } else if (strncmp(opt,"mintime",l) == 0) { + PSendSysMessage("ahbotoptions mintime has been deprecated"); + return false; + /* char * param1 = strtok(NULL, " "); if ((!ahMapIdStr) || (!param1)) { @@ -139,9 +142,13 @@ bool ChatHandler::HandleAHBotOptionsCommand(const char* args) return false; } AuctionHouseBotCommands(3, ahMapID, NULL, param1); + */ } else if (strncmp(opt,"maxtime",l) == 0) { + PSendSysMessage("ahbotoptions maxtime has been deprecated"); + return false; + /* char * param1 = strtok(NULL, " "); if ((!ahMapIdStr) || (!param1)) { @@ -149,6 +156,7 @@ bool ChatHandler::HandleAHBotOptionsCommand(const char* args) return false; } AuctionHouseBotCommands(4, ahMapID, NULL, param1); + */ } else if (strncmp(opt,"percentages",l) == 0) { |