mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Spells/Sounds
* get sounds from ScreenEffect.dbc and link to type Spell and type Sound * resolve ScreenEffect name in SpellDetailPage Fixup * fix warning in UI escape sequence parsing
This commit is contained in:
@@ -108,6 +108,7 @@ class DBC
|
||||
'randproppoints' => 'niiiiiiiiiiiiiii',
|
||||
'scalingstatdistribution' => 'niiiiiiiiiiiiiiiiiiiii',
|
||||
'scalingstatvalues' => 'xniiiiiiiiiiiiiiiiiiiiii',
|
||||
'screeneffect' => 'nsxxxxxxii',
|
||||
'skillline' => 'nixsxsssxsxsxxxxxxxxsxsssxsxsxxxxxxxxixxxxxxxxxxxxxxxxxx',
|
||||
'skilllineability' => 'niiiixxixiiixx',
|
||||
'skilllinecategory' => 'nsxsssxsxsxxxxxxxxi',
|
||||
@@ -215,6 +216,7 @@ class DBC
|
||||
'randproppoints' => 'id,epic1,epic2,epic3,epic4,epic5,rare1,rare2,rare3,rare4,rare5,uncommon1,uncommon2,uncommon3,uncommon4,uncommon5',
|
||||
'scalingstatdistribution' => 'id,statMod1,statMod2,statMod3,statMod4,statMod5,statMod6,statMod7,statMod8,statMod9,statMod10,modifier1,modifier2,modifier3,modifier4,modifier5,modifier6,modifier7,modifier8,modifier9,modifier10,maxLevel',
|
||||
'scalingstatvalues' => 'id,shoulderMultiplier,trinketMultiplier,weaponMultiplier,rangedMultiplier,clothShoulderArmor,leatherShoulderArmor,mailShoulderArmor,plateShoulderArmor,weaponDPS1H,weaponDPS2H,casterDPS1H,casterDPS2H,rangedDPS,wandDPS,spellPower,primBudged,tertBudged,clothCloakArmor,clothChestArmor,leatherChestArmor,mailChestArmor,plateChestArmor',
|
||||
'screeneffect' => 'id,name,soundAmbienceId,zoneMusicId',
|
||||
'skillline' => 'id,categoryId,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,description_loc0,description_loc2,description_loc3,description_loc4,description_loc6,description_loc8,iconId',
|
||||
'skilllineability' => 'id,skillLineId,spellId,reqRaceMask,reqClassMask,reqSkillLevel,acquireMethod,skillLevelGrey,skillLevelYellow',
|
||||
'skilllinecategory' => 'id,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,index',
|
||||
|
||||
@@ -19,7 +19,7 @@ SqlGen::register(new class extends SetupScript
|
||||
// creatures
|
||||
'npcsounds', 'creaturesounddata', 'creaturedisplayinfo', 'creaturemodeldata',
|
||||
// spells
|
||||
'spell', 'spellvisual', 'spellvisualkit',
|
||||
'spell', 'spellvisual', 'spellvisualkit', 'screeneffect',
|
||||
// zones
|
||||
'soundambience', 'zonemusic', 'zoneintromusictable', 'worldstatezonesounds', 'areatable',
|
||||
// items
|
||||
@@ -423,6 +423,27 @@ SqlGen::register(new class extends SetupScript
|
||||
subClassMask = subClassMask | (1 << isc.subClass)
|
||||
');
|
||||
|
||||
|
||||
/************************/
|
||||
/* Screen Effect Sounds */
|
||||
/************************/
|
||||
|
||||
CLI::write(' - linking to screen effects');
|
||||
|
||||
DB::Aowow()->query('TRUNCATE ?_screeneffect_sounds');
|
||||
DB::Aowow()->query('
|
||||
INSERT INTO
|
||||
?_screeneffect_sounds
|
||||
SELECT
|
||||
se.id, se.name, IFNULL(sa.soundIdDay, 0), IFNULL(sa.soundIdNight, 0), IFNULL(zm.soundIdDay, 0), IFNULL(zm.soundIdNight, 0)
|
||||
FROM
|
||||
dbc_screeneffect se
|
||||
LEFT JOIN
|
||||
dbc_soundambience sa ON se.soundAmbienceId = sa.id
|
||||
LEFT JOIN
|
||||
dbc_zonemusic zm ON se.zoneMusicId = zm.id
|
||||
');
|
||||
|
||||
$this->reapplyCCFlags('sounds', Type::SOUND);
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user