implementation of Sound DB

Client sounds are cross-referenced with as many other DB-Types as possible. Including, but not limited to:
 * Character VOs (Errors, Emotes)
 * Creature VOs (Boss Dialogue)
 * Zone Music and Ambience
 * Sounds triggerd by spells
 * Sounds from general item/spell usage, creature behavior

Restrictions:
 * only one locale is supported. Choose wisely!
This commit is contained in:
Sarjuuk
2017-03-06 15:16:34 +01:00
committed by GitHub
parent 8fcd8ea429
commit 20a1829317
54 changed files with 3454 additions and 169 deletions

View File

@@ -1136,6 +1136,7 @@ CREATE TABLE `aowow_items` (
`classBak` tinyint(3) NOT NULL,
`subClass` tinyint(3) NOT NULL DEFAULT '0',
`subClassBak` tinyint(3) NOT NULL,
`soundOverrideSubclass` tinyint(3) NOT NULL,
`subSubClass` tinyint(3) NOT NULL,
`name_loc0` varchar(127) NOT NULL DEFAULT '',
`name_loc2` varchar(127) DEFAULT NULL,
@@ -1143,6 +1144,7 @@ CREATE TABLE `aowow_items` (
`name_loc6` varchar(127) DEFAULT NULL,
`name_loc8` varchar(127) DEFAULT NULL,
`displayId` mediumint(8) unsigned NOT NULL DEFAULT '0',
`spellVisualId` smallint(5) unsigned NOT NULL DEFAULT '0',
`quality` tinyint(3) unsigned NOT NULL DEFAULT '0',
`flags` bigint(20) NOT NULL DEFAULT '0',
`flagsExtra` int(10) unsigned NOT NULL DEFAULT '0',
@@ -1253,6 +1255,7 @@ CREATE TABLE `aowow_items` (
`languageId` tinyint(3) unsigned NOT NULL DEFAULT '0',
`startQuest` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lockId` mediumint(8) unsigned NOT NULL DEFAULT '0',
`material` tinyint(3) NOT NULL DEFAULT '0',
`randomEnchant` mediumint(8) NOT NULL DEFAULT '0',
`itemset` mediumint(8) unsigned NOT NULL DEFAULT '0',
`durability` smallint(5) unsigned NOT NULL DEFAULT '0',
@@ -1278,6 +1281,10 @@ CREATE TABLE `aowow_items` (
`gemEnchantmentId` mediumint(8) NOT NULL,
`minMoneyLoot` int(10) unsigned NOT NULL DEFAULT '0',
`maxMoneyLoot` int(10) unsigned NOT NULL DEFAULT '0',
`pickUpSoundId` smallint(5) unsigned NOT NULL DEFAULT '0',
`dropDownSoundId` smallint(5) unsigned NOT NULL DEFAULT '0',
`sheatheSoundId` smallint(5) unsigned NOT NULL DEFAULT '0',
`unsheatheSoundId` smallint(5) unsigned NOT NULL DEFAULT '0',
`flagsCustom` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_name` (`name_loc0`),
@@ -2119,6 +2126,7 @@ CREATE TABLE `aowow_spell` (
`iconId` smallint(5) unsigned NOT NULL,
`iconIdAlt` mediumint(9) NOT NULL,
`rankNo` tinyint(3) unsigned NOT NULL,
`spellVisualId` smallint(5) unsigned NOT NULL,
`name_loc0` varchar(85) NOT NULL,
`name_loc2` varchar(85) NOT NULL,
`name_loc3` varchar(85) NOT NULL,
@@ -2420,6 +2428,138 @@ CREATE TABLE `aowow_zones` (
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
DROP TABLE IF EXISTS `aowow_zones_sounds`;
CREATE TABLE `aowow_zones_sounds` (
`id` smallint(5) unsigned NOT NULL,
`ambienceDay` smallint(5) unsigned NOT NULL,
`ambienceNight` smallint(5) unsigned NOT NULL,
`musicDay` smallint(5) unsigned NOT NULL,
`musicNight` smallint(5) unsigned NOT NULL,
`intro` smallint(5) unsigned NOT NULL,
`worldStateId` smallint(5) unsigned NOT NULL,
`worldStateValue` smallint(6) NOT NULL,
INDEX `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `aowow_creature_sounds`;
CREATE TABLE IF NOT EXISTS `aowow_creature_sounds` (
`id` smallint(5) unsigned NOT NULL COMMENT 'CreatureDisplayInfo.dbc/id',
`greeting` smallint(5) unsigned NOT NULL,
`farewell` smallint(5) unsigned NOT NULL,
`angry` smallint(5) unsigned NOT NULL,
`exertion` smallint(5) unsigned NOT NULL,
`exertioncritical` smallint(5) unsigned NOT NULL,
`injury` smallint(5) unsigned NOT NULL,
`injurycritical` smallint(5) unsigned NOT NULL,
`death` smallint(5) unsigned NOT NULL,
`stun` smallint(5) unsigned NOT NULL,
`stand` smallint(5) unsigned NOT NULL,
`footstep` smallint(5) unsigned NOT NULL,
`aggro` smallint(5) unsigned NOT NULL,
`wingflap` smallint(5) unsigned NOT NULL,
`wingglide` smallint(5) unsigned NOT NULL,
`alert` smallint(5) unsigned NOT NULL,
`fidget` smallint(5) unsigned NOT NULL,
`customattack` smallint(5) unsigned NOT NULL,
`loop` smallint(5) unsigned NOT NULL,
`jumpstart` smallint(5) unsigned NOT NULL,
`jumpend` smallint(5) unsigned NOT NULL,
`petattack` smallint(5) unsigned NOT NULL,
`petorder` smallint(5) unsigned NOT NULL,
`petdismiss` smallint(5) unsigned NOT NULL,
`birth` smallint(5) unsigned NOT NULL,
`spellcast` smallint(5) unsigned NOT NULL,
`submerge` smallint(5) unsigned NOT NULL,
`submerged` smallint(5) unsigned NOT NULL,
`transform` smallint(5) unsigned NOT NULL,
`transformanimated` smallint(5) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='!ATTENTION!\r\nthe primary key of this table is NOT a creatureId, but displayId\r\n\r\ncolumn names from LANG.sound_activities';
DROP TABLE IF EXISTS `aowow_emotes_sounds`;
CREATE TABLE IF NOT EXISTS `aowow_emotes_sounds` (
`emoteId` smallint(5) unsigned NOT NULL,
`raceId` tinyint(3) unsigned NOT NULL,
`gender` tinyint(1) unsigned NOT NULL,
`soundId` smallint(5) unsigned NOT NULL,
UNIQUE KEY `emoteId_raceId_gender_soundId` (`emoteId`,`raceId`,`gender`,`soundId`),
KEY `emoteId` (`emoteId`),
KEY `raceId` (`raceId`),
KEY `soundId` (`soundId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `aowow_races_sounds`;
CREATE TABLE IF NOT EXISTS `aowow_races_sounds` (
`raceId` tinyint(3) unsigned NOT NULL,
`soundId` smallint(5) unsigned NOT NULL,
`gender` tinyint(1) unsigned NOT NULL,
UNIQUE KEY `race_soundId_gender` (`raceId`,`soundId`,`gender`),
KEY `race` (`raceId`),
KEY `soundId` (`soundId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `aowow_sounds`;
CREATE TABLE IF NOT EXISTS `aowow_sounds` (
`id` smallint(5) unsigned NOT NULL,
`cat` tinyint(3) unsigned NOT NULL,
`name` varchar(100) NOT NULL,
`cuFlags` int(10) unsigned NOT NULL,
`soundFile1` smallint(5) unsigned DEFAULT NULL,
`soundFile2` smallint(5) unsigned DEFAULT NULL,
`soundFile3` smallint(5) unsigned DEFAULT NULL,
`soundFile4` smallint(5) unsigned DEFAULT NULL,
`soundFile5` smallint(5) unsigned DEFAULT NULL,
`soundFile6` smallint(5) unsigned DEFAULT NULL,
`soundFile7` smallint(5) unsigned DEFAULT NULL,
`soundFile8` smallint(5) unsigned DEFAULT NULL,
`soundFile9` smallint(5) unsigned DEFAULT NULL,
`soundFile10` smallint(5) unsigned DEFAULT NULL,
`flags` mediumint(8) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `cat` (`cat`),
KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `aowow_sounds_files`;
CREATE TABLE IF NOT EXISTS `aowow_sounds_files` (
`id` smallint(6) NOT NULL COMMENT '<0 not found in client files',
`file` varchar(75) NOT NULL,
`path` varchar(75) NOT NULL COMMENT 'in client',
`type` tinyint(1) unsigned NOT NULL COMMENT '1: ogg; 2: mp3',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `aowow_spell_sounds`;
CREATE TABLE IF NOT EXISTS `aowow_spell_sounds` (
`id` smallint(5) unsigned NOT NULL COMMENT 'SpellVisual.dbc/id',
`animation` smallint(5) unsigned NOT NULL,
`ready` smallint(5) unsigned NOT NULL,
`precast` smallint(5) unsigned NOT NULL,
`cast` smallint(5) unsigned NOT NULL,
`impact` smallint(5) unsigned NOT NULL,
`state` smallint(5) unsigned NOT NULL,
`statedone` smallint(5) unsigned NOT NULL,
`channel` smallint(5) unsigned NOT NULL,
`casterimpact` smallint(5) unsigned NOT NULL,
`targetimpact` smallint(5) unsigned NOT NULL,
`castertargeting` smallint(5) unsigned NOT NULL,
`missiletargeting` smallint(5) unsigned NOT NULL,
`instantarea` smallint(5) unsigned NOT NULL,
`persistentarea` smallint(5) unsigned NOT NULL,
`casterstate` smallint(5) unsigned NOT NULL,
`targetstate` smallint(5) unsigned NOT NULL,
`missile` smallint(5) unsigned NOT NULL COMMENT 'not predicted by js',
`impactarea` smallint(5) unsigned NOT NULL COMMENT 'not predicted by js',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='!ATTENTION!\r\nthe primary key of this table is NOT a spellId, but spellVisualId\r\n\r\ncolumn names from LANG.sound_activities';
DROP TABLE IF EXISTS `aowow_items_sounds`;
CREATE TABLE `aowow_items_sounds` (
`soundId` smallint(5) unsigned NOT NULL,
`subClassMask` mediumint(8) unsigned NOT NULL,
PRIMARY KEY (`soundId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='actually .. its only weapon related sounds in here';
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
@@ -2513,7 +2653,7 @@ UNLOCK TABLES;
LOCK TABLES `aowow_dbversion` WRITE;
/*!40000 ALTER TABLE `aowow_dbversion` DISABLE KEYS */;
INSERT INTO `aowow_dbversion` VALUES (1484926142,0,NULL,NULL);
INSERT INTO `aowow_dbversion` VALUES (1488745159,0,NULL,NULL);
/*!40000 ALTER TABLE `aowow_dbversion` ENABLE KEYS */;
UNLOCK TABLES;