mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10867] Implement templates for trainer spell data in npc_trainer_template.
New table let avoid duplication similar trainer spells for different trainers.
This commit is contained in:
parent
f228a1c08d
commit
1d8f222621
15 changed files with 229 additions and 77 deletions
|
|
@ -467,8 +467,12 @@ bool ChatHandler::HandleReloadNpcGossipCommand(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.LoadTrainerSpell();
|
||||
sObjectMgr.LoadTrainers();
|
||||
SendGlobalSysMessage("DB table `npc_trainer` reloaded.");
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue