From 4fa57d7b2ca70f56ffec5fd1cfc6fffc7b280259 Mon Sep 17 00:00:00 2001 From: tharaca Date: Sun, 29 Jul 2012 03:30:57 +0100 Subject: DB/SAI: Fix quest Meeting at the Blackwing Coven Closes #2564 Thanks to nelegalno and gecko32 Signed-off-by: Nay --- sql/updates/world/2012_07_29_07_world_sai,sql.sql | 4 --- sql/updates/world/2012_07_29_07_world_sai.sql | 4 +++ sql/updates/world/2012_07_29_08_world_sai.sql | 36 +++++++++++++++++++++++ 3 files changed, 40 insertions(+), 4 deletions(-) delete mode 100644 sql/updates/world/2012_07_29_07_world_sai,sql.sql create mode 100644 sql/updates/world/2012_07_29_07_world_sai.sql create mode 100644 sql/updates/world/2012_07_29_08_world_sai.sql (limited to 'sql') diff --git a/sql/updates/world/2012_07_29_07_world_sai,sql.sql b/sql/updates/world/2012_07_29_07_world_sai,sql.sql deleted file mode 100644 index 18de6d15c0a..00000000000 --- a/sql/updates/world/2012_07_29_07_world_sai,sql.sql +++ /dev/null @@ -1,4 +0,0 @@ -DELETE FROM `smart_scripts` WHERE `entryorguid`=181758 AND `source_type`=1; -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 -(181758, 1, 0, 0, 20, 0, 100, 0, 9561, 0, 0, 0, 56, 23846, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Add Nolkais Box after finishing quest: Nolkais Words'); -UPDATE `gameobject_template` SET `AIName`= 'SmartGameObjectAI' WHERE `entry`=181758; diff --git a/sql/updates/world/2012_07_29_07_world_sai.sql b/sql/updates/world/2012_07_29_07_world_sai.sql new file mode 100644 index 00000000000..18de6d15c0a --- /dev/null +++ b/sql/updates/world/2012_07_29_07_world_sai.sql @@ -0,0 +1,4 @@ +DELETE FROM `smart_scripts` WHERE `entryorguid`=181758 AND `source_type`=1; +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 +(181758, 1, 0, 0, 20, 0, 100, 0, 9561, 0, 0, 0, 56, 23846, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Add Nolkais Box after finishing quest: Nolkais Words'); +UPDATE `gameobject_template` SET `AIName`= 'SmartGameObjectAI' WHERE `entry`=181758; diff --git a/sql/updates/world/2012_07_29_08_world_sai.sql b/sql/updates/world/2012_07_29_08_world_sai.sql new file mode 100644 index 00000000000..796578d3f00 --- /dev/null +++ b/sql/updates/world/2012_07_29_08_world_sai.sql @@ -0,0 +1,36 @@ +-- Meeting at the Blackwing Coven quest fix + +-- Variables +SET @QUEST := 10722; +SET @ENTRY := 22019; +SET @SPELL1:= 37704; -- Whirlwind +SET @SPELL2:= 8599; -- Enrage + +-- Add SmartAI for Kolphis Darkscale +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY; +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 +(@ENTRY,0,0,0,62,0,100,0,8439,0,0,0,15,@QUEST,0,0,0,0,0,7,0,0,0,0,0,0,0,'Kolphis Darkscale - On Gossip Select - Quest Credit'), +(@ENTRY,0,1,0,0,0,50,0,3000,3000,8000,8000,11,@SPELL1,0,0,0,0,0,2,0,0,0,0,0,0,0,'Kolphis Darkscale - Combat - Whirlwind'), +(@ENTRY,0,2,3,2,0,100,1,0,25,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Kolphis Darkscale - On Health level - Emote when below 25% HP'), +(@ENTRY,0,3,0,61,0,100,1,0,0,0,0,11,@SPELL2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Kolphis Darkscale - On Health level - Cast Enrage when below 25% HP'); + +-- add missing text to Kolphis Darkscale from sniff +DELETE FROM `npc_text` WHERE `ID`=10540; +INSERT INTO `npc_text` (`ID`,`prob0`,`text0_0`,`text0_1`,`WDBVerified`) VALUES +(10540,1,"Begone, overseer! We've already spoken.$B$BStop dragging your feet and execute your orders at Ruuan Weald!",'',1); + +-- Kolphis Darkscale emote +DELETE FROM `creature_text` WHERE `entry`=@ENTRY; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES +(@ENTRY,0,0,'%s becomes enraged!',16,0,100,0,0,0,'Kolphis Darkscale'); + +-- Gossip menu insert from sniff +DELETE FROM `gossip_menu` WHERE `entry`=8436 AND `text_id`=10540; +INSERT INTO `gossip_menu` (`entry`,`text_id`) VALUES (8436,10540); + +-- Add gossip_menu conditions +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` IN (14,15) AND `SourceGroup`=8436; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(15,8436,0,0,0,9,0,@QUEST,0,0,0,0,'','Kolphis Darkscale - Show Gossip Option 0 - If on Quest Meeting at the Blackwing Coven'), +(14,8436,10540,0,0,28,0,@QUEST,0,0,0,0,'','Kolphis Darkscale - Show Gossip Menu - If Quest Meeting at the Blackwing Coven is Completed'); -- cgit v1.2.3