[10935] Move script calls to ScriptMgr

- Script library presence is now optional.
- Some script hooks have new names. Scripting libraries need to be adjusted accordingly.

Signed-off-by: zergtmn <zerg@myisp.com>
This commit is contained in:
zergtmn 2010-12-29 21:48:06 +05:00
parent 918e646ca2
commit ec6089bbd8
32 changed files with 454 additions and 435 deletions

View file

@ -33,7 +33,7 @@
#include "Guild.h"
#include "ObjectAccessor.h"
#include "MapManager.h"
#include "ScriptCalls.h"
#include "ScriptMgr.h"
#include "Language.h"
#include "GridNotifiersImpl.h"
#include "CellImpl.h"
@ -927,7 +927,10 @@ bool ChatHandler::HandleReloadMailLevelRewardCommand(char* /*args*/)
bool ChatHandler::HandleLoadScriptsCommand(char* args)
{
if (!LoadScriptingModule(args))
if (!*args)
return false;
if (!sScriptMgr.LoadScriptLibrary(args))
return true;
sWorld.SendWorldText(LANG_SCRIPTS_RELOADED);