Core/Scripts/SmartAI: removed test code

Core/CreatureTextMgr: added reload command
handle text from DB
handle grouped texts
handle repeatable/single texts based on probability
todo: sound/emote, code cleanup

--HG--
branch : trunk
This commit is contained in:
Rat
2010-09-26 20:48:25 +02:00
parent 133ab88f8c
commit bbf86641a1
9 changed files with 162 additions and 14 deletions
+9
View File
@@ -60,6 +60,7 @@
#include "WeatherMgr.h"
#include "ScriptMgr.h"
#include "LFGMgr.h"
#include "CreatureTextMgr.h"
//reload commands
bool ChatHandler::HandleReloadAllCommand(const char*)
@@ -1170,6 +1171,14 @@ bool ChatHandler::HandleReloadConditions(const char* /*args*/)
return true;
}
bool ChatHandler::HandleReloadCreatureText(const char* /*args*/)
{
sLog.outString("Re-Loading Creature Texts...");
sCreatureTextMgr.LoadCreatureTexts();
SendGlobalGMSysMessage("Creature Texts reloaded.");
return true;
}
bool ChatHandler::HandleAccountSetGmLevelCommand(const char *args)
{
if (!*args)