Skip to content

Commit

Permalink
Add Formation sql
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberium committed Jan 3, 2022
1 parent 5c5126b commit 62fd840
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions sql/updates/mangos/s0000_01_mangos_groups_formation.sql
Original file line number Diff line number Diff line change
@@ -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`)
);

0 comments on commit 62fd840

Please sign in to comment.