azerothcore / mod-ah-bot

AHBot for AzerothCore
http://azerothcore.org/
70 stars 82 forks source link

Market price adaptation mechanism #102

Closed kewinrausch closed 1 month ago

kewinrausch commented 1 month ago

Changes Proposed:

Issues Addressed:

SOURCE:

Tests Performed:

How to Test the Changes:

  1. Enable the bot and configure it for a standard behavior
  2. Configure the bot to adapt to market prices with AuctionHouseBot.UseMarketPriceForSeller = 1
  3. Enable the debugging of the configuration AuctionHouseBot.DEBUG_CONFIG = 1
  4. Enter in the game before buying hover the auction with the mouse to see the price per item of that auction. Write down the price somewhere and buyout it.
  5. On the server console you will see a log like Updating market price item=2450, price=49
  6. If you buy again the same item with a different price per unit, you will see the item price change, fluctuating up and down depending on the market mood for that item
  7. Changing AuctionHouseBot.MarketResetThreshold allows you to setup a slower or faster adaptation threshold