aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiha Penger <miha.penger@siol.net>2015-07-19 16:50:31 +0100
committerDDuarte <dnpd.dd@gmail.com>2015-07-19 16:50:31 +0100
commit48cb64de16b49a104ea92543efc4bf6d35373c66 (patch)
tree6239ffc9b2137c9a8a48aad899a6bf3455597c88
parent7fdb07fdb736d1b929feaca88bb20878383cd9c4 (diff)
DB/Quests: Fix Mount Hyjal board quests
- Warchief's Command: Mount Hyjal! (27721) - Hero's Call: Mount Hyjal! (27726) Closes TrinityCore/TDB_4.3.4_NLU#337
-rw-r--r--sql/updates/world/2015_07_19_26_world.sql15
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/updates/world/2015_07_19_26_world.sql b/sql/updates/world/2015_07_19_26_world.sql
new file mode 100644
index 00000000000..80096a9002c
--- /dev/null
+++ b/sql/updates/world/2015_07_19_26_world.sql
@@ -0,0 +1,15 @@
+-- Warchief's Command: Mount Hyjal! (27721), Hero's Call: Mount Hyjal! (27726)
+
+UPDATE `gossip_menu_option` SET `option_id`=1, `npc_option_npcflag`=1 WHERE `menu_id` IN (12125, 12129);
+
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 15 AND `SourceGroup` IN (12125, 12129);
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
+(15, 12125, 0, 0, 0, 9, 0, 27721, 0, 0, 0, 0, 0, '', 'Show gossip option 12125 if player has quest Warchief''s Command: Mount Hyjal!'),
+(15, 12129, 0, 0, 0, 9, 0, 27726, 0, 0, 0, 0, 0, '', 'Show gossip option 12129 if player has quest Hero''s Call: Mount Hyjal!');
+
+UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` IN (15187, 15188);
+
+DELETE FROM `smart_scripts` WHERE `entryorguid` IN (15187, 15188) 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`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
+(15187, 0, 0, 0, 62, 0, 100, 0, 12129, 0, 0, 0, 11, 86587, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Emissary Jademoon - on gossip option select - cast spell Teleport to Moonglade'),
+(15188, 0, 0, 0, 62, 0, 100, 0, 12125, 0, 0, 0, 11, 86565, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Emissary Blackhoof - on gossip option select - cast spell Teleport to Moonglade');