From 9b63f1da50a48d131f963b16ba4bdd671b4bdaed Mon Sep 17 00:00:00 2001 From: NathanHandley Date: Sat, 25 Nov 2023 18:03:05 -0600 Subject: [PATCH] Added more variable auction listing times --- src/AuctionHouseBot.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/AuctionHouseBot.cpp b/src/AuctionHouseBot.cpp index a239b9b..742b9c9 100644 --- a/src/AuctionHouseBot.cpp +++ b/src/AuctionHouseBot.cpp @@ -462,22 +462,7 @@ void AuctionHouseBot::addNewAuctions(Player *AHBplayer, AHBConfig *config) calculateItemValue(prototype, bidPrice, buyoutPrice); // Define a duration - uint32 etime = urand(1,3); - switch(etime) - { - case 1: - etime = 43200; - break; - case 2: - etime = 86400; - break; - case 3: - etime = 172800; - break; - default: - etime = 86400; - break; - } + uint32 etime = urand(900, 43200); // Set stack size uint32 stackCount = getStackSizeForItem(prototype);