diff options
| author | ZenoX92 <ZenoX92@users.noreply.github.com> | 2017-09-30 16:44:09 +0200 |
|---|---|---|
| committer | Killyana <morphone1@gmail.com> | 2017-09-30 16:44:09 +0200 |
| commit | af16a5dbc2f8cee044e0b315e409299f72385e91 (patch) | |
| tree | 398d82a15cbed26aed5f1b37ee5ac7f3a2b59a3b | |
| parent | cd327142442cb3967d01db732145d48377499a9c (diff) | |
DB/Quest: Plagued Lands
Closes #20486
| -rw-r--r-- | sql/updates/world/3.3.5/2017_09_30_18_world_335.sql | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2017_09_30_18_world_335.sql b/sql/updates/world/3.3.5/2017_09_30_18_world_335.sql new file mode 100644 index 00000000000..bd7e3f65c5b --- /dev/null +++ b/sql/updates/world/3.3.5/2017_09_30_18_world_335.sql @@ -0,0 +1,54 @@ +-- Improve Quest "Plagued Lands" and add completion event +DELETE FROM `gossip_menu_option` WHERE `MenuID`=21210; +INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextID`, `VerifiedBuild`) VALUES +(21210,0,0,"Tharnariun, I have lost the trap. Could you please give me another?",9431,1,1,0,0,0,0,'',0,0); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=21210; +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=9457; +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceEntry`=3701; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(15,21210,0,0,0,2,0,7586,1,1,1,0,0,'',"Show gossip option if player does not have item Tharnariun\'s Hope"), +(15,21210,0,0,0,9,0,2118,0,0,0,0,0,'',"Show gossip option if player has quest \'Plagued Lands\' taken"), +(13,1,9457,0,0,31,0,3,11836,0,0,0,0,'',"Tharnariun\'s Heal can only target \'Captured Rabid Thistle Bear\'"), +(22,3,3701,0,0,29,1,11836,10,0,0,0,0,'',"Tharnariun Treetender - Execute SAI 2 only if within 10 yards of Captured Rabid Thistle Bear"); + +DELETE FROM `creature_text` WHERE `CreatureID`=3701; +INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES +(3701,0,0,"Be cleansed!",12,0,100,5,0,0,5937,0,"Tharnariun Treetender"); + +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=3701; +DELETE FROM `smart_scripts` WHERE `entryorguid`=3701 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 +(3701,0,0,1,62,0,100,0,21210,0,0,0,85,22837,0,0,0,0,0,7,0,0,0,0,0,0,0,"Tharnariun Treetender - On Gossip Option 0 Selected - Invoker Cast Conjure Tharnariun\'s Hope"), +(3701,0,1,0,61,0,100,0,0,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Tharnariun Treetender - On Gossip Option 0 Selected - Close Gossip"), +(3701,0,2,0,20,0,100,0,2118,0,0,0,80,370100,0,0,0,0,0,1,0,0,0,0,0,0,0,"Tharnariun Treetender - On Quest \'Plagued Lands\' Finished - Run Script"); + +DELETE FROM `smart_scripts` WHERE `entryorguid`=370100 AND `source_type`=9; +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 +(370100,9,0,0,0,0,100,0,0,0,0,0,83,3,0,0,0,0,0,1,0,0,0,0,0,0,0,"Tharnariun Treetender - On Script - Remove Npc Flag Questgiver+Gossip"), +(370100,9,1,0,0,0,100,0,0,0,0,0,66,0,0,0,0,0,0,19,11836,0,0,0,0,0,0,"Tharnariun Treetender - On Script - Set Orientation"), +(370100,9,2,0,0,0,100,0,1000,1000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Tharnariun Treetender - On Script - Say Line 0"), +(370100,9,3,0,0,0,100,0,2000,2000,0,0,11,9457,0,0,0,0,0,1,0,0,0,0,0,0,0,"Tharnariun Treetender - On Script - Cast Tharnariun\'s Heal"), +(370100,9,4,0,0,0,100,0,2000,2000,0,0,45,2,2,0,0,0,0,19,11836,0,0,0,0,0,0,"Tharnariun Treetender - On Script - Set Data"), +(370100,9,5,0,0,0,100,0,2000,2000,0,0,82,3,0,0,0,0,0,1,0,0,0,0,0,0,0,"Tharnariun Treetender - On Script - Add Npc Flag Questgiver+Gossip"); + +DELETE FROM `smart_scripts` WHERE `entryorguid`=2164 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 +(2164,0,0,0,0,0,100,0,6000,12000,12000,18000,11,3150,32,0,0,0,0,5,0,0,0,0,0,0,0,"Rabid Thistle Bear - In Combat - Cast Rabies"), +(2164,0,1,0,38,0,100,513,1,1,0,0,80,216400,2,0,0,0,0,1,0,0,0,0,0,0,0,"Rabid Thistle Bear - On Data Set - Run Script (No repeat)"), +(2164,0,2,0,4,0,100,512,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"Rabid Thistle Bear - On Aggro - Store Targetlist"), +(2164,0,3,0,75,0,100,1,0,3701,10,0,89,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Rabid Thistle Bear - On \'Tharnariun Treetender\' in Range - Stop Random Movement"), +(2164,0,4,5,75,0,100,1,0,3701,10,0,69,0,0,0,0,0,0,8,0,0,0,6436.65,401.832,11.4904,4.88665,"Rabid Thistle Bear - On \'Tharnariun Treetender\' in Range - Move to Position"), +(2164,0,5,0,61,0,100,0,0,0,0,0,41,300000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Rabid Thistle Bear - On \'Tharnariun Treetender\' in Range - Despawn in 5 min"), +(2164,0,6,0,38,0,100,0,2,2,0,0,2,14,0,0,0,0,0,1,0,0,0,0,0,0,0,"Rabid Thistle Bear - On Data Set - Set Faction 14"), +(2164,0,7,0,38,0,100,0,2,2,0,0,49,0,0,0,0,0,0,12,1,0,0,0,0,0,0,"Rabid Thistle Bear - On Data Set - Start Attacking"); + +DELETE FROM `smart_scripts` WHERE `entryorguid`=216400 AND `source_type`=9; +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 +(216400,9,0,0,0,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Rabid Thistle Bear - On Script - Evade"), +(216400,9,1,0,0,0,100,0,0,0,0,0,33,11836,0,0,0,0,0,12,1,0,0,0,0,0,0,"Rabid Thistle Bear - On Script - Quest Credit \'Plagued Lands\'"), +(216400,9,2,0,0,0,100,0,0,0,0,0,29,0,0,0,0,0,0,12,1,0,0,0,0,0,0,"Rabid Thistle Bear - On Script - Follow Target"), +(216400,9,3,0,0,0,100,0,0,0,0,0,41,300000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Rabid Thistle Bear - On Script - Despawn in 5 min"), +(216400,9,4,0,0,0,100,0,0,0,0,0,36,11836,0,0,0,0,0,1,0,0,0,0,0,0,0,"Rabid Thistle Bear - On Script - Update Template to \'Captured Rabid Thistle Bear\'"); + +UPDATE `creature_template` SET `faction`=35, `AIName`="SmartAI", `flags_extra`=0 WHERE `entry`=11836; |
