mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[11259] Move scheduled scripts counter to ScriptMgr
Also cleanup forward declarations.
This commit is contained in:
parent
dee6d712c4
commit
a6d155fc54
9 changed files with 33 additions and 33 deletions
|
|
@ -127,7 +127,7 @@ bool ChatHandler::HandleReloadAllQuestCommand(char* /*args*/)
|
|||
|
||||
bool ChatHandler::HandleReloadAllScriptsCommand(char* /*args*/)
|
||||
{
|
||||
if (sWorld.IsScriptScheduled())
|
||||
if (sScriptMgr.IsScriptScheduled())
|
||||
{
|
||||
PSendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -288,7 +288,7 @@ bool ChatHandler::HandleReloadGossipMenuOptionCommand(char* /*args*/)
|
|||
|
||||
bool ChatHandler::HandleReloadGossipScriptsCommand(char* args)
|
||||
{
|
||||
if (sWorld.IsScriptScheduled())
|
||||
if (sScriptMgr.IsScriptScheduled())
|
||||
{
|
||||
SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -701,7 +701,7 @@ bool ChatHandler::HandleReloadBattleEventCommand(char* /*args*/)
|
|||
|
||||
bool ChatHandler::HandleReloadGameObjectScriptsCommand(char* args)
|
||||
{
|
||||
if (sWorld.IsScriptScheduled())
|
||||
if (sScriptMgr.IsScriptScheduled())
|
||||
{
|
||||
SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -721,7 +721,7 @@ bool ChatHandler::HandleReloadGameObjectScriptsCommand(char* args)
|
|||
|
||||
bool ChatHandler::HandleReloadEventScriptsCommand(char* args)
|
||||
{
|
||||
if(sWorld.IsScriptScheduled())
|
||||
if (sScriptMgr.IsScriptScheduled())
|
||||
{
|
||||
SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -766,7 +766,7 @@ bool ChatHandler::HandleReloadEventAIScriptsCommand(char* /*args*/)
|
|||
|
||||
bool ChatHandler::HandleReloadQuestEndScriptsCommand(char* args)
|
||||
{
|
||||
if (sWorld.IsScriptScheduled())
|
||||
if (sScriptMgr.IsScriptScheduled())
|
||||
{
|
||||
SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -786,7 +786,7 @@ bool ChatHandler::HandleReloadQuestEndScriptsCommand(char* args)
|
|||
|
||||
bool ChatHandler::HandleReloadQuestStartScriptsCommand(char* args)
|
||||
{
|
||||
if (sWorld.IsScriptScheduled())
|
||||
if (sScriptMgr.IsScriptScheduled())
|
||||
{
|
||||
SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -806,7 +806,7 @@ bool ChatHandler::HandleReloadQuestStartScriptsCommand(char* args)
|
|||
|
||||
bool ChatHandler::HandleReloadSpellScriptsCommand(char* args)
|
||||
{
|
||||
if (sWorld.IsScriptScheduled())
|
||||
if (sScriptMgr.IsScriptScheduled())
|
||||
{
|
||||
SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
SetSentErrorMessage(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue