aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Chat/Commands
diff options
context:
space:
mode:
authorRat <none@none>2010-10-27 21:01:47 +0200
committerRat <none@none>2010-10-27 21:01:47 +0200
commit5cb119e617195bfe4ddb35ce377201e0d01807fb (patch)
treeaa8a528ec76b9b28081714dbdb769ccbdfa22556 /src/server/game/Chat/Commands
parentc9fba03da9b095ee1b76329af4db90ce18b31598 (diff)
Core/AI: implemented SmartScripts System (still beta) not 100% complete
WARNING: Use scripts at own risk. You were warned. NOTE0: creature, gameobject, areatrigger type scripts should be fully functional NOTE1: has no effect on any core related stuff if not using any SmartScript NOTE2: all event/action/etc descriptions can be found in SmartScriptMgr.h SmartScripts is a reloadable DB-Sript system, with full control for special scripting, like escorting, following, complex combat handling, pre-stored AI templates(caster, turret, etc) and much more with a total of 66 events, 78 actions, 22 target types, and can be easily extended --HG-- branch : trunk
Diffstat (limited to 'src/server/game/Chat/Commands')
-rwxr-xr-xsrc/server/game/Chat/Commands/Level3.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/server/game/Chat/Commands/Level3.cpp b/src/server/game/Chat/Commands/Level3.cpp
index 3f10d91fc0a..8453e0f67c6 100755
--- a/src/server/game/Chat/Commands/Level3.cpp
+++ b/src/server/game/Chat/Commands/Level3.cpp
@@ -59,6 +59,7 @@
#include "ScriptMgr.h"
#include "LFGMgr.h"
#include "CreatureTextMgr.h"
+#include "SmartAI.h"
//reload commands
bool ChatHandler::HandleReloadAllCommand(const char*)
@@ -1177,6 +1178,14 @@ bool ChatHandler::HandleReloadCreatureText(const char* /*args*/)
return true;
}
+bool ChatHandler::HandleReloadSmartAI(const char* /*args*/)
+{
+ sLog.outString("Re-Loading SmartAI Scripts...");
+ sSmartScriptMgr.LoadSmartAIFromDB();
+ SendGlobalGMSysMessage("SmartAI Scripts reloaded.");
+ return true;
+}
+
bool ChatHandler::HandleAccountSetGmLevelCommand(const char *args)
{
if (!*args)