[11723] Auction House Bot (AHBot) patch applied

Thanks to Chris K, cyberium, Dolomit6, grether, Kerbe, Naicisum, Paradox, Xeross
and other contributers for creating, long time improvments and patch up-to-date state support.

AHBot disabled by default. For enable it you need have ahbot.conf
in same dir where mangosd.conf placed and enable options:
AuctionHouseBot.Seller.Enabled and/or AuctionHouseBot.Buyer.Enabled

Original version ahbot.conf can be found by path:
src/game/AuctionHouseBot/ahbot.conf.dist.in

Note: chat commands from patch not included in commits and will added later after
      additional work.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
antiroot 2011-07-08 20:53:56 +04:00 committed by VladimirMangos
parent 124dc96643
commit 04581f36ce
16 changed files with 2287 additions and 17 deletions

View file

@ -36,23 +36,25 @@ enum LogLevel
// bitmask (not forgot update logFilterData content)
enum LogFilters
{
LOG_FILTER_TRANSPORT_MOVES = 0x0001, // any related to transport moves
LOG_FILTER_CREATURE_MOVES = 0x0002, // creature move by cells
LOG_FILTER_VISIBILITY_CHANGES = 0x0004, // update visibility for diff objects and players
LOG_FILTER_ACHIEVEMENT_UPDATES= 0x0008, // achievement update broadcasts
LOG_FILTER_WEATHER = 0x0010, // weather changes
LOG_FILTER_PLAYER_STATS = 0x0020, // player save data
LOG_FILTER_SQL_TEXT = 0x0040, // raw SQL text send to DB engine
LOG_FILTER_PLAYER_MOVES = 0x0080, // player moves by grid/cell
LOG_FILTER_PERIODIC_AFFECTS = 0x0100, // DoT/HoT apply trace
LOG_FILTER_AI_AND_MOVEGENSS = 0x0200, // AI/movement generators debug output
LOG_FILTER_DAMAGE = 0x0400, // Direct/Area damage trace
LOG_FILTER_COMBAT = 0x0800, // attack states/roll attack results/etc
LOG_FILTER_SPELL_CAST = 0x1000, // spell cast/aura apply/spell proc events
LOG_FILTER_DB_STRICTED_CHECK = 0x2000, // stricted DB data checks output (with possible false reports) for DB devs
LOG_FILTER_TRANSPORT_MOVES = 0x0001, // 0 any related to transport moves
LOG_FILTER_CREATURE_MOVES = 0x0002, // 1 creature move by cells
LOG_FILTER_VISIBILITY_CHANGES = 0x0004, // 2 update visibility for diff objects and players
LOG_FILTER_ACHIEVEMENT_UPDATES= 0x0008, // 3 achievement update broadcasts
LOG_FILTER_WEATHER = 0x0010, // 4 weather changes
LOG_FILTER_PLAYER_STATS = 0x0020, // 5 player save data
LOG_FILTER_SQL_TEXT = 0x0040, // 6 raw SQL text send to DB engine
LOG_FILTER_PLAYER_MOVES = 0x0080, // 7 player moves by grid/cell
LOG_FILTER_PERIODIC_AFFECTS = 0x0100, // 8 DoT/HoT apply trace
LOG_FILTER_AI_AND_MOVEGENSS = 0x0200, // 9 AI/movement generators debug output
LOG_FILTER_DAMAGE = 0x0400, // 10 Direct/Area damage trace
LOG_FILTER_COMBAT = 0x0800, // 11 attack states/roll attack results/etc
LOG_FILTER_SPELL_CAST = 0x1000, // 12 spell cast/aura apply/spell proc events
LOG_FILTER_DB_STRICTED_CHECK = 0x2000, // 13 stricted DB data checks output (with possible false reports) for DB devs
LOG_FILTER_AHBOT_SELLER = 0x4000, // 14 Auction House Bot seller part
LOG_FILTER_AHBOT_BUYER = 0x8000, // 15 Auction House Bot buyer part
};
#define LOG_FILTER_COUNT 14
#define LOG_FILTER_COUNT 16
struct LogFilterData
{