Skip to content

Commit 8b1d6f9

Browse files
authored
DB/Quest: Warlock quest "The Binding"
closes #30665 by Jonne733
1 parent 5a0a660 commit 8b1d6f9

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
2+
-- Intro for quest "The Binding" (1795)
3+
-- Game objects are spawned by the script
4+
DELETE FROM `gameobject` WHERE `guid` IN (29205,50355);
5+
DELETE FROM `gameobject_addon` WHERE `guid` IN (29205,50355);
6+
7+
-- Strahad Farsan Text
8+
DELETE FROM `creature_text` WHERE `CreatureID`=6251;
9+
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
10+
(6251,0,0,"I hope you're ready, $n. Follow me.",12,0,100,1,0,0,2370,0,"Strahad Farsan"),
11+
(6251,1,0,"Come, my acolytes. Take the rods of channeling and create the greater summoning circle.",12,0,100,1,0,0,2374,0,"Strahad Farsan");
12+
13+
-- Script
14+
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry` IN (6251,6252,6253,6254,6268);
15+
DELETE FROM `smart_scripts` WHERE `entryorguid` IN( 6251,6252,6253,6254,6268) AND `source_type`=0;
16+
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (625100,625101,625102,625103,625200,625300,625400,626800) AND `source_type`=9;
17+
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
18+
19+
-- Strahad Farsan Script
20+
(6251,0,0,0,19,0,100,0,1795,0,0,0,0,80,625100,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Strahad Farsan - On Quest 'The Binding' Taken - Run Script"),
21+
(6251,0,1,0,40,0,100,0,4,0,0,0,0,80,625101,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Strahad Farsan - On Waypoint 4 Reached - Run Script"),
22+
(6251,0,2,0,40,0,100,0,6,0,0,0,0,80,625102,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Strahad Farsan - On Waypoint 7 Reached - Run Script"),
23+
(6251,0,3,0,38,0,100,0,0,3,0,0,0,65,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Strahad Farsan - On Data Set 0 3 - Resume Waypoint"),
24+
(6251,0,4,0,40,0,100,0,9,0,0,0,0,80,625103,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Strahad Farsan - On Waypoint 10 Reached - Run Script"),
25+
26+
-- Acolyte Magaz Script
27+
(6252,0,0,0,38,0,100,0,0,1,0,0,0,80,625200,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Acolyte Magaz - On Data Set 0 1 - Run Script"),
28+
(6252,0,1,0,38,0,100,0,0,2,0,0,0,5,34,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Acolyte Magaz - On Data Set 0 2 - Play Emote"),
29+
30+
-- Acolyte Fenrick Script
31+
(6253,0,0,0,38,0,100,0,0,1,0,0,0,80,625200,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Acolyte Fenrick - On Data Set 0 1 - Run Script"),
32+
(6253,0,1,0,38,0,100,0,0,2,0,0,0,5,34,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Acolyte Fenrick - On Data Set 0 2 - Play Emote"),
33+
34+
-- Acolyte Wytula Script
35+
(6254,0,0,0,38,0,100,0,0,1,0,0,0,80,625200,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Acolyte Wytula - On Data Set 0 1 - Run Script"),
36+
(6254,0,1,0,38,0,100,0,0,2,0,0,0,5,34,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Acolyte Wytula - On Data Set 0 2 - Play Emote"),
37+
38+
-- Summoned Felhunter Script
39+
(6268,0,0,0,0,0,100,0,5000,11000,11000,17000,0,11,2691,0,0,0,0,0,2,0,0,0,0,0,0,0,0,"Summoned Felhunter - In Combat - Cast 'Mana Burn'"),
40+
(6268,0,1,0,54,0,100,0,0,0,0,0,0,80,626800,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Summoned Felhunter - On Just Summoned - Run Script"),
41+
(6268,0,2,0,6,0,100,0,2000,2000,0,0,0,45,0,3,0,0,0,0,19,6251,0,0,0,0,0,0,0,"Summoned Felhunter - On Death - Set Data 0 3 (Strahad Farsan)"),
42+
43+
-- Strahad Farsan Timed List 1
44+
(625100,9,0,0,0,0,100,0,0,0,0,0,0,83,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Strahad Farsan - On Script - Remove Npc Flag Questgiver+Gossip"),
45+
(625100,9,1,0,0,0,100,0,1000,1000,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Strahad Farsan - On Script - Say Line 0"),
46+
(625100,9,2,0,0,0,100,0,2000,2000,0,0,0,53,0,6251,0,0,0,0,1,0,0,0,0,0,0,0,0,"Strahad Farsan - On Script - Start Waypoint"),
47+
48+
-- Strahad Farsan Timed List 2
49+
(625101,9,0,0,0,0,100,0,0,0,0,0,0,54,13000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Strahad Farsan - On Script - Pause Waypoint"),
50+
(625101,9,1,0,0,0,100,0,1000,1000,0,0,0,11,8677,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Strahad Farsan - On Script - Cast 'Summon Effect'"),
51+
(625101,9,2,0,0,0,100,0,6000,6000,0,0,0,50,92252,188,0,0,0,0,8,0,0,0,0,-768.80353,-3721.770,42.0,4.4998,"Strahad Farsan - On Script - Summon Gameobject 'Strahad's Summoning Circle'"),
52+
(625101,9,3,0,0,0,100,0,1000,1000,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Strahad Farsan - On Script - Say Line 1"),
53+
(625101,9,4,0,0,0,100,0,0,0,0,0,0,45,0,1,0,0,0,0,19,6252,0,0,0,0,0,0,0,"Strahad Farsan - On Script - Set Data 0 1 (Acolyte Magaz)"),
54+
(625101,9,5,0,0,0,100,0,0,0,0,0,0,45,0,1,0,0,0,0,19,6253,0,0,0,0,0,0,0,"Strahad Farsan - On Script - Set Data 0 1 (Acolyte Fenrick)"),
55+
(625101,9,6,0,0,0,100,0,0,0,0,0,0,45,0,1,0,0,0,0,19,6254,0,0,0,0,0,0,0,"Strahad Farsan - On Script - Set Data 0 1 (Acolyte Wytula)"),
56+
57+
-- Strahad Farsan Timed List 3
58+
(625102,9,0,0,0,0,100,0,0,0,0,0,0,54,180000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Strahad Farsan - On Script - Pause Waypoint"),
59+
(625102,9,1,0,0,0,100,0,1000,1000,0,0,0,66,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Strahad Farsan - On Script - Set Orientation Invoker"),
60+
61+
-- Strahad Farsan Timed List 4
62+
(625103,9,0,0,0,0,100,0,1000,1000,0,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,0,2.05950,"Strahad Farsan - On Script - Set Orientation"),
63+
(625103,9,1,0,0,0,100,0,1000,1000,0,0,0,82,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Strahad Farsan - On Script - Add Npc Flag Questgiver+Gossip"),
64+
65+
-- Acolyte Magaz Timed List 1
66+
(625200,9,0,0,0,0,100,0,1000,1000,0,0,0,5,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Acolyte Magaz - On Data Set - Play Emote"),
67+
(625200,9,1,0,0,0,100,0,5000,5000,0,0,0,11,8675,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Acolyte Magaz - On Script - Cast 'Warlock Channeling'"),
68+
(625200,9,2,0,0,0,100,0,7500,7500,0,0,0,50,92388,173,0,0,0,0,8,0,0,0,0,-768.80353,-3721.770,44.10,2.5952,"Acolyte Magaz - On Script - Summon Gameobject 'Summoning Circle'"),
69+
70+
-- Acolyte Fenrick Timed List 1
71+
(625300,9,0,0,0,0,100,0,1000,1000,0,0,0,5,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Acolyte Fenrick - On Data Set - Play Emote"),
72+
(625300,9,1,0,0,0,100,0,5000,5000,0,0,0,11,8675,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Acolyte Fenrick - On Script - Cast 'Warlock Channeling'"),
73+
74+
-- Acolyte Wytula Timed List 1
75+
(625400,9,0,0,0,0,100,0,1000,1000,0,0,0,5,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Acolyte Wytula - On Data Set - Play Emote"),
76+
(625400,9,1,0,0,0,100,0,5000,5000,0,0,0,11,8675,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Acolyte Wytula - On Script - Cast 'Warlock Channeling'"),
77+
78+
-- Summoned Felhunter Timed List 1
79+
(626800,9,0,0,0,0,100,0,0,0,0,0,0,11,52096,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Summoned Felhunter - On Script - Cast 'Teleport Visual Only'"),
80+
(626800,9,1,0,0,0,100,0,1000,1000,0,0,0,45,0,2,0,0,0,0,19,6252,0,0,0,0,0,0,0,"Summoned Felhunter - On Script - Set Data 0 2 (Acolyte Magaz)"),
81+
(626800,9,2,0,0,0,100,0,0,0,0,0,0,45,0,2,0,0,0,0,19,6253,0,0,0,0,0,0,0,"Summoned Felhunter - On Script - Set Data 0 2 (Acolyte Fenrick)"),
82+
(626800,9,3,0,0,0,100,0,0,0,0,0,0,45,0,2,0,0,0,0,19,6254,0,0,0,0,0,0,0,"Summoned Felhunter - On Script - Set Data 0 2 (Acolyte Wytula)"),
83+
(626800,9,4,0,0,0,100,0,0,0,0,0,0,41,2000,0,0,0,0,0,13,92252,0,100,0,0,0,0,0,"Summoned Felhunter - On Script - Despawn Gameobject 'Strahad's Summoning Circle'"),
84+
(626800,9,5,0,0,0,100,0,0,0,0,0,0,41,2000,0,0,0,0,0,13,92388,0,100,0,0,0,0,0,"Summoned Felhunter - On Script - Despawn Gameobject 'Summoning Circle'"),
85+
(626800,9,6,0,0,0,100,0,500,500,0,0,0,49,0,0,0,0,0,0,21,20,0,0,0,0,0,0,0,"Summoned Felhunter - On Script - Start Attacking Closest Player");
86+
87+
-- Conditions
88+
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceEntry`=6251;
89+
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
90+
91+
-- Condition to prevent script from running when there already is a Felhunter spawned
92+
(22,1,6251,0,0,29,0,6268,100,0,1,0,0,"","Smart Event 0 for creature Strahad Farsan only executes if creature 'Summoned Felhunter' not near");
93+
94+
-- Strahad Farsan Waypoints
95+
DELETE FROM `waypoints` WHERE `entry`=6251;
96+
INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`,`point_comment`) VALUES
97+
(6251,1,-786.65186,-3722.0166,40.380207,"Strahad Farsan"),
98+
(6251,2,-784.910,-3717.9514,41.09593,"Strahad Farsan"),
99+
(6251,3,-778.20404,-3718.2446,42.591854,"Strahad Farsan"),
100+
(6251,4,-769.45544,-3721.2717,42.424034,"Strahad Farsan"), -- Summon
101+
(6251,5,-767.81177,-3721.42969,42.37064,"Strahad Farsan"),
102+
(6251,6,-762.8201,-3720.283,42.24128,"Strahad Farsan"), -- Waiting
103+
(6251,7,-768.04926,-3720.5073,42.379726,"Strahad Farsan"),
104+
(6251,8,-781.8862,-3716.743,41.55511,"Strahad Farsan"),
105+
(6251,9,-785.9119,-3723.260,40.515202,"Strahad Farsan"); -- Home

0 commit comments

Comments
 (0)