Added support for item set names in case where item does not exist in item_template (like gladiator gear)

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-06-11 20:02:46 +02:00
parent 96ac28ebad
commit 4261828d63
14 changed files with 299 additions and 37 deletions
+16
View File
@@ -1284,6 +1284,14 @@ bool ChatHandler::HandleReloadItemEnchantementsCommand(const char*)
return true;
}
bool ChatHandler::HandleReloadItemSetNamesCommand(const char*)
{
sLog.outString("Re-Loading Item set names...");
LoadRandomEnchantmentsTable();
SendGlobalGMSysMessage("DB table `item_set_names` reloaded.");
return true;
}
bool ChatHandler::HandleReloadGameObjectScriptsCommand(const char* arg)
{
if (sWorld.IsScriptScheduled())
@@ -1502,6 +1510,14 @@ bool ChatHandler::HandleReloadLocalesItemCommand(const char* /*arg*/)
return true;
}
bool ChatHandler::HandleReloadLocalesItemSetNameCommand(const char* /*arg*/)
{
sLog.outString("Re-Loading Locales Item set name... ");
objmgr.LoadItemSetNameLocales();
SendGlobalGMSysMessage("DB table `locales_item_set_name` reloaded.");
return true;
}
bool ChatHandler::HandleReloadLocalesNpcTextCommand(const char* /*arg*/)
{
sLog.outString("Re-Loading Locales NPC Text ... ");