mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10679] New table npc_vendor_template for comon item data for diff vendors.
In vendor list show own vedor items + template ites if any. Vendor template item lists selected by id stored in creature_template.vendor_id
This commit is contained in:
parent
a0cb8494a9
commit
0bf8b0aa79
16 changed files with 217 additions and 68 deletions
|
|
@ -474,6 +474,11 @@ 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.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue