From cf67b7d375845e1745a79a712701413fcf4e75ea Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 1 Aug 2015 18:48:55 +0200 Subject: Core/AHBot: Adjust AHBot bid and buyout chances Apply an exponential formula to define the chance to bid/buyout an auction depending on auction price and item price ratio. The formula can be adjusted changing the new AuctionHouseBot.Buyer.ChanceFactor config parameter Chance = 100 ^ (1 + (1 - (auction_price / item_price) / k) k is the config parameter AuctionHouseBot.Buyer.ChanceFactor, the higher the number the higher chance to buy overpriced auctions. (cherry picked from commit 177b6319d1ad49a38fbd06f37671da1e3d1ae4e6) Conflicts: src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp --- src/server/worldserver/worldserver.conf.dist | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/server/worldserver') diff --git a/src/server/worldserver/worldserver.conf.dist b/src/server/worldserver/worldserver.conf.dist index 2465bdd3bdb..bb9c6ae9b0a 100644 --- a/src/server/worldserver/worldserver.conf.dist +++ b/src/server/worldserver/worldserver.conf.dist @@ -3153,6 +3153,13 @@ AuctionHouseBot.Buyer.Alliance.Enabled = 0 AuctionHouseBot.Buyer.Horde.Enabled = 0 AuctionHouseBot.Buyer.Neutral.Enabled = 0 +# AuctionHouseBot.Buyer.ChanceFactor +# Description: k value in the formula used for the chance to buy an item "100^(1 + (1 - (AuctionBid / ItemPrice)) / k)" +# It must be a decimal number in the range of (0, +infinity). The higher the number the higher chance to buy overpriced auctions +# Default: 2 + +AuctionHouseBot.Buyer.ChanceFactor = 2 + # # AuctionHouseBot.Buyer.Baseprice.QUALITY # Description: Base sellprices in copper for non priced items for each quality. -- cgit v1.2.3