|
| 1 | +SET @CGUID := 10005736; |
| 2 | + |
| 3 | +SET @NPCTEXTID := 600085; |
| 4 | + |
| 5 | +-- Creature |
| 6 | +DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+2; |
| 7 | +INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `VerifiedBuild`) VALUES |
| 8 | +(@CGUID+0, 231541, 2552, 14771, 14771, '0', 25056, 0, 0, 0, 3212.247314453125, -3073.8837890625, 343.9462890625, 1.542174816131591796, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 58680), -- Sky-Captain Cableclamp (Area: Dornogal - Difficulty: 0) CreateObject1 |
| 9 | +(@CGUID+1, 230235, 2552, 14771, 14771, '0', 25056, 0, 0, 0, 3212.505126953125, -3072.255126953125, 343.931396484375, 0.037447240203619003, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 58680), -- Skaggit (Area: Dornogal - Difficulty: 0) CreateObject1 |
| 10 | +(@CGUID+2, 231541, 2552, 14771, 14771, '0', 25431, 0, 0, 0, 3225.8759765625, -3077.864501953125, 342.837188720703125, 1.542174816131591796, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 58680); -- Sky-Captain Cableclamp (Area: Dornogal - Difficulty: 0) CreateObject1 |
| 11 | + |
| 12 | +-- Template |
| 13 | +UPDATE `creature_template` SET `faction`=35, `npcflag`=3, `BaseAttackTime`=2000, `unit_flags2`=0x800, `unit_flags3`=0x40000000 WHERE `entry`=230235; -- Skaggit |
| 14 | +UPDATE `creature_template` SET `faction`=35, `npcflag`=1, `BaseAttackTime`=2000, `unit_flags2`=0x800, `unit_flags3`=0x40000000 WHERE `entry`=231541; -- Sky-Captain Cableclamp |
| 15 | + |
| 16 | +-- Difficulty |
| 17 | +UPDATE `creature_template_difficulty` SET `ContentTuningID`=2797, `StaticFlags1`=0x30000100, `VerifiedBuild`=58680 WHERE (`Entry`=230235 AND `DifficultyID`=0); -- 230235 (Skaggit) - Sessile, CanSwim, Floating |
| 18 | +UPDATE `creature_template_difficulty` SET `ContentTuningID`=3004, `StaticFlags1`=0x30000100, `VerifiedBuild`=58680 WHERE (`Entry`=231541 AND `DifficultyID`=0); -- 231541 (Sky-Captain Cableclamp) - Sessile, CanSwim, Floating |
| 19 | + |
| 20 | +-- Phase |
| 21 | +DELETE FROM `phase_name` WHERE `ID` IN (25056, 25431); |
| 22 | +INSERT INTO `phase_name` (`ID`, `Name`) VALUES |
| 23 | +(25056, 'Cosmetic - See Skaggit and Sky-Captain Cableclamp pre Siren Isle unlock'), |
| 24 | +(25431, 'Cosmetic - See Sky-Captain Cableclamp after Siren Isle unlock'); |
| 25 | + |
| 26 | +DELETE FROM `phase_area` WHERE `PhaseId` IN (25056, 25431); |
| 27 | +INSERT INTO `phase_area` (`AreaId`, `PhaseId`, `Comment`) VALUES |
| 28 | +(14771, 25056, 'Skaggit and Sky-Captain Cableclamp pre Siren Isle unlock'), |
| 29 | +(14771, 25431, 'See Sky-Captain Cableclamp after Siren Isle unlock'); |
| 30 | + |
| 31 | +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId`=26 AND `SourceGroup` IN (25056,25431) AND `SourceEntry` = 0); |
| 32 | +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `Comment`) VALUE |
| 33 | +(26, 25056, 0, 0, 0, 47, 0, 84720, 2|64, 0, 1, 'Apply Phase 25056 if Quest 84720 is not complete | rewarded'), |
| 34 | +(26, 25056, 0, 0, 0, 48, 0, 453075, 0, 1, 1, 'Apply Phase 25056 if Questobjective 453075 is not rewarded'), |
| 35 | +(26, 25431, 0, 0, 0, 47, 0, 84720, 2|64, 0, 0, 'Apply Phase 25431 if Quest 84720 is complete | rewarded'), |
| 36 | +(26, 25431, 0, 0, 1, 48, 0, 453075, 0, 1, 0, 'Apply Phase 25431 if Questobjective 453075 is rewarded'); |
| 37 | + |
| 38 | +-- Gossip |
| 39 | +DELETE FROM `creature_template_gossip` WHERE (`CreatureID`=231541 AND `MenuID`=37173) OR (`CreatureID`=230235 AND `MenuID`=36398); |
| 40 | +INSERT INTO `creature_template_gossip` (`CreatureID`, `MenuID`, `VerifiedBuild`) VALUES |
| 41 | +(231541, 37173, 58680), -- Sky-Captain Cableclamp |
| 42 | +(230235, 36398, 58680); -- Skaggit |
| 43 | + |
| 44 | +DELETE FROM `gossip_menu_option` WHERE (`OptionID`=0 AND `MenuID` IN (37432,37724,36398,37718,37723,37431,37722)) OR (`OptionID`=2 AND `MenuID`=36398) OR (`OptionID`=5 AND `MenuID`=36398) OR (`OptionID`=1 AND `MenuID`=37173) OR (`OptionID`=3 AND `MenuID`=36398) OR (`OptionID`=4 AND `MenuID`=36398) OR (`MenuID`=37173 AND `OptionID`=0); |
| 45 | +INSERT INTO `gossip_menu_option` (`MenuID`, `GossipOptionID`, `OptionID`, `OptionNpc`, `OptionText`, `OptionBroadcastTextID`, `Language`, `Flags`, `ActionMenuID`, `ActionPoiID`, `GossipNpcOptionID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextID`, `SpellID`, `OverrideIconID`, `VerifiedBuild`) VALUES |
| 46 | +(37432, 131282, 0, 0, 'No.', 17710, 0, 0, 37431, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 58680), -- OptionBroadcastTextID: 17710 - 25913 - 30243 - 39548 - 62016 - 66318 - 67492 - 82162 - 93738 - 95797 - 99452 - 113962 - 136126 - 140032 - 140189 - 140192 - 145444 - 145853 - 151700 - 181605 - 182006 - 219430 - 231858 - 244608 - 245792 - 253111 - 275583 |
| 47 | +(37724, 131617, 0, 0, 'I want to talk about something else.', 0, 0, 0, 36398, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 58680), |
| 48 | +(36398, 131283, 2, 0, 'Where are we going?', 104694, 0, 0, 37432, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 58680), -- OptionBroadcastTextID: 104694 - 235020 |
| 49 | +(36398, 124305, 0, 0, 'I am ready to embark.', 0, 0, 1, 0, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 58680), |
| 50 | +(37718, 131552, 0, 0, 'I want to talk about something else.', 0, 0, 0, 37173, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 58680), |
| 51 | +(36398, 131553, 5, 0, 'Where is Lady Sena?', 0, 0, 0, 37722, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 58680), |
| 52 | +(37173, 131550, 1, 0, 'What do you know about the Siren Isle?', 0, 0, 0, 37718, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 58680), |
| 53 | +(36398, 131555, 3, 0, 'What do you know about the Siren Isle?', 0, 0, 0, 37724, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 58680), |
| 54 | +(36398, 131554, 4, 0, 'Who are you? Where\'s Gazlowe?', 0, 0, 0, 37723, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 58680), |
| 55 | +(37723, 131616, 0, 0, 'I want to talk about something else.', 0, 0, 0, 36398, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 58680), |
| 56 | +(37431, 131612, 0, 0, 'I want to talk about something else.', 0, 0, 0, 36398, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 58680), |
| 57 | +(37722, 131615, 0, 0, 'I want to talk about something else.', 0, 0, 0, 36398, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 58680), |
| 58 | +(37173, 125352, 0, 0, 'Take me to the Siren Isle.', 0, 0, 0, 0, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 58680); |
| 59 | + |
| 60 | +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 15) AND (`SourceGroup` IN (36398)); |
| 61 | +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES |
| 62 | +(15, 36398, 0, 0, 0, 47, 0, 84720, 8, 0, '', 0, 'Player for which gossip text is shown has To the Siren Isle! (84720) in state taken'); |
| 63 | + |
| 64 | +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 15) AND (`SourceGroup` IN (37173)); |
| 65 | +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES |
| 66 | +(15, 37173, 0, 0, 0, 47, 0, 84720, 66, 0, '', 0, 'Player for which gossip text is shown has To the Siren Isle! (84720) in state complete, rewarded'), |
| 67 | +(15, 37173, 0, 0, 1, 48, 0, 453075, 0, 1, '', 0, 'Player for which gossip text is shown has quest objective 453075 == 1 (but hasn\'t rewarded quest yet)'); |
| 68 | + |
| 69 | +DELETE FROM `npc_text` WHERE `ID` BETWEEN @NPCTEXTID+0 AND @NPCTEXTID+7; |
| 70 | +INSERT INTO `npc_text` (`ID`, `Probability0`, `Probability1`, `Probability2`, `Probability3`, `Probability4`, `Probability5`, `Probability6`, `Probability7`, `BroadcastTextId0`, `BroadcastTextId1`, `BroadcastTextId2`, `BroadcastTextId3`, `BroadcastTextId4`, `BroadcastTextId5`, `BroadcastTextId6`, `BroadcastTextId7`, `VerifiedBuild`) VALUES |
| 71 | +(@NPCTEXTID+0, 1, 0, 0, 0, 0, 0, 0, 0, 279724, 0, 0, 0, 0, 0, 0, 0, 58680), -- 231541 (Sky-Captain Cableclamp) |
| 72 | +(@NPCTEXTID+1, 1, 0, 0, 0, 0, 0, 0, 0, 279750, 0, 0, 0, 0, 0, 0, 0, 58680), -- 230235 (Skaggit) |
| 73 | +(@NPCTEXTID+2, 1, 0, 0, 0, 0, 0, 0, 0, 279748, 0, 0, 0, 0, 0, 0, 0, 58680), -- 230235 (Skaggit) |
| 74 | +(@NPCTEXTID+3, 1, 0, 0, 0, 0, 0, 0, 0, 279747, 0, 0, 0, 0, 0, 0, 0, 58680), -- 230235 (Skaggit) |
| 75 | +(@NPCTEXTID+4, 1, 0, 0, 0, 0, 0, 0, 0, 278427, 0, 0, 0, 0, 0, 0, 0, 58680), -- 230235 (Skaggit) |
| 76 | +(@NPCTEXTID+5, 1, 0, 0, 0, 0, 0, 0, 0, 276992, 0, 0, 0, 0, 0, 0, 0, 58680), -- 231541 (Sky-Captain Cableclamp) |
| 77 | +(@NPCTEXTID+6, 1, 0, 0, 0, 0, 0, 0, 0, 278425, 0, 0, 0, 0, 0, 0, 0, 58680), -- 230235 (Skaggit) |
| 78 | +(@NPCTEXTID+7, 1, 0, 0, 0, 0, 0, 0, 0, 273989, 0, 0, 0, 0, 0, 0, 0, 58680); -- 230235 (Skaggit) |
| 79 | + |
| 80 | +DELETE FROM `gossip_menu` WHERE (`MenuID`=37718 AND `TextID`=@NPCTEXTID+0) OR (`MenuID`=37722 AND `TextID`=@NPCTEXTID+1) OR (`MenuID`=37723 AND `TextID`=@NPCTEXTID+2) OR (`MenuID`=37724 AND `TextID`=@NPCTEXTID+3) OR (`MenuID`=37431 AND `TextID`=@NPCTEXTID+4) OR (`MenuID`=37173 AND `TextID`=@NPCTEXTID+5) OR (`MenuID`=37432 AND `TextID`=@NPCTEXTID+6) OR (`MenuID`=36398 AND `TextID`=@NPCTEXTID+7); |
| 81 | +INSERT INTO `gossip_menu` (`MenuID`, `TextID`, `VerifiedBuild`) VALUES |
| 82 | +(37718, @NPCTEXTID+0, 58680), -- 231541 (Sky-Captain Cableclamp) |
| 83 | +(37722, @NPCTEXTID+1, 58680), -- 230235 (Skaggit) |
| 84 | +(37723, @NPCTEXTID+2, 58680), -- 230235 (Skaggit) |
| 85 | +(37724, @NPCTEXTID+3, 58680), -- 230235 (Skaggit) |
| 86 | +(37431, @NPCTEXTID+4, 58680), -- 230235 (Skaggit) |
| 87 | +(37173, @NPCTEXTID+5, 58680), -- 231541 (Sky-Captain Cableclamp) |
| 88 | +(37432, @NPCTEXTID+6, 58680), -- 230235 (Skaggit) |
| 89 | +(36398, @NPCTEXTID+7, 58680); -- 230235 (Skaggit) |
| 90 | + |
| 91 | +-- Scene |
| 92 | +DELETE FROM `scene_template` WHERE `SceneId`=3535; |
| 93 | +INSERT INTO `scene_template` (`SceneId`, `Flags`, `ScriptPackageID`, `Encrypted`) VALUES |
| 94 | +(3535, 30, 4425, 0); |
| 95 | + |
| 96 | +-- Scene 3535 |
| 97 | +SET @ENTRY := 3535; |
| 98 | +UPDATE `scene_template` SET `ScriptName` = 'SmartScene' WHERE `SceneId` = @ENTRY; |
| 99 | +DELETE FROM `smart_scripts` WHERE `source_type` = 10 AND `entryOrGuid` = @ENTRY; |
| 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`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES |
| 101 | +(@ENTRY, 10, 0, 0, 81, 0, 100, 0, 0, 0, 0, 0, 0, 85, 463902, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Scene Complete - Self: Cast spell 463902 with flags triggered on self', ''); |
| 102 | + |
| 103 | +-- Spelltarget pos. |
| 104 | +DELETE FROM `spell_target_position` WHERE (`ID`=463902 AND `EffectIndex`=0 AND `OrderIndex`=0); |
| 105 | +INSERT INTO `spell_target_position` (`ID`, `EffectIndex`, `OrderIndex`, `MapID`, `PositionX`, `PositionY`, `PositionZ`, `VerifiedBuild`) VALUES |
| 106 | +(463902, 0, 0, 2127, 1966.3199462890625, 15.84000015258789062, 39.8600006103515625, 58680); -- Spell: 463902 ([DNT] RTC + Teleport) Effect 0: 252 (SPELL_EFFECT_TELEPORT_UNITS) |
| 107 | + |
| 108 | +-- Quest |
| 109 | +DELETE FROM `creature_queststarter` WHERE (`id`=230235 AND `quest`=84720); |
| 110 | +INSERT INTO `creature_queststarter` (`id`, `quest`, `VerifiedBuild`) VALUES |
| 111 | +(230235, 84720, 58680); -- To the Siren Isle! offered by Skaggit |
| 112 | + |
| 113 | +DELETE FROM `quest_template_addon` WHERE `ID` = 84720; |
| 114 | +INSERT INTO `quest_template_addon` (`ID`, `MaxLevel`, `AllowableClasses`, `SourceSpellID`, `PrevQuestID`, `NextQuestID`, `ExclusiveGroup`, `BreadcrumbForQuestId`, `RewardMailTemplateID`, `RewardMailDelay`, `RequiredSkillID`, `RequiredSkillPoints`, `RequiredMinRepFaction`, `RequiredMaxRepFaction`, `RequiredMinRepValue`, `RequiredMaxRepValue`, `ProvidedItemCount`, `SpecialFlags`, `ScriptName`) VALUES |
| 115 | +(84720, 0, 0, 0, 84719, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ''); -- To the Siren Isle! |
| 116 | + |
| 117 | +DELETE FROM `quest_objectives_completion_effect` WHERE `ObjectiveID` = 453075; |
| 118 | +INSERT INTO `quest_objectives_completion_effect` (`ObjectiveID`, `GameEventID`, `SpellID`, `ConversationID`, `UpdatePhaseShift`, `UpdateZoneAuras`) VALUES |
| 119 | +(453075, NULL, NULL, NULL, 1, 0); |
| 120 | + |
| 121 | +-- Skaggit smart ai |
| 122 | +SET @ENTRY := 230235; |
| 123 | +UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY; |
| 124 | +DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY; |
| 125 | +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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES |
| 126 | +(@ENTRY, 0, 0, 1, 62, 0, 100, 0, 36398, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 36398 selected - Gossip player: Close gossip', ''), |
| 127 | +(@ENTRY, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 33, 230235, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 36398 selected - Gossip player: Give kill credit Skaggit (230235)', ''), |
| 128 | +(@ENTRY, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 85, 470916, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 36398 selected - Gossip player: Cast spell 470916 on self', ''); |
0 commit comments