diff --git a/conf/mod_ahbot.conf.dist b/conf/mod_ahbot.conf.dist index 04218f05..0235a63e 100644 --- a/conf/mod_ahbot.conf.dist +++ b/conf/mod_ahbot.conf.dist @@ -89,9 +89,9 @@ # # AuctionHouseBot.ElapsingTimeClass # The elapsing time for the sold items. There are three classes: -# 0 = long, auctions lasts from one to three days -# 1 = medium, auctions lasts within a day -# 2 = shorts, auctions lasts within an hour +# 0 = long, auctions last from from 1 to 3 days +# 1 = medium, auctions last from 1 to 24 hours +# 2 = shorts, auctions last from 10 to 60 minutes # Default 1 # ############################################################################### diff --git a/src/AuctionHouseBot.cpp b/src/AuctionHouseBot.cpp index f372151f..5ccf93eb 100644 --- a/src/AuctionHouseBot.cpp +++ b/src/AuctionHouseBot.cpp @@ -132,13 +132,13 @@ uint32 AuctionHouseBot::getElapsedTime(uint32 timeClass) switch (timeClass) { case 2: - return urand(1, 5) * 600; // SHORT = In the range of one hour + return urand(1, 6) * 600; // SHORT = From 10 to 60 minutes case 1: - return urand(1, 23) * 3600; // MEDIUM = In the range of one day + return urand(1, 24) * 3600; // MEDIUM = From 1 to 24 hours default: - return urand(1, 3) * 86400; // LONG = More than one day but less than three + return urand(24, 72) * 3600; // LONG = From 1 to 3 days } }