Skip to content

Commit

Permalink
[11994] Implement creature_linking by guid
Browse files Browse the repository at this point in the history
  • Loading branch information
Schmoozerd committed May 10, 2012
1 parent 534a25d commit 519842b
Show file tree
Hide file tree
Showing 6 changed files with 259 additions and 74 deletions.
24 changes: 23 additions & 1 deletion sql/mangos.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ CREATE TABLE `db_version` (
`version` varchar(120) default NULL,
`creature_ai_version` varchar(120) default NULL,
`cache_id` int(10) default '0',
`required_11985_01_mangos_gameobject_template_scripts` bit(1) default NULL
`required_11994_01_mangos_creature_linking` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';

--
Expand Down Expand Up @@ -966,6 +966,28 @@ LOCK TABLES `creature_involvedrelation` WRITE;
/*!40000 ALTER TABLE `creature_involvedrelation` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `creature_linking`
--

DROP TABLE IF EXISTS creature_linking;
CREATE TABLE `creature_linking` (
`guid` int(10) UNSIGNED NOT NULL COMMENT 'creature.guid of the slave mob that is linked',
`master_guid` 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 (`guid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Creature Linking System';


--
-- Dumping data for table `creature_linking`
--

LOCK TABLES `creature_linking` WRITE;
/*!40000 ALTER TABLE `creature_linking` DISABLE KEYS */;
/*!40000 ALTER TABLE `creature_linking` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `creature_linking_template`
--
Expand Down
13 changes: 13 additions & 0 deletions sql/updates/11994_01_mangos_creature_linking.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ALTER TABLE db_version CHANGE COLUMN required_11985_01_mangos_gameobject_template_scripts required_11994_01_mangos_creature_linking bit;

--
-- Table structure for table `creature_linking`
--

DROP TABLE IF EXISTS creature_linking;
CREATE TABLE `creature_linking` (
`guid` int(10) UNSIGNED NOT NULL COMMENT 'creature.guid of the slave mob that is linked',
`master_guid` 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 (`guid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Creature Linking System';

0 comments on commit 519842b

Please sign in to comment.