aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/updates/world/master/2022_02_28_50_world_2020_10_25_02_world.sql40
-rw-r--r--src/server/scripts/Kalimdor/TempleOfAhnQiraj/temple_of_ahnqiraj.h6
2 files changed, 43 insertions, 3 deletions
diff --git a/sql/updates/world/master/2022_02_28_50_world_2020_10_25_02_world.sql b/sql/updates/world/master/2022_02_28_50_world_2020_10_25_02_world.sql
new file mode 100644
index 00000000000..af8017e6bc6
--- /dev/null
+++ b/sql/updates/world/master/2022_02_28_50_world_2020_10_25_02_world.sql
@@ -0,0 +1,40 @@
+--
+UPDATE `creature_template` SET `gossip_menu_id` = 6766, `AIName` = "SmartAI" WHERE `entry` = 15378;
+UPDATE `creature_template` SET `gossip_menu_id` = 6765, `AIName` = "SmartAI" WHERE `entry` = 15379;
+UPDATE `creature_template` SET `gossip_menu_id` = 6767, `AIName` = "SmartAI" WHERE `entry` = 15380;
+UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = 15502;
+
+DELETE FROM `smart_scripts` WHERE `entryorguid` IN (15378,15379,15380,15502) 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
+(15378,0,0,0,64,0,100,0,0,0,0,0,0,98,6795,8113,0,0,0,0,7,0,0,0,0,0,0,0,0,"Merithra of the Dream - On Gossip Hello - Send Gossip"),
+(15379,0,0,0,64,0,100,0,0,0,0,0,0,98,6794,8112,0,0,0,0,7,0,0,0,0,0,0,0,0,"Caelestrasz - On Gossip Hello - Send Gossip"),
+(15380,0,0,0,64,0,100,0,0,0,0,0,0,98,6793,8111,0,0,0,0,7,0,0,0,0,0,0,0,0,"Arygos - On Gossip Hello - Send Gossip"),
+(15502,0,0,2,62,0,100,0,6644,0,0,0,0,11,29182,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Andorgos - On Gossip Option 0 Selected - Cast 'Teleport to Twin Emperors'"),
+(15502,0,1,2,62,0,100,0,6644,1,0,0,0,11,29188,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Andorgos - On Gossip Option 1 Selected - Cast 'Teleport to Final Chamber'"),
+(15502,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,"Andorgos - On Link - Close Gossip");
+
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` BETWEEN 15378 AND 15380 AND `SourceId` = 0;
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 14 AND `SourceGroup` = 6644;
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 15 AND `SourceGroup` = 6644;
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
+(22,1,15378,0,0,13,0,5,3,2,0,0,0,"","Group 0: Execute SAI (Action 0) if C'Thun is done"),
+(22,1,15379,0,0,13,0,5,3,2,0,0,0,"","Group 0: Execute SAI (Action 0) if C'Thun is done"),
+(22,1,15380,0,0,13,0,5,3,2,0,0,0,"","Group 0: Execute SAI (Action 0) if C'Thun is done"),
+(14,6644,7899,0,0,13,0,4,3,2,1,0,0,"","Group 0: Show gossip text 7899 if Twin Emperors is not done"),
+(14,6644,7899,0,0,13,0,8,3,2,1,0,0,"","Group 0: Show gossip text 7899 if Ouro is not done"),
+(14,6644,8701,0,0,13,0,4,3,2,0,0,0,"","Group 0: Show gossip text 8701 if Twin Emperors is done"),
+(14,6644,8702,0,0,13,0,8,3,2,0,0,0,"","Group 0: Show gossip text 8702 if Ouro is done"),
+(15,6644,0,0,0,13,0,4,3,2,0,0,0,"","Group 0: Show Gossip Option 0 if Twin Emperors is done"),
+(15,6644,1,0,0,13,0,8,3,2,0,0,0,"","Group 0: Show Gossip Option 1 if Ouro is done");
+
+DELETE FROM `spell_scripts` WHERE `id` IN (29182,29188);
+INSERT INTO `spell_scripts` (`id`,`effIndex`,`delay`,`command`,`datalong`,`datalong2`,`dataint`,`x`,`y`,`z`,`o`,`Comment`) VALUES
+(29182,0,0,15,29181,2,0,0,0,0,0,"Teleport to Twin Emperors - On Effect Hit (Script Effect) - Cast 'Teleport to Twin Emps Effect DND'"),
+(29188,0,0,15,29190,2,0,0,0,0,0,"Teleport to Final Chamber - On Effect Hit (Script Effect) - Cast 'Teleport to Final Chamber Effect DND'");
+
+DELETE FROM `spell_target_position` WHERE `ID` IN (29181,29190);
+INSERT INTO `spell_target_position` (`ID`, `EffectIndex`, `MapID`, `PositionX`, `PositionY`, `PositionZ`, `VerifiedBuild`) VALUES
+(29181,0,531,-8971.805,1321.432,-104.249,0),
+(29190,0,531,-8632.802,2055.835,108.859,0);
+
+UPDATE `gossip_menu_option` SET `OptionType` = 1, `OptionNpcFlag` = 1 WHERE `MenuID` = 6644;
diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/temple_of_ahnqiraj.h b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/temple_of_ahnqiraj.h
index b8c4793ec78..15bbd45cbaa 100644
--- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/temple_of_ahnqiraj.h
+++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/temple_of_ahnqiraj.h
@@ -31,11 +31,11 @@ enum AQTDataTypes
DATA_SARTURA = 1,
DATA_FRANKRIS = 2,
DATA_HUHURAN = 3,
- DATA_TWIN_EMPERORS = 4,
- DATA_CTHUN = 5,
+ DATA_TWIN_EMPERORS = 4, // Used in conditions for gossip menu options & texts (menu 6644)
+ DATA_CTHUN = 5, // Used in conditions for SAI (creatures 15378 - 15380)
DATA_BUG_TRIO = 6,
DATA_VISCIDUS = 7,
- DATA_OURO = 8,
+ DATA_OURO = 8, // Used in conditions for gossip menu options & texts (menu 6644)
// Others
DATA_KRI = 9,