aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level3.cpp
diff options
context:
space:
mode:
authorChaz Brown <iamparadox@netscape.net>2009-06-05 21:12:12 -0400
committerChaz Brown <iamparadox@netscape.net>2009-06-05 21:12:12 -0400
commit715f410fb7fdebe1c22401cb749ad57eae637040 (patch)
treec43f21e862007a5d294cf3da08866176f9ef3541 /src/game/Level3.cpp
parenta319125b4f49109cf008b5f055cf56cd30a7ed7f (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. Backport from TC2
--HG-- branch : trunk
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r--src/game/Level3.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp
index 128971f0153..b0cb3c5fc9f 100644
--- a/src/game/Level3.cpp
+++ b/src/game/Level3.cpp
@@ -78,8 +78,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");
@@ -112,6 +112,9 @@ bool ChatHandler::HandleAHBotOptionsCommand(const char* args)
}
else if (strncmp(opt,"maxitems",l) == 0)
{
+ PSendSysMessage("ahbotoptions mintime has been deprecated");
+ return false;
+ /*
char * param1 = strtok(NULL, " ");
if ((!ahMapIdStr) || (!param1))
{
@@ -119,9 +122,13 @@ bool ChatHandler::HandleAHBotOptionsCommand(const char* args)
return false;
}
AuctionHouseBotCommands(2, ahMapID, NULL, param1);
+ */
}
else if (strncmp(opt,"mintime",l) == 0)
{
+ PSendSysMessage("ahbotoptions maxtime has been deprecated");
+ return false;
+ /*
char * param1 = strtok(NULL, " ");
if ((!ahMapIdStr) || (!param1))
{
@@ -129,6 +136,7 @@ bool ChatHandler::HandleAHBotOptionsCommand(const char* args)
return false;
}
AuctionHouseBotCommands(3, ahMapID, NULL, param1);
+ */
}
else if (strncmp(opt,"maxtime",l) == 0)
{