[7622] Added creatureAI with related database tables.

Code and concept (also known as EventAI) by ScriptDev2.
Note: database table layout are compatible with original db-scripts.
This commit is contained in:
AlexDereka 2009-04-05 22:53:12 +04:00
parent d6223e18f5
commit 6bb6ff0f7e
19 changed files with 2936 additions and 2 deletions

View file

@ -38,6 +38,7 @@
#include "AchievementMgr.h"
#include "AuctionHouseMgr.h"
#include "ObjectMgr.h"
#include "CreatureEventAIMgr.h"
#include "SpellMgr.h"
#include "Chat.h"
#include "DBCStores.h"
@ -1339,6 +1340,15 @@ void World::SetInitialWorldSettings()
sLog.outString( "Loading Scripts text locales..." ); // must be after Load*Scripts calls
objmgr.LoadDbScriptStrings();
sLog.outString( "Loading CreatureEventAI Texts...");
CreatureEAI_Mgr.LoadCreatureEventAI_Texts();
sLog.outString( "Loading CreatureEventAI Summons...");
CreatureEAI_Mgr.LoadCreatureEventAI_Summons();
sLog.outString( "Loading CreatureEventAI Scripts...");
CreatureEAI_Mgr.LoadCreatureEventAI_Scripts();
sLog.outString( "Initializing Scripts..." );
if(!LoadScriptingModule())
exit(1);