From abae4ff6cb1610ff388609982f6c1a5dc3472c42 Mon Sep 17 00:00:00 2001 From: Aokromes Date: Tue, 5 Jul 2016 02:47:59 +0200 Subject: [PATCH] DB/Misc: 3.3.5a fixes --- ...world_from_335_was_2016_07_04_00_world.sql | 6 +++++ ...world_from_335_was_2016_07_04_01_world.sql | 2 ++ ...world_from_335_was_2016_07_04_02_world.sql | 2 ++ ...world_from_335_was_2016_07_04_03_world.sql | 12 +++++++++ ...world_from_335_was_2016_07_04_04_world.sql | 2 ++ ...world_from_335_was_2016_07_04_05_world.sql | 9 +++++++ ...world_from_335_was_2016_07_04_06_world.sql | 3 +++ ...world_from_335_was_2016_07_04_07_world.sql | 6 +++++ ...world_from_335_was_2016_07_04_08_world.sql | 13 +++++++++ ...world_from_335_was_2016_07_04_09_world.sql | 12 +++++++++ ...world_from_335_was_2016_07_04_10_world.sql | 2 ++ ...world_from_335_was_2016_07_04_11_world.sql | 20 ++++++++++++++ ...world_from_335_was_2016_07_04_12_world.sql | 27 +++++++++++++++++++ ...world_from_335_was_2016_07_04_13_world.sql | 2 ++ 14 files changed, 118 insertions(+) create mode 100644 sql/updates/world/2016_07_05_00_world_from_335_was_2016_07_04_00_world.sql create mode 100644 sql/updates/world/2016_07_05_01_world_from_335_was_2016_07_04_01_world.sql create mode 100644 sql/updates/world/2016_07_05_02_world_from_335_was_2016_07_04_02_world.sql create mode 100644 sql/updates/world/2016_07_05_03_world_from_335_was_2016_07_04_03_world.sql create mode 100644 sql/updates/world/2016_07_05_04_world_from_335_was_2016_07_04_04_world.sql create mode 100644 sql/updates/world/2016_07_05_05_world_from_335_was_2016_07_04_05_world.sql create mode 100644 sql/updates/world/2016_07_05_06_world_from_335_was_2016_07_04_06_world.sql create mode 100644 sql/updates/world/2016_07_05_07_world_from_335_was_2016_07_04_07_world.sql create mode 100644 sql/updates/world/2016_07_05_08_world_from_335_was_2016_07_04_08_world.sql create mode 100644 sql/updates/world/2016_07_05_09_world_from_335_was_2016_07_04_09_world.sql create mode 100644 sql/updates/world/2016_07_05_10_world_from_335_was_2016_07_04_10_world.sql create mode 100644 sql/updates/world/2016_07_05_11_world_from_335_was_2016_07_04_11_world.sql create mode 100644 sql/updates/world/2016_07_05_12_world_from_335_was_2016_07_04_12_world.sql create mode 100644 sql/updates/world/2016_07_05_13_world_from_335_was_2016_07_04_13_world.sql diff --git a/sql/updates/world/2016_07_05_00_world_from_335_was_2016_07_04_00_world.sql b/sql/updates/world/2016_07_05_00_world_from_335_was_2016_07_04_00_world.sql new file mode 100644 index 0000000000..d5c0e5fc05 --- /dev/null +++ b/sql/updates/world/2016_07_05_00_world_from_335_was_2016_07_04_00_world.sql @@ -0,0 +1,6 @@ +-- +SET @GUID =6028; +UPDATE `gameobject` SET `spawnMask`=3, `spawntimesecs`=604800 WHERE `guid`=55974; +DELETE FROM `gameobject` WHERE `guid`=@GUID; +INSERT INTO `gameobject` (`guid`,`id`,`map`,`spawnMask`,`phaseMask`,`position_x`,`position_y`,`position_z`,`orientation`,`rotation0`,`rotation1`,`rotation2`,`rotation3`,`spawntimesecs`,`animprogress`,`state`)VALUES +(@GUID, 195036, 603, 3, 1, 1757.896, 87.201, 342.384, 0.649495, 0, 0, 0, 1, 604800, 255, 1); diff --git a/sql/updates/world/2016_07_05_01_world_from_335_was_2016_07_04_01_world.sql b/sql/updates/world/2016_07_05_01_world_from_335_was_2016_07_04_01_world.sql new file mode 100644 index 0000000000..28f18ef698 --- /dev/null +++ b/sql/updates/world/2016_07_05_01_world_from_335_was_2016_07_04_01_world.sql @@ -0,0 +1,2 @@ +-- +UPDATE `quest_template_addon` SET `SpecialFlags`=0 WHERE `ID`=6962; diff --git a/sql/updates/world/2016_07_05_02_world_from_335_was_2016_07_04_02_world.sql b/sql/updates/world/2016_07_05_02_world_from_335_was_2016_07_04_02_world.sql new file mode 100644 index 0000000000..5282ae1233 --- /dev/null +++ b/sql/updates/world/2016_07_05_02_world_from_335_was_2016_07_04_02_world.sql @@ -0,0 +1,2 @@ +-- +UPDATE `skill_fishing_base_level` SET `skill`=430 WHERE `entry`=4197; diff --git a/sql/updates/world/2016_07_05_03_world_from_335_was_2016_07_04_03_world.sql b/sql/updates/world/2016_07_05_03_world_from_335_was_2016_07_04_03_world.sql new file mode 100644 index 0000000000..106953e74d --- /dev/null +++ b/sql/updates/world/2016_07_05_03_world_from_335_was_2016_07_04_03_world.sql @@ -0,0 +1,12 @@ +-- +UPDATE `creature_template` SET `VehicleId`=732, `unit_flags`=33554432, `InhabitType`=4 WHERE `entry`=40246; + +DELETE FROM `spell_linked_spell` WHERE `spell_trigger` IN (74890, -75731); +INSERT INTO `spell_linked_spell` (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES +(74890, 75055, 0, "Instant Statue"), +(-75731, -75055, 0, "Instant Statue"), +(-75731, -74890, 0, "Instant Statue"); + +DELETE FROM `spell_custom_attr` WHERE `entry`=75731; +INSERT INTO `spell_custom_attr` (`entry`, `attributes`) VALUES +(75731, 4096); diff --git a/sql/updates/world/2016_07_05_04_world_from_335_was_2016_07_04_04_world.sql b/sql/updates/world/2016_07_05_04_world_from_335_was_2016_07_04_04_world.sql new file mode 100644 index 0000000000..0b87d47f63 --- /dev/null +++ b/sql/updates/world/2016_07_05_04_world_from_335_was_2016_07_04_04_world.sql @@ -0,0 +1,2 @@ +-- +UPDATE `quest_template` SET `QuestType`=2 WHERE `Id`=13070; diff --git a/sql/updates/world/2016_07_05_05_world_from_335_was_2016_07_04_05_world.sql b/sql/updates/world/2016_07_05_05_world_from_335_was_2016_07_04_05_world.sql new file mode 100644 index 0000000000..d19e8862b4 --- /dev/null +++ b/sql/updates/world/2016_07_05_05_world_from_335_was_2016_07_04_05_world.sql @@ -0,0 +1,9 @@ +-- +DELETE FROM `creature_queststarter` WHERE `quest`=10888; + +DELETE FROM `quest_template_addon` WHERE `ID` IN (10888, 13430); +INSERT INTO `quest_template_addon` (`ID`, `ExclusiveGroup`) VALUES +(10888, 10888), +(13430, 10888); + +UPDATE `quest_template_addon` SET `NextQuestID`=13430 WHERE `ID` IN (10884, 10885, 10886); diff --git a/sql/updates/world/2016_07_05_06_world_from_335_was_2016_07_04_06_world.sql b/sql/updates/world/2016_07_05_06_world_from_335_was_2016_07_04_06_world.sql new file mode 100644 index 0000000000..6cc2a01d03 --- /dev/null +++ b/sql/updates/world/2016_07_05_06_world_from_335_was_2016_07_04_06_world.sql @@ -0,0 +1,3 @@ +-- +UPDATE `quest_template_addon` SET `PrevQuestID`=0 WHERE `ID` IN (11526, 11877); +UPDATE `quest_template_addon` SET `RequiredSkillID`=762, `RequiredSkillPoints`=225 WHERE `ID`=11526; diff --git a/sql/updates/world/2016_07_05_07_world_from_335_was_2016_07_04_07_world.sql b/sql/updates/world/2016_07_05_07_world_from_335_was_2016_07_04_07_world.sql new file mode 100644 index 0000000000..ae26276087 --- /dev/null +++ b/sql/updates/world/2016_07_05_07_world_from_335_was_2016_07_04_07_world.sql @@ -0,0 +1,6 @@ +-- +DELETE FROM `creature_queststarter` WHERE `quest` IN (11520, 11532, 11535, 11538, 11539, 11542, 11545); + +DELETE FROM `creature_queststarter` WHERE `quest`=11534; +INSERT INTO `creature_queststarter` VALUES +(25034, 11534); diff --git a/sql/updates/world/2016_07_05_08_world_from_335_was_2016_07_04_08_world.sql b/sql/updates/world/2016_07_05_08_world_from_335_was_2016_07_04_08_world.sql new file mode 100644 index 0000000000..3af82274a9 --- /dev/null +++ b/sql/updates/world/2016_07_05_08_world_from_335_was_2016_07_04_08_world.sql @@ -0,0 +1,13 @@ +-- +UPDATE `quest_template_addon` SET `PrevQuestId`=0 WHERE `Id`=11875; + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` IN (19, 20) AND `SourceEntry`=11875; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(19, 0, 11875, 0, 0, 25, 0, 29354, 0, 0, 0, 0, 0, "", "Quest Gaining the Advantage requires Master Mining learned OR"), +(20, 0, 11875, 0, 0, 25, 0, 29354, 0, 0, 0, 0, 0, "", "Quest Gaining the Advantage requires Master Mining learned OR"), + +(19, 0, 11875, 0, 1, 25, 0, 32678, 0, 0, 0, 0, 0, "", "Quest Gaining the Advantage requires Master Skinning learned OR"), +(20, 0, 11875, 0, 1, 25, 0, 32678, 0, 0, 0, 0, 0, "", "Quest Gaining the Advantage requires Master Skinning learned OR"), + +(19, 0, 11875, 0, 2, 25, 0, 28695, 0, 0, 0, 0, 0, "", "Quest Gaining the Advantage requires Master Herbalism learned"), +(20, 0, 11875, 0, 2, 25, 0, 28695, 0, 0, 0, 0, 0, "", "Quest Gaining the Advantage requires Master Herbalism learned"); diff --git a/sql/updates/world/2016_07_05_09_world_from_335_was_2016_07_04_09_world.sql b/sql/updates/world/2016_07_05_09_world_from_335_was_2016_07_04_09_world.sql new file mode 100644 index 0000000000..29cb480907 --- /dev/null +++ b/sql/updates/world/2016_07_05_09_world_from_335_was_2016_07_04_09_world.sql @@ -0,0 +1,12 @@ +-- +DELETE FROM `conditions` WHERE `SourceEntry` IN (22777, 22776, 22775) AND `SourceTypeOrReferenceId`=23; +INSERT INTO `conditions` VALUES +(23, 16444, 22777, 0, 0, 9, 0, 9067, 0, 0, 0, 0, 0, "", "Bundle of Fireworks can be bought only if on quest 'The Party Never Ends'"), +(23, 16443, 22776, 0, 0, 9, 0, 9067, 0, 0, 0, 0, 0, "", "Springpaw Appetizers can be bought only if on quest 'The Party Never Ends'"), +(23, 16442, 22775, 0, 0, 9, 0, 9067, 0, 0, 0, 0, 0, "", "Suntouched Special Reserve can be bought only if on quest 'The Party Never Ends'"); + +DELETE FROM `conditions` WHERE `SourceEntry` IN (1939, 1941, 1942) AND `SourceTypeOrReferenceId`=23; +INSERT INTO `conditions` VALUES +(23, 465, 1939, 0, 0, 9, 0, 116, 0, 0, 0, 0, 0, "", "Skin of Sweet Rum can be bought only if on quest 'Dry Times'"), +(23, 277, 1941, 0, 0, 9, 0, 116, 0, 0, 0, 0, 0, "", "Cask of Merlot can be bought only if on quest 'Dry Times'"), +(23, 274, 1942, 0, 0, 9, 0, 116, 0, 0, 0, 0, 0, "", "Bottle of Moonshine can be bought only if on quest 'Dry Times'"); diff --git a/sql/updates/world/2016_07_05_10_world_from_335_was_2016_07_04_10_world.sql b/sql/updates/world/2016_07_05_10_world_from_335_was_2016_07_04_10_world.sql new file mode 100644 index 0000000000..564f03ac93 --- /dev/null +++ b/sql/updates/world/2016_07_05_10_world_from_335_was_2016_07_04_10_world.sql @@ -0,0 +1,2 @@ +-- +UPDATE `quest_template_addon` SET `SpecialFlags`=0 WHERE `Id`=75; diff --git a/sql/updates/world/2016_07_05_11_world_from_335_was_2016_07_04_11_world.sql b/sql/updates/world/2016_07_05_11_world_from_335_was_2016_07_04_11_world.sql new file mode 100644 index 0000000000..e8989d2854 --- /dev/null +++ b/sql/updates/world/2016_07_05_11_world_from_335_was_2016_07_04_11_world.sql @@ -0,0 +1,20 @@ +-- +SET @ENTRY_THE_LICH_KING := 25462; +SET @QUEST_IN_SERVICE_OF_THE_LICH_KING := 12593; + +-- The Lich King Timed Actionlist +DELETE FROM `smart_scripts` WHERE (source_type = 9 AND entryorguid = @ENTRY_THE_LICH_KING * 100); +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_THE_LICH_KING * 100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 4, 14970, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'The Lich King - On Script - Play Sound 14970'), +(@ENTRY_THE_LICH_KING * 100, 9, 1, 0, 0, 0, 100, 0, 21000, 21000, 0, 0, 4, 14971, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'The Lich King - On Script - Play Sound 14971'), +(@ENTRY_THE_LICH_KING * 100, 9, 2, 0, 0, 0, 100, 0, 26000, 26000, 0, 0, 4, 14972, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'The Lich King - On Script - Play Sound 14972'); + +-- The Lich King Timed Actionlist Trigger +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = @ENTRY_THE_LICH_KING); +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_THE_LICH_KING, 0, 0, 0, 19, 0, 100, 0, @QUEST_IN_SERVICE_OF_THE_LICH_KING, 0, 0, 0, 80, 2546200, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'The Lich King - On Quest \'In service of The Lich King Taken\' - Run Script'); + +-- 'In service of The Lich King' quest details +DELETE FROM `quest_details` WHERE `ID` = @QUEST_IN_SERVICE_OF_THE_LICH_KING; +INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `EmoteDelay1`, `VerifiedBuild`) VALUES +(@QUEST_IN_SERVICE_OF_THE_LICH_KING, 396, 397, 396, 396, 500, 1000, 1000, 1000, 20886); diff --git a/sql/updates/world/2016_07_05_12_world_from_335_was_2016_07_04_12_world.sql b/sql/updates/world/2016_07_05_12_world_from_335_was_2016_07_04_12_world.sql new file mode 100644 index 0000000000..ea56bab8e7 --- /dev/null +++ b/sql/updates/world/2016_07_05_12_world_from_335_was_2016_07_04_12_world.sql @@ -0,0 +1,27 @@ +-- Add sniffed gossip text to menu +DELETE FROM `gossip_menu_option` WHERE `menu_id` IN (8356, 8371); +INSERT INTO `gossip_menu_option` (`menu_id`,`id`,`option_icon`,`option_text`,`OptionBroadcastTextID`,`option_id`,`npc_option_npcflag`,`action_menu_id`,`action_poi_id`,`box_coded`,`box_money`,`box_text`,`BoxBroadcastTextID`) VALUES +(8356, 0, 0, 'Reclaim Flanis\'s pack.', 19326,1,1,0,0,0,0,'',0), +(8371, 0, 0, 'Search the corpse for Kagrosh\'s pack.', 19400,1,1,0,0,0,0,'',0); + +-- Migrate NPCs to use SmartAI / remove from C++ script +UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` IN (21727, 21725, 22112); +UPDATE `creature_template` SET `ScriptName` = '' WHERE `entry` = 23489; + +-- Create SmartAI +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid IN (21727, 21725, 22112)); +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 +(21727, 0, 0, 1, 62, 0, 100, 0, 8356, 0, 0, 0, 11, 37244, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Flanis Swiftwing - On Gossip Option 0 Selected - Cast Spell'), +(21727, 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, 'Flanis Swiftwing - On Linked Action - Close Gossip'), +(21725, 0, 0, 1, 62, 0, 100, 0, 8371, 0, 0, 0, 11, 37245, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Kagrosh - On Gossip Option 0 Selected - Cast Spell'), +(21725, 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, 'Kagrosh - On Linked Action - Close Gossip'), +(22112, 0, 0, 0, 19, 0, 100, 0, 10866, 0, 0, 0, 12, 11980, 1, 300000, 0, 0, 0, 8, 0, 0, 0, -4204.94, 316.397, 122.508, 1.309, 'Karynaku - On Quest Accepted - Summon Creature \'Zuluhed the Whacked\''), +(22112, 0, 1, 0, 19, 0, 100, 0, 10870, 0, 0, 0, 52, 649, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Karynaku - On Quest Accepted - Activate Taxi Path 649'); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 15 AND `SourceGroup` IN (8356, 8371, 8754); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES +(15,8356,0,0,0,2,0,30658,1,0,1,0,'','Flanis Swiftwing - Show gossip option 0 if player does not have item 30658 in inventory'), +(15,8356,0,0,0,9,0,10583,0,0,0,0,'','Flanis Swiftwing - Show gossip option 0 if player has accepted quest 10583'), +(15,8371,0,0,0,2,0,30659,1,0,1,0,'','Kagrosh - Show gossip option 0 if player does not have item 30659 in inventory'), +(15,8371,0,0,0,9,0,10601,0,0,0,0,'','Kagrosh - Show gossip option 0 if player has accepted quest 10601'), +(15,8754,0,0,0,5,0,1015,128,0,0,0,'','Drake Dealer Hurlunk - Show gossip option 0 if player is exalted with faction 1015'); diff --git a/sql/updates/world/2016_07_05_13_world_from_335_was_2016_07_04_13_world.sql b/sql/updates/world/2016_07_05_13_world_from_335_was_2016_07_04_13_world.sql new file mode 100644 index 0000000000..cc46a42cbb --- /dev/null +++ b/sql/updates/world/2016_07_05_13_world_from_335_was_2016_07_04_13_world.sql @@ -0,0 +1,2 @@ +-- +UPDATE `creature` SET `phaseMask`=194 WHERE `id`=30657;