From 8d254a5300b5c0d38045dd2c4ee78619d37a710c Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Mon, 7 Jan 2019 00:14:05 +0100 Subject: [PATCH] DB: fixed all remaining non-loot and non-scriptname related startup errors --- .../world/custom/custom_2019_01_07_00_world.sql | 14 ++++++++++++++ src/server/scripts/Kalimdor/zone_durotar.cpp | 16 ++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 sql/updates/world/custom/custom_2019_01_07_00_world.sql diff --git a/sql/updates/world/custom/custom_2019_01_07_00_world.sql b/sql/updates/world/custom/custom_2019_01_07_00_world.sql new file mode 100644 index 0000000000..e350d303fe --- /dev/null +++ b/sql/updates/world/custom/custom_2019_01_07_00_world.sql @@ -0,0 +1,14 @@ +DELETE FROM `script_waypoint` WHERE `entry`= 2768; +DELETE FROM `spell_linked_spell` WHERE `spell_trigger`= -93342; + +DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_zuni_lvl_1_trigger_aura'; +INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES +(93342, 'spell_zuni_lvl_1_trigger_aura'); + +-- spellclick +DELETE FROM `spell_dbc` WHERE `Id` IN (83580, 89480); +INSERT INTO `spell_dbc`(`Id`, `Attributes`, `AttributesEx`, `AttributesEx2`, `AttributesEx3`, `AttributesEx4`, `AttributesEx5`, `AttributesEx6`, `AttributesEx7`, `AttributesEx8`, `AttributesEx9`, `AttributesEx10`, `CastingTimeIndex`, `DurationIndex`, `RangeIndex`, `SchoolMask`, `SpellAuraOptionsId`, `SpellCastingRequirementsId`, `SpellCategoriesId`, `SpellClassOptionsId`, `SpellEquippedItemsId`, `SpellInterruptsId`, `SpellLevelsId`, `SpellTargetRestrictionsId`, `Comment`) VALUES +(83580, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 0, 0, 0, 0, 0, 0, 0, '(Serverside/Non-DB2) Grilling Primer'), +(89480, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 0, 0, 0, 0, 0, 0, 0, '(Serverside/Non-DB2) Summon Main Event Vehicle'); + +DELETE FROM `achievement_criteria_data` WHERE `criteria_id` IN (6140, 6141, 6142, 4244); diff --git a/src/server/scripts/Kalimdor/zone_durotar.cpp b/src/server/scripts/Kalimdor/zone_durotar.cpp index fe7e96a588..56c6fa45a7 100644 --- a/src/server/scripts/Kalimdor/zone_durotar.cpp +++ b/src/server/scripts/Kalimdor/zone_durotar.cpp @@ -66,7 +66,23 @@ class spell_voodoo : public SpellScriptLoader } }; +class spell_zuni_lvl_1_trigger_aura : public SpellScript +{ + PrepareSpellScript(spell_zuni_lvl_1_trigger_aura); + + void HandleDummy(SpellEffIndex /*effIndex*/) + { + GetCaster()->CastSpell(GetCaster(), GetSpellInfo()->Effects[EFFECT_0].BasePoints, true); + } + + void Register() override + { + OnEffectHitTarget += SpellEffectFn(spell_zuni_lvl_1_trigger_aura::HandleDummy, EFFECT_0, SPELL_EFFECT_DUMMY); + } +}; + void AddSC_durotar() { new spell_voodoo(); + RegisterSpellScript(spell_zuni_lvl_1_trigger_aura); }