diff --git a/sql/updates/WIP/omnotron.sql b/sql/updates/WIP/omnotron.sql deleted file mode 100644 index 9fa7590ad40..00000000000 --- a/sql/updates/WIP/omnotron.sql +++ /dev/null @@ -1,163 +0,0 @@ --- Template Updates --- Omnotron -UPDATE `creature_template` SET `flags_extra`= 130, `unit_flags`= 0x02000000, `ScriptName`= 'boss_omnotron_defense_system' WHERE `entry`= 42186; --- Golems -UPDATE `creature_template` SET `unit_flags2`= 0, `unit_flags`= 0x02000000 | 0x80000000 WHERE `entry` IN (42166, 42178, 42179, 42180); --- Electron -UPDATE `creature_template` SET `ScriptName`= 'npc_omnotron_electron' WHERE `entry`= 42179; --- Magmatron -UPDATE `creature_template` SET `ScriptName`= 'npc_omnotron_magmatron' WHERE `entry`= 42178; --- Toxitron -UPDATE `creature_template` SET `ScriptName`= 'npc_omnotron_toxitron' WHERE `entry`= 42180; --- Arcanotron -UPDATE `creature_template` SET `ScriptName`= 'npc_omnotron_arcanotron' WHERE `entry`= 42166; - - - - --- Texts -DELETE FROM `creature_text` WHERE `CreatureID` IN (42166, 42178, 42179, 42180, 42186); -INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES --- Omnotron -(42186, 0, 0, 'Electron unit activated.', 14, 0, 100, 0, 0, 21865, 47924, 'Omnotron - Activate Electron'), -(42186, 1, 0, 'Toxitron unit activated.', 14, 0, 100, 0, 0, 21867, 47926, 'Omnotron - Activate Toxitron'), -(42186, 2, 0, 'Magmatron unit activated.', 14, 0, 100, 0, 0, 21866, 47925, 'Omnotron - Activate Magmatron'), -(42186, 3, 0, 'Arcanotron unit activated.', 14, 0, 100, 0, 0, 23378, 47927, 'Omnotron - Activate Arcanotron'), -(42186, 4, 0, 'Electron unit shield systems online.', 14, 0, 100, 0, 0, 21869, 47928, 'Omnotron - Shield Electron'), -(42186, 5, 0, 'Toxitron unit shield systems online.', 14, 0, 100, 0, 0, 21871, 47956, 'Omnotron - Shield Toxitron'), -(42186, 6, 0, 'Arcanotron unit shield systems online.', 14, 0, 100, 0, 0, 21872, 47930, 'Omnotron - Shield Arcanotron'), -(42186, 7, 0, 'Magmatron unit shield systems online.', 14, 0, 100, 0, 0, 21870, 47929, 'Omnotron - Shield Magmatron'), -(42186, 8, 0, 'Rerouting excess energy to Magmatron unit. Engage flamethrower device.', 14, 0, 100, 0, 0, 21873, 47931, 'Omnotron - Magmatron Flamethrower'), -(42186, 9, 0, 'Defense systems obliterated. Powering down...', 14, 0, 100, 0, 0, 21864, 47934, 'Omnotron - Defeat'), --- Arcanotron -(42166, 0, 0, '|TInterface\\Icons\\spell_arcane_arcaneresilience.blp:20|t%s begins to cast|cFFFE1CF7|Hspell:79729|h [Power Conversion]!|r', 41, 0, 100, 0, 0, 0, 46354, 'Arcanotron'), --- Magmatron -(42178, 0, 0, '|TInterface\\Icons\\ability_hunter_mastermarksman.blp:20|t%s sets his eye on |cFFFF0000$n|r and begins to cast|cFFFF0000|Hspell:79501|h [Acquiring Target]!|r', 41, 0, 100, 0, 0, 0, 46359, 'Magmatron to Player'), --- Electron -(42179, 0, 0, '|TInterface\\Icons\\spell_shaman_staticshock.blp:20|t%s casts|cFF1CF2FE|Hspell:79888|h [Lightning Conductor]|h|r at |cFF1CF2FE$n|r!', 41, 0, 100, 0, 0, 0, 47759, 'Electron to Player'), -(42179, 1, 0, '|TInterface\\Icons\\spell_nature_lightningshield.blp:20|t%s begins to cast|cFF1CF2FE|Hspell:79900|h [Unstable Shield]!|r', 41, 0, 100, 0, 0, 0, 46355, 'Electron'), --- Toxitron -(42180, 0, 0, '|TInterface\\Icons\\spell_nature_nullifydisease.blp:20|t%s begins to cast|cFF1CFE1C|Hspell:79835|h [Poison Soaked Shell]!|r', 41, 0, 100, 0, 0, 0, 46356, 'Toxitron'); - --- Spells -DELETE FROM `spell_script_names` WHERE `ScriptName` IN -('spell_omnotron_controller_recharge', -'spell_omnotron_recharging', -'spell_omnotron_activated', -'spell_omnotron_inactive', -'spell_omnotron_electrical_discharge', -'spell_omnotron_unstable_shield', -'spell_omnotron_aquiring_target', -'spell_omnotron_acquiring_target_periodic', -'spell_omnotron_barrier'); - -INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES -(78696, 'spell_omnotron_controller_recharge'), -(78697, 'spell_omnotron_recharging'), -(95019, 'spell_omnotron_recharging'), -(95020, 'spell_omnotron_recharging'), -(95021, 'spell_omnotron_recharging'), -(78698, 'spell_omnotron_recharging'), -(95025, 'spell_omnotron_recharging'), -(95026, 'spell_omnotron_recharging'), -(95027, 'spell_omnotron_recharging'), -(78700, 'spell_omnotron_recharging'), -(95022, 'spell_omnotron_recharging'), -(95023, 'spell_omnotron_recharging'), -(95024, 'spell_omnotron_recharging'), -(78699, 'spell_omnotron_recharging'), -(95028, 'spell_omnotron_recharging'), -(95029, 'spell_omnotron_recharging'), -(95030, 'spell_omnotron_recharging'), -(78740, 'spell_omnotron_activated'), -(95016, 'spell_omnotron_activated'), -(95017, 'spell_omnotron_activated'), -(95018, 'spell_omnotron_activated'), -(78726, 'spell_omnotron_inactive'), -(79879, 'spell_omnotron_electrical_discharge'), -(91465, 'spell_omnotron_electrical_discharge'), -(91466, 'spell_omnotron_electrical_discharge'), -(91467, 'spell_omnotron_electrical_discharge'), -(79900, 'spell_omnotron_unstable_shield'), -(91447, 'spell_omnotron_unstable_shield'), -(91448, 'spell_omnotron_unstable_shield'), -(91449, 'spell_omnotron_unstable_shield'), -(79499, 'spell_omnotron_aquiring_target'), -(79501, 'spell_omnotron_acquiring_target_periodic'), -(92035, 'spell_omnotron_acquiring_target_periodic'), -(92036, 'spell_omnotron_acquiring_target_periodic'), -(92037, 'spell_omnotron_acquiring_target_periodic'), -(79582, 'spell_omnotron_barrier'), -(91516, 'spell_omnotron_barrier'), -(91517, 'spell_omnotron_barrier'), -(91518, 'spell_omnotron_barrier'); - --- Conditions -DELETE FROM `conditions` WHERE `SourceEntry` IN (79920, 78696, 78697, 95019, 95020, 95021, 78698, 95025, 95026, 95027, 78699, 78700, 95022, 95023, 95024, 95028, 95029, 95030) AND `SourceTypeOrReferenceId`= 13; -DELETE FROM `conditions` WHERE `SourceEntry` IN (78696) AND `SourceTypeOrReferenceId`= 17; -INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES -(13, 1, 79920, 0, 0, 31, 0, 3, 42179, 0, 0, 0, '', 'Shared Health - Target Electron'), -(13, 1, 79920, 0, 1, 31, 0, 3, 42178, 0, 0, 0, '', 'Shared Health - Target Magmatron'), -(13, 1, 79920, 0, 2, 31, 0, 3, 42180, 0, 0, 0, '', 'Shared Health - Target Toxitron'), -(13, 1, 79920, 0, 3, 31, 0, 3, 42166, 0, 0, 0, '', 'Shared Health - Target Arcanotron'), - -(13, 1, 78696, 0, 0, 31, 0, 3, 42179, 0, 0, 0, '', 'Controller Recharge - Target Electron'), -(13, 1, 78696, 0, 1, 31, 0, 3, 42178, 0, 0, 0, '', 'Controller Recharge - Target Magmatron'), -(13, 1, 78696, 0, 2, 31, 0, 3, 42180, 0, 0, 0, '', 'Controller Recharge - Target Toxitron'), -(13, 1, 78696, 0, 3, 31, 0, 3, 42166, 0, 0, 0, '', 'Controller Recharge - Target Arcanotron'), - -(13, 1, 78697, 0, 0, 31, 0, 3, 42179, 0, 0, 0, '', 'Recharging - Target Electron'), -(13, 1, 95019, 0, 0, 31, 0, 3, 42179, 0, 0, 0, '', 'Recharging - Target Electron'), -(13, 1, 95020, 0, 0, 31, 0, 3, 42179, 0, 0, 0, '', 'Recharging - Target Electron'), -(13, 1, 95021, 0, 0, 31, 0, 3, 42179, 0, 0, 0, '', 'Recharging - Target Electron'), - -(13, 1, 78698, 0, 0, 31, 0, 3, 42178, 0, 0, 0, '', 'Recharging - Target Magmatron'), -(13, 1, 95025, 0, 0, 31, 0, 3, 42178, 0, 0, 0, '', 'Recharging - Target Magmatron'), -(13, 1, 95026, 0, 0, 31, 0, 3, 42178, 0, 0, 0, '', 'Recharging - Target Magmatron'), -(13, 1, 95027, 0, 0, 31, 0, 3, 42178, 0, 0, 0, '', 'Recharging - Target Magmatron'), - -(13, 1, 78700, 0, 0, 31, 0, 3, 42180, 0, 0, 0, '', 'Recharging - Target Toxitron'), -(13, 1, 95022, 0, 0, 31, 0, 3, 42180, 0, 0, 0, '', 'Recharging - Target Toxitron'), -(13, 1, 95023, 0, 0, 31, 0, 3, 42180, 0, 0, 0, '', 'Recharging - Target Toxitron'), -(13, 1, 95024, 0, 0, 31, 0, 3, 42180, 0, 0, 0, '', 'Recharging - Target Toxitron'), - -(13, 1, 78699, 0, 0, 31, 0, 3, 42166, 0, 0, 0, '', 'Recharging - Target Arcanotron'), -(13, 1, 95028, 0, 0, 31, 0, 3, 42166, 0, 0, 0, '', 'Recharging - Target Arcanotron'), -(13, 1, 95029, 0, 0, 31, 0, 3, 42166, 0, 0, 0, '', 'Recharging - Target Arcanotron'), -(13, 1, 95030, 0, 0, 31, 0, 3, 42166, 0, 0, 0, '', 'Recharging - Target Arcanotron'); - --- Procs -DELETE FROM `spell_proc` WHERE `SpellId` IN (79900, 91447, 91448, 91449); -INSERT INTO `spell_proc` (`SpellId`, `SpellFamilyName`, `SpellFamilyMask0`, `SpellFamilyMask1`, `SpellFamilyMask2`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `AttributesMask`, `Chance`) VALUES -(79900, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0), -(91447, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0), -(91448, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0), -(91449, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0); - --- Summon Groups -DELETE FROM `creature_summon_groups` WHERE `summonerId`= 42186 AND `summonerType`= 0; -INSERT INTO `creature_summon_groups` (`summonerId`, `summonerType`, `groupId`, `entry`, `position_x`, `position_y`, `position_z`, `orientation`, `summonType`, `summonTime`) VALUES -(42186, 0, 0, 42179, -342.519, -405.134, 214.0583, 0.9424778, 8, 0), -(42186, 0, 0, 42178, -308.807, -405.278, 214.0873, 2.111848, 8, 0), -(42186, 0, 0, 42180, -333.632, -411.866, 214.1353, 1.291544, 8, 0), -(42186, 0, 0, 42166, -315.415, -412.474, 214.0963, 1.832596, 8, 0); - --- Waypoints -DELETE FROM `waypoint_data` WHERE `id`= 4218600; -INSERT INTO `waypoint_data`(`id`, `point`, `position_x`, `position_y`, `position_z`) VALUES -(4218600, 1, -309.7726, -392.9861, 213.9485), -(4218600, 2, -324.7795, -399.0781, 213.8248), -(4218600, 3, -342.2674, -392.6615, 213.9369), -(4218600, 4, -324.7795, -399.0781, 213.8248); - --- Addons -DELETE FROM `creature_template_addon` WHERE `entry` IN (42179, 42178, 42180, 42166); -INSERT INTO `creature_template_addon` (`entry`, `bytes1`, `bytes2`, `auras`) VALUES -(42179, 0, 1, '78726 82265 78725 73059'), -(42178, 0, 1, '78726 82265 78725 73059'), -(42180, 0, 1, '78726 82265 78725 73059'), -(42166, 0, 1, '78726 82265 78725 73059'); - --- Delete encounter related creature -DELETE FROM `creature` WHERE `guid` IN (250043, 250044, 250045, 250046); -DELETE FROM `creature_addon` WHERE `guid` IN (250043, 250044, 250045, 250046);