diff --git a/sql/updates/mangos/s0000_01_mangos_groups_formation.sql b/sql/updates/mangos/s0000_01_mangos_groups_formation.sql new file mode 100644 index 00000000000..87359abcfdf --- /dev/null +++ b/sql/updates/mangos/s0000_01_mangos_groups_formation.sql @@ -0,0 +1,28 @@ +ALTER TABLE `spawn_group_spawn` ADD COLUMN `SlotId` tinyint(4) NOT NULL DEFAULT -1 COMMENT '0 is the leader, -1 not part of the formation' AFTER `Guid´; + +DROP TABLE IF EXISTS `spawn_group_formation`; +CREATE TABLE `spawn_group_formation` ( + `SpawnGroupID` int(11) NOT NULL COMMENT 'Spawn group id', + `FormationType` tinyint(11) NOT NULL DEFAULT 0 COMMENT 'Formation shape 0..6', + `FormationSpread` float(11, 0) NOT NULL DEFAULT 0 COMMENT 'Distance between formation members', + `FormationOptions` int(11) NOT NULL DEFAULT 0 COMMENT 'Keep formation compact (bit 1)', + `MovementID` int(11) NOT NULL DEFAULT 0 COMMENT 'Id from movement_template path', + `MovementType` tinyint(11) NOT NULL COMMENT 'Same as creature table', + `Comment` varchar(255) NULL DEFAULT NULL, + PRIMARY KEY (`SpawnGroupID`) +); + +DROP TABLE IF EXISTS `movement_template`; +CREATE TABLE `movement_template` ( + `entry` mediumint(8) UNSIGNED NOT NULL COMMENT 'Creature entry', + `pathId` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Path ID for entry', + `point` mediumint(8) UNSIGNED NOT NULL DEFAULT 0, + `position_x` float NOT NULL DEFAULT 0, + `position_y` float NOT NULL DEFAULT 0, + `position_z` float NOT NULL DEFAULT 0, + `orientation` float NOT NULL DEFAULT 0, + `waittime` int(10) UNSIGNED NOT NULL DEFAULT 0, + `script_id` mediumint(8) UNSIGNED NOT NULL DEFAULT 0, + `comment` text NULL DEFAULT NULL, + PRIMARY KEY (`entry`, `pathId`, `point`) +);