refactor(Core/Event): Load event vendors seperatly (#20906)
This commit is contained in:
parent
7714ca31a2
commit
b4d04b1af1
6 changed files with 103 additions and 63 deletions
|
|
@ -135,6 +135,7 @@ public:
|
|||
{ "npc_spellclick_spells", HandleReloadSpellClickSpellsCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "npc_trainer", HandleReloadNpcTrainerCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "npc_vendor", HandleReloadNpcVendorCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "game_event_npc_vendor", HandleReloadGameEventNPCVendorCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "page_text", HandleReloadPageTextsCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "pickpocketing_loot_template", HandleReloadLootTemplatesPickpocketingCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "points_of_interest", HandleReloadPointsOfInterestCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
|
|
@ -765,6 +766,14 @@ public:
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool HandleReloadGameEventNPCVendorCommand(ChatHandler* handler)
|
||||
{
|
||||
LOG_INFO("server.loading", "Reloading `game_event_npc_vendor` Table!");
|
||||
sGameEventMgr->LoadEventVendors();
|
||||
handler->SendGlobalGMSysMessage("DB table `game_event_npc_vendor` reloaded.");
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool HandleReloadPointsOfInterestCommand(ChatHandler* handler)
|
||||
{
|
||||
LOG_INFO("server.loading", "Reloading `points_of_interest` Table!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue