aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authoroffl <11556157+offl@users.noreply.github.com>2022-03-07 03:46:45 +0200
committerShauren <shauren.trinity@gmail.com>2022-03-26 15:59:33 +0100
commitb2479e78a3ba0f2483b34f2a0627ff8b998d0cc0 (patch)
tree58ea72a6c8be9722b38a41cb297007166e9f22ff /sql
parent04c7e91097fbd0ba94cb60fee86958fdf29db8e9 (diff)
Scripts/Quest: Update 'Who Are They?' (#27855)
(cherry picked from commit a29476b92ef350ba7612b08aa885f921b612eb2f)
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/master/2022_03_26_29_world_2022_03_07_01_world.sql35
1 files changed, 35 insertions, 0 deletions
diff --git a/sql/updates/world/master/2022_03_26_29_world_2022_03_07_01_world.sql b/sql/updates/world/master/2022_03_26_29_world_2022_03_07_01_world.sql
new file mode 100644
index 00000000000..141810fa45f
--- /dev/null
+++ b/sql/updates/world/master/2022_03_26_29_world_2022_03_07_01_world.sql
@@ -0,0 +1,35 @@
+-- From 2.0.12 DBC
+UPDATE `serverside_spell` SET `Attributes` = 384, `AttributesEx2` = 128, `ProcChance` = 101, `RangeIndex` = 12, `SpellName` = 'Cancel Shadowy Disguise' WHERE `Id` = 32780;
+DELETE FROM `serverside_spell_effect` WHERE `SpellID`=32780;
+INSERT INTO `serverside_spell_effect` (`SpellID`, `Effect`, `EffectChainAmplitude`, `ImplicitTarget1`) VALUES
+(32780, 77, 1, 25);
+
+UPDATE `spell_script_names` SET `ScriptName` = 'spell_terokkar_free_webbed' WHERE `ScriptName` = 'spell_free_webbed_terokkar';
+UPDATE `spell_script_names` SET `ScriptName` = 'spell_terokkar_free_webbed_on_quest' WHERE `ScriptName` = 'spell_free_webbed_terokkar_on_quest';
+UPDATE `spell_script_names` SET `ScriptName` = 'spell_terokkar_shadowy_disguise_cast_from_questgiver' WHERE `ScriptName` = 'spell_q10041_q10040_who_are_they';
+
+DELETE FROM `spell_script_names` WHERE `ScriptName` IN ('spell_terokkar_shadowy_disguise','spell_terokkar_cancel_shadowy_disguise');
+INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
+(32756,'spell_terokkar_shadowy_disguise'),
+(32780,'spell_terokkar_cancel_shadowy_disguise');
+
+DELETE FROM `spell_linked_spell` WHERE `spell_trigger` = -32756;
+
+UPDATE `quest_template_addon` SET `SourceSpellID` = 0 WHERE `ID` IN (10040,10041);
+
+DELETE FROM `smart_scripts` WHERE `entryorguid` IN (18714,18715) AND `source_type` = 0;
+INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
+(18714,0,0,0,19,0,100,0,10041,0,0,0,0,11,48917,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Scout Neftis - On Quest 'Who Are They?' Taken - Cast 'Who Are They: Cast from Questgiver'"),
+(18714,0,1,2,62,0,100,0,7772,0,0,0,0,11,48917,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Scout Neftis - On Gossip Option 0 Selected - Cast 'Who Are They: Cast from Questgiver'"),
+(18714,0,2,0,61,0,100,0,0,0,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Scout Neftis - On Gossip Option 0 Selected - Close Gossip"),
+
+(18715,0,0,0,19,0,100,0,10040,0,0,0,0,11,48917,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Private Weeks - On Quest 'Who Are They?' Taken - Cast 'Who Are They: Cast from Questgiver'"),
+(18715,0,1,2,62,0,100,0,7771,0,0,0,0,11,48917,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Private Weeks - On Gossip Option 0 Selected - Cast 'Who Are They: Cast from Questgiver'"),
+(18715,0,2,0,61,0,100,0,0,0,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Private Weeks - On Gossip Option 0 Selected - Close Gossip");
+
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 15 AND `SourceGroup` IN (7771,7772);
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
+(15,7771,0,0,0,47,0,10040,10,0,0,0,0,'',"Group 0: Show Gossip Option 0 if player has taken quest 'Who Are They?'"),
+(15,7771,0,0,0,1,0,32756,0,0,1,0,0,"","Group 0: Show Gossip Option 0 if player does not have aura 'Shadowy Disguise'"),
+(15,7772,0,0,0,47,0,10041,10,0,0,0,0,'',"Group 0: Show Gossip Option 0 if player has taken quest 'Who Are They?'"),
+(15,7772,0,0,0,1,0,32756,0,0,1,0,0,"","Group 0: Show Gossip Option 0 if player does not have aura 'Shadowy Disguise'");