mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[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:
parent
918e646ca2
commit
ec6089bbd8
32 changed files with 454 additions and 435 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue