Core/Summons: Implement summon groups system to be able to summon multiple NPCs at once without need of hardcoding the positions. Almost all hardcoded positions can now be moved to DB.

Thx to @Shauren for his help.
This commit is contained in:
horn
2013-02-23 01:50:52 +01:00
parent 06257d1034
commit ba549ddc30
8 changed files with 202 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
DROP TABLE IF EXISTS `creature_summon_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `creature_summon_groups` (
`summonerId` mediumint(8) unsigned NOT NULL DEFAULT '0',
`summonerType` tinyint(3) unsigned NOT NULL DEFAULT '0',
`groupId` tinyint(3) unsigned NOT NULL DEFAULT '0',
`entry` 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',
`summonType` tinyint(3) unsigned NOT NULL DEFAULT '0',
`summonTime` int(10) unsigned NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;