mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[9225] Implement .relaod gossip_scripts
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
ce2ecedea1
commit
f706842ab8
4 changed files with 24 additions and 1 deletions
|
|
@ -131,6 +131,7 @@ bool ChatHandler::HandleReloadAllScriptsCommand(const char*)
|
|||
|
||||
sLog.outString( "Re-Loading Scripts..." );
|
||||
HandleReloadGameObjectScriptsCommand("a");
|
||||
HandleReloadGossipScriptsCommand("a");
|
||||
HandleReloadEventScriptsCommand("a");
|
||||
HandleReloadQuestEndScriptsCommand("a");
|
||||
HandleReloadQuestStartScriptsCommand("a");
|
||||
|
|
@ -267,6 +268,26 @@ bool ChatHandler::HandleReloadGossipMenuOptionCommand(const char*)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleReloadGossipScriptsCommand(const char* arg)
|
||||
{
|
||||
if(sWorld.IsScriptScheduled())
|
||||
{
|
||||
SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(*arg!='a')
|
||||
sLog.outString( "Re-Loading Scripts from `gossip_scripts`...");
|
||||
|
||||
sObjectMgr.LoadGossipScripts();
|
||||
|
||||
if(*arg!='a')
|
||||
SendGlobalSysMessage("DB table `gossip_scripts` reloaded.");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleReloadGOQuestRelationsCommand(const char*)
|
||||
{
|
||||
sLog.outString( "Loading Quests Relations... (`gameobject_questrelation`)" );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue