1 ALTER TABLE db_version CHANGE COLUMN required_7616_02_mangos_command required_7622_01_mangos_creature_ai_scripts bit;
4 DROP TABLE IF EXISTS `creature_ai_scripts`;
5 CREATE TABLE `creature_ai_scripts` (
6 `id` int(11) unsigned NOT NULL COMMENT 'Identifier' AUTO_INCREMENT,
7 `creature_id` int(11) unsigned NOT NULL default '0' COMMENT 'Creature Template Identifier',
8 `event_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Event Type',
9 `event_inverse_phase_mask` int(11) signed NOT NULL default '0' COMMENT 'Mask which phases this event will not trigger in',
10 `event_chance` int(3) unsigned NOT NULL default '100',
11 `event_flags` int(3) unsigned NOT NULL default '0',
12 `event_param1` int(11) signed NOT NULL default '0',
13 `event_param2` int(11) signed NOT NULL default '0',
14 `event_param3` int(11) signed NOT NULL default '0',
15 `event_param4` int(11) signed NOT NULL default '0',
16 `action1_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Action Type',
17 `action1_param1` int(11) signed NOT NULL default '0',
18 `action1_param2` int(11) signed NOT NULL default '0',
19 `action1_param3` int(11) signed NOT NULL default '0',
20 `action2_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Action Type',
21 `action2_param1` int(11) signed NOT NULL default '0',
22 `action2_param2` int(11) signed NOT NULL default '0',
23 `action2_param3` int(11) signed NOT NULL default '0',
24 `action3_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Action Type',
25 `action3_param1` int(11) signed NOT NULL default '0',
26 `action3_param2` int(11) signed NOT NULL default '0',
27 `action3_param3` int(11) signed NOT NULL default '0',
28 `comment` varchar(255) NOT NULL default '' COMMENT 'Event Comment',
30 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='EventAI Scripts';