mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
Code and concept (also known as EventAI) by ScriptDev2. Note: database table layout are compatible with original db-scripts.
30 lines
No EOL
1.8 KiB
SQL
30 lines
No EOL
1.8 KiB
SQL
ALTER TABLE db_version CHANGE COLUMN required_7616_02_mangos_command required_7622_01_mangos_creature_ai_scripts bit;
|
|
|
|
|
|
DROP TABLE IF EXISTS `creature_ai_scripts`;
|
|
CREATE TABLE `creature_ai_scripts` (
|
|
`id` int(11) unsigned NOT NULL COMMENT 'Identifier' AUTO_INCREMENT,
|
|
`creature_id` int(11) unsigned NOT NULL default '0' COMMENT 'Creature Template Identifier',
|
|
`event_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Event Type',
|
|
`event_inverse_phase_mask` int(11) signed NOT NULL default '0' COMMENT 'Mask which phases this event will not trigger in',
|
|
`event_chance` int(3) unsigned NOT NULL default '100',
|
|
`event_flags` int(3) unsigned NOT NULL default '0',
|
|
`event_param1` int(11) signed NOT NULL default '0',
|
|
`event_param2` int(11) signed NOT NULL default '0',
|
|
`event_param3` int(11) signed NOT NULL default '0',
|
|
`event_param4` int(11) signed NOT NULL default '0',
|
|
`action1_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Action Type',
|
|
`action1_param1` int(11) signed NOT NULL default '0',
|
|
`action1_param2` int(11) signed NOT NULL default '0',
|
|
`action1_param3` int(11) signed NOT NULL default '0',
|
|
`action2_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Action Type',
|
|
`action2_param1` int(11) signed NOT NULL default '0',
|
|
`action2_param2` int(11) signed NOT NULL default '0',
|
|
`action2_param3` int(11) signed NOT NULL default '0',
|
|
`action3_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Action Type',
|
|
`action3_param1` int(11) signed NOT NULL default '0',
|
|
`action3_param2` int(11) signed NOT NULL default '0',
|
|
`action3_param3` int(11) signed NOT NULL default '0',
|
|
`comment` varchar(255) NOT NULL default '' COMMENT 'Event Comment',
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='EventAI Scripts'; |