mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10912] Move scripting related functions from ObjectMgr to ScriptMgr
This commit is contained in:
parent
f61166c2bf
commit
0d6f990e4e
23 changed files with 1297 additions and 1185 deletions
|
|
@ -297,7 +297,7 @@ bool ChatHandler::HandleReloadGossipScriptsCommand(char* args)
|
|||
if (*args!='a')
|
||||
sLog.outString( "Re-Loading Scripts from `gossip_scripts`...");
|
||||
|
||||
sObjectMgr.LoadGossipScripts();
|
||||
sScriptMgr.LoadGossipScripts();
|
||||
|
||||
if (*args!='a')
|
||||
SendGlobalSysMessage("DB table `gossip_scripts` reloaded.");
|
||||
|
|
@ -702,7 +702,7 @@ bool ChatHandler::HandleReloadGameObjectScriptsCommand(char* args)
|
|||
if (*args!='a')
|
||||
sLog.outString( "Re-Loading Scripts from `gameobject_scripts`...");
|
||||
|
||||
sObjectMgr.LoadGameObjectScripts();
|
||||
sScriptMgr.LoadGameObjectScripts();
|
||||
|
||||
if (*args!='a')
|
||||
SendGlobalSysMessage("DB table `gameobject_scripts` reloaded.");
|
||||
|
|
@ -722,7 +722,7 @@ bool ChatHandler::HandleReloadEventScriptsCommand(char* args)
|
|||
if (*args!='a')
|
||||
sLog.outString( "Re-Loading Scripts from `event_scripts`...");
|
||||
|
||||
sObjectMgr.LoadEventScripts();
|
||||
sScriptMgr.LoadEventScripts();
|
||||
|
||||
if (*args!='a')
|
||||
SendGlobalSysMessage("DB table `event_scripts` reloaded.");
|
||||
|
|
@ -767,7 +767,7 @@ bool ChatHandler::HandleReloadQuestEndScriptsCommand(char* args)
|
|||
if (*args != 'a')
|
||||
sLog.outString( "Re-Loading Scripts from `quest_end_scripts`...");
|
||||
|
||||
sObjectMgr.LoadQuestEndScripts();
|
||||
sScriptMgr.LoadQuestEndScripts();
|
||||
|
||||
if (*args != 'a')
|
||||
SendGlobalSysMessage("DB table `quest_end_scripts` reloaded.");
|
||||
|
|
@ -787,7 +787,7 @@ bool ChatHandler::HandleReloadQuestStartScriptsCommand(char* args)
|
|||
if (*args != 'a')
|
||||
sLog.outString( "Re-Loading Scripts from `quest_start_scripts`...");
|
||||
|
||||
sObjectMgr.LoadQuestStartScripts();
|
||||
sScriptMgr.LoadQuestStartScripts();
|
||||
|
||||
if (*args != 'a')
|
||||
SendGlobalSysMessage("DB table `quest_start_scripts` reloaded.");
|
||||
|
|
@ -807,7 +807,7 @@ bool ChatHandler::HandleReloadSpellScriptsCommand(char* args)
|
|||
if (*args != 'a')
|
||||
sLog.outString( "Re-Loading Scripts from `spell_scripts`...");
|
||||
|
||||
sObjectMgr.LoadSpellScripts();
|
||||
sScriptMgr.LoadSpellScripts();
|
||||
|
||||
if (*args != 'a')
|
||||
SendGlobalSysMessage("DB table `spell_scripts` reloaded.");
|
||||
|
|
@ -818,7 +818,7 @@ bool ChatHandler::HandleReloadSpellScriptsCommand(char* args)
|
|||
bool ChatHandler::HandleReloadDbScriptStringCommand(char* /*args*/)
|
||||
{
|
||||
sLog.outString( "Re-Loading Script strings from `db_script_string`...");
|
||||
sObjectMgr.LoadDbScriptStrings();
|
||||
sScriptMgr.LoadDbScriptStrings();
|
||||
SendGlobalSysMessage("DB table `db_script_string` reloaded.");
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue