diff --git a/src/game/AuctionHouseBot/AuctionHouseBot.cpp b/src/game/AuctionHouseBot/AuctionHouseBot.cpp index 5b0b4828..042d551b 100644 --- a/src/game/AuctionHouseBot/AuctionHouseBot.cpp +++ b/src/game/AuctionHouseBot/AuctionHouseBot.cpp @@ -1809,13 +1809,13 @@ void AuctionBotSeller::SetPricesOfItem(AHB_Seller_Config& config, uint32& buyp, double temp_buyp = buyp * stackcnt * (itemQuality < MAX_AUCTION_QUALITY ? config.GetPriceRatioPerQuality(AuctionQuality(itemQuality)) : 1) ; - double randrange = temp_buyp * 0.4; + double randrange = temp_buyp * 0.4; uint32 buypMin = (uint32)temp_buyp - (uint32)randrange; uint32 buypMax = ((uint32)temp_buyp + (uint32)randrange) < temp_buyp ? ACE_Numeric_Limits::max() : temp_buyp + randrange; - + buyp = (urand(buypMin, buypMax) / 100) + 1; - + double urandrange = buyp * 40; double temp_bidp = buyp * 50; uint32 bidPmin = (uint32)temp_bidp - (uint32)urandrange; diff --git a/src/game/Tools/Language.h b/src/game/Tools/Language.h index 39016003..4eaa8c05 100644 --- a/src/game/Tools/Language.h +++ b/src/game/Tools/Language.h @@ -321,8 +321,7 @@ enum MangosStrings LANG_TRIGGER_EXPLORE_QUEST = 366, /* Explore quest: */ LANG_TRIGGER_CONDITION = 367, /* Condition %u */ LANG_COMMAND_TICKETRESPONSE = 373, /* Response: %s */ - LANG_COMMAND_TICKETCOUNT_CONSOLE = 374, /* Tickets count: %i - */ + LANG_COMMAND_TICKETCOUNT_CONSOLE = 374, /* Tickets count: %i */ LANG_COMMAND_TICKETNOTEXIST_NAME = 375, /* Player %s not have tickets. */ LANG_POOL_ENTRY_LIST_CHAT = 376, /* %u - |cffffffff|Hpool:%u|h[%s]|h|r AutoSpawn: %u MaxLimit: %u Creatures: %u GameObjecs: %u Pools %u */ LANG_NO_POOL_FOR_MAP = 377, /* No pools found for map '%s' (Id:%u) */