67 {
"items", ahbotItemsAmountCommandTable },
68 {
"ratio", ahbotItemsRatioCommandTable },
76 {
"ahbot", ahbotCommandTable },
86 for (
AuctionQuality quality : EnumUtils::Iterate<AuctionQuality>())
92 template <AuctionQuality Q>
104 sAuctionBot->SetItemsRatio(alliance, horde, neutral);
111 template<AuctionHouseType H>
134 std::unordered_map<AuctionHouseType, AuctionHouseBotStatusInfoPerType> statusInfo;
177 for (
AuctionQuality quality : EnumUtils::Iterate<AuctionQuality>())
193template bool ahbot_commandscript::HandleAHBotItemsAmountQualityCommand<AUCTION_QUALITY_GRAY>(
ChatHandler* handler,
uint32 amount);
194template bool ahbot_commandscript::HandleAHBotItemsAmountQualityCommand<AUCTION_QUALITY_WHITE>(
ChatHandler* handler,
uint32 amount);
195template bool ahbot_commandscript::HandleAHBotItemsAmountQualityCommand<AUCTION_QUALITY_GREEN>(
ChatHandler* handler,
uint32 amount);
196template bool ahbot_commandscript::HandleAHBotItemsAmountQualityCommand<AUCTION_QUALITY_BLUE>(
ChatHandler* handler,
uint32 amount);
197template bool ahbot_commandscript::HandleAHBotItemsAmountQualityCommand<AUCTION_QUALITY_PURPLE>(
ChatHandler* handler,
uint32 amount);
198template bool ahbot_commandscript::HandleAHBotItemsAmountQualityCommand<AUCTION_QUALITY_ORANGE>(
ChatHandler* handler,
uint32 amount);
199template bool ahbot_commandscript::HandleAHBotItemsAmountQualityCommand<AUCTION_QUALITY_YELLOW>(
ChatHandler* handler,
uint32 amount);
201template bool ahbot_commandscript::HandleAHBotItemsRatioHouseCommand<AUCTION_HOUSE_ALLIANCE>(
ChatHandler* handler,
uint32 ratio);
202template bool ahbot_commandscript::HandleAHBotItemsRatioHouseCommand<AUCTION_HOUSE_HORDE>(
ChatHandler* handler,
uint32 ratio);
203template bool ahbot_commandscript::HandleAHBotItemsRatioHouseCommand<AUCTION_HOUSE_NEUTRAL>(
ChatHandler* handler,
uint32 ratio);
@ CONFIG_AHBOT_HORDE_ITEM_AMOUNT_RATIO
@ CONFIG_AHBOT_ALLIANCE_ITEM_AMOUNT_RATIO
@ CONFIG_AHBOT_NEUTRAL_ITEM_AMOUNT_RATIO
#define sAuctionBotConfig
@ LANG_AHBOT_STATUS_TITLE1_CHAT
@ LANG_AHBOT_QUALITY_ORANGE
@ LANG_AHBOT_STATUS_ITEM_COUNT
@ LANG_AHBOT_STATUS_ITEM_RATIO
@ LANG_AHBOT_STATUS_MIDBAR_CONSOLE
@ LANG_AHBOT_QUALITY_BLUE
@ LANG_AHBOT_STATUS_TITLE2_CONSOLE
@ LANG_AHBOT_STATUS_FORMAT_CHAT
@ LANG_AHBOT_ITEMS_AMOUNT
@ LANG_AHBOT_STATUS_FORMAT_CONSOLE
@ LANG_AHBOT_QUALITY_GREEN
@ LANG_AHBOT_STATUS_BAR_CONSOLE
@ LANG_AHBOT_QUALITY_YELLOW
@ LANG_AHBOT_STATUS_TITLE2_CHAT
@ LANG_AHBOT_QUALITY_WHITE
@ LANG_AHBOT_QUALITY_PURPLE
@ LANG_AHBOT_STATUS_TITLE1_CONSOLE
@ LANG_AHBOT_QUALITY_GRAY
std::optional< T > Optional
Optional helper class to wrap optional values within.
Role Based Access Control related classes definition.
static char const * GetHouseTypeName(AuctionHouseType houseType)
WorldSession * GetSession()
void PSendSysMessage(const char *fmt, Args &&... args)
virtual void SendSysMessage(std::string_view str, bool escapeCharacters=false)
virtual char const * GetTrinityString(uint32 entry) const
Player session in the World.
static bool HandleAHBotStatusCommand(ChatHandler *handler, Optional< EXACT_SEQUENCE("all")> all)
static bool HandleAHBotItemsRatioHouseCommand(ChatHandler *handler, uint32 ratio)
static bool HandleAHBotRebuildCommand(ChatHandler *, Optional< EXACT_SEQUENCE("all")> all)
static bool HandleAHBotItemsAmountCommand(ChatHandler *handler, std::array< uint32, MAX_AUCTION_QUALITY > items)
ChatCommandTable GetCommands() const override
static bool HandleAHBotItemsAmountQualityCommand(ChatHandler *handler, uint32 amount)
static bool HandleAHBotReloadCommand(ChatHandler *handler)
static bool HandleAHBotItemsRatioCommand(ChatHandler *handler, uint32 alliance, uint32 horde, uint32 neutral)
void AddSC_ahbot_commandscript()
static std::unordered_map< AuctionQuality, uint32 > const ahbotQualityLangIds
std::vector< ChatCommandBuilder > ChatCommandTable
@ RBAC_PERM_COMMAND_AHBOT_RATIO
@ RBAC_PERM_COMMAND_AHBOT_ITEMS_BLUE
@ RBAC_PERM_COMMAND_AHBOT_REBUILD
@ RBAC_PERM_COMMAND_AHBOT_ITEMS
@ RBAC_PERM_COMMAND_AHBOT_RELOAD
@ RBAC_PERM_COMMAND_AHBOT_ITEMS_YELLOW
@ RBAC_PERM_COMMAND_AHBOT_ITEMS_GREEN
@ RBAC_PERM_COMMAND_AHBOT_ITEMS_WHITE
@ RBAC_PERM_COMMAND_AHBOT_ITEMS_GRAY
@ RBAC_PERM_COMMAND_AHBOT_RATIO_ALLIANCE
@ RBAC_PERM_COMMAND_AHBOT_ITEMS_PURPLE
@ RBAC_PERM_COMMAND_AHBOT_RATIO_HORDE
@ RBAC_PERM_COMMAND_AHBOT_ITEMS_ORANGE
@ RBAC_PERM_COMMAND_AHBOT_RATIO_NEUTRAL
@ RBAC_PERM_COMMAND_AHBOT_STATUS