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 committed 2010-09-26 20:48:25 +02:00
1 parent 133ab88f8c
commit bbf86641a1
9 files changed
+162 -14

No files matched your search

-6
View File
@@ -35,7 +35,6 @@ void SmartAIMgr::LoadSmartAIFromDB()
SmartAI::SmartAI(Creature *c) : CreatureAI(c)
{
// copy script to local (pretection for table reload)
mTestTimer = 0;
}
int SmartAI::Permissible(const Creature *creature)
@@ -47,11 +46,6 @@ int SmartAI::Permissible(const Creature *creature)
void SmartAI::UpdateAI(const uint32 diff)
{
if (mTestTimer < diff)
{
mTestTimer = 60000;
sCreatureTextMgr.SendChat(me,"CHAT_TYPE_SAY", CHAT_TYPE_SAY);
} else mTestTimer -= diff;
}
void SmartAI::JustRespawned()