Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions conf/mod_ahbot.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
###############################################################################
Expand Down
6 changes: 3 additions & 3 deletions src/AuctionHouseBot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down