mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
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:
@@ -1,107 +1,107 @@
|
||||
-- TYPE_NPC:1
|
||||
UPDATE aowow_creature a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 1 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_OBJECT:2
|
||||
UPDATE aowow_objects a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 2 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_ITEM:3
|
||||
UPDATE aowow_items a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 3 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_ITEMSET:4
|
||||
UPDATE aowow_itemset a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 4 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_QUEST:5
|
||||
UPDATE aowow_quests a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 5 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_SPELL:6
|
||||
UPDATE aowow_spell a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 6 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_ZONE:7
|
||||
UPDATE aowow_zones a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 7 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_FACTION:8
|
||||
UPDATE aowow_factions a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 8 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_PET:9
|
||||
UPDATE aowow_pet a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 9 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_ACHIEVEMENT:10
|
||||
UPDATE aowow_achievement a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 10 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_TITLE:11
|
||||
UPDATE aowow_titles a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 11 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_WORLDEVENT:12
|
||||
UPDATE aowow_events a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 12 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_CLASS:13
|
||||
UPDATE aowow_classes a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 13 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_RACE:14
|
||||
UPDATE aowow_races a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 14 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_SKILL:15
|
||||
UPDATE aowow_skillline a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 15 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_CURRENCY:17
|
||||
UPDATE aowow_currencies a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 17 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_EMOTE:501
|
||||
UPDATE aowow_emotes a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 501 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_ENCHANTMENT:502
|
||||
UPDATE aowow_itemenchantment a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 502 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
-- TYPE_NPC:1
|
||||
UPDATE aowow_creature a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 1 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_OBJECT:2
|
||||
UPDATE aowow_objects a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 2 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_ITEM:3
|
||||
UPDATE aowow_items a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 3 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_ITEMSET:4
|
||||
UPDATE aowow_itemset a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 4 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_QUEST:5
|
||||
UPDATE aowow_quests a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 5 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_SPELL:6
|
||||
UPDATE aowow_spell a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 6 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_ZONE:7
|
||||
UPDATE aowow_zones a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 7 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_FACTION:8
|
||||
UPDATE aowow_factions a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 8 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_PET:9
|
||||
UPDATE aowow_pet a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 9 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_ACHIEVEMENT:10
|
||||
UPDATE aowow_achievement a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 10 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_TITLE:11
|
||||
UPDATE aowow_titles a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 11 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_WORLDEVENT:12
|
||||
UPDATE aowow_events a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 12 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_CLASS:13
|
||||
UPDATE aowow_classes a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 13 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_RACE:14
|
||||
UPDATE aowow_races a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 14 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_SKILL:15
|
||||
UPDATE aowow_skillline a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 15 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_CURRENCY:17
|
||||
UPDATE aowow_currencies a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 17 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_EMOTE:501
|
||||
UPDATE aowow_emotes a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 501 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
-- TYPE_ENCHANTMENT:502
|
||||
UPDATE aowow_itemenchantment a
|
||||
JOIN (SELECT typeId, BIT_OR(`status`) AS `ccFlags` FROM aowow_screenshots WHERE `type` = 502 GROUP BY typeId) b ON a.id = b.typeId
|
||||
SET a.cuFlags = a.cuFlags | 0x02000000
|
||||
WHERE b.ccFlags & 0x8;
|
||||
|
||||
23
setup/updates/1488745158_01.sql
Normal file
23
setup/updates/1488745158_01.sql
Normal file
@@ -0,0 +1,23 @@
|
||||
-- drop deprecatede dbc-tables
|
||||
DROP TABLE IF EXISTS `dbc_areatable`;
|
||||
DROP TABLE IF EXISTS `dbc_creaturedisplayinfo`;
|
||||
DROP TABLE IF EXISTS `dbc_creaturemodeldata`;
|
||||
DROP TABLE IF EXISTS `dbc_creaturesounddata`;
|
||||
DROP TABLE IF EXISTS `dbc_emotestextsound`;
|
||||
DROP TABLE IF EXISTS `dbc_itemdisplayinfo`;
|
||||
DROP TABLE IF EXISTS `dbc_itemgroupsounds`;
|
||||
DROP TABLE IF EXISTS `dbc_itemsubclass`;
|
||||
DROP TABLE IF EXISTS `dbc_material`;
|
||||
DROP TABLE IF EXISTS `dbc_npcsounds`;
|
||||
DROP TABLE IF EXISTS `dbc_soundambience`;
|
||||
DROP TABLE IF EXISTS `dbc_soundemitters`;
|
||||
DROP TABLE IF EXISTS `dbc_soundentries`;
|
||||
DROP TABLE IF EXISTS `dbc_spell`;
|
||||
DROP TABLE IF EXISTS `dbc_spellvisual`;
|
||||
DROP TABLE IF EXISTS `dbc_spellvisualkit`;
|
||||
DROP TABLE IF EXISTS `dbc_vocaluisounds`;
|
||||
DROP TABLE IF EXISTS `dbc_weaponimpactsounds`;
|
||||
DROP TABLE IF EXISTS `dbc_weaponswingsounds2`;
|
||||
DROP TABLE IF EXISTS `dbc_worldstatezonesound`;
|
||||
DROP TABLE IF EXISTS `dbc_zoneintromusictable`;
|
||||
DROP TABLE IF EXISTS `dbc_zonemusic`;
|
||||
164
setup/updates/1488745158_02.sql
Normal file
164
setup/updates/1488745158_02.sql
Normal file
@@ -0,0 +1,164 @@
|
||||
-- alterations
|
||||
|
||||
ALTER TABLE `aowow_spell`
|
||||
ADD COLUMN `spellVisualId` smallint(5) unsigned NOT NULL AFTER `rankNo`;
|
||||
|
||||
ALTER TABLE `aowow_items`
|
||||
ADD COLUMN `spellVisualId` smallint(5) unsigned NOT NULL DEFAULT '0' AFTER `displayId`,
|
||||
ADD COLUMN `material` tinyint(3) NOT NULL DEFAULT '0' AFTER `lockId`,
|
||||
ADD COLUMN `soundOverrideSubclass` tinyint(3) NOT NULL AFTER `subClassBak`,
|
||||
ADD COLUMN `pickUpSoundId` smallint(5) unsigned NOT NULL DEFAULT '0' AFTER `maxMoneyLoot`,
|
||||
ADD COLUMN `dropDownSoundId` smallint(5) unsigned NOT NULL DEFAULT '0' AFTER `pickUpSoundId`,
|
||||
ADD COLUMN `sheatheSoundId` smallint(5) unsigned NOT NULL DEFAULT '0' AFTER `dropDownSoundId`,
|
||||
ADD COLUMN `unsheatheSoundId` smallint(5) unsigned NOT NULL DEFAULT '0' AFTER `sheatheSoundId`;
|
||||
|
||||
|
||||
-- additions
|
||||
|
||||
REPLACE INTO `aowow_articles` (`type`, `typeId`, `locale`, `article`, `quickInfo`)
|
||||
VALUES (19, -1000, 0, 'Here you can set up a playlist of sounds and music. \n\nJust click the "Add" button near an audio control, then return to this page to listen to the list you\'ve created.', NULL);
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET NAMES utf8 */;
|
||||
/*!50503 SET NAMES utf8mb4 */;
|
||||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
||||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
||||
|
||||
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';
|
||||
|
||||
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';
|
||||
|
||||
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
|
||||
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
|
||||
UPDATE aowow_dbversion SET `build` = CONCAT(IFNULL(`build`, ''), ' sounds'), `sql` = CONCAT(IFNULL(`sql`, ''), ' spell creature sounds spawns');
|
||||
Reference in New Issue
Block a user