Spells/Effects

* only use MiscValue as spellid for SpellEffect:155
 * interpret and display SpellEffect 293
 * SpellEffects 131 & 132 can both play audio
This commit is contained in:
Sarjuuk 2017-03-31 00:59:16 +02:00
parent f3d694ac79
commit 92394e415a
9 changed files with 80 additions and 11 deletions

View file

@ -2575,6 +2575,17 @@ CREATE TABLE `aowow_items_sounds` (
PRIMARY KEY (`soundId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='actually .. its only weapon related sounds in here';
DROP TABLE IF EXISTS `aowow_spelloverride`;
CREATE TABLE `aowow_spelloverride` (
`id` smallint(5) unsigned NOT NULL,
`spellId1` mediumint(8) unsigned NULL DEFAULT NULL,
`spellId2` mediumint(8) unsigned NULL DEFAULT NULL,
`spellId3` mediumint(8) unsigned NULL DEFAULT NULL,
`spellId4` mediumint(8) unsigned NULL DEFAULT NULL,
`spellId5` mediumint(8) unsigned NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
@ -2668,7 +2679,7 @@ UNLOCK TABLES;
LOCK TABLES `aowow_dbversion` WRITE;
/*!40000 ALTER TABLE `aowow_dbversion` DISABLE KEYS */;
INSERT INTO `aowow_dbversion` VALUES (1490815302,0,NULL,NULL);
INSERT INTO `aowow_dbversion` VALUES (1490912250,0,NULL,NULL);
/*!40000 ALTER TABLE `aowow_dbversion` ENABLE KEYS */;
UNLOCK TABLES;

View file

@ -96,6 +96,7 @@ class DBC
'mapdifficulty' => 'niixxxxxxxxxxxxxxxxxxis',
'material' => 'nxxii',
'npcsounds' => 'niiix',
'overridespelldata' => 'niiiixixxxxx',
'powerdisplay' => 'nisbbb',
'questfactionreward' => 'niiiiiiiiii',
'questxp' => 'niiiiiiiiii',
@ -197,6 +198,7 @@ class DBC
'mapdifficulty' => 'Id,mapId,difficulty,nPlayer,nPlayerString',
'material' => 'Id,sheatheSoundId,unsheatheSoundId',
'npcsounds' => 'Id,greetSoundId,byeSoundId,angrySoundId',
'overridespelldata' => 'Id,spellId1,spellId2,spellId3,spellId4,spellId5',
'powerdisplay' => 'Id,realType,globalString,r,g,b',
'questfactionreward' => 'Id,field1,field2,field3,field4,field5,field6,field7,field8,field9,field10',
'questxp' => 'Id,field1,field2,field3,field4,field5,field6,field7,field8,field9,field10',

View file

@ -14,6 +14,7 @@ if (!CLI)
$files = DB::Aowow()->selectCol('SELECT ABS(id) AS ARRAY_KEY, CONCAT(path, "/", `file`) FROM ?_sounds_files');
$nFiles = count($files);
$itr = $i = 0;
$step = 1000;
foreach ($files as $fileId => $filePath)
{
$i++;

View file

@ -37,6 +37,7 @@ class SqlGen
'scalingstatdistribution' => ['scalingstatdistribution', true, null, null],
'scalingstatvalues' => ['scalingstatvalues', true, null, null],
'spellfocusobject' => ['spellfocusobject', false, null, null],
'spelloverride' => ['overridespelldata', false, null, null],
'spellrange' => ['spellrange', false, null, null],
'spellvariables' => ['spelldescriptionvariables', false, null, null],
'totemcategory' => ['totemcategory', false, null, null],

View file

@ -0,0 +1,11 @@
CREATE TABLE `aowow_spelloverride` (
`id` SMALLINT(5) UNSIGNED NOT NULL,
`spellId1` MEDIUMINT(8) UNSIGNED NULL DEFAULT NULL,
`spellId2` MEDIUMINT(8) UNSIGNED NULL DEFAULT NULL,
`spellId3` MEDIUMINT(8) UNSIGNED NULL DEFAULT NULL,
`spellId4` MEDIUMINT(8) UNSIGNED NULL DEFAULT NULL,
`spellId5` MEDIUMINT(8) UNSIGNED NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) COLLATE='utf8_general_ci' ENGINE=InnoDB;
UPDATE `aowow_dbversion` SET `sql` = CONCAT(IFNULL(`sql`, ''), ' spelloverride');