server/sql/updates/11827_01_mangos_creature_linking_template.sql
Schmoozerd fbdd79141c [11827] Implement Creature Linking via database
Thanks to Silverice for feedback!

This system interprets the content of the table `creature_linking_template`. To trigger different actions on different events of the npcs that are linked together.
Possible event/ action combinations can be taken form the flags in CreatureLinkingMgr.h::CreatureLinkingFlags
2011-10-16 13:04:58 +02:00

10 lines
692 B
SQL

ALTER TABLE db_version CHANGE COLUMN required_11813_01_mangos_mangos_string required_11827_01_mangos_creature_linking_template bit;
DROP TABLE IF EXISTS creature_linking_template;
CREATE TABLE creature_linking_template (
entry INT(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'creature_template.entry of the slave mob that is linked',
map MEDIUMINT(8) UNSIGNED NOT NULL COMMENT 'Id of map of the mobs',
master_entry INT(10) UNSIGNED NOT NULL COMMENT 'master to trigger events',
flag MEDIUMINT(8) UNSIGNED NOT NULL COMMENT 'flag - describing what should happen when',
PRIMARY KEY (entry, map)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Creature Linking System';