Revert "Remove Remnants of Two obsolete tables: npc_trainer_template & npc_vendor_template"

This reverts commit cb7be30594e6985aea1521a174364319fb029d69.

NOTE: This proves that the code / db notes can't be trusted
This commit is contained in:
Antz 2018-01-08 20:15:04 +00:00 committed by Antz
parent 3d25dcc44a
commit 6d62bc6101
6 changed files with 88 additions and 8 deletions

View file

@ -637,6 +637,10 @@ bool ChatHandler::HandleReloadNpcTextCommand(char* /*args*/)
bool ChatHandler::HandleReloadNpcTrainerCommand(char* /*args*/)
{
sLog.outString("Re-Loading `npc_trainer_template` Table!");
sObjectMgr.LoadTrainerTemplates();
SendGlobalSysMessage("DB table `npc_trainer_template` reloaded.");
sLog.outString("Re-Loading `npc_trainer` Table!");
sObjectMgr.LoadTrainers();
SendGlobalSysMessage("DB table `npc_trainer` reloaded.");
@ -646,6 +650,10 @@ bool ChatHandler::HandleReloadNpcTrainerCommand(char* /*args*/)
bool ChatHandler::HandleReloadNpcVendorCommand(char* /*args*/)
{
// not safe reload vendor template tables independent...
sLog.outString("Re-Loading `npc_vendor_template` Table!");
sObjectMgr.LoadVendorTemplates();
SendGlobalSysMessage("DB table `npc_vendor_template` reloaded.");
sLog.outString("Re-Loading `npc_vendor` Table!");
sObjectMgr.LoadVendors();
SendGlobalSysMessage("DB table `npc_vendor` reloaded.");