TDB 434.20021 - 2020/02/21

This commit is contained in:
Ovahlord committed 2020-02-22 00:09:34 +01:00
1 parent d9b854ad59
commit f579be3bb3
471 files changed
+11 -15614

No files matched your search

+2
View File
@@ -46,7 +46,9 @@ script:
- mysql -utrinity -ptrinity characters < sql/base/characters_database.sql
- ./contrib/check_updates.sh characters 4.3.4 characters
- mysql -utrinity -ptrinity world < sql/base/dev/world_database.sql
- mysql -utrinity -ptrinity hotfixes < sql/base/dev/hotfixes_database.sql
- cat sql/updates/world/4.3.4/*.sql | mysql -utrinity -ptrinity world
- cat sql/updates/hotfixes/4.3.4/*.sql | mysql -utrinity -ptrinity hotfixes
- mysql -uroot < sql/create/drop_mysql.sql
- cd bin
- make -j 8 -k && make install
+2 -2
View File
@@ -9,8 +9,8 @@
#define _SOURCE_DIRECTORY R"(@CMAKE_SOURCE_DIR@)"
#define _BUILD_DIRECTORY R"(@BUILDDIR@)"
#define _MYSQL_EXECUTABLE R"(@MYSQL_EXECUTABLE@)"
#define _FULL_DATABASE "TDB_full_world_434.34_2018_09_15.sql"
#define _HOTFIXES_DATABASE "TDB_full_hotfixes_434.01_2020_02_21.sql"
#define _FULL_DATABASE "TDB_full_world_434.20021_2020_02_21.sql"
#define _HOTFIXES_DATABASE "TDB_full_hotfixes_434.20021_2020_02_21.sql"
#define VER_COMPANYNAME_STR "TrinityCore Developers"
#define VER_LEGALCOPYRIGHT_STR "(c)2008-2020 TrinityCore"
#define VER_FILEVERSION 0,0,0
@@ -1,41 +0,0 @@
-- Lockmaw
UPDATE `creature_template` SET `difficulty_entry_1`= 49043, `mechanic_immune_mask`= 667893759, `scriptname`= 'boss_lockmaw' WHERE `entry`= 43614;
UPDATE `creature_template` SET `minlevel`= 87, `maxlevel`= 87, `faction`= 16, `exp`= 3, `mechanic_immune_mask`= 667893759 WHERE `entry`= 49043;
-- Dust Flail Front
UPDATE `creature_template` SET `minlevel`= 80, `maxlevel`= 80, `faction`= 14, `unit_flags`= 33554944, `flags_extra`= 128 WHERE `entry`= 43655;
-- Dust Flail Back
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 14, `unit_flags`= 33554944, `flags_extra`= 128 WHERE `entry`= 43650;
-- Frenzied Crocolisk
UPDATE `creature_template` SET `minlevel`= 84, `maxlevel`= 84, `difficulty_entry_1`= 49311, `flags_extra`= 256, `scriptname`= 'npc_lockmaw_frenzied_crocolisk' WHERE `entry`= 43658;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 16, `exp`= 3, `flags_extra`= 256 WHERE `entry`= 49311;
-- Augh 1 and 2
UPDATE `creature_template` SET `unit_flags`= 32832, `mechanic_immune_mask`= 667893759, `scriptname`= 'npc_lockmaw_augh' WHERE `entry` IN (45379, 45378);
-- Augh
UPDATE `creature_template` SET `mechanic_immune_mask`= 667893759, `scriptname`= 'boss_augh' WHERE `entry`= 49045;
-- Add Stalker
UPDATE `creature_template` SET `unit_flags`= 33554432, `flags_extra`= 131 WHERE `entry`= 45124;
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_lockmaw_paralytic_blow_dart',
'spell_lockmaw_scent_of_blood',
'spell_lockmaw_random_aggro_taunt');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(84799, 'spell_lockmaw_paralytic_blow_dart'),
(89989, 'spell_lockmaw_paralytic_blow_dart'),
(81690, 'spell_lockmaw_scent_of_blood'),
(89998, 'spell_lockmaw_scent_of_blood'),
(50230, 'spell_lockmaw_random_aggro_taunt');
DELETE FROM `creature_template_addon` WHERE `entry`= 43650;
INSERT INTO `creature_template_addon` (`entry`, `Auras`) VALUES
(43650, '81646');
DELETE FROM `creature_text` WHERE `CreatureID`= 49045;
INSERT INTO `creature_text` (`CreatureID`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `comment`) VALUES
(49045, 0, 0, 'Augh appears from the distance!', 41, 0, 0, 0, 0, 0, 50638, 'Augh - Intro 1'),
(49045, 1, 0, 'GAAAH! How you kill croc?!', 12, 0, 0, 53, 0, 0, 49169, 'Augh - Intro 2'),
(49045, 2, 0, 'Augh smart! Augh already steal treasure while you no looking!', 12, 0, 0, 1, 0, 0, 49170, 'Augh - Intro 3'),
(49045, 3, 0, 'Augh da boss! Oh yeah!', 12, 0, 0, 0, 0, 0, 49171, 'Augh Taunt'),
(49045, 4, 0, 'Augh steal your treasure. Uhn uhn uhnnn!', 12, 0, 0, 0, 0, 0, 49173, 'Augh Taunt'),
(49045, 5, 0, 'Who bad?! Augh bad!! Ugn!', 12, 0, 0, 0, 0, 0, 49172, 'Augh Taunt');
@@ -1,268 +0,0 @@
-- Template Updates
UPDATE `creature_template` SET `scriptname`= 'boss_baron_ashbury', `flags_extra`= 1 WHERE `entry`= 46962;
UPDATE `creature_template` SET `AIName`= '', `flags_extra`= 1, `scriptname`= 'boss_lord_godfrey' WHERE `entry`= 46964;
UPDATE `creature_template` SET `AIName`= '', `scriptname`= 'npc_sfk_bloodthirsty_ghoul' WHERE `entry`= 50561;
UPDATE `creature_template` SET `flags_extra`= 130, `InhabitType`= 4 WHERE `entry`= 52065;
UPDATE `creature_template` SET `scriptname`= 'boss_baron_silverlaine', `flags_extra`= 1 WHERE `entry`= 3887;
UPDATE `creature_template` SET `flags_extra`= 130 WHERE `entry` IN (51047, 51080, 51085, 50934);
UPDATE `creature_template` SET `scriptname`= 'npc_wolf_master_nandos' WHERE `entry`= 50851;
UPDATE `creature_template` SET `scriptname`= 'npc_razorclaw_the_butcher' WHERE `entry`= 50869;
UPDATE `creature_template` SET `scriptname`= 'npc_odo_the_blindwatcher' WHERE `entry`= 50857;
UPDATE `creature_template` SET `scriptname`= 'npc_rethilgore' WHERE `entry`= 50834;
UPDATE `creature_template` SET `scriptname`= 'boss_commander_springvale', `AIName`= '', `flags_extra`= 1 WHERE `entry`= 4278;
UPDATE `creature_template` SET `flags_extra`= 130, `unit_flags`= 33554688 WHERE `entry`= 50547;
UPDATE `creature_template` SET `faction`= 14, `minlevel`= 87, `maxlevel`= 87, `flags_extra`= 130, `unit_flags`= 33554432 WHERE `entry` IN (50503, 51258);
UPDATE `creature_template` SET `AIName`= '', `scriptname`= 'boss_lord_walden', `flags_extra`= 1 WHERE `entry`= 46963;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 14, `flags_extra`= 130, `modelid1`= 1126, `modelid2`= 23767, `InhabitType`= 4, `unit_flags`= unit_flags | 256 | 512 WHERE `entry`= 50522;
UPDATE `creature_template` SET `scriptname`= 'npc_wailing_guardsman' WHERE `entry`= 50613;
UPDATE `creature_template` SET `scriptname`= 'npc_tormented_officer' WHERE `entry`= 50615;
UPDATE `creature_template` SET `minlevel`= 87, `maxlevel`= 87, `faction`= 14, `unit_flags`= 33554432, `flags_extra`= 130 WHERE `entry`= 50503;
UPDATE `creature_template` SET `flags_extra`= 130 WHERE `entry` IN (50611, 50604, 51085, 51080, 50934, 51047);
UPDATE `creature_template` SET `unit_flags`= 768, `unit_flags2`= 33556480 WHERE `entry`= 47031;
-- Creature Texts
DELETE FROM `creature_text` WHERE `CreatureID` IN (46964, 46962, 3887, 4278, 46963, 47293, 47006, 47027, 48124, 47862, 47294);
INSERT INTO `creature_text` (`CreatureID`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`) VALUES
(46964, 0, 0, 'Ivar''s pack failed horribly, so now he sends mercenaries. No matter, your journey ends in agony.', 14, 0, 100, 0, 0, 0, 'Lord Godfrey - Aggro Alliance'),
(46964, 1, 0, 'That bitch Sylvanas sent you too, did she? No matter, your journey ends in agony.', 14, 0, 100, 0, 0, 0, 'Lord Godfrey - Aggro Horde'),
(46964, 2, 0, 'Murder never gets old.', 14, 0, 100, 0, 0, 0, 'Lord Godfrey - Aggro Horde'),
(46964, 2, 1, 'This is the quality of assassin sent to kill me? Laughable.', 14, 0, 100, 0, 0, 0, 'Lord Godfrey - Aggro Horde'),
(46964, 3, 0, '|TInterface\\Icons\\INV_FIREARM_2H_RIFLE_CATACLYSM_B_01.BLP:20|t%s begins to cast |cFFFF0000|Hspell:93520|h[Pistol Barrage]|h|r!', 41, 0, 100, 0, 0, 0, 'Lord Godfrey Pistol Barrage'),
(46964, 4, 0, 'I thank you for the clean death. I would not have done the same...', 14, 0, 100, 0, 0, 0, 'Lord Godfrey'),
(46962, 1, 0, 'Tally ho! The hunt begins!', 14, 0, 100, 0, 0, 0, 'Baron Ashbury'),
(46962, 2, 0, 'This is just too easy...', 14, 0, 100, 0, 0, 0, 'Baron Ashbury'),
(46962, 3, 0, '|TInterface\\Icons\\spell_holy_healingaura.blp:20|tBaron Ashbury begins to channel |cFFFF0000|Hspell:93468|h''Stay of Execution''|h|r !', 41, 0, 100, 0, 0, 0, 'Baron Ashbury'),
(46962, 4, 0, 'HA! Let''s at least keep it interesting.', 14, 0, 100, 0, 0, 0, 'Baron Ashbury'),
(46962, 5, 0, 'I grow tired of this hunt... Time to die!', 14, 0, 100, 0, 0, 0, 'Baron Ashbury'),
(46962, 6, 0, 'Killed by lowly commoners, how droll...', 14, 0, 100, 0, 0, 0, 'Baron Ashbury'),
(3887, 0, 0, 'Leave this accursed place at once!', 14, 0, 100, 0, 0, 0, 'Baron Silverlaine - Aggro'),
(3887, 1, 0, 'This death is only a temporary respite from my curse.', 14, 0, 100, 0, 0, 0, 'Baron Silverlaine - Death'),
(3887, 2, 0, 'I hope your spirit finds solace.', 14, 0, 100, 0, 0, 0, 'Baron Silverlaine - Slay 1'),
(3887, 2, 1, 'May you rest in peace.', 14, 0, 100, 0, 0, 0, 'Baron Silverlaine - Slay 2'),
(4278, 0, 0, 'Intruders in the keep! To arms!', 14, 0, 100, 0, 0, 0, 'Commander Springvale - Aggro'),
(4278, 1, 0, 'Repel the intruders!', 14, 0, 100, 0, 0, 0, 'Commander Springvale - Summon Adds'),
(4278, 2, 0, 'The attackers weaken!', 14, 0, 100, 0, 0, 0, 'Commander Springvale - Slay 1'),
(4278, 2, 1, 'One step closer to victory!', 14, 0, 100, 0, 0, 0, 'Commander Springvale - Slay 2'),
(4278, 3, 0, 'Our vigilance is eternal...', 14, 0, 100, 0, 0, 0, 'Commander Springvale - Death'),
(46963, 0, 0, 'Even here I find myself beset by fools!', 14, 0, 100, 0, 0, 0, 'Lord Walden - Aggro'),
(46963, 1, 0, 'This childish effort ends now!', 14, 0, 100, 0, 0, 0, 'Lord Walden - Slay 1'),
(46963, 1, 1, 'You shall annoy me no longer!', 14, 0, 100, 0, 0, 0, 'Lord Walden - Slay 2'),
(46963, 2, 0, 'My new life was just beginning...', 14, 0, 100, 0, 0, 0, 'Lord Walden - Death'),
-- Belmont
(47293, 0, 0, 'You''re more skilled in combat than I thought.', 12, 0, 100, 1, 0, 0, 'Deathstalker Commander Belmont to Player'),
(47293, 1, 0, 'Very well then. Let''s get the courtyard door open so we can continue our mission!', 12, 0, 100, 1, 0, 0, 'Deathstalker Commander Belmont to Player'),
(47293, 2, 0, 'This lock should be easy enough to pick.', 12, 0, 100, 1, 0, 0, 'Deathstalker Commander Belmont to Player'),
(47293, 3, 0, 'There we go!', 12, 0, 100, 0, 0, 0, 'Deathstalker Commander Belmont to Player'),
(47293, 4, 0, 'Excellent. Now, to plague this area and move on to-', 12, 0, 100, 396, 0, 0, 'Deathstalker Commander Belmont to Player'),
(47293, 5, 0, 'Cromush! What''re you doing here? This is a covert operation!', 12, 0, 100, 5, 0, 0, 'Deathstalker Commander Belmont to Player'),
(47293, 6, 0, 'My apologies, Cromush, but I assure you there is no problem. We are using an extremely dilute plague.', 12, 0, 100, 396, 0, 0, 'Deathstalker Commander Belmont to Player'),
(47293, 7, 0, 'In fact, it really only serves to scare off the worgen from trying to follow us in here. It''s completely harmless.', 12, 0, 100, 396, 0, 0, 'Deathstalker Commander Belmont to Player'),
(47293, 8, 0, 'The time has come, soldiers! Godfrey lies just ahead! Have no mercy! We fight-', 12, 0, 100, 396, 0, 0, 'Deathstalker Commander Belmont to Player'),
(47293, 9, 0, 'You''d better hurry up if you want in on all the fun.', 12, 0, 100, 153, 0, 0, 'Deathstalker Commander Belmont to Player'),
(47293, 10, 0, 'Why is the door shut? What in Sylvanas'' name is going on here...', 12, 0, 100, 396, 0, 0, 'Deathstalker Commander Belmont to Player'),
(47293, 11, 0, 'Cromush! What happened?', 12, 0, 100, 396, 0, 0, 'Deathstalker Commander Belmont to Player'),
(47293, 12, 0, 'You''ll pay for this Godfrey!', 12, 0, 100, 397, 0, 0, 'Deathstalker Commander Belmont to Player'),
-- Cromush
(47294, 0, 0, 'Unless I''m mistaken, the Warchief explicity forbids using the full plague, no matter the circumstance.', 12, 0, 100, 396, 0, 0, 'High Warlord Cromush to Player'),
(47294, 1, 0, 'Then I''m sure you won''t mind if I accompany you on your mission.', 12, 0, 100, 396, 0, 0, 'High Warlord Cromush to Player'),
(47294, 2, 0, 'FOR THE HORDE!!!', 14, 0, 100, 71, 0, 0, 'High Warlord Cromush to Player'),
(47294, 3, 0, 'The coward...killed them...poisoned...me...', 12, 0, 100, 0, 0, 0, 'High Warlord Cromush to Player'),
-- Ivar
(47006, 0, 0, 'Pathetic.', 12, 0, 100, 1, 0, 0, 'Packleader Ivar Bloodfang to Player'),
(47006, 1, 0, 'Keep moving forward. My men will dispose of this sorry bag of bones.', 12, 0, 100, 1, 0, 0, 'Packleader Ivar Bloodfang to Player'),
(47006, 2, 0, 'Control yourselves! We''re here for Godfrey''s head above all else. Relish in the spoils of war later!', 12, 0, 100, 5, 0, 0, 'Packleader Ivar Bloodfang to Player'),
(47006, 3, 0, 'We have to push forward if we''re to put an end to him. Follow me, I''ll open the courtyard so that you can spearhead our assault.', 12, 0, 100, 0, 0, 0, 'Packleader Ivar Bloodfang to Player'),
(47006, 4, 0, 'What a pathetic lock! Godfrey is going to have to try harder than this if he wants to defeat us.', 12, 0, 100, 0, 0, 0, 'Packleader Ivar Bloodfang to Player'),
(47006, 5, 0, 'The Bloodfang Berserkers begin to salivate heavily.', 16, 0, 100, 0, 0, 0, 'Packleader Ivar Bloodfang to Player'),
(47006, 6, 0, 'The Bloodfang come for you, worgen hunters!', 14, 0, 100, 15, 0, 0, 'Packleader Ivar Bloodfang to Player'),
(47006, 7, 0, 'I''ve picked up Walden''s foul scent. Fill the air with his blood!', 12, 0, 100, 1, 0, 0, 'Packleader Ivar Bloodfang to Player'),
(47006, 8, 0, 'Your time has finally come, Godfrey!', 14, 0, 100, 53, 0, 0, 'Packleader Ivar Bloodfang to Player'),
(47006, 9, 0, 'Attack, my brothers! Make him feel the fury of the pack!', 14, 0, 100, 25, 0, 0, 'Packleader Ivar Bloodfang to Player'),
(47006, 10, 0, 'You''d best hurry if you want any of the spoils.', 12, 0, 100, 0, 0, 0, 'Packleader Ivar Bloodfang to Player'),
(47006, 11, 0, 'I don''t know why the door is closed, heroes. My pack should have already taken care of Godfrey by now...', 12, 0, 100, 1, 0, 0, 'Packleader Ivar Bloodfang to Player'),
(47006, 12, 0, 'We will stand idle no longer! The time to act is now!', 12, 0, 100, 1, 0, 0, 'Packleader Ivar Bloodfang to Player'),
(47006, 13, 0, 'I''ll make sure nothing interferes. Go now heroes! Kill Godfrey!', 12, 0, 100, 0, 0, 0, 'Packleader Ivar Bloodfang to Player'),
(47006, 14, 0, 'Crowley is a disgrace to our kind for giving in to the Forsaken. My pack will show them the true face of the worgen and the relentless fury that comes with our presence!', 12, 0, 100, 5, 0, 0, 'Packleader Ivar Bloodfang to Player'),
-- Bloodfang Berserker
(47027, 0, 0, 'Bones?', 12, 0, 100, 1, 0, 0, 'Bloodfang Berserker'),
-- Rabid Mastiff
(48124, 0, 0, 'The Rabid Mastiff slobbers all over the floor...', 16, 0, 100, 0, 0, 0, 'Rabid Mastiff'),
(48124, 0, 1, 'The dog stares blankly at the wall...', 16, 0, 100, 0, 0, 0, 'Rabid Mastiff'),
(48124, 0, 2, 'A Rabid Mastiff growls...', 16, 0, 100, 0, 0, 0, 'Rabid Mastiff'),
-- Hentry Maleb
(47862, 0, 0, 'Better to rot in this cell than live as a dishonorable traitor.', 12, 0, 100, 1, 0, 0, 'Magistrate Henry Maleb');
-- Creature Template Addon
DELETE FROM `creature_template_addon` WHERE `entry` IN (46964, 49712, 50604, 47030, 93424, 50503,50851, 50923, 50834, 50857, 50869, 50547, 47006, 47031, 47293, 47294);
INSERT INTO `creature_template_addon` (`entry`, `Auras`) VALUES
(46964, '93597'),
(49712, '93597'),
(50503, '93690 67803'),
(50851 , '93853'),
(50923 , '93853'),
(50857 , '93853'),
(50869 , '93853'),
(50834 , '50834');
-- Spell Script Names
DELETE FROM `spell_script_names` WHERE `ScriptName` IN (
'spell_sfk_summon_bloodthirsty_ghouls',
'spell_sfk_pistol_barrage',
'spell_sfk_pain_and_suffering',
'spell_sfk_summon_worgen_spirit',
'spell_sfk_forsaken_ability',
'spell_sfk_asphyxiate',
'spell_sfk_unholy_power',
'spell_sfk_unholy_empowerment',
'spell_sfk_toxic_coagulant',
'spell_sfk_pistol_barrage_summon',
'spell_sfk_conjure_poisonous_mixture',
'spell_sfk_cursed_bullets');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(93707, 'spell_sfk_summon_bloodthirsty_ghouls'),
(93520, 'spell_sfk_pistol_barrage'),
(93581, 'spell_sfk_pain_and_suffering'),
(93712, 'spell_sfk_pain_and_suffering'),
(93857, 'spell_sfk_summon_worgen_spirit'),
(7054, 'spell_sfk_forsaken_ability'),
(93423, 'spell_sfk_asphyxiate'),
(93710, 'spell_sfk_asphyxiate'),
(93686, 'spell_sfk_unholy_power'),
(93735, 'spell_sfk_unholy_power'),
(93844, 'spell_sfk_unholy_empowerment'),
(93617, 'spell_sfk_toxic_coagulant'),
(96344, 'spell_sfk_pistol_barrage_summon'),
(93697, 'spell_sfk_conjure_poisonous_mixture'),
(93704, 'spell_sfk_conjure_poisonous_mixture'),
(93629, 'spell_sfk_cursed_bullets'),
(93761, 'spell_sfk_cursed_bullets');
-- Conditions
DELETE FROM `conditions` WHERE `SourceEntry` IN (93564, 93784, 93766, 93599, 93594);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES
(13, 2, 93564, 0, 0, 31, 0, 3, 50561, 0, 0, 0, '', 'Pistol Barrage - Target Bloodthirsty Ghoul'),
(13, 2, 93784, 0, 0, 31, 0, 3, 50561, 0, 0, 0, '', 'Pistol Barrage HC - Target Bloodthirsty Ghoul'),
(13, 1, 93766, 0, 0, 31, 0, 3, 50604, 0, 0, 0, '', 'Dark Archangel - Wings Aura'),
(13, 1, 93599, 0, 0, 31, 0, 3, 46963, 0, 0, 0, '', 'Toxic Coagulant - Target Lord Walden'),
(13, 1, 93594, 0, 0, 31, 0, 3, 46963, 0, 0, 0, '', 'Toxic Cataclyst - Target Lord Walden');
DELETE FROM `spell_linked_spell` WHERE `spell_trigger`= 93757;
INSERT INTO `spell_linked_spell` (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES
('93757', '93766', '0', 'Baron Ashbury Wings - Apply Aura'),
('93757', '93812', '0', 'Baron Ashbury - Archangel Damage Aura');
DELETE FROM `achievement_criteria_data` WHERE `criteria_id` IN (16081, 16085, 16544, 16086, 16544);
INSERT INTO `achievement_criteria_data` (`criteria_id`, `type`, `value1`, `value2`, `ScriptName`) VALUES
(16081, 11, 0, 0, 'achievement_pardon_denied'),
(16085, 11, 0, 0, 'achievement_to_the_ground'),
(16086, 11, 0, 0, 'achievement_bullet_time');
DELETE FROM `spell_dbc` WHERE `Id`= 93716;
INSERT INTO `spell_dbc` (`Id`, `CastingTimeIndex`, `DurationIndex`, `Comment`) VALUES
(93716, 0, 27, 'Shield of the Perfidious');
DELETE FROM `spelleffect_dbc` WHERE `Id`= 155915;
INSERT INTO `spelleffect_dbc` (`Id`, `Effect`, `EffectMiscValue`, `EffectMiscValueB`, `EffectRadiusIndex`, `EffectRadiusIndexMax`, `EffectImplicitTargetA`, `EffectImplicitTargetB`, `EffectSpellId`, `EffectIndex`, `Comment`) VALUES
(155915, 28, 50547, 64, 7,7, 18, 18, 93716, 0, '');
-- Boss Loot
-- Baron Ashbury
UPDATE `creature_template` SET `difficulty_entry_1`= 49708, `lootid`= 46962 WHERE `entry` = 46962;
DELETE FROM `creature_loot_template` WHERE `entry` IN (46962, 49708);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(46962, 6314, 0, 1, 1, 1, 1),
(46962, 6324, 0, 1, 1, 1, 1),
(46962, 6323, 0, 1, 1, 1, 1);
UPDATE `creature_template` SET `lootid`= 49708 WHERE `entry`= 49708;
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(49708, 63433, 0, 1, 1, 1, 1),
(49708, 63437, 0, 1, 1, 1, 1),
(49708, 63435, 0, 1, 1, 1, 1),
(49708, 63436, 0, 1, 1, 1, 1),
(49708, 63434, 0, 1, 1, 1, 1);
-- Baron Silverlaine
UPDATE creature_template SET `difficulty_entry_1`= 49709, `lootid`= 3887 WHERE `entry`= 3887;
DELETE FROM `creature_loot_template` WHERE `entry` IN (3887, 49709);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(3887, 6321, 0, 1, 1, 1, 1),
(3887, 6323, 0, 1, 1, 1, 1),
(3887, 60885, -100, 1, 2, 1, 1),
(3887, 60878, -100, 1, 3, 1, 1);
UPDATE `creature_template` SET `lootid`= 49709 WHERE `entry`= 49709;
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(49709, 63440, 0, 1, 1, 1, 1),
(49709, 63439, 0, 1, 1, 1, 1),
(49709, 63444, 0, 1, 1, 1, 1),
(49709, 63438, 0, 1, 1, 1, 1),
(49709, 63441, 0, 1, 1, 1, 1);
-- Commander Springvale
UPDATE creature_template SET `difficulty_entry_1`= 49710, `lootid`= 4278 WHERE `entry`= 4278;
DELETE FROM `creature_loot_template` WHERE `entry` IN (4278, 49710);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(4278, 3191, 0, 1, 1, 1, 1),
(4278, 6320, 0, 1, 1, 1, 1),
(4278, 60879, -100, 1, 2, 1, 1),
(4278, 60880, -100, 1, 3, 1, 1);
UPDATE `creature_template` SET `lootid`= 49710 WHERE `entry`= 49710;
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(49710, 63448, 0, 1, 1, 1, 1),
(49710, 63449, 0, 1, 1, 1, 1),
(49710, 63447, 0, 1, 1, 1, 1),
(49710, 63446, 0, 1, 1, 1, 1),
(49710, 63445, 0, 1, 1, 1, 1);
-- Lord Walden
UPDATE creature_template SET `difficulty_entry_1`= 49711, `lootid`= 46962 WHERE `entry`= 46962;
DELETE FROM `creature_loot_template` WHERE `entry` IN (46962, 49711);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(46962, 3230, 0, 1, 1, 1, 1),
(46962, 6642, 0, 1, 1, 1, 1),
(46962, 6341, 0, 1, 1, 1, 1),
(46962, 1292, 0, 1, 1, 1, 1),
(46962, 60876, -100, 1, 2, 1, 1),
(46962, 60881, -100, 1, 3, 1, 1);
UPDATE `creature_template` SET `lootid`= 49711 WHERE `entry`= 49711;
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(49711, 63455, 0, 1, 1, 1, 1),
(49711, 63454, 0, 1, 1, 1, 1),
(49711, 63452, 0, 1, 1, 1, 1),
(49711, 63450, 0, 1, 1, 1, 1),
(49711, 63453, 0, 1, 1, 1, 1);
-- Lord Godfrey
UPDATE `creature_template` SET `difficulty_entry_1`= 49712, `lootid`= 46964 WHERE `entry`= 46964;
UPDATE `creature_template` SET `lootid`= 49712 WHERE `entry`= 49712;
DELETE FROM `creature_loot_template` WHERE `Entry` IN (46964, 49712);
DELETE FROM `reference_loot_template` WHERE `Entry` IN (469640, 497120, 497121);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `Reference`, `MaxCount`) VALUES
(46964, 469640, 100, 1, 469640, 2),
(49712, 497120, 100, 1, 497120, 2),
(49712, 497121, 100, 1, 497121, 1); -- Chaos Orb
INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(469640, 3748, 0, 1, 1, 1, 1),
(469640, 6220, 0, 1, 1, 1, 1),
(469640, 6641, 0, 1, 1, 1, 1),
(469640, 6318, 0, 1, 1, 1, 1),
(469640, 60877, -100, 1, 2, 1, 1),
(469640, 60882, -100, 1, 3, 1, 1),
(497120, 63465, 0, 1, 1, 1, 1),
(497120, 63463, 0, 1, 1, 1, 1),
(497120, 63459, 0, 1, 1, 1, 1),
(497120, 63462, 0, 1, 1, 1, 1),
(497120, 63458, 0, 1, 1, 1, 1),
(497120, 63457, 0, 1, 1, 1, 1),
(497120, 63464, 0, 1, 1, 1, 1),
(497120, 63460, 0, 1, 1, 1, 1),
(497120, 63456, 0, 1, 1, 1, 1),
(497120, 63461, 0, 1, 1, 1, 1),
(497121, 52078, 100, 1, 1, 1, 1);
@@ -1,88 +0,0 @@
-- Siamat
UPDATE `creature_template` SET `difficulty_entry_1`= 51088, `minlevel`= 86, `maxlevel`= 86, `mechanic_immune_mask`= 667893759, `flags_extra`= 536870912, `scriptname`= 'boss_siamat' WHERE `entry`= 44819;
UPDATE `creature_template` SET `minlevel`= 87, `maxlevel`= 87, `faction`= 16, `exp`= 3, `mechanic_immune_mask`= 667893759, `flags_extra`= 536870912 WHERE `entry`= 51088;
-- Servant of Siamat
UPDATE `creature_template` SET `minlevel`= 84, `maxlevel`= 84, `scale`= 1, `mechanic_immune_mask`= 667893759, `flags_extra`= 536870912, `scriptname`= 'npc_siamat_servant_of_siamat' WHERE `entry` IN (45259, 45268, 45269);
UPDATE `creature_template` SET `difficulty_entry_1`= 49256 WHERE `entry`= 45259;
UPDATE `creature_template` SET `difficulty_entry_1`= 49257 WHERE `entry`= 45268;
UPDATE `creature_template` SET `difficulty_entry_1`= 49258 WHERE `entry`= 45269;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `scale`= 1, `exp`= 3, `faction`= 16, `mechanic_immune_mask`= 667893759, `movementId`= 130, `flags_extra`= 536870912 WHERE `entry` IN (49256, 49257, 49258);
-- Cloud Burst
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 14, `unit_flags`= 33554944, `flags_extra`= 131 WHERE `entry`= 44541;
-- Minion of Siamat
UPDATE `creature_template` SET `difficulty_entry_1`= 49260, `minlevel`= 82, `maxlevel`= 82, `flags_extra`= 536870912, `scriptname`= 'npc_siamat_minion_of_siamat' WHERE `entry`= 44704;
UPDATE `creature_template` SET `minlevel`= 83, `maxlevel`= 83, `exp`= 3, `faction`= 16 , `movementId`= 130, `flags_extra`= 536870912 WHERE `entry`= 49260;
-- Minion of Siamat (Tempest Storm trigger)
UPDATE `creature_template` SET `minlevel`= 83, `maxlevel`= 83, `faction`= 16 , `unit_flags`= 33554496, `flags_extra`= 128 | 536870912 WHERE `entry`= 44713;
DELETE FROM `spell_dbc` WHERE `Id`= 59632;
INSERT INTO `spell_dbc` (`Id`, `DurationIndex`, `Comment`) VALUES
(59632, 21, "Serverside Spell: mod scale 0.1");
DELETE FROM `spelleffect_dbc` WHERE `Id`= 160080;
INSERT INTO `spelleffect_dbc` (`Id`, `EffectSpellId`, `Effect`, `EffectApplyAuraName`, `EffectBasePoints`, `EffectIndex`, `Comment`) VALUES
(160080, 59632, 6, 61, -90, 0, '');
DELETE FROM `creature_template_addon` WHERE `entry` IN (45259, 45268, 45269, 49256, 49257, 49258, 44541, 44704, 49260, 44713);
INSERT INTO `creature_template_addon` (`entry`, `Auras`) VALUES
(45259, '59632'),
(45268, '59632'),
(45269, '59632'),
(49256, '59632'),
(49257, '59632'),
(49258, '59632'),
(44541, '83048'),
(44704, '59632'),
(49260, '59632'),
(44713, '84512');
DELETE FROM `creature_text` WHERE `CreatureID`= 44819;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(44819, 0, 0, 'I. AM. UNLEASHED!', 14, 0, 100, 0, 0, 20231, 45481, 'Siamat - Intro'),
(44819, 1, 0, 'Winds of the south, rise and come to your master''s aid!', 14, 0, 100, 0, 0, 20227, 45483, 'Siamat - Aggro 1'),
(44819, 1, 1, 'Your city will be buried, your lives forfeit to the elements!', 14, 0, 100, 0, 0, 20230, 45486, 'Siamat - Aggro 2'),
(44819, 2, 0, 'Cower before the tempest storm!', 14, 0, 100, 0, 0, 20228, 45487, 'Siamat - Wailing Winds 1'),
(44819, 2, 1, 'Suffer the storm!', 14, 0, 100, 0, 0, 20229, 45485, 'Siamat - Wailing Winds 2'),
(44819, 3, 0, 'Nothing more than dust in the wind.', 14, 0, 100, 0, 0, 20232, 45482, 'Siamat - Slay'),
(44819, 4, 0, 'The sky... Beckons...', 14, 0, 100, 0, 0, 20226, 45484, 'Siamat - Death');
UPDATE `creature_text` SET `TextRange`= 2 WHERE `CreatureID`= 44819 AND `GroupID`= 0;
-- Spell Script Names
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_siamat_thunder_crash',
'spell_siamat_wailing_winds',
'spell_siamat_cloud_burst',
'spell_siamat_wailing_winds_player',
'spell_siamat_wailing_winds_knockback',
'spell_siamat_gathered_storms',
'spell_siamat_absorb_storms');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(84521, 'spell_siamat_thunder_crash'),
(83066, 'spell_siamat_wailing_winds'),
(83790, 'spell_siamat_cloud_burst'),
(83089, 'spell_siamat_wailing_winds_player'),
(83566, 'spell_siamat_wailing_winds_knockback'),
(84987, 'spell_siamat_gathered_storms'),
(83151, 'spell_siamat_absorb_storms');
DELETE FROM `conditions` WHERE `SourceEntry`= 83151 AND `SourceTypeOrReferenceId`= 13;
INSERT INTO conditions (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES
(13, 1, 83151, 0, 0, 31, 0, 3, 44713, 0, 0, 0, '', 'Absorb Storms - Target Minion of Siamat');
-- Creature Cloud Burst 44541 SAI
SET @ENTRY := 44541;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 1, 60, 0, 100, 1, 3000, 3000, 0, 0, 11, 83051, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Every 0 and 0 ms (for the first time, timer between 3000 and 3000 ms) - Self: Cast spell 83051 on Self // "),
(@ENTRY, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 28, 83048, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Remove aura due to spell 83048 // "),
(@ENTRY, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Despawn in 5000 ms // ");
-- Creature Minion of Siamat 44713 SAI
SET @ENTRY := 44713;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 1, 60, 0, 100, 1, 1000, 1000, 0, 0, 11, 83406, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Every 0 and 0 ms (for the first time, timer between 1000 and 1000 ms) - Self: Cast spell 83406 on Self // "),
(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 89, 10, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Move in radius 10 yards // ");
@@ -1,72 +0,0 @@
-- Make Cataclysm lfg quests repeatable. Their currency weekly cap is handled by the core
UPDATE `quest_template_addon` SET `SpecialFlags`= 8 | 1 WHERE `ID` IN (29185, 28905, 28907);
-- Add loot to Satches of Exotic Mysteries
DELETE FROM `item_loot_template` WHERE `entry`= 69903;
INSERT INTO `item_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `MinCount`, `MaxCount`) VALUES
(69903, 0, 69903, 100, 2, 2);
DELETE FROM `reference_loot_template` WHERE `entry`= 69903;
INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Chance`, `Lootmode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(69903, 58085, 10, 1, 1, 1, 1),
(69903, 58090, 7, 1, 1, 1, 3),
(69903, 57191, 7, 1, 1, 1, 3),
(69903, 58087, 6, 1, 1, 1, 1),
(69903, 52195, 5, 1, 1, 1, 1),
(69903, 52194, 5, 1, 1, 1, 1),
(69903, 52192, 5, 1, 1, 1, 1),
(69903, 52193, 5, 1, 1, 1, 1),
(69903, 58086, 5, 1, 1, 1, 1),
(69903, 52190, 5, 1, 1, 1, 1),
(69903, 58145, 5, 1, 1, 1, 3),
(69903, 52191, 4, 1, 1, 1, 1),
(69903, 58088, 3, 1, 1, 1, 1),
(69903, 57192, 3, 1, 1, 1, 3),
(69903, 62251, 3, 1, 1, 1, 3),
(69903, 57193, 1.7, 1, 1, 1, 3),
(69903, 58091, 1.6, 1, 1, 1, 3),
(69903, 58146, 1.5, 1, 1, 1, 3),
(69903, 57194, 1.5, 1, 1, 1, 3),
(69903, 67438, 1.4, 1, 1, 1, 1),
(69903, 54436, 0.6, 1, 1, 1, 1),
(69903, 8490, 0.6, 1, 1, 1, 1),
(69903, 48120, 0.6, 1, 1, 1, 1),
(69903, 8495, 0.6, 1, 1, 1, 1),
(69903, 46398, 0.5, 1, 1, 1, 1),
(69903, 8496, 0.5, 1, 1, 1, 1),
(69903, 69991, 0.5, 1, 1, 1, 1),
(69903, 43698, 0.4, 1, 1, 1, 1),
(69903, 44980, 0.4, 1, 1, 1, 1),
(69903, 44721, 0.4, 1, 1, 1, 1),
(69903, 69992, 0.4, 1, 1, 1, 1),
(69903, 44965, 0.4, 1, 1, 1, 1),
(69903, 44971, 0.4, 1, 1, 1, 1),
(69903, 44984, 0.3, 1, 1, 1, 1),
(69903, 29901, 0.3, 1, 1, 1, 1),
(69903, 8491, 0.3, 1, 1, 1, 1),
(69903, 8485, 0.3, 1, 1, 1, 1),
(69903, 8487, 0.3, 1, 1, 1, 1),
(69903, 10392, 0.3, 1, 1, 1, 1),
(69903, 44970, 0.3, 1, 1, 1, 1),
(69903, 44973, 0.3, 1, 1, 1, 1),
(69903, 44974, 0.3, 1, 1, 1, 1),
(69903, 44982, 0.3, 1, 1, 1, 1),
(69903, 29953, 0.3, 1, 1, 1, 1),
(69903, 8500, 0.3, 1, 1, 1, 1),
(69903, 45002, 0.3, 1, 1, 1, 1),
(69903, 8492, 0.3, 1, 1, 1, 1),
(69903, 10394, 0.3, 1, 1, 1, 1),
(69903, 8497, 0.3, 1, 1, 1, 1),
(69903, 44707, 0.3, 1, 1, 1, 1),
(69903, 45606, 0.3, 1, 1, 1, 1),
(69903, 10393, 0.3, 1, 1, 1, 1),
(69903, 29904, 0.3, 1, 1, 1, 1),
(69903, 35504, 0.2, 1, 1, 1, 1),
(69903, 43953, 0.2, 1, 1, 1, 1),
(69903, 43962, 0.2, 1, 1, 1, 1),
(69903, 44151, 0.19, 1, 1, 1, 1),
(69903, 13335, 0.07, 1, 1, 1, 1),
(69903, 32768, 0.07, 1, 1, 1, 1),
(69903, 8494, 0.06, 1, 1, 1, 1);
-- Add missing dungeon ID to High Priestess Azil
UPDATE `instance_encounters` SET `lastEncounterDungeon`= 307 WHERE `entry`= 1057;
@@ -1,11 +0,0 @@
UPDATE `command` SET
`name`= "reload creature_onkill_reward",
`help`= "Syntax: .reload creature_onkill_reward \nReload creature_onkill_reward table." WHERE `permission`= 635;
ALTER TABLE `creature_onkill_reputation` ADD COLUMN `CurrencyId1` MEDIUMINT(8) DEFAULT 0 NULL AFTER `TeamDependent`,
ADD COLUMN `CurrencyId2` MEDIUMINT(8) DEFAULT 0 NULL AFTER `CurrencyId1`,
ADD COLUMN `CurrencyId3` MEDIUMINT(8) DEFAULT 0 NULL AFTER `CurrencyId2`,
ADD COLUMN `CurrencyCount1` MEDIUMINT(8) DEFAULT 0 NULL AFTER `CurrencyId3`,
ADD COLUMN `CurrencyCount2` MEDIUMINT(8) DEFAULT 0 NULL AFTER `CurrencyCount1`,
ADD COLUMN `CurrencyCount3` MEDIUMINT(8) DEFAULT 0 NULL AFTER `CurrencyCount2`;
RENAME TABLE`creature_onkill_reputation` TO `creature_onkill_reward`;
@@ -1,92 +0,0 @@
DELETE FROM `spell_area` WHERE `spell`= 59073 AND `area` IN (4756, 4755, 4757, 4714);
INSERT INTO `spell_area` (`spell`, `area`, `gender`, `quest_start`, `quest_start_status`, `autocast`, `quest_end`, `quest_end_status`) VALUES
(59073, 4756, 2, 14078, 64, 1, 14159, 1|2|8|32),
(59073, 4755, 2, 14099, 2|64, 1, 14159, 1|2|8|32),
(59073, 4757, 2, 14099, 2|64, 1, 14159, 1|2|8|32),
(59073, 4714, 2, 14099, 2|64, 1, 14159, 1|2|8|32);
DELETE FROM `spell_area` WHERE `spell`= 49416 AND `area`= 4756;
INSERT INTO `spell_area` (`spell`, `area`, `gender`, `quest_start`, `quest_start_status`, `autocast`, `quest_end`, `quest_end_status`) VALUES
(49416, 4756, 2, 14078, 64, 1, 14099, 1|8|32);
-- Generic NPC phasing fixups
UPDATE `creature` SET `phaseId`= 0, `phaseGroup`= 371 WHERE `id` IN (39095, 34863);
-- Generic trigger bunny (multiphase)
UPDATE `creature` SET `phaseId`= 0, `phaseGroup`= 372 WHERE `id` IN (35374, 35830, 35010, 35011) AND `map`= 654 AND `areaId`= 4756;
-- Conditions
DELETE FROM `conditions` WHERE `SourceEntry` IN (68087, 68070, 80281) AND `SourceTypeOrReferenceId`= 13;
INSERT INTO conditions (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES
(13, 1, 68087, 0, 0, 31, 0, 3, 35374, 0, 0, 0, '', 'Just Citizen'),
(13, 1, 80281, 0, 0, 31, 0, 3, 35374, 0, 0, 0, '', 'Summon Citizen and Worgen'),
(13, 3, 68070, 0, 0, 31, 0, 3, 35374, 0, 0, 0, '', 'Summon Citizen and Worgen');
-- Royal orders pre-quest chain
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`= 19 AND `SourceEntry`= 14099;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionValue1`, `ElseGroup`) VALUES
-- Royal Orders
(19, 14099, 8, 14093, 0),
(19, 14099, 8, 14098, 0),
(19, 14099, 8, 14094, 0);
DELETE FROM `spell_script_names` WHERE `ScriptName` IN (
'spell_q14098_knocking_67869');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(67869, 'spell_q14098_knocking_67869');
DELETE FROM `smart_scripts` WHERE `entryorguid`= 34981;
UPDATE `creature_template` SET `AIName`= '', `ScriptName`= 'npc_frightened_citizen' WHERE `entry` IN (34981, 35836);
-- Rampaging Worgen fixups
UPDATE `creature_template` SET `flags_extra` = `flags_extra` | 2 WHERE `entry`= 34884;
-- Merchant Square Quest Chain
DELETE FROM `quest_template_addon` WHERE `ID` IN (14093, 14098, 14099, 14094);
INSERT INTO `quest_template_addon` (`ID`, `PrevQuestID`, `NextQuestID`, `ExclusiveGroup`) VALUES
(14093, 14091, 0, 0),
(14098, 14091, 0, 0),
(14094, 14091, 0, 0),
(14099, 0, 0, 0); -- Royal Orders
-- Remove questgiver entry from rampaging worgens
DELETE FROM `creature_queststarter` WHERE `id`= 34884;
DELETE FROM `creature_text` WHERE `CreatureID` IN (34981, 35836, 34913);
INSERT INTO `creature_text` (`CreatureID`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `comment`) VALUES
-- Frightened Citizen
(34981, 0, 0, 'What in the world? Let''s get out of here!', 12, 0, 100, 1, 0, 0, 35235, 'Frightened Citizen to Player'),
(34981, 0, 1, 'Let''s go!', 12, 0, 100, 1, 0, 0, 35236, 'Frightened Citizen to Player'),
(34981, 0, 2, 'No time to waste!', 12, 0, 100, 1, 0, 0, 35237, 'Frightened Citizen to Player'),
(34981, 0, 3, 'Worgen! Worgen everywhere!', 12, 0, 100, 1, 0, 0, 35238, 'Frightened Citizen to Player'),
(34981, 0, 4, 'Flee! They''re everywhere!', 12, 0, 100, 1, 0, 0, 35240, 'Frightened Citizen to Player'),
(34981, 0, 5, 'This place isn''t safe. Let''s leave!', 12, 0, 100, 1, 0, 0, 35239, 'Frightened Citizen to Player'),
(34981, 0, 6, 'Protect me, please!', 12, 0, 100, 1, 0, 0, 35234, 'Frightened Citizen to Player'),
(35836, 0, 0, 'It''s coming right for me!!', 12, 0, 100, 1, 0, 0, 36037, 'Frightened Citizen to Player'),
(35836, 0, 1, 'Help me, please!', 12, 0, 100, 1, 0, 0, 36038, 'Frightened Citizen to Player'),
(35836, 0, 2, 'There''s one after me!', 12, 0, 100, 1, 0, 0, 36039, 'Frightened Citizen to Player'),
(35836, 0, 3, 'Help!', 12, 0, 100, 1, 0, 0, 36040, 'Frightened Citizen to Player'),
(35836, 0, 4, 'I don''t want to die!', 12, 0, 100, 1, 0, 0, 36041, 'Frightened Citizen to Player'),
-- Liam Greyman Phase 170
(34913, 0, 0, 'Stand your ground, men!', 14, 0, 100, 0, 0, 19617, 35166, 'Prince Liam Greymane'),
(34913, 0, 1, 'Defeat these foul beasts!', 14, 0, 100, 0, 0, 19618, 35167, 'Prince Liam Greymane'),
(34913, 0, 2, 'Protect the civilians!', 14, 0, 100, 0, 0, 19619, 35168, 'Prince Liam Greymane'),
(34913, 0, 3, 'Push them back!', 14, 0, 100, 0, 0, 19620, 35169, 'Prince Liam Greymane'),
(34913, 0, 4, 'Take heart, men! We must protect our city!', 14, 0, 100, 0, 0, 19621, 35170, 'Prince Liam Greymane');
-- Creature Prince Liam Greymane 34913 SAI
SET @ENTRY := 34913;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Disable combat based movement // "),
(@ENTRY, 0, 1, 0, 4, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On aggro - Self: Talk 0 // "),
(@ENTRY, 0, 2, 0, 0, 0, 100, 0, 0, 0, 2000, 2000, 11, 50092, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 0 and 0 ms (and later repeats every 2000 and 2000 ms) - Self: Cast spell 50092 on Victim // ");
-- Make Supply crate quest related
UPDATE `gameobject_template_addon` SET `flags`= 4 WHERE `entry`= 195306;
-- Turn Gwen into a civillian so she wont attack anymore
UPDATE `creature_template` SET `flags_extra`= 2 WHERE `entry`= 34936;
-- Add some trigger flags
UPDATE `creature_template` SET `flags_extra`= 128 WHERE `entry`= 35374;
@@ -1,216 +0,0 @@
-- Chains for Military District
-- Class Quests
UPDATE `quest_template_addon` SET `PrevQuestID`= 14099 WHERE `ID`= 14280;
UPDATE `quest_template_addon` SET `PrevQuestID`= 14099 WHERE `ID`= 14275;
UPDATE `quest_template_addon` SET `PrevQuestID`= 14099 WHERE `ID`= 14277;
UPDATE `quest_template_addon` SET `PrevQuestID`= 14099 WHERE `ID`= 14278;
UPDATE `quest_template_addon` SET `PrevQuestID`= 14099 WHERE `ID`= 14269;
UPDATE `quest_template_addon` SET `PrevQuestID`= 14099 WHERE `ID`= 14273;
UPDATE `quest_template_addon` SET `PrevQuestID`= 14099 WHERE `ID`= 14265;
DELETE FROM `quest_template_addon` WHERE `ID` IN (14157, 24930);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`= 19 AND `SourceEntry` IN (14157, 24930);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionValue1`, `ElseGroup`) VALUES
-- Old Divisions
(19, 14157, 8, 14285, 0),
(19, 14157, 8, 14286, 1),
(19, 14157, 8, 14287, 2),
(19, 14157, 8, 14288, 3),
(19, 14157, 8, 14289, 4),
(19, 14157, 8, 14290, 5),
(19, 14157, 8, 14291, 6),
-- While you're at it
(19, 24930, 8, 14285, 0),
(19, 24930, 8, 14286, 1),
(19, 24930, 8, 14287, 2),
(19, 24930, 8, 14288, 3),
(19, 24930, 8, 14289, 4),
(19, 24930, 8, 14290, 5),
(19, 24930, 8, 14291, 6);
DELETE FROM `quest_template_addon` WHERE `ID` IN (14159, 14294, 14212);
INSERT INTO `quest_template_addon` (`ID`, `PrevQuestID`, `NextQuestID`, `ExclusiveGroup`) VALUES
(14159, 26129, 0, 0),
(14294, 14293, 0, 0),
(14212, 14294, 0, 0);
-- Creature Lord Godfrey 35115 SAI
SET @ENTRY := 35115;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 1, 19, 0, 100, 0, 24930, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "When player accepts quest 24930 - Action invoker: Talk 0 // "),
(@ENTRY, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Target_0 = Action invoker // "),
(@ENTRY, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 11, 35112, 10, 0, 0, 0, 0, 0, " Linked - Self: Send stored target 0 to Creature King Genn Greymane (35112) in 10 yd // "),
(@ENTRY, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 11, 35112, 10, 0, 0, 0, 0, 0, " Linked - Creature King Genn Greymane (35112) in 10 yd: Set creature data #0 to 1 // ");
-- Creature King Genn Greymane 35112 SAI
SET @ENTRY := 35112;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 38, 0, 100, 0, 0, 1, 0, 0, 67, 0, 5000, 5000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "On data 0 set to 1 - Trigger timed event #0 in 5000 - 5000 ms // "),
(@ENTRY, 0, 1, 0, 59, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, "On timed event 0 triggered - storedTarget[0]: Talk 0 // ");
DELETE FROM `creature_text` WHERE `CreatureID` IN (35112, 35115, 35378, 35550, 35905, 35907, 35906);
INSERT INTO `creature_text` (`CreatureID`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `comment`) VALUES
(35112, 0, 0, 'Enough! I''ve made up my mind. We need Crowley on our side.', 12, 0, 100, 0, 0, 0, 38602, 'King Genn Greymane to Player'),
(35115, 0, 0, 'We ought to leave Crowley in prison with those beasts!', 12, 0, 100, 0, 0, 0, 38601, 'Lord Godfrey to Player'),
(35378, 0, 0, 'This mastiff will help you find the hidden worgen.', 12, 0, 100, 0, 0, 19696, 38744, 'Lorna Crowley to Player'),
(35550, 0, 0, 'Keep them back!', 14, 0, 100, 0, 0, 19712, 36092, 'King Genn Greymane'),
(35550, 0, 1, 'Fire!', 14, 0, 100, 0, 0, 19710, 36091, 'King Genn Greymane'),
(35550, 0, 2, 'Hold the barricades! Do not give them an inch!', 14, 0, 100, 0, 0, 19709, 36090, 'King Genn Greymane'),
(35905, 0, 0, 'Rescue Krennan Aranas by using your vehicle''s ability.$B|TInterface\\Icons\\inv_misc_groupneedmore.blp:64|t', 42, 0, 100, 0, 0, 0, 36078, 'King Greymane''s Horse to Player'),
(35907, 0, 0, 'Thank you! I owe you my life.', 12, 0, 100, 0, 0, 20922, 38729, 'Krennan Aranas to King Greymane''s Horse'),
(35906, 0, 0, 'We''ve got Aranas! Fire at will!', 14, 0, 100, 0, 0, 19634, 36099, 'Lord Godfrey to Player');
DELETE FROM `creature` WHERE `id` IN (35456, 35457);
-- Creature Lord Darius Crowley 35077 SAI
SET @ENTRY := 35077;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 19, 0, 100, 0, 14154, 0, 0, 0, 11, 66914, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "When player accepts quest 14154 - Self: Cast spell 66914 on Action invoker // ");
DELETE FROM `spell_area` WHERE `spell` IN (72870, 49416, 72872, 76642) AND `area` IN (4755, 4757, 4758, 4759, 4761);
INSERT INTO `spell_area` (`spell`, `area`, `gender`, `quest_start`, `quest_start_status`, `autocast`, `quest_end`, `quest_end_status`) VALUES
(72870, 4757, 2, 14159, 64, 1, 14293, 1|2|8|32),
(72870, 4758, 2, 14159, 64, 1, 14293, 1|2|8|32),
(49416, 4757, 2, 14159, 64, 1, 14221, 1|2|8|32),
(72872, 4757, 2, 14293, 64, 1, 14221, 1|2|8|32),
(72872, 4758, 2, 14293, 64, 1, 14221, 1|2|8|32),
(72872, 4759, 2, 14293, 64, 1, 14221, 1|2|8|32),
(72872, 4761, 2, 14293, 64, 1, 14221, 1|2|8|32),
(72872, 4755, 2, 14293, 64, 1, 14221, 1|2|8|32),
-- Last Stand
(76642, 4757, 2, 14221, 64, 1, 14222, 1|2|8|32),
(76642, 4758, 2, 14221, 64, 1, 14222, 1|2|8|32),
(76642, 4759, 2, 14221, 64, 1, 14222, 1|2|8|32),
(76642, 4761, 2, 14221, 64, 1, 14222, 1|2|8|32);
UPDATE `creature` SET `phaseId`= 0, `phaseGroup`= 367 WHERE `id` IN (35906);
UPDATE `creature` SET `phaseId`= 0, `phaseGroup`= 460 WHERE `id` IN (35229, 35317, 35566);
UPDATE `creature` SET `phaseId`= 172, `phaseGroup`= 0 WHERE `id` IN (35618, 36057);
-- Creature Wounded Guard 47091 SAI
SET @ENTRY := 47091;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 8, 0, 100, 0, 774, 0, 0, 0, 33, 44175, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On spell 774 hit - Action invoker: Give kill credit Spell Practice Credit (44175) // "),
(@ENTRY, 0, 1, 0, 8, 0, 100, 0, 2061, 0, 0, 0, 33, 44175, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On spell 2061 hit - Action invoker: Give kill credit Spell Practice Credit (44175) // "),
(@ENTRY, 0, 2, 0, 1, 0, 100, 0, 1, 1, 30000, 30000, 11, 46577, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 1 and 1 ms (and later repeats every 30000 and 30000 ms) - Self: Cast spell 46577 on Self // ");
-- Creature Bloodfang Worgen 35118 SAI
SET @ENTRY := 35118;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 1, 2, 0, 100, 1, 0, 30, 0, 0, 11, 8599, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When health between 0% and 30% (check every 0 - 0 ms) - Self: Cast spell 8599 on Self // Bloodfang Worgen - Between 0-30% Health - Cast 'Enrage' (No Repeat)"),
(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Talk 0 // Bloodfang Worgen - Between 0-30% Health - Say Line 0 (No Repeat)"),
(@ENTRY, 0, 2, 0, 8, 0, 100, 0, 100, 0, 0, 0, 33, 44175, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On spell 100 hit - Action invoker: Give kill credit Spell Practice Credit (44175) // "),
(@ENTRY, 0, 3, 0, 8, 0, 100, 0, 56641, 0, 0, 0, 33, 44175, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On spell 56641 hit - Action invoker: Give kill credit Spell Practice Credit (44175) // "),
(@ENTRY, 0, 4, 0, 8, 0, 100, 0, 2098, 0, 0, 0, 33, 44175, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On spell 2098 hit - Action invoker: Give kill credit Spell Practice Credit (44175) // "),
(@ENTRY, 0, 5, 0, 8, 0, 100, 0, 348, 0, 0, 0, 33, 44175, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On spell 348 hit - Action invoker: Give kill credit Spell Practice Credit (44175) // "),
(@ENTRY, 0, 6, 0, 8, 0, 100, 0, 5143, 0, 0, 0, 33, 44175, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On spell 5143 hit - Action invoker: Give kill credit Spell Practice Credit (44175) // ");
-- Creature Myriam Spellwaker 35872 SAI
SET @ENTRY := 35872;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Disable combat based movement // "),
(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 0, 0, 3000, 3000, 11, 11538, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 0 and 0 ms (and later repeats every 3000 and 3000 ms) - Self: Cast spell 11538 on Victim // ");
-- Creature Sergeant Cleese 35839 SAI
SET @ENTRY := 35839;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Disable combat based movement // ");
-- Creature Lorna Crowley 35378 SAI
SET @ENTRY := 35378;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 19, 0, 100, 0, 14204, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "When player accepts quest 14204 - Action invoker: Talk 0 // ");
DELETE FROM `conditions` WHERE `SourceEntry` IN (67805, 68228, 68235) AND `SourceTypeOrReferenceId`= 13;
INSERT INTO conditions (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES
(13, 1, 67805, 0, 0, 31, 0, 3, 35463, 0, 0, 0, '', 'Attack Lurker - Target Bloodfang Lurker'),
(13, 1, 68228, 0, 0, 31, 0, 3, 35753, 0, 0, 0, '', 'Rescue Krennan - Target Krennan'),
(13, 1, 68235, 0, 0, 31, 0, 3, 35916, 0, 0, 0, '', 'Cannon Fire - Target Bloodfang Ripper');
-- Creature Bloodfang Lurker 35463 SAI
SET @ENTRY := 35463;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 1, 2, 0, 100, 1, 0, 30, 0, 0, 11, 8599, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When health between 0% and 30% (check every 0 - 0 ms) - Self: Cast spell 8599 on Self // Bloodfang Lurker - Between 0-30% Health - Cast 'Enrage' (No Repeat)"),
(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Talk 0 // Bloodfang Lurker - Between 0-30% Health - Say Line 0 (No Repeat)"),
(@ENTRY, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On respawn - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 5916, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Cast spell 5916 on Self // Bloodfang Lurker - On Respawn - Cast 'Shadowstalker Stealth' (No Repeat)"),
(@ENTRY, 0, 4, 5, 7, 0, 100, 1, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On evade - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 5916, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Cast spell 5916 on Self // Bloodfang Lurker - On Evade - Cast 'Shadowstalker Stealth' (No Repeat)"),
(@ENTRY, 0, 6, 0, 4, 0, 100, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On aggro - Self: Set react state to REACT_AGGRESSIVE // ");
-- Creature King Genn Greymane 35550 SAI
SET @ENTRY := 35550;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 60, 0, 100, 0, 19000, 20000, 70000, 70000, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Every 70000 and 70000 ms (for the first time, timer between 19000 and 20000 ms) - Self: Talk 0 // "),
(@ENTRY, 0, 1, 0, 19, 0, 100, 0, 14293, 0, 0, 0, 11, 68232, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "When player accepts quest 14293 - Self: Cast spell 68232 on Action invoker // ");
-- Creature Krennan Aranas 35907 SAI
SET @ENTRY := 35907;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 1, 0, 54, 0, 100, 1, 0, 0, 0, 0, 11, 46598, 2, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, "On just summoned - Self: Cast spell 46598 on Invoker's vehicle // ");
-- Creature Lord Godfrey 35906 SAI
SET @ENTRY := 35906;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 1, 20, 0, 100, 0, 14293, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "When player rewards quest 14293 - Action invoker: Talk 0 // "),
(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 3591400, 0, 0, 0, 0, 0, 10, 376902, 0, 0, 0, 0, 0, 0, " Linked - Start timed action list id #0 // ");
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= 35914;
DELETE FROM `smart_scripts` WHERE `entryorguid`=35914 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=3591400 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
(3591400,9,0,0,0,0,100,0,3000,3000,0,0,11,68235,0,0,0,0,0,1,0,0,0,0,0,0,0,"Commandeered Cannon - On Script - cast spell"), -- 3secs delay
(3591400,9,1,0,0,0,100,0,2000,2000,0,0,11,68235,0,0,0,0,0,1,0,0,0,0,0,0,0,"Commandeered Cannon - On Script - cast spell"), -- 2secs delay
(3591400,9,2,0,0,0,100,0,2000,2000,0,0,11,68235,0,0,0,0,0,1,0,0,0,0,0,0,0,"Commandeered Cannon - On Script - cast spell"); -- 2secs delay
UPDATE `creature_template` SET `vehicleID`= 494, `speed_run`= 1.2857, `ScriptName`= 'npc_greymanes_horse' WHERE `entry`= 35905;
UPDATE `creature_template` SET `InhabitType`= 4 WHERE `entry`= 35753;
UPDATE `creature_addon` SET `emote`= 472 WHERE `guid`= 376850;
UPDATE `creature_template` SET `vehicleID`= 1418 WHERE `entry`= 50420;
UPDATE `creature_addon` SET `emote`= 431 WHERE `guid`= 376588;
UPDATE `gameobject` SET `phaseGroup`= 0, `phaseID`= 171 WHERE `guid`= 235509;
UPDATE `gameobject` SET `phaseGroup`= 507, `phaseID`= 0 WHERE `guid`= 235509;
UPDATE `creature_template` SET `flags_extra`= 128 WHERE `entry`= 35374;
-- Turn multiple npc's into civillians to avoid aggro
UPDATE `creature_template` SET `flags_extra`= 2 WHERE `entry` IN (35112, 35115, 47091, 35912, 35873, 32768, 35869, 35874, 38832, 35550, 35618, 51947, 35906, 35753, 44469, 44461, 44463, 44465, 35554, 44455, 35552, 35911, 44470, 44468, 44459, 35551);
-- Spawn Krennan Gameobject Focus
DELETE FROM `gameobject` WHERE `guid`= 235581;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseID`, `position_x`, `position_y`, `position_z`, `orientation`) VALUES
(235581, 195660, 654, 1, 171, -1672.96, 1344.75, 15.1352, 1.36203);
-- Fix flags for not selectable gameobjects
UPDATE `gameobject_template_addon` SET `flags`= `flags`|16 WHERE `entry` IN (195466, 195465, 195430, 195454, 195453);
-- Put barricades in correct phase
UPDATE `gameobject` SET `phaseId`= 0, `phaseGroup`= 507 WHERE `guid` IN (235561, 235562, 235560, 235559);
-- Corrected trigger phase id's
UPDATE `creature` SET `phaseId`= 0, `phaseGroup`= 372 WHERE `id`= 35374 AND `map`= 654;
@@ -1,28 +0,0 @@
-- Spell Scriptnames
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_gen_armor_specialization';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(86530, 'spell_gen_armor_specialization'),
(86531, 'spell_gen_armor_specialization'),
(86529, 'spell_gen_armor_specialization'),
(86528, 'spell_gen_armor_specialization'),
(86525, 'spell_gen_armor_specialization'),
(86524, 'spell_gen_armor_specialization'),
(86526, 'spell_gen_armor_specialization');
-- Correct wrong teaching spells
-- Warrior
UPDATE `npc_trainer` SET `SpellID`= 86526 WHERE `SpellID`= 87509;
-- Paladin
UPDATE `npc_trainer` SET `SpellID`= 86525 WHERE `SpellID`= 87511;
-- Death Knight
DELETE FROM `npc_trainer` WHERE `SpellID`= 86524;
INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqLevel`) VALUES
(200006, 86524, 22500, 50);
-- Shaman
UPDATE `npc_trainer` SET `SpellID`= 86529 WHERE `SpellID`= 87507;
-- Hunter
UPDATE `npc_trainer` SET `SpellID`= 86528 WHERE `SpellID`= 87506;
-- Rogue
UPDATE `npc_trainer` SET `SpellID`= 86531 WHERE `SpellID`= 87504;
-- Druid
UPDATE `npc_trainer` SET `SpellID`= 86530 WHERE `SpellID`= 87505;
@@ -1,7 +0,0 @@
DELETE FROM `spell_script_names` WHERE `ScriptName` IN (
'spell_gen_pvp_trinket',
'spell_pvp_trinket_shared_cd');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(42292, 'spell_gen_pvp_trinket'),
(59752, 'spell_gen_pvp_trinket');
@@ -1,234 +0,0 @@
UPDATE `creature_template` SET `scriptname`= 'npc_sfk_deathstalker_commander_belmont' WHERE `entry`= 47293;
UPDATE `creature_template` SET `scriptname`= 'npc_sfk_packleader_ivar_bloodfang' WHERE `entry`= 47006;
UPDATE `creature_template` SET `scriptname`= 'npc_sfk_bloodfang_berserker' WHERE `entry`= 47027;
UPDATE `creature_template` SET `scriptname`= 'npc_sfk_veteran_forsaken_trooper' WHERE `entry` IN (47030, 47031);
UPDATE `creature_template` SET `InhabitType`= 5, `scriptname`= 'npc_sfk_high_warlord_cromush' WHERE `entry`= 47294;
-- Remove static event spawns
DELETE FROM `creature` WHERE `Id` IN (47294, 47031, 47293, 47030);
-- Remove otherwise handled creatures
DELETE FROM `creature` WHERE `id` IN (50604, 50613, 50615);
DELETE FROM `areatrigger_scripts` WHERE `entry` IN (6425, 6431);
INSERT INTO `areatrigger_scripts` (`entry`, `ScriptName`) VALUES
(6425, 'at_sfk_pre_walden'),
(6431, 'at_sfk_godfrey_intro');
DELETE FROM `waypoint_data` WHERE `id` IN (4700600);
SET @ID := 4700600;
DELETE FROM `waypoint_data` WHERE `id` BETWEEN 00 AND 01;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`) VALUES
-- 0
(4700600, 1, -243.3535, 2117.76, 87.30002),
(4700600, 2, -248.271, 2119.36, 87.0129);
DELETE FROM `creature_summon_groups` WHERE `summonerId`= 33;
INSERT INTO `creature_summon_groups` (`summonerId`, `summonerType`, `groupId`, `entry`, `position_x`, `position_y`, `position_z`, `orientation`, `summonType`) VALUES
-- Default Plague
(33, 2, 0, 23837, -214.318, 2102.04, 76.97733, 4.206244, 1),
(33, 2, 0, 23837, -204.96, 2104.55, 77.02894, 4.206244, 1),
(33, 2, 0, 23837, -213.861, 2125.93, 80.53143, 2.984513, 1),
(33, 2, 0, 23837, -214.344, 2124.69, 80.37054, 2.984513, 1),
(33, 2, 0, 23837, -203.427, 2104.38, 76.40823, 4.206244, 1),
(33, 2, 0, 23837, -221.415, 2106.98, 76.80504, 2.984513, 1),
(33, 2, 0, 23837, -214.344, 2123.62, 80.32754, 2.984513, 1),
(33, 2, 0, 23837, -233.965, 2112.36, 76.93284, 2.984513, 1),
(33, 2, 0, 23837, -213.844, 2104.05, 76.97723, 4.206244, 1),
(33, 2, 0, 23837, -232.684, 2115.75, 76.91784, 2.984513, 1),
(33, 2, 0, 23837, -230.3, 2131.51, 80.54034, 2.984513, 1),
(33, 2, 0, 23837, -211.948, 2103.17, 76.97723, 4.206244, 1),
(33, 2, 0, 23837, -213.181, 2102.54, 76.97733, 4.206244, 1),
(33, 2, 0, 23837, -232.595, 2109.81, 76.97463, 2.984513, 1),
(33, 2, 0, 23837, -212.635, 2101.51, 76.97733, 4.206244, 1),
(33, 2, 0, 23837, -233.686, 2114.25, 76.97353, 2.984513, 1),
(33, 2, 0, 23837, -233.917, 2113.56, 76.69134, 2.984513, 1),
(33, 2, 0, 23837, -233.111, 2110.01, 76.81664, 2.984513, 1),
(33, 2, 0, 23837, -226.214, 2144.81, 81.37144, 4.206244, 1),
(33, 2, 0, 23837, -215.217, 2140.47, 81.55943, 4.206244, 1),
(33, 2, 0, 23837, -228.016, 2145.52, 81.41843, 4.206244, 1),
(33, 2, 0, 23837, -213.128, 2139.61, 81.71724, 4.206244, 1),
(33, 2, 0, 23837, -222.495, 2143.35, 81.57973, 4.206244, 1),
(33, 2, 0, 23837, -218.227, 2141.67, 81.38644, 4.206244, 1),
(33, 2, 0, 23837, -219.042, 2141.99, 81.62763, 4.206244, 1),
(33, 2, 0, 23837, -225.245, 2144.43, 81.35064, 4.520403, 1),
(33, 2, 0, 23837, -216.286, 2140.91, 81.48534, 4.206244, 1),
(33, 2, 0, 23837, -220.905, 2142.73, 81.48224, 4.206244, 1),
(33, 2, 0, 23837, -224.319, 2144.07, 81.46143, 4.206244, 1),
(33, 2, 0, 23837, -230.608, 2146.54, 81.36684, 4.206244, 1),
(33, 2, 0, 23837, -219.905, 2142.33, 81.50333, 4.468043, 1),
(33, 2, 0, 23837, -228.818, 2145.84, 81.49213, 4.537856, 1),
(33, 2, 0, 23837, -221.708, 2143.04, 81.70863, 4.433136, 1),
(33, 2, 0, 23837, -229.615, 2146.15, 81.40894, 4.206244, 1),
(33, 2, 0, 23837, -223.46, 2143.73, 81.47704, 4.29351, 1),
(33, 2, 0, 23837, -214.439, 2140.15, 81.69784, 4.206244, 1),
(33, 2, 0, 23837, -217.28, 2141.3, 81.67484, 4.206244, 1),
(33, 2, 0, 23837, -227.076, 2145.15, 81.34364, 4.555309, 1),
-- After Ashbury
(33, 2, 1, 23837, -244.672, 2149.47, 90.51843, 4.206244, 1),
(33, 2, 1, 23837, -209.188, 2128.17, 86.58434, 4.206244, 1),
(33, 2, 1, 23837, -198.984, 2109.59, 81.20223, 4.206244, 1),
(33, 2, 1, 23837, -240.747, 2149.55, 90.70734, 4.206244, 1),
(33, 2, 1, 23837, -241.332, 2148.02, 90.70734, 4.206244, 1),
(33, 2, 1, 23837, -240.908, 2150.54, 90.70734, 4.206244, 1),
(33, 2, 1, 23837, -192.332, 2138.53, 81.58394, 4.206244, 1),
(33, 2, 1, 23837, -194.257, 2139.17, 81.76923, 4.206244, 1),
(33, 2, 1, 23837, -193.042, 2138.81, 81.67624, 4.206244, 1),
(33, 2, 1, 23837, -245.837, 2149.73, 90.58404, 4.206244, 1),
(33, 2, 1, 23837, -210.578, 2127.44, 86.58394, 4.206244, 1),
(33, 2, 1, 23837, -195.33, 2139.63, 81.65154, 4.206244, 1),
(33, 2, 1, 23837, -193.012, 2137.23, 81.58414, 4.206244, 1),
(33, 2, 1, 23837, -238.49, 2127.21, 86.99274, 4.206244, 1),
(33, 2, 1, 23837, -239.46, 2127.16, 87.09354, 4.206244, 1),
(33, 2, 1, 23837, -242.214, 2149.84, 90.70734, 4.206244, 1),
(33, 2, 1, 23837, -209.547, 2127.47, 86.58434, 4.206244, 1),
(33, 2, 1, 23837, -211.467, 2145.36, 90.60223, 4.206244, 1),
(33, 2, 1, 23837, -189.962, 2124.26, 81.58504, 4.206244, 1),
(33, 2, 1, 23837, -195.901, 2108.78, 81.14014, 4.206244, 1),
(33, 2, 1, 23837, -196.424, 2111.61, 81.14014, 4.206244, 1),
(33, 2, 1, 23837, -189.793, 2125.31, 81.58504, 4.206244, 1),
(33, 2, 1, 23837, -190.896, 2127.02, 81.58504, 4.206244, 1),
(33, 2, 1, 23837, -191.422, 2124.09, 81.58504, 4.206244, 1),
(33, 2, 1, 23837, -187.273, 2140.47, 83.16393, 4.206244, 1),
(33, 2, 1, 23837, -197.415, 2109.11, 81.14014, 4.206244, 1),
(33, 2, 1, 23837, -189.167, 2125.87, 81.58504, 4.206244, 1),
(33, 2, 1, 23837, -191.642, 2125.76, 81.58504, 4.206244, 1),
(33, 2, 1, 23837, -198.033, 2110.79, 81.14014, 4.206244, 1),
(33, 2, 1, 23837, -196.08, 2110.17, 81.14014, 4.206244, 1),
-- After Springvale
(33, 2, 2, 23837, -214.177, 2259.62, 83.15204, 4.206244, 1),
(33, 2, 2, 23837, -221.995, 2272.82, 77.13573, 4.206244, 1),
(33, 2, 2, 23837, -202.703, 2272.38, 78.76473, 4.206244, 1),
(33, 2, 2, 23837, -203.132, 2270.7, 77.15324, 4.206244, 1),
(33, 2, 2, 23837, -204.274, 2271.15, 77.01453, 4.206244, 1),
(33, 2, 2, 23837, -202.089, 2249.86, 76.28464, 4.206244, 1),
(33, 2, 2, 23837, -194.781, 2263.11, 76.28464, 4.206244, 1),
(33, 2, 2, 23837, -216.3368, 2286.54, 77.03741, 4.206244, 1),
(33, 2, 2, 23837, -202.156, 2273.49, 78.73904, 4.206244, 1),
(33, 2, 2, 23837, -203.488, 2271.35, 78.61384, 4.206244, 1),
(33, 2, 2, 23837, -221.891, 2273.96, 77.13573, 4.206244, 1),
(33, 2, 2, 23837, -217.373, 2278.09, 77.13573, 4.206244, 1),
(33, 2, 2, 23837, -203.703, 2271.25, 76.86504, 4.206244, 1),
(33, 2, 2, 23837, -202.627, 2250.4, 76.28464, 2.897247, 1),
(33, 2, 2, 23837, -194.944, 2263.74, 76.28464, 4.206244, 1),
(33, 2, 2, 23837, -217.625, 2287.2, 76.94003, 4.206244, 1),
(33, 2, 2, 23837, -203.359, 2271.83, 76.76674, 4.206244, 1),
(33, 2, 2, 23837, -203.111, 2272.61, 77.20544, 4.206244, 1),
(33, 2, 2, 23837, -226.009, 2206.58, 79.79234, 4.206244, 1),
(33, 2, 2, 23837, -175.674, 2228.62, 76.18094, 4.206244, 1),
(33, 2, 2, 23837, -199.908, 2230.16, 81.84364, 4.206244, 1),
(33, 2, 2, 23837, -197.302, 2228.6, 82.07034, 4.206244, 1),
(33, 2, 2, 23837, -213.875, 2190.87, 82.37473, 4.206244, 1),
(33, 2, 2, 23837, -214.997, 2192.38, 79.84834, 4.206244, 1),
(33, 2, 2, 23837, -192.259, 2205.29, 79.84174, 2.70526, 1),
(33, 2, 2, 23837, -213.297, 2192.14, 82.56724, 4.206244, 1),
(33, 2, 2, 23837, -226.271, 2204.88, 80.11623, 4.206244, 1),
(33, 2, 2, 23837, -214.839, 2191.37, 79.84834, 4.206244, 1),
(33, 2, 2, 23837, -177.997, 2212.55, 80.18803, 4.206244, 1),
(33, 2, 2, 23837, -212.493, 2191.66, 79.84814, 4.206244, 1),
(33, 2, 2, 23837, -181.095, 2245.94, 76.26663, 4.206244, 1),
(33, 2, 2, 23837, -180.616, 2244.9, 76.29803, 4.206244, 1),
(33, 2, 2, 23837, -213.929, 2191.35, 83.98174, 4.206244, 1),
(33, 2, 2, 23837, -180.087, 2243.93, 76.43644, 4.206244, 1),
(33, 2, 2, 23837, -215.231, 2190.72, 79.84843, 4.206244, 1),
(33, 2, 2, 23837, -213.165, 2191.37, 82.32024, 4.206244, 1),
(33, 2, 2, 23837, -212.054, 2192.07, 79.84814, 4.206244, 1),
(33, 2, 2, 23837, -213.503, 2193.08, 79.84804, 4.206244, 1),
(33, 2, 2, 23837, -201.847, 2248.88, 76.28464, 4.206244, 1),
(33, 2, 2, 23837, -198.583, 2229.32, 82.26794, 4.206244, 1),
(33, 2, 2, 23837, -213.41, 2192.32, 79.84804, 4.206244, 1),
(33, 2, 2, 23837, -213.632, 2191.24, 81.98494, 4.206244, 1),
(33, 2, 2, 23837, -226.057, 2205.81, 79.76114, 4.206244, 1),
(33, 2, 2, 23837, -177.424, 2211.92, 80.33204, 4.206244, 1),
(33, 2, 2, 23837, -214.444, 2190.19, 79.84834, 4.206244, 1),
(33, 2, 2, 23837, -175.649, 2212.22, 80.07214, 4.206244, 1),
(33, 2, 2, 23837, -214.299, 2190.41, 82.36844, 4.206244, 1),
(33, 2, 2, 23837, -212.434, 2190.51, 79.84834, 4.206244, 1),
(33, 2, 2, 23837, -212.069, 2190.69, 79.84834, 4.206244, 1),
(33, 2, 2, 23837, -176.701, 2211.61, 79.95013, 4.206244, 1),
(33, 2, 2, 23837, -213.594, 2191.03, 84.28364, 4.206244, 1),
(33, 2, 2, 23837, -174.637, 2212.59, 80.13503, 4.206244, 1),
(33, 2, 2, 23837, -213.547, 2189.75, 79.84843, 4.206244, 1),
(33, 2, 2, 23837, -241.872, 2271.81, 80.15474, 4.206244, 1),
(33, 2, 2, 23837, -237.762, 2270.24, 81.89844, 4.206244, 1),
(33, 2, 2, 23837, -238.691, 2270.7, 81.82224, 4.206244, 1),
(33, 2, 2, 23837, -240.677, 2271.35, 83.54284, 4.206244, 1),
(33, 2, 2, 23837, -238.752, 2270.49, 83.55624, 4.206244, 1),
(33, 2, 2, 23837, -240.578, 2271.34, 87.07004, 4.206244, 1),
(33, 2, 2, 23837, -237.788, 2270.23, 87.21204, 1.186824, 1),
(33, 2, 2, 23837, -238.694, 2270.53, 87.15884, 4.206244, 1),
(33, 2, 2, 23837, -239.642, 2271.03, 79.38973, 4.206244, 1),
(33, 2, 2, 23837, -241.826, 2271.71, 87.31614, 4.206244, 1),
(33, 2, 2, 23837, -237.793, 2270.24, 85.63374, 4.206244, 1),
(33, 2, 2, 23837, -241.851, 2271.97, 82.00774, 4.206244, 1),
(33, 2, 2, 23837, -240.568, 2271.45, 85.53744, 4.206244, 1),
(33, 2, 2, 23837, -238.689, 2270.63, 85.55144, 4.206244, 1),
(33, 2, 2, 23837, -240.606, 2271.42, 79.42104, 4.206244, 1),
(33, 2, 2, 23837, -239.625, 2270.98, 87.19463, 4.206244, 1),
(33, 2, 2, 23837, -237.74, 2270.33, 79.46603, 4.206244, 1),
(33, 2, 2, 23837, -241.913, 2271.82, 83.70203, 4.206244, 1),
(33, 2, 2, 23837, -238.745, 2270.58, 79.31924, 4.206244, 1),
(33, 2, 2, 23837, -239.606, 2271.08, 81.91404, 4.206244, 1),
(33, 2, 2, 23837, -239.707, 2270.96, 83.63573, 4.206244, 1),
(33, 2, 2, 23837, -241.849, 2271.91, 85.65854, 4.206244, 1),
(33, 2, 2, 23837, -237.79, 2270.2, 83.57374, 4.206244, 1),
(33, 2, 2, 23837, -239.658, 2271.03, 85.75993, 4.206244, 1),
(33, 2, 2, 23837, -238.398, 2293.67, 74.87874, 4.206244, 1),
(33, 2, 2, 23837, -241.783, 2284.6, 76.40653, 4.206244, 1),
(33, 2, 2, 23837, -240.549, 2284.13, 76.39734, 4.206244, 1),
(33, 2, 2, 23837, -273.075, 2303.02, 76.08714, 4.206244, 1),
(33, 2, 2, 23837, -237.253, 2293.27, 75.01884, 4.206244, 1),
(33, 2, 2, 23837, -256.679, 2290.18, 76.35844, 4.206244, 1),
(33, 2, 2, 23837, -278.066, 2293.6, 76.22614, 4.206244, 1),
(33, 2, 2, 23837, -277.2, 2294.35, 76.47643, 4.206244, 1),
(33, 2, 2, 23837, -235.42, 2292.5, 75.16534, 4.206244, 1),
(33, 2, 2, 23837, -272.161, 2302.71, 76.23653, 4.206244, 1),
(33, 2, 2, 23837, -274.693, 2301.93, 76.17313, 4.206244, 1),
(33, 2, 2, 23837, -273.957, 2302.89, 76.30494, 4.206244, 1),
(33, 2, 2, 23837, -237.962, 2293.74, 75.38184, 4.206244, 1),
(33, 2, 2, 23837, -234.957, 2281.38, 76.41393, 4.206244, 1),
(33, 2, 2, 23837, -275.306, 2300.97, 76.03973, 4.206244, 1),
(33, 2, 2, 23837, -278.142, 2292.59, 76.36253, 4.206244, 1),
(33, 2, 2, 23837, -199.486, 2159.17, 79.84794, 4.206244, 1),
-- After Walden
(33, 2, 3, 23837, -184.908, 2191.11, 114.0683, 4.206244, 1),
(33, 2, 3, 23837, -132.089, 2184.87, 113.2153, 4.206244, 1),
(33, 2, 3, 23837, -131.578, 2155.47, 94.12394, 4.206244, 1),
(33, 2, 3, 23837, -114.059, 2149.79, 101.6033, 4.206244, 1),
(33, 2, 3, 23837, -131.191, 2183.35, 113.2153, 4.206244, 1),
(33, 2, 3, 23837, -190.245, 2119.68, 97.36363, 4.206244, 1),
(33, 2, 3, 23837, -167.948, 2227.94, 79.81364, 4.206244, 1),
(33, 2, 3, 23837, -191.729, 2116.32, 97.06424, 4.206244, 1),
(33, 2, 3, 23837, -121.74, 2152.12, 101.6023, 4.206244, 1),
(33, 2, 3, 23837, -191.156, 2117.4, 97.08774, 4.206244, 1),
(33, 2, 3, 23837, -126.72, 2177, 94.13013, 4.206244, 1),
(33, 2, 3, 23837, -170.438, 2182.84, 94.94584, 4.206244, 1),
(33, 2, 3, 23837, -179.493, 2254.72, 86.79384, 4.206244, 1),
(33, 2, 3, 23837, -133.547, 2178.24, 94.83314, 4.991642, 1),
(33, 2, 3, 23837, -132.151, 2185.77, 113.2153, 4.206244, 1),
(33, 2, 3, 23837, -190.63, 2118.51, 97.27174, 4.206244, 1),
(33, 2, 3, 23837, -177.8, 2254.03, 86.64744, 4.206244, 1),
(33, 2, 3, 23837, -131.606, 2179.23, 94.12674, 4.206244, 1),
(33, 2, 3, 23837, -111.708, 2170.45, 101.6033, 4.206244, 1),
(33, 2, 3, 23837, -126.002, 2174.99, 94.13094, 4.206244, 1),
(33, 2, 3, 23837, -153.753, 2172.67, 99.59763, 4.206244, 1),
(33, 2, 3, 23837, -235.347, 2144.11, 100.1123, 4.206244, 1),
(33, 2, 3, 23837, -236.405, 2210.15, 97.58244, 4.206244, 1),
(33, 2, 3, 23837, -236.884, 2208.89, 97.25004, 4.206244, 1),
(33, 2, 3, 23837, -225.432, 2257.02, 102.8393, 4.206244, 1),
(33, 2, 3, 23837, -245.3229, 2189.37, 93.61277, 4.206244, 1),
(33, 2, 3, 23837, -246.519, 2188.93, 93.84444, 4.206244, 1),
(33, 2, 3, 23837, -246.54, 2190.07, 93.90604, 4.206244, 1),
(33, 2, 3, 23837, -247.786, 2189.25, 93.80784, 4.206244, 1),
(33, 2, 3, 23837, -248.462, 2188.46, 93.82413, 4.206244, 1),
(33, 2, 3, 23837, -238.844, 2245.65, 101.0493, 4.206244, 1),
(33, 2, 3, 23837, -256.259, 2168.7, 93.98884, 4.206244, 1),
(33, 2, 3, 23837, -239.667, 2245.22, 101.0163, 4.206244, 1),
(33, 2, 3, 23837, -255.774, 2169.76, 94.06554, 4.206244, 1),
(33, 2, 3, 23837, -241.432, 2127.75, 100.5973, 4.206244, 1),
(33, 2, 3, 23837, -257.156, 2166.52, 94.15434, 4.206244, 1),
(33, 2, 3, 23837, -256.59, 2167.6, 94.15224, 4.206244, 1),
(33, 2, 3, 23837, -245.323, 2128.09, 100.1123, 4.206244, 1);
DELETE FROM `creature` WHERE `guid` IN (371320, 371319, 371318, 371317, 371316, 371315, 371314, 371313, 371312, 371311, 371310, 371309, 371308, 371307, 371298, 371297, 371296, 371295, 371294, 371293, 371292, 371291, 371290, 371288, 371287, 371286, 371285, 371284, 371283, 371282, 371281, 371280, 371279, 371278, 371277, 371276, 371275, 371274, 371263, 371261, 371260, 371259, 371258, 371257, 371256, 371255, 371254, 371253, 371252, 371251, 371250, 371249, 371248, 371247, 371246, 371245, 371244, 371243, 371242, 371241, 371240, 371239, 371238, 371237, 371236, 371235, 371234, 371233, 371232, 371231, 371230, 371229, 371228, 371227, 371226, 371225, 371224, 371223, 371222, 371219, 371218, 371217, 371216, 371215, 371214, 371213, 371212, 371211, 371210, 371209, 371208, 371207, 371206, 371205, 371204, 371203, 371202, 371201, 371200, 371199, 371198, 371197, 371196, 371195, 371194, 371193, 371192, 371191, 371190, 371189, 371188, 371187, 371186, 371185, 371184, 371183, 371182, 371181, 371176, 371175, 371174, 371173, 371172, 371171, 371170, 371169, 371168, 371167, 371166, 371165, 371163, 371162, 371123, 371122, 371121, 371120, 371119, 371118, 371117, 371116, 371115, 371114, 371113, 371112, 371111, 371110, 371109, 371108, 371107, 371106, 371105, 371104, 371103, 371102, 371096, 371095, 371094, 371093, 371092, 371091, 371090, 371088, 371028, 371027, 371026, 371025, 371024, 371023, 371022, 371020, 371019, 371018, 371017, 371016, 371015, 371014, 371013, 371012, 371011, 371010, 371009, 371008, 371002, 370998, 370995, 370994, 370991, 370987, 370986, 370985, 370983, 370982, 370981, 370974, 370973, 370972, 370971, 370970, 370969, 370968);
DELETE FROM `creature_addon` WHERE `guid` IN (371320, 371319, 371318, 371317, 371316, 371315, 371314, 371313, 371312, 371311, 371310, 371309, 371308, 371307, 371298, 371297, 371296, 371295, 371294, 371293, 371292, 371291, 371290, 371288, 371287, 371286, 371285, 371284, 371283, 371282, 371281, 371280, 371279, 371278, 371277, 371276, 371275, 371274, 371263, 371261, 371260, 371259, 371258, 371257, 371256, 371255, 371254, 371253, 371252, 371251, 371250, 371249, 371248, 371247, 371246, 371245, 371244, 371243, 371242, 371241, 371240, 371239, 371238, 371237, 371236, 371235, 371234, 371233, 371232, 371231, 371230, 371229, 371228, 371227, 371226, 371225, 371224, 371223, 371222, 371219, 371218, 371217, 371216, 371215, 371214, 371213, 371212, 371211, 371210, 371209, 371208, 371207, 371206, 371205, 371204, 371203, 371202, 371201, 371200, 371199, 371198, 371197, 371196, 371195, 371194, 371193, 371192, 371191, 371190, 371189, 371188, 371187, 371186, 371185, 371184, 371183, 371182, 371181, 371176, 371175, 371174, 371173, 371172, 371171, 371170, 371169, 371168, 371167, 371166, 371165, 371163, 371162, 371123, 371122, 371121, 371120, 371119, 371118, 371117, 371116, 371115, 371114, 371113, 371112, 371111, 371110, 371109, 371108, 371107, 371106, 371105, 371104, 371103, 371102, 371096, 371095, 371094, 371093, 371092, 371091, 371090, 371088, 371028, 371027, 371026, 371025, 371024, 371023, 371022, 371020, 371019, 371018, 371017, 371016, 371015, 371014, 371013, 371012, 371011, 371010, 371009, 371008, 371002, 370998, 370995, 370994, 370991, 370987, 370986, 370985, 370983, 370982, 370981, 370974, 370973, 370972, 370971, 370970, 370969, 370968);
@@ -1,20 +0,0 @@
DELETE FROM `gossip_menu_option` WHERE `MenuID`= 12669;
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`) VALUES
(12669, 0, "Can you take me to the Great Hall?", 50691, 1, 1),
(12669, 1, "Can you take me to the Chapel?", 50692, 1, 1),
(12669, 2, "Can you take me to the Laboratory?", 50694, 1, 1);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`= 15 AND `SourceGroup`= 12669;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ConditionTarget`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`) VALUES
(15, 12669, 0, 1, 13, 0, 3, 2),
(15, 12669, 1, 1, 13, 2, 3, 2),
(15, 12669, 2, 1, 13, 3, 3, 2);
-- Creature Haunted Stable Hand 51400 SAI
SET @ENTRY := 51400;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 62, 0, 100, 0, 12669, 0, 0, 0, 11, 95300, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip action 0 from menu 12669 selected - Self: Cast spell 95300 on Action invoker // "),
(@ENTRY, 0, 1, 0, 62, 0, 100, 0, 12669, 1, 0, 0, 11, 95303, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip action 1 from menu 12669 selected - Self: Cast spell 95303 on Action invoker // "),
(@ENTRY, 0, 2, 0, 62, 0, 100, 0, 12669, 2, 0, 0, 11, 95305, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip action 2 from menu 12669 selected - Self: Cast spell 95305 on Action invoker // ");
@@ -1,18 +0,0 @@
-- Correct expansion level of High Prophet Barim HC version
UPDATE `creature_template` SET `exp`= 3 WHERE `entry`= 48951;
-- Add Currency Loot
DELETE FROM `creature_onkill_reward` WHERE `creature_id` IN (43612, 48951, 43614, 49045, 44577, 48932, 44819, 51088);
INSERT INTO `creature_onkill_reward` (`creature_id`, `CurrencyId1`, `CurrencyCount1`) VALUES
-- High Prophet Barim
(43612, 395, 3500),
(48951, 395, 7000),
-- Lockmaw and Augh
(43614, 395, 3500),
(49045, 395, 7000),
-- General Husam
(44577, 395, 3500),
(48932, 395, 7000),
-- Siamat
(44819, 395, 3500),
(51088, 395, 7000);
@@ -1,53 +0,0 @@
-- General Husam
UPDATE creature_template SET `difficulty_entry_1` = 48932, `lootid` = 44577 WHERE `entry` = 44577;
DELETE FROM `creature_loot_template` WHERE entry IN (44577, 48932);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(44577, 55858, 0, 1, 1, 1, 1),
(44577, 55857, 0, 1, 1, 1, 1),
(44577, 55856, 0, 1, 1, 1, 1),
(44577, 55859, 0, 1, 1, 1, 1),
(44577, 55860, 0, 1, 1, 1, 1);
UPDATE `creature_template` SET `lootid` = 48932 WHERE `entry` = 48932;
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(48932, 56379, 0, 1, 1, 1, 1),
(48932, 56383, 0, 1, 1, 1, 1),
(48932, 56381, 0, 1, 1, 1, 1),
(48932, 56380, 0, 1, 1, 1, 1),
(48932, 56382, 0, 1, 1, 1, 1);
-- Siamat
DELETE FROM `creature_loot_template` WHERE `Entry` IN (44819, 51088);
DELETE FROM `reference_loot_template` WHERE `Entry` IN (448190, 510880);
INSERT INTO `creature_loot_template` (`Entry`, `Chance`, `LootMode`, `Reference`, `MinCount`, `MaxCount`) VALUES
(44819, 100, 1, 448190, 2, 2);
INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(448190, 55872, 0, 1, 1, 1, 1),
(448190, 55876, 0, 1, 1, 1, 1),
(448190, 55878, 0, 1, 1, 1, 1),
(448190, 55877, 0, 1, 1, 1, 1),
(448190, 55871, 0, 1, 1, 1, 1),
(448190, 55873, 0, 1, 1, 1, 1),
(448190, 55874, 0, 1, 1, 1, 1),
(448190, 55879, 0, 1, 1, 1, 1),
(448190, 55875, 0, 1, 1, 1, 1),
(448190, 55880, 0, 1, 1, 1, 1);
UPDATE `creature_template` SET `lootid`= 51088 WHERE `entry`= 51088;
INSERT INTO `creature_loot_template` (`Entry`, `Chance`, `LootMode`, `Reference`, `MinCount`, `MaxCount`) VALUES
(51088, 100, 1, 510880, 2, 2);
INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(510880, 56397, 0, 1, 1, 1, 1),
(510880, 56399, 0, 1, 1, 1, 1),
(510880, 56403, 0, 1, 1, 1, 1),
(510880, 56401, 0, 1, 1, 1, 1),
(510880, 56395, 0, 1, 1, 1, 1),
(510880, 56398, 0, 1, 1, 1, 1),
(510880, 56394, 0, 1, 1, 1, 1),
(510880, 56400, 0, 1, 1, 1, 1),
(510880, 56396, 0, 1, 1, 1, 1),
(510880, 56402, 0, 1, 1, 1, 1),
(510880, 52078, 100, 1, 2, 1, 1); -- Chaos Orb
-- Gold Loot
UPDATE `creature_template` SET `mingold`= 19800, `maxgold`= 19900 WHERE entry IN (44577, 48932, 43614, 49045, 43612, 48951, 44819, 51088);
@@ -1,7 +0,0 @@
DROP TABLE IF EXISTS `creature_sparring_template`;
CREATE TABLE `creature_sparring_template`(
`AttackerEntry` MEDIUMINT(8) UNSIGNED NOT NULL,
`VictimEntry` MEDIUMINT(8) UNSIGNED NOT NULL,
`HealthLimitPct` FLOAT(5) DEFAULT 0,
PRIMARY KEY (`AttackerEntry`, `VictimEntry`)
);
@@ -1,206 +0,0 @@
-- Creature Oathsworn Axemaster 44922 SAI
SET @ENTRY := 44922;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 0, 0, 100, 0, 6000, 6500, 13000, 13000, 11, 84256, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 6000 and 6500 ms (and later repeats every 13000 and 13000 ms) - Self: Cast spell 84256 on Victim // "),
(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 7200, 7700, 11000, 11000, 11, 82763, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 7200 and 7700 ms (and later repeats every 11000 and 11000 ms) - Self: Cast spell 82763 on Victim // ");
-- Creature Oathsworn Skinner 44981 SAI
SET @ENTRY := 44981;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 0, 0, 100, 0, 5000, 5000, 15500, 15700, 11, 82789, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 5000 and 5000 ms (and later repeats every 15500 and 15700 ms) - Self: Cast spell 82789 on Self // "),
(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 10000, 10000, 7000, 7000, 11, 84031, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 10000 and 10000 ms (and later repeats every 7000 and 7000 ms) - Self: Cast spell 84031 on Victim // ");
-- Creature Oathsworn Wanderer 44926 SAI
SET @ENTRY := 44926;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 0, 0, 100, 0, 1, 1, 2000, 2000, 11, 83877, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 1 and 1 ms (and later repeats every 2000 and 2000 ms) - Self: Cast spell 83877 on Victim // "),
(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 7000, 7000, 16000, 16500, 11, 82794, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 7000 and 7000 ms (and later repeats every 16000 and 16500 ms) - Self: Cast spell 82794 on Victim // ");
-- Creature Oathsworn Myrmidon 44924 SAI
SET @ENTRY := 44924;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 0, 0, 100, 0, 6400, 6500, 16000, 17000, 11, 82673, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 6400 and 6500 ms (and later repeats every 16000 and 17000 ms) - Self: Cast spell 82673 on Self // ");
-- Creature Neferset Plaguebringer 44976 SAI
SET @ENTRY := 44976;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 0, 0, 100, 0, 6800, 7000, 23000, 23000, 11, 73976, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 6800 and 7000 ms (and later repeats every 23000 and 23000 ms) - Self: Cast spell 73976 on Self // "),
(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 8000, 8000, 15500, 16000, 11, 82768, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 8000 and 8000 ms (and later repeats every 15500 and 16000 ms) - Self: Cast spell 82768 on Random hostile (not top) // ");
-- Creature Neferset Torturer 44977 SAI
SET @ENTRY := 44977;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 0, 0, 100, 0, 5500, 5500, 30000, 31000, 11, 82750, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 5500 and 5500 ms (and later repeats every 30000 and 31000 ms) - Self: Cast spell 82750 on Random hostile (not top) // "),
(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 7000, 7000, 25000, 25000, 11, 82744, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 7000 and 7000 ms (and later repeats every 25000 and 25000 ms) - Self: Cast spell 82744 on Victim // ");
-- Creature Oathsworn Pathfinder 44932 SAI
SET @ENTRY := 44932;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 0, 0, 100, 0, 1, 1, 2000, 2000, 11, 83877, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 1 and 1 ms (and later repeats every 2000 and 2000 ms) - Self: Cast spell 83877 on Victim // "),
(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 9000, 9000, 12000, 12000, 11, 82764, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 9000 and 9000 ms (and later repeats every 12000 and 12000 ms) - Self: Cast spell 82764 on Victim // ");
-- Creature Pygmy Scout 314811 SAI
SET @ENTRY := -314811;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 1, 0, 100, 0, 1, 1, 12000, 12000, 5, 53, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 1 and 1 ms (and later repeats every 12000 and 12000 ms) - Self: Play emote 53 // "),
(@ENTRY, 0, 1, 0, 1, 0, 100, 0, 1000, 1000, 12000, 12000, 69, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -10968.2, -1477.91, 6.766029, 0, "When out of combat and timer at the begining between 1000 and 1000 ms (and later repeats every 12000 and 12000 ms) - Self: Move to None (point id 0) // "),
(@ENTRY, 0, 2, 0, 1, 0, 100, 0, 3500, 3500, 12000, 12000, 5, 53, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 3500 and 3500 ms (and later repeats every 12000 and 12000 ms) - Self: Play emote 53 // "),
(@ENTRY, 0, 3, 0, 1, 0, 100, 0, 5000, 5000, 12000, 12000, 69, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -10960.85, -1496.215, 6.935548, 0, "When out of combat and timer at the begining between 5000 and 5000 ms (and later repeats every 12000 and 12000 ms) - Self: Move to None (point id 0) // "),
(@ENTRY, 0, 4, 0, 1, 0, 100, 0, 7000, 7000, 12000, 12000, 5, 53, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 7000 and 7000 ms (and later repeats every 12000 and 12000 ms) - Self: Play emote 53 // "),
(@ENTRY, 0, 5, 0, 1, 0, 100, 0, 9500, 9500, 12000, 12000, 69, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -10957.5, 1485.63, 6.767189, 0, "When out of combat and timer at the begining between 9500 and 9500 ms (and later repeats every 12000 and 12000 ms) - Self: Move to None (point id 0) // "),
(@ENTRY, 0, 6, 0, 0, 0, 100, 0, 1, 1, 2700, 3000, 11, 83780, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 1 and 1 ms (and later repeats every 2700 and 3000 ms) - Self: Cast spell 83780 on Self // ");
-- Creature Pygmy Scout 44897 SAI
SET @ENTRY := 44897;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 1, 54, 0, 100, 1, 0, 0, 0, 0, 67, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "On just summoned - Trigger timed event #0 in 100 - 100 ms // "),
(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 12, 44898, 8, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Summon creature Pygmy Firebreather (44898) at Self, moved by offset (0, 0, 0, 0) // "),
(@ENTRY, 0, 2, 0, 59, 0, 100, 1, 0, 0, 0, 0, 11, 46598, 0, 0, 0, 0, 0, 11, 44896, 5, 0, 0, 0, 0, 0, "On timed event 0 triggered - Self: Cast spell 46598 on Creature Pygmy Brute (44896) in 5 yd // "),
(@ENTRY, 0, 3, 0, 0, 0, 100, 0, 1, 1, 2700, 3000, 11, 83780, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 1 and 1 ms (and later repeats every 2700 and 3000 ms) - Self: Cast spell 83780 on Self // ");
-- Creature Pygmy Firebreather 44898 SAI
SET @ENTRY := 44898;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 67, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "On just summoned - Trigger timed event #0 in 100 - 100 ms // "),
(@ENTRY, 0, 1, 0, 59, 0, 100, 1, 0, 0, 0, 0, 11, 47020, 0, 0, 0, 0, 0, 11, 44897, 5, 0, 0, 0, 0, 0, "On timed event 0 triggered - Self: Cast spell 47020 on Creature Pygmy Scout (44897) in 5 yd // "),
(@ENTRY, 0, 2, 0, 0, 0, 100, 0, 5000, 6000, 18000, 18000, 11, 83776, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 5000 and 6000 ms (and later repeats every 18000 and 18000 ms) - Self: Cast spell 83776 on Self // "),
(@ENTRY, 0, 3, 0, 0, 0, 100, 0, 6000, 6500, 6000, 10000, 11, 83778, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 6000 and 6500 ms (and later repeats every 6000 and 10000 ms) - Self: Cast spell 83778 on Random hostile // ");
-- Creature Oathsworn Scorpid Keeper 45062 SAI
SET @ENTRY := 45062;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 25, 0, 100, 1, 0, 0, 0, 0, 11, 84126, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On reset (e.g. after reaching home) - Self: Cast spell 84126 on Self // "),
(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 8000, 8000, 17000, 17000, 11, 84123, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 8000 and 8000 ms (and later repeats every 17000 and 17000 ms) - Self: Cast spell 84123 on Self // "),
(@ENTRY, 0, 2, 0, 0, 0, 100, 0, 11000, 11000, 17000, 17000, 11, 84122, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 11000 and 11000 ms (and later repeats every 17000 and 17000 ms) - Self: Cast spell 84122 on Self // ");
-- Creature Neferset Darkcaster 44982 SAI
SET @ENTRY := 44982;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 0, 0, 100, 0, 1, 1, 2400, 2400, 11, 82765, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 1 and 1 ms (and later repeats every 2400 and 2400 ms) - Self: Cast spell 82765 on Victim // "),
(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 7000, 7000, 16000, 16000, 11, 84032, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 7000 and 7000 ms (and later repeats every 16000 and 16000 ms) - Self: Cast spell 84032 on Random hostile // "),
(@ENTRY, 0, 2, 0, 0, 0, 100, 0, 17000, 17000, 16000, 16000, 11, 82760, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 17000 and 17000 ms (and later repeats every 16000 and 16000 ms) - Self: Cast spell 82760 on Random hostile // ");
-- Creature Neferset Theurgist 44980 SAI
SET @ENTRY := 44980;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 0, 0, 100, 0, 6000, 7000, 16000, 16000, 11, 82753, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 6000 and 7000 ms (and later repeats every 16000 and 16000 ms) - Self: Cast spell 82753 on Victim // "),
(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 14000, 15000, 16000, 16000, 11, 82757, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 14000 and 15000 ms (and later repeats every 16000 and 16000 ms) - Self: Cast spell 82757 on Self // "),
(@ENTRY, 0, 2, 0, 0, 0, 100, 0, 23000, 24000, 16000, 16000, 11, 82759, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 23000 and 24000 ms (and later repeats every 16000 and 16000 ms) - Self: Cast spell 82759 on Self // ");
-- Creature Tol'vir Merchant 45065 SAI
SET @ENTRY := 45065;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 0, 0, 100, 0, 1, 1, 1000, 1000, 11, 84144, 64, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 1 and 1 ms (and later repeats every 1000 and 1000 ms) - Self: Cast spell 84144 on Random hostile // ");
-- Trash Generic Update
-- Sharptalon Eagle
UPDATE `creature_template` SET `unit_flags`= 0, `minlevel`= 84, `maxlevel`= 84 WHERE `entry`= 44261;
-- Oasis Moth
UPDATE `creature` SET `MovementType`= 1, `spawndist`= 7 WHERE `id`= 50496;
-- Tol'Vir merchant
UPDATE `creature_template` SET `mingold`= 2300, `maxgold`= 2500 WHERE `entry`= 45065;
-- Oathsworn Captain
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `mingold`= 11100, `maxgold`= 12000 WHERE `entry`= 45122;
UPDATE `creature_template` SET `minlevel`= 86, `maxlevel`= 86, `mingold`= 11100, `maxgold`= 12000 WHERE `entry`= 49334;
-- Oathsworn Tamer
UPDATE `creature_template` SET `difficulty_entry_1`= 49333, `mingold`= 11100, `maxgold`= 12000 WHERE `entry`= 45097;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 16, `exp`= 3, `mingold`= 11100, `maxgold`= 12000, `speed_walk`= 0.666668 WHERE `entry`= 49333;
-- Oathsworn Wanderer
UPDATE `creature_template` SET `difficulty_entry_1`= 49322, `mingold`= 11100, `maxgold`= 12000 WHERE `entry`= 44926;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 16, `exp`= 3, `mingold`= 11100, `maxgold`= 12000, `speed_walk`= 0.666668 WHERE `entry`= 49322;
-- Oathsworn Skinner
UPDATE `creature_template` SET `difficulty_entry_1`= 49327, `mingold`= 11100, `maxgold`= 12000 WHERE `entry`= 44981;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 16, `exp`= 3, `mingold`= 11100, `maxgold`= 12000, `speed_walk`= 0.666668 WHERE `entry`= 49327;
-- Oathsworn Myrmidon
UPDATE `creature_template` SET `difficulty_entry_1`= 49321, `mingold`= 11100, `maxgold`= 12000 WHERE `entry`= 44924;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 16, `exp`= 3, `mingold`= 11100, `maxgold`= 12000, `speed_walk`= 0.666668 WHERE `entry`= 49321;
-- Oathsworn Axemaster
UPDATE `creature_template` SET `difficulty_entry_1`= 49319, `mingold`= 11000, `maxgold`= 12000 WHERE `entry`= 44922;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 16, `exp`= 3, `mingold`= 11100, `maxgold`= 12000, `speed_walk`= 0.666668 WHERE `entry`= 49319;
-- Oathsworn Pathfinder
UPDATE `creature_template` SET `difficulty_entry_1`= 49323, `mingold`= 11100, `maxgold`= 12000 WHERE `entry`= 44932;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 16, `exp`= 3, `mingold`= 11100, `maxgold`= 12000, `speed_walk`= 0.666668 WHERE `entry`= 49323;
-- Neferset Plaguebringer
UPDATE `creature_template` SET `difficulty_entry_1`= 49324, `mingold`= 11100, `maxgold`= 12000 WHERE `entry`= 44976;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 16, `exp`= 3, `mingold`= 11100, `maxgold`= 12000, `speed_walk`= 0.666668 WHERE `entry`= 49324;
-- Neferset Torturer
UPDATE `creature_template` SET `difficulty_entry_1`= 49325, `mingold`= 11100, `maxgold`= 12000 WHERE `entry`= 44977;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 16, `exp`= 3, `mingold`= 11100, `maxgold`= 12000, `speed_walk`= 0.666668 WHERE `entry`= 49325;
-- Neferset Darkcaster
UPDATE `creature_template` SET `difficulty_entry_1`= 49328, `mingold`= 11100, `maxgold`= 12000 WHERE `entry`= 44982;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 16, `exp`= 3, `mingold`= 11100, `maxgold`= 12000, `speed_walk`= 0.666668 WHERE `entry`= 49328;
-- Oathsworn Scorpid Keeper
UPDATE `creature_template` SET `difficulty_entry_1`= 49330, `mingold`= 11100, `maxgold`= 12000 WHERE `entry`= 45062;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 16, `exp`= 3, `mingold`= 11100, `maxgold`= 12000, `speed_walk`= 0.666668 WHERE `entry`= 49330;
-- Neferset Theurgist
UPDATE `creature_template` SET `difficulty_entry_1`= 49326, `mingold`= 11100, `maxgold`= 12000 WHERE `entry`= 44980;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 16, `exp`= 3, `mingold`= 11100, `maxgold`= 12000, `speed_walk`= 0.666668 WHERE `entry`= 49326;
-- Pygmy Scout
UPDATE `creature_template` SET `difficulty_entry_1`= 49318, `mingold`= 11100, `maxgold`= 12000 WHERE `entry`= 44897;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 16, `exp`= 3, `mingold`= 11100, `maxgold`= 12000, `vehicleId`= 1058 WHERE `entry`= 49318;
-- Pygmy Brute
UPDATE `creature_template` SET `difficulty_entry_1`= 49317, `mingold`= 11100, `maxgold`= 12000 WHERE `entry`= 44896;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 16, `exp`= 3, `mingold`= 11100, `maxgold`= 12000, `vehicleId`= 1056 WHERE `entry`= 49317;
-- Pygmy Firebreather
UPDATE `creature_template` SET `difficulty_entry_1`= 49320, `mingold`= 11100, `maxgold`= 12000 WHERE `entry`= 44898;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 16, `exp`= 3, `mingold`= 11100, `maxgold`= 12000 WHERE `entry`= 49320;
-- Add dual wield flag to multiple npc's
UPDATE `creature_template` SET `flags_extra`= `flags_extra`| 2048 WHERE `entry` IN (44981, 49327, 44977, 49325, 45007, 45062, 49330);
-- Loot
-- Lockmaw
UPDATE `creature_template` SET `lootid` = 43614 WHERE `entry` = 43614;
DELETE FROM `creature_loot_template` WHERE `entry` IN (43614, 49043, 49045);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(43614, 55866, 0, 1, 1, 1, 1),
(43614, 55867, 0, 1, 1, 1, 1),
(43614, 55869, 0, 1, 1, 1, 1),
(43614, 55868, 0, 1, 1, 1, 1),
(43614, 55870, 0, 1, 1, 1, 1);
-- Augh (Heroic Mode)
UPDATE `creature_template` SET `lootid` = 49045 WHERE `entry` = 49045;
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(49045, 56389, 0, 1, 1, 1, 1),
(49045, 56392, 0, 1, 1, 1, 1),
(49045, 56391, 0, 1, 1, 1, 1),
(49045, 56393, 0, 1, 1, 1, 1),
(49045, 56390, 0, 1, 1, 1, 1);
DELETE FROM `spell_script_names` WHERE `ScriptName` IN (
'spell_gen_blink',
'spell_gen_toxic_blow_dart',
'spell_gen_projectile_goods');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(84123, 'spell_gen_blink'),
(83780, 'spell_gen_toxic_blow_dart'),
(89991, 'spell_gen_toxic_blow_dart'),
(84144, 'spell_gen_projectile_goods');
@@ -1,24 +0,0 @@
DELETE FROM `spell_proc` WHERE `SpellID`= -53234;
INSERT INTO `spell_proc` (`SpellID`, `SpellFamilyName`, `SpellFamilyMask0`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`) VALUES
(-53234, 9, 0, 0, 1, 2, 2);
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_hun_piercing_shots';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(-53234, 'spell_hun_piercing_shots');
DELETE FROM `spell_proc` WHERE `SpellID` IN (-34485, 82926);
INSERT INTO `spell_proc` (`SpellID`, `SpellFamilyName`, `SpellFamilyMask0`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`) VALUES
(-34485, 9, 0, 0, 1, 1, 0),
(82926, 9, 0, 0, 1, 1, 0);
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_hun_master_marksman';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(-34485, 'spell_hun_master_marksman');
DELETE FROM `spell_proc` WHERE `SpellID`= -35104;
INSERT INTO `spell_proc` (`SpellID`, `SpellFamilyName`, `SpellFamilyMask0`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`) VALUES
(-35104, 9, 0, 0, 1, 2, 2);
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_hun_bombardment';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(-35104, 'spell_hun_bombardment');
@@ -1 +0,0 @@
DELETE FROM `spell_linked_spell` WHERE `spell_trigger` IN (56641, 77767);
@@ -1,4 +0,0 @@
DELETE FROM `npc_trainer` WHERE `SpellID` IN (93321, 93375, 79682, 80388);
INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqLevel`) VALUES
(200003, 93321, 110, 10),
(200009, 93375, 680, 10);
@@ -1,13 +0,0 @@
-- DK Questline fixes
UPDATE `creature_questender` SET `id`= 25462 WHERE `quest`= 12636;
-- Add One-Handed maces to DK
DELETE FROM `playercreateinfo_skills` WHERE `classMask`= 32 AND `skill`= 54;
INSERT INTO `playercreateinfo_skills` (`classMask`, `raceMask`, `skill`, `comment`) VALUES
(32, 0, 54, 'Death Knight - Mace');
-- Grand Theft Palomino requires the Scarlet Harvest to be completed before
UPDATE `quest_template_addon` SET `PrevQuestID`= 12670 WHERE `ID`= 12680;
-- The Scarlet Apocalypse requires Scarlet Armies Approach to be completed before
UPDATE `quest_template_addon` SET `PrevQuestID`= 12757 WHERE `ID`= 12778;
@@ -1,7 +0,0 @@
-- Correct all stable masters
UPDATE `creature_template` SET `npcflag`= `npcflag`| 0x00400000, `gossip_menu_id`= 9821, `scriptname`= 'npc_stable_master' WHERE `subname`= 'Stable Master';
-- Remove Battle Pet Gossip option because we are on 4.3.4
DELETE FROM `gossip_menu_option` WHERE `MenuID`= 9821 AND `OptionID`= 2;
-- Add stable master flag to stable option
UPDATE `gossip_menu_option` SET `OptionNpcFlag`= 4194304, `OptionBroadcastTextID`= 30181, `OptionType`= 14 WHERE `MenuID`= 9821 AND `OptionID`= 0;
UPDATE `gossip_menu_option` SET `OptionBroadcastTextID`= 56613 WHERE `MenuID`= 9821 AND `OptionID`= 1;
@@ -1,14 +0,0 @@
DELETE FROM `creature_sparring_template` WHERE `AttackerEntry` IN (34916, 34913, 34884, 35839, 35118, 35872, 35232, 50474, 50471);
INSERT INTO `creature_sparring_template` (`AttackerEntry`, `VictimEntry`, `HealthLimitPct`) VALUES
(34916, 34884, 90.0),
(34913, 34884, 90.0),
(34884, 34916, 90.0),
(34884, 34913, 100.0),
(35839, 35118, 90.0),
(35872, 35118, 90.0),
(35118, 35872, 100.0),
(35118, 35839, 100.0),
(35232, 35118, 90.0),
(35118, 35232, 90.0),
(50474, 50471, 90.0),
(50471, 50474, 90.0);
@@ -1,18 +0,0 @@
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_pet_ghoul_dummy_ability',
'spell_dk_shadow_infusion',
'spell_dk_dark_transformation',
'spell_dk_dark_transformation_aura');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(47481, 'spell_pet_ghoul_dummy_ability'),
(47482, 'spell_pet_ghoul_dummy_ability'),
(47468, 'spell_pet_ghoul_dummy_ability'),
(47484, 'spell_pet_ghoul_dummy_ability'),
(-48965, 'spell_dk_shadow_infusion'),
(63560, 'spell_dk_dark_transformation'),
(93426, 'spell_dk_dark_transformation_aura');
DELETE FROM `spell_proc` WHERE `SpellId`= -48965;
INSERT INTO `spell_proc` (`SpellID`, `SchoolMask`, `SpellFamilyName`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`) VALUES
(-48965, 32, 15, 0x00010000 | 0x00004000, 7, 1, 12287);
@@ -1,23 +0,0 @@
-- Warrior spell bonus datas
DELETE FROM `spell_bonus_data` WHERE `entry` IN (34428, 94009, 6343, 12294, 23881, 23922);
INSERT INTO `spell_bonus_data` (`entry`, `direct_bonus`, `dot_bonus`, `ap_bonus`, `ap_dot_bonus`, `comments`) VALUES
(34428, 0, 0, 0, 0, 'Warrior - Victory Rush'),
(94009, 0, 0, 0, 0, 'Warrior - Rend'),
(6343, 0, 0, 0.228, 0, 'Warrior - Thunder Clap'),
(12294, 0, 0, 0.236, 0, 'Warrior - Mortal Strike'),
(23881, 0, 0, -1, 0, 'Warrior - Bloodthirst'),
(23922, 0, 0, 0.6, 0, 'Warrior - Shield Slam');
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_warr_victory_rush',
'spell_warr_victorious',
'spell_warr_rend',
'spell_warr_mortal_strike',
'spell_gen_vengeance');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(34428, 'spell_warr_victory_rush'),
(94009, 'spell_warr_rend'),
(93098, 'spell_gen_vengeance'),
(93099, 'spell_gen_vengeance'),
(84839, 'spell_gen_vengeance');
@@ -1,5 +0,0 @@
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_warr_thunder_clap');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(6343, 'spell_warr_thunder_clap');
@@ -1,380 +0,0 @@
-- Clean up some duplicate spawns
DELETE FROM `creature` WHERE `guid` IN (376609, 376563, 376561, 376532, 376521, 376575);
DELETE FROM `creature_addon` WHERE `guid` IN (376609, 376397,376563, 376561, 376532, 376521, 376575);
-- Creature Rampaging Worgen 35660 SAI
SET @ENTRY := 35660;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 1, 2, 0, 100, 1, 0, 30, 0, 0, 11, 8599, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When health between 0% and 30% (check every 0 - 0 ms) - Self: Cast spell 8599 on Self // Rampaging Worgen - Between 0-30% Health - Cast 'Enrage' (No Repeat)"),
(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Talk 0 // Rampaging Worgen - Between 0-30% Health - Say Line 0 (No Repeat)"),
(@ENTRY, 0, 2, 0, 54, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On just summoned - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 3, 0, 1, 0, 100, 1, 60000, 60000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 60000 and 60000 ms (and later repeats every 0 and 0 ms) - Self: Despawn instantly // "),
(@ENTRY, 0, 4, 0, 1, 0, 100, 1, 3000, 3000, 0, 0, 29, 0, 0, 0, 0, 0, 0, 11, 35830, 15, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 3000 and 3000 ms (and later repeats every 0 and 0 ms) - Self: Follow Creature Gilneas Evacuation Facing Marker (First) (35830) in 15 yd by distance 0, angle 0 // "),
(@ENTRY, 0, 5, 0, 1, 0, 100, 1, 4000, 4000, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 4000 and 4000 ms (and later repeats every 0 and 0 ms) - Self: Set react state to REACT_AGGRESSIVE // ");
UPDATE `gameobject_template_addon` SET `flags`= 4 WHERE `entry`= 195327;
DELETE FROM `quest_poi` WHERE (`QuestID`=24676 AND `id`=3) OR (`QuestID`=24676 AND `id`=2) OR (`QuestID`=24676 AND `id`=1) OR (`QuestID`=24676 AND `id`=0) OR (`QuestID`=24674 AND `id`=1) OR (`QuestID`=24674 AND `id`=0) OR (`QuestID`=24675 AND `id`=2) OR (`QuestID`=24675 AND `id`=1) OR (`QuestID`=24675 AND `id`=0) OR (`QuestID`=24575 AND `id`=2) OR (`QuestID`=24575 AND `id`=1) OR (`QuestID`=24575 AND `id`=0) OR (`QuestID`=24677 AND `id`=0) OR (`QuestID`=24592 AND `id`=2) OR (`QuestID`=24592 AND `id`=1) OR (`QuestID`=24592 AND `id`=0) OR (`QuestID`=24672 AND `id`=0) OR (`QuestID`=24673 AND `id`=0) OR (`QuestID`=24593 AND `id`=3) OR (`QuestID`=24593 AND `id`=2) OR (`QuestID`=24593 AND `id`=1) OR (`QuestID`=24593 AND `id`=0) OR (`QuestID`=24646 AND `id`=1) OR (`QuestID`=24646 AND `id`=0) OR (`QuestID`=24628 AND `id`=1) OR (`QuestID`=24628 AND `id`=0) OR (`QuestID`=24627 AND `id`=1) OR (`QuestID`=24627 AND `id`=0) OR (`QuestID`=24617 AND `id`=0) OR (`QuestID`=24616 AND `id`=1) OR (`QuestID`=24616 AND `id`=0) OR (`QuestID`=24578 AND `id`=0) OR (`QuestID`=24501 AND `id`=1) OR (`QuestID`=24501 AND `id`=0) OR (`QuestID`=24495 AND `id`=3) OR (`QuestID`=24495 AND `id`=2) OR (`QuestID`=24495 AND `id`=1) OR (`QuestID`=24495 AND `id`=0) OR (`QuestID`=24484 AND `id`=1) OR (`QuestID`=24484 AND `id`=0) OR (`QuestID`=24483 AND `id`=0) OR (`QuestID`=24472 AND `id`=2) OR (`QuestID`=24472 AND `id`=1) OR (`QuestID`=24472 AND `id`=0) OR (`QuestID`=24468 AND `id`=1) OR (`QuestID`=24468 AND `id`=0) OR (`QuestID`=24438 AND `id`=0) OR (`QuestID`=14466 AND `id`=0) OR (`QuestID`=14465 AND `id`=0) OR (`QuestID`=14463 AND `id`=0) OR (`QuestID`=14405 AND `id`=0) OR (`QuestID`=14402 AND `id`=0) OR (`QuestID`=14401 AND `id`=1) OR (`QuestID`=14401 AND `id`=0) OR (`QuestID`=14400 AND `id`=1) OR (`QuestID`=14400 AND `id`=0) OR (`QuestID`=14399 AND `id`=1) OR (`QuestID`=14399 AND `id`=0) OR (`QuestID`=14412 AND `id`=1) OR (`QuestID`=14412 AND `id`=0) OR (`QuestID`=14404 AND `id`=3) OR (`QuestID`=14404 AND `id`=2) OR (`QuestID`=14404 AND `id`=1) OR (`QuestID`=14404 AND `id`=0) OR (`QuestID`=14416 AND `id`=1) OR (`QuestID`=14416 AND `id`=0) OR (`QuestID`=14406 AND `id`=0) OR (`QuestID`=14403 AND `id`=0) OR (`QuestID`=14398 AND `id`=0) OR (`QuestID`=14397 AND `id`=0) OR (`QuestID`=14395 AND `id`=1) OR (`QuestID`=14395 AND `id`=0) OR (`QuestID`=14396 AND `id`=0) OR (`QuestID`=14386 AND `id`=1) OR (`QuestID`=14386 AND `id`=0) OR (`QuestID`=14368 AND `id`=3) OR (`QuestID`=14368 AND `id`=2) OR (`QuestID`=14368 AND `id`=1) OR (`QuestID`=14368 AND `id`=0) OR (`QuestID`=14382 AND `id`=2) OR (`QuestID`=14382 AND `id`=1) OR (`QuestID`=14382 AND `id`=0) OR (`QuestID`=14369 AND `id`=1) OR (`QuestID`=14369 AND `id`=0) OR (`QuestID`=14367 AND `id`=0) OR (`QuestID`=14366 AND `id`=0) OR (`QuestID`=14347 AND `id`=1) OR (`QuestID`=14347 AND `id`=0) OR (`QuestID`=14348 AND `id`=1) OR (`QuestID`=14348 AND `id`=0) OR (`QuestID`=14336 AND `id`=0) OR (`QuestID`=14321 AND `id`=0) OR (`QuestID`=14320 AND `id`=0) OR (`QuestID`=14313 AND `id`=0) OR (`QuestID`=14222 AND `id`=1) OR (`QuestID`=14222 AND `id`=0) OR (`QuestID`=14221 AND `id`=0) OR (`QuestID`=14218 AND `id`=7) OR (`QuestID`=14218 AND `id`=6) OR (`QuestID`=14218 AND `id`=5) OR (`QuestID`=14218 AND `id`=4) OR (`QuestID`=14218 AND `id`=3) OR (`QuestID`=14218 AND `id`=2) OR (`QuestID`=14218 AND `id`=1) OR (`QuestID`=14218 AND `id`=0) OR (`QuestID`=14212 AND `id`=0) OR (`QuestID`=14294 AND `id`=0) OR (`QuestID`=14293 AND `id`=1) OR (`QuestID`=14293 AND `id`=0) OR (`QuestID`=14214 AND `id`=0) OR (`QuestID`=14204 AND `id`=1) OR (`QuestID`=14204 AND `id`=0) OR (`QuestID`=14159 AND `id`=0) OR (`QuestID`=26129 AND `id`=0) OR (`QuestID`=14154 AND `id`=1) OR (`QuestID`=14154 AND `id`=0) OR (`QuestID`=28850 AND `id`=0) OR (`QuestID`=24930 AND `id`=2) OR (`QuestID`=24930 AND `id`=1) OR (`QuestID`=24930 AND `id`=0) OR (`QuestID`=14157 AND `id`=0) OR (`QuestID`=14286 AND `id`=0) OR (`QuestID`=14265 AND `id`=0) OR (`QuestID`=14099 AND `id`=0) OR (`QuestID`=14094 AND `id`=3) OR (`QuestID`=14094 AND `id`=2) OR (`QuestID`=14094 AND `id`=1) OR (`QuestID`=14094 AND `id`=0) OR (`QuestID`=14098 AND `id`=2) OR (`QuestID`=14098 AND `id`=1) OR (`QuestID`=14098 AND `id`=0) OR (`QuestID`=14093 AND `id`=3) OR (`QuestID`=14093 AND `id`=2) OR (`QuestID`=14093 AND `id`=1) OR (`QuestID`=14093 AND `id`=0) OR (`QuestID`=14091 AND `id`=0) OR (`QuestID`=14078 AND `id`=0) OR (`QuestID`=31814 AND `id`=2) OR (`QuestID`=31814 AND `id`=1) OR (`QuestID`=31814 AND `id`=0);
INSERT INTO `quest_poi` (`QuestID`, `id`, `ObjectiveIndex`, `MapID`, `WorldMapAreaId`, `Floor`, `Priority`, `Flags`, `VerifiedBuild`) VALUES
(24676, 3, -1, 654, 545, 0, 0, 1, 25383), -- Push Them Out
(24676, 2, 0, 654, 545, 0, 0, 1, 25383), -- Push Them Out
(24676, 1, 0, 654, 545, 0, 0, 1, 25383), -- Push Them Out
(24676, 0, 0, 654, 545, 0, 0, 1, 25383), -- Push Them Out
(24674, 1, -1, 654, 545, 0, 0, 1, 25383), -- Slaves to No One
(24674, 0, 0, 654, 545, 0, 0, 1, 25383), -- Slaves to No One
(24675, 2, -1, 654, 545, 0, 0, 1, 25383), -- Last Meal
(24675, 1, 0, 654, 545, 0, 0, 1, 25383), -- Last Meal
(24675, 0, 0, 654, 545, 0, 0, 1, 25383), -- Last Meal
(24575, 2, -1, 654, 545, 0, 0, 1, 25383), -- Liberation Day
(24575, 1, 27, 654, 545, 0, 0, 1, 25383), -- Liberation Day
(24575, 0, 0, 654, 545, 0, 0, 1, 25383), -- Liberation Day
(24677, 0, -1, 654, 545, 0, 0, 1, 25383), -- Flank the Forsaken
(24592, 2, -1, 654, 545, 0, 0, 1, 25383), -- Betrayal at Tempest's Reach
(24592, 1, 0, 654, 545, 0, 0, 1, 25383), -- Betrayal at Tempest's Reach
(24592, 0, 0, 654, 545, 0, 0, 1, 25383), -- Betrayal at Tempest's Reach
(24672, 0, -1, 654, 545, 0, 0, 1, 25383), -- Onwards and Upwards
(24673, 0, -1, 654, 545, 0, 0, 1, 25383), -- Return to Stormglen
(24593, 3, -1, 654, 545, 0, 0, 1, 25383), -- Neither Human Nor Beast
(24593, 2, 0, 654, 545, 0, 0, 1, 25383), -- Neither Human Nor Beast
(24593, 1, 0, 654, 545, 0, 0, 1, 25383), -- Neither Human Nor Beast
(24593, 0, 0, 654, 545, 0, 0, 1, 25383), -- Neither Human Nor Beast
(24646, 1, -1, 654, 545, 0, 0, 1, 25383), -- Take Back What's Ours
(24646, 0, 0, 654, 545, 0, 0, 1, 25383), -- Take Back What's Ours
(24628, 1, -1, 654, 545, 0, 0, 1, 25383), -- Preparations
(24628, 0, 0, 654, 545, 0, 0, 1, 25383), -- Preparations
(24627, 1, -1, 654, 545, 0, 0, 1, 25383), -- At Our Doorstep
(24627, 0, 0, 654, 545, 0, 0, 1, 25383), -- At Our Doorstep
(24617, 0, -1, 654, 545, 0, 0, 1, 25383), -- Tal'doren, the Wild Home
(24616, 1, 0, 654, 545, 0, 0, 1, 25383), -- Losing Your Tail
(24616, 0, -1, 654, 545, 0, 0, 1, 25383), -- Losing Your Tail
(24578, 0, -1, 654, 545, 0, 0, 1, 25383), -- The Blackwald
(24501, 1, -1, 654, 545, 0, 0, 1, 25383), -- Queen-Sized Troubles
(24501, 0, 0, 654, 545, 0, 0, 1, 25383), -- Queen-Sized Troubles
(24495, 3, -1, 654, 545, 0, 0, 1, 25383), -- Pieces of the Past
(24495, 2, 0, 654, 545, 0, 0, 1, 25383), -- Pieces of the Past
(24495, 1, -1, 638, 539, 0, 0, 1, 25383), -- Pieces of the Past
(24495, 0, 0, 638, 539, 0, 0, 1, 25383), -- Pieces of the Past
(24484, 1, -1, 654, 545, 0, 0, 1, 25383), -- Pest Control
(24484, 0, 0, 654, 545, 0, 0, 1, 25383), -- Pest Control
(24483, 0, -1, 654, 545, 0, 0, 1, 25383), -- Stormglen
(24472, 2, -1, 654, 545, 0, 0, 1, 25383), -- Introductions Are in Order
(24472, 1, 0, 654, 545, 0, 0, 1, 25383), -- Introductions Are in Order
(24472, 0, 0, 654, 545, 0, 0, 1, 25383), -- Introductions Are in Order
(24468, 1, 0, 654, 545, 0, 0, 7, 25383), -- Stranded at the Marsh
(24468, 0, -1, 654, 545, 0, 0, 1, 25383), -- Stranded at the Marsh
(24438, 0, -1, 654, 545, 0, 0, 1, 25383), -- Exodus
(14466, 0, -1, 654, 545, 0, 0, 1, 25383), -- The King's Observatory
(14465, 0, -1, 654, 545, 0, 0, 1, 25383), -- To Greymane Manor
(14463, 0, -1, 654, 545, 0, 0, 1, 25383), -- Horses for Duskhaven
(14405, 0, -1, 654, 545, 0, 0, 1, 25383), -- Escape By Sea
(14402, 0, -1, 654, 545, 0, 0, 1, 25383), -- Ready to Go
(14401, 1, -1, 654, 545, 0, 0, 7, 25383), -- Grandma's Cat
(14401, 0, 0, 654, 545, 0, 0, 1, 25383), -- Grandma's Cat
(14400, 1, -1, 654, 545, 0, 0, 7, 25383), -- I Can't Wear This
(14400, 0, 0, 654, 545, 0, 0, 1, 25383), -- I Can't Wear This
(14399, 1, -1, 654, 545, 0, 0, 7, 25383), -- Grandma's Lost It Alright
(14399, 0, 0, 654, 545, 0, 0, 1, 25383), -- Grandma's Lost It Alright
(14412, 1, -1, 654, 545, 0, 0, 1, 25383), -- Washed Up
(14412, 0, 0, 654, 545, 0, 0, 1, 25383), -- Washed Up
(14404, 3, -1, 654, 545, 0, 0, 1, 25383), -- Not Quite Shipshape
(14404, 2, 0, 654, 545, 0, 0, 1, 25383), -- Not Quite Shipshape
(14404, 1, 0, 654, 545, 0, 0, 1, 25383), -- Not Quite Shipshape
(14404, 0, 0, 654, 545, 0, 0, 1, 25383), -- Not Quite Shipshape
(14416, 1, -1, 654, 545, 0, 0, 1, 25383), -- The Hungry Ettin
(14416, 0, 0, 654, 545, 0, 0, 1, 25383), -- The Hungry Ettin
(14406, 0, -1, 654, 545, 0, 0, 1, 25383), -- The Crowley Orchard
(14403, 0, -1, 654, 545, 0, 0, 1, 25383), -- The Hayward Brothers
(14398, 0, -1, 654, 678, 0, 0, 7, 25383), -- Grandma Wahl
(14397, 0, -1, 654, 545, 0, 0, 1, 25383), -- Evacuation
(14395, 1, 0, 654, 545, 0, 0, 1, 25383), -- Gasping for Breath
(14395, 0, -1, 654, 545, 0, 0, 1, 25383), -- Gasping for Breath
(14396, 0, -1, 654, 545, 0, 0, 1, 25383), -- As the Land Shatters
(14386, 1, -1, 654, 545, 0, 0, 1, 25383), -- Leader of the Pack
(14386, 0, 0, 654, 545, 0, 0, 1, 25383), -- Leader of the Pack
(14368, 3, -1, 654, 545, 0, 0, 1, 25383), -- Save the Children!
(14368, 2, 0, 654, 545, 0, 0, 1, 25383), -- Save the Children!
(14368, 1, 0, 654, 545, 0, 0, 1, 25383), -- Save the Children!
(14368, 0, 0, 654, 545, 0, 0, 1, 25383), -- Save the Children!
(14382, 2, -1, 654, 545, 0, 0, 1, 25383), -- Two By Sea
(14382, 1, 0, 654, 545, 0, 0, 1, 25383), -- Two By Sea
(14382, 0, 0, 654, 545, 0, 0, 1, 25383), -- Two By Sea
(14369, 1, -1, 654, 545, 0, 0, 1, 25383), -- Unleash the Beast
(14369, 0, 0, 654, 545, 0, 0, 1, 25383), -- Unleash the Beast
(14367, 0, -1, 654, 545, 0, 0, 1, 25383), -- The Allens' Storm Cellar
(14366, 0, -1, 654, 545, 0, 0, 1, 25383), -- Holding Steady
(14347, 1, -1, 654, 545, 0, 0, 1, 25383), -- Hold the Line
(14347, 0, 0, 654, 545, 0, 0, 1, 25383), -- Hold the Line
(14348, 1, -1, 654, 545, 0, 0, 1, 25383), -- You Can't Take 'Em Alone
(14348, 0, 26, 654, 545, 0, 0, 1, 25383), -- You Can't Take 'Em Alone
(14336, 0, -1, 654, 545, 0, 0, 1, 25383), -- Kill or Be Killed
(14321, 0, -1, 654, 545, 0, 0, 1, 25383), -- Invasion
(14320, 0, -1, 654, 545, 0, 0, 1, 25383), -- In Need of Ingredients
(14313, 0, -1, 654, 545, 0, 0, 1, 25383), -- Among Humans Again
(14222, 1, -1, 654, 545, 0, 0, 1, 25383), -- Last Stand
(14222, 0, 0, 654, 545, 0, 0, 1, 25383), -- Last Stand
(14221, 0, -1, 654, 545, 0, 0, 1, 25383), -- Never Surrender, Sometimes Retreat
(14218, 7, -1, 654, 611, 0, 0, 1, 25383), -- By Blood and Ash
(14218, 6, 0, 654, 611, 0, 0, 1, 25383), -- By Blood and Ash
(14218, 5, 0, 654, 611, 0, 0, 1, 25383), -- By Blood and Ash
(14218, 4, 0, 654, 611, 0, 0, 1, 25383), -- By Blood and Ash
(14218, 3, 0, 654, 611, 0, 0, 1, 25383), -- By Blood and Ash
(14218, 2, 0, 654, 611, 0, 0, 1, 25383), -- By Blood and Ash
(14218, 1, 0, 654, 611, 0, 0, 1, 25383), -- By Blood and Ash
(14218, 0, 0, 654, 611, 0, 0, 1, 25383), -- By Blood and Ash
(14212, 0, -1, 654, 545, 0, 0, 1, 25383), -- Sacrifices
(14294, 0, -1, 654, 545, 0, 0, 1, 25383), -- Time to Regroup
(14293, 1, 0, 654, 611, 0, 0, 1, 25383), -- Save Krennan Aranas
(14293, 0, -1, 654, 611, 0, 0, 1, 25383), -- Save Krennan Aranas
(14214, 0, -1, 654, 545, 0, 0, 1, 25383), -- Message to Greymane
(14204, 1, -1, 654, 545, 0, 0, 1, 25383), -- From the Shadows
(14204, 0, 0, 654, 545, 0, 0, 1, 25383), -- From the Shadows
(14159, 0, -1, 654, 545, 0, 0, 1, 25383), -- The Rebel Lord's Arsenal
(26129, 0, -1, 654, 545, 0, 0, 1, 25383), -- Brothers In Arms
(14154, 1, 30, 654, 545, 0, 0, 7, 25383), -- By the Skin of His Teeth
(14154, 0, -1, 654, 545, 0, 0, 3, 25383), -- By the Skin of His Teeth
(28850, 0, -1, 654, 611, 0, 0, 1, 25383), -- The Prison Rooftop
(24930, 2, -1, 654, 545, 0, 0, 1, 25383), -- While You're At It
(24930, 1, 0, 654, 545, 0, 0, 1, 25383), -- While You're At It
(24930, 0, 0, 638, 539, 0, 0, 1, 25383), -- While You're At It
(14157, 0, -1, 654, 611, 0, 0, 3, 25383), -- Old Divisions
(14286, 0, -1, 654, 545, 0, 0, 1, 25383), -- Safety in Numbers
(14265, 0, -1, 654, 545, 0, 0, 1, 25383), -- Your Instructor
(14099, 0, -1, 654, 545, 0, 0, 1, 25383), -- Royal Orders
(14094, 3, -1, 654, 545, 0, 0, 1, 25383), -- Salvage the Supplies
(14094, 2, 0, 654, 545, 0, 0, 1, 25383), -- Salvage the Supplies
(14094, 1, -1, 638, 539, 0, 0, 1, 25383), -- Salvage the Supplies
(14094, 0, 0, 638, 539, 0, 0, 1, 25383), -- Salvage the Supplies
(14098, 2, -1, 654, 611, 0, 0, 1, 25383), -- Evacuate the Merchant Square
(14098, 1, 0, 654, 545, 0, 0, 3, 25383), -- Evacuate the Merchant Square
(14098, 0, 0, 654, 545, 0, 0, 3, 25383), -- Evacuate the Merchant Square
(14093, 3, -1, 654, 545, 0, 0, 1, 25383), -- All Hell Breaks Loose
(14093, 2, 0, 654, 545, 0, 0, 1, 25383), -- All Hell Breaks Loose
(14093, 1, -1, 638, 539, 0, 0, 1, 25383), -- All Hell Breaks Loose
(14093, 0, 0, 638, 539, 0, 0, 3, 25383), -- All Hell Breaks Loose
(14091, 0, -1, 654, 545, 0, 0, 1, 25383), -- Something's Amiss
(14078, 0, -1, 654, 611, 0, 0, 1, 25383), -- Lockdown!
(31814, 2, 32, 1, 11, 0, 0, 0, 25383), -- Analynn
(31814, 1, 0, 1, 43, 0, 0, 0, 25383), -- Analynn
(31814, 0, -1, 1, 43, 0, 0, 0, 25383); -- Analynn
UPDATE `quest_offer_reward` SET `RewardText`='You''ve done it again, $n. The freed villagers are eager to help us against the Forsaken in any way they can.', `VerifiedBuild`=25383 WHERE `ID`=24575; -- Liberation Day
UPDATE `quest_offer_reward` SET `RewardText`='I thank you, $n. Our people will no longer suffer under that monstrosity''s yoke.', `VerifiedBuild`=25383 WHERE `ID`=24674; -- Slaves to No One
UPDATE `quest_offer_reward` SET `RewardText`='I thank you, $n. Our men and women will have a last good meal before they set off for battle.', `VerifiedBuild`=25383 WHERE `ID`=24675; -- Last Meal
UPDATE `quest_offer_reward` SET `Emote1`=1, `RewardText`='I am glad to have you here, $n. We''re surrounded by Forsaken on all sides and can use all the help we can get.', `VerifiedBuild`=25383 WHERE `ID`=24677; -- Flank the Forsaken
UPDATE `quest_offer_reward` SET `Emote1`=1, `RewardText`='I wish it could''ve been avoided, $n. Let us ensure this is resolved without further bloodshed.', `VerifiedBuild`=25383 WHERE `ID`=24592; -- Betrayal at Tempest's Reach
UPDATE `quest_offer_reward` SET `RewardText`='$n!$B$BGenn... they''ve taken Genn... they''ve taken... our king!', `VerifiedBuild`=25383 WHERE `ID`=24672; -- Onwards and Upwards
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=24673; -- Return to Stormglen
UPDATE `quest_offer_reward` SET `RewardText`='It is done then, $n. You are one of us now.', `VerifiedBuild`=25383 WHERE `ID`=24593; -- Neither Human Nor Beast
UPDATE `quest_offer_reward` SET `Emote1`=66, `RewardText`='I knew we could count on you. You''ve done well, $n.', `VerifiedBuild`=25383 WHERE `ID`=24646; -- Take Back What's Ours
UPDATE `quest_offer_reward` SET `Emote1`=1, `VerifiedBuild`=25383 WHERE `ID`=24628; -- Preparations
UPDATE `quest_offer_reward` SET `RewardText`='You are as good as I remember, $n. It is good to have you back.', `VerifiedBuild`=25383 WHERE `ID`=24627; -- At Our Doorstep
UPDATE `quest_offer_reward` SET `Emote1`=1, `RewardText`='You''re all right, $n! I''ve been waiting for this day for a long time, it truly is great to see you friend.$B$BI''ve heard of what you''ve done and I''m thankful... especially for Lorna -- she''s all I''ve left. I will send for her right away.', `VerifiedBuild`=25383 WHERE `ID`=24617; -- Tal'doren, the Wild Home
UPDATE `quest_offer_reward` SET `Emote1`=1, `Emote2`=66, `RewardText`='Well done, $n. The scout never had a chance.', `VerifiedBuild`=25383 WHERE `ID`=24616; -- Losing Your Tail
UPDATE `quest_offer_reward` SET `RewardText`='I''ve been expecting you, $n. Do not be alarmed.$B$BMy name is Belysra . I am a priestess of the moon... a night elf.$B$BYou might not know my people, but the destinies of our two races have been linked since the Curse befell you.', `VerifiedBuild`=25383 WHERE `ID`=24578; -- The Blackwald
UPDATE `quest_offer_reward` SET `RewardText`='Great job, $n. We''ve heard rumors of survivors further in the mountains. Now we''ll be able to send scouts there.', `VerifiedBuild`=25383 WHERE `ID`=24501; -- Queen-Sized Troubles
UPDATE `quest_offer_reward` SET `RewardText`='You''ve done well, $n. The spiders are everywhere, however, and I''m afraid we''ve barely put a dent in their numbers.', `VerifiedBuild`=25383 WHERE `ID`=24484; -- Pest Control
UPDATE `quest_offer_reward` SET `RewardText`='Thank you, $n. It will take some time, but I''ll try to make sense of what we have.', `VerifiedBuild`=25383 WHERE `ID`=24495; -- Pieces of the Past
UPDATE `quest_offer_reward` SET `RewardText`='It''s good to see you made it, $n. It looks like most everybody did.$B$BWe''re not doing too bad so far for an emergency evacuation.', `VerifiedBuild`=25383 WHERE `ID`=24483; -- Stormglen
UPDATE `quest_offer_reward` SET `Emote1`=1, `Emote2`=273, `RewardText`='You definitely got the ettin angry, $n. I heard him myself.$B$BLet''s hope this works.', `VerifiedBuild`=25383 WHERE `ID`=24472; -- Introductions Are in Order
UPDATE `quest_offer_reward` SET `Emote1`=1, `RewardText`='You''ve done it again, $n. You have my thanks.', `VerifiedBuild`=25383 WHERE `ID`=24468; -- Stranded at the Marsh
UPDATE `quest_offer_reward` SET `Emote1`=1, `Emote2`=25, `RewardText`='Thanks for stopping, $n. Our carriage got hit pretty bad.$B$BThe one in front of us got it worse.', `VerifiedBuild`=25383 WHERE `ID`=24438; -- Exodus
UPDATE `quest_offer_reward` SET `RewardText`='Look, $n! Look at what''s become of Duskhaven!$B$BLook at what''s become of the last safe place in Gilneas!', `VerifiedBuild`=25383 WHERE `ID`=14467; -- Alas, Gilneas!
UPDATE `quest_offer_reward` SET `RewardText`='There you are, $n. I''ve been expecting you.$B$BI got word of your recovery and... wait -- do you feel that?', `VerifiedBuild`=25383 WHERE `ID`=14466; -- The King's Observatory
UPDATE `quest_offer_reward` SET `Emote1`=2, `RewardText`='$n. I''ve heard much about you.$B$BI understand you were crucial in my family''s survival during the outbreak in Gilneas City.', `VerifiedBuild`=25383 WHERE `ID`=14465; -- To Greymane Manor
UPDATE `quest_offer_reward` SET `RewardText`='Excellent work, $n. I think I speak for everyone when I say the sooner we get out of here, the better.', `VerifiedBuild`=25383 WHERE `ID`=14463; -- Horses for Duskhaven
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14401; -- Grandma's Cat
UPDATE `quest_offer_reward` SET `Emote1`=1, `RewardText`='You''re a peach, $n. Thanks!', `VerifiedBuild`=25383 WHERE `ID`=14400; -- I Can't Wear This
UPDATE `quest_offer_reward` SET `RewardText`='Why thank you, $n. I hope you didn''t peek!$B$BWhere are your manners, dear?', `VerifiedBuild`=25383 WHERE `ID`=14399; -- Grandma's Lost It Alright
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14398; -- Grandma Wahl
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14412; -- Washed Up
UPDATE `quest_offer_reward` SET `Emote1`=1, `RewardText`='This is great, $n. I should be able to finish the repairs in no time.', `VerifiedBuild`=25383 WHERE `ID`=14404; -- Not Quite Shipshape
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14403; -- The Hayward Brothers
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14416; -- The Hungry Ettin
UPDATE `quest_offer_reward` SET `RewardText`='Stay back! Don''t make me...$B$BIs it you? By the Light! It''s you, $n!', `VerifiedBuild`=25383 WHERE `ID`=14406; -- The Crowley Orchard
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14397; -- Evacuation
UPDATE `quest_offer_reward` SET `RewardText`='You did what you could, $n. With any luck a few others will find their way to shore.', `VerifiedBuild`=25383 WHERE `ID`=14395; -- Gasping for Breath
UPDATE `quest_offer_reward` SET `RewardText`='The ocean, $n. It swallowed everything... the land... the Forsaken... our men!', `VerifiedBuild`=25383 WHERE `ID`=14396; -- As the Land Shatters
UPDATE `quest_offer_reward` SET `RewardText`='You did it, $n. That should take the wind out of their sails.', `VerifiedBuild`=25383 WHERE `ID`=14386; -- Leader of the Pack
UPDATE `quest_offer_reward` SET `RewardText`='Well done, $n. You might be a bloody beast, but you''re our beast.', `VerifiedBuild`=25383 WHERE `ID`=14382; -- Two By Sea
UPDATE `quest_offer_reward` SET `RewardText`='Well done, $n. You might be a bloody beast, but you''re our beast.', `VerifiedBuild`=25383 WHERE `ID`=14382; -- Two By Sea
UPDATE `quest_offer_reward` SET `RewardText`='Not bad, $n. It''s a good thing you''re on our side.', `VerifiedBuild`=25383 WHERE `ID`=14369; -- Unleash the Beast
UPDATE `quest_offer_reward` SET `RewardText`='My children are safe! You''ve done a wonderful thing, $n. I don''t know how to thank you!', `VerifiedBuild`=25383 WHERE `ID`=14368; -- Save the Children!
UPDATE `quest_offer_reward` SET `RewardText`='The Forsaken are here in full strength, $n. We barely have enough men to hold them back.', `VerifiedBuild`=25383 WHERE `ID`=14367; -- The Allens' Storm Cellar
UPDATE `quest_offer_reward` SET `RewardText`='Great news, $n. I''ve sent the remaining militia to the shore to meet the Forsaken force head on.', `VerifiedBuild`=25383 WHERE `ID`=14366; -- Holding Steady
UPDATE `quest_offer_reward` SET `RewardText`='You and me, $n. We make a great team...$B$BIt''s good to have you back.', `VerifiedBuild`=25383 WHERE `ID`=14348; -- You Can't Take 'Em Alone
UPDATE `quest_offer_reward` SET `RewardText`='Yes, $n! Just like old times...$B$BI''m going to have to work hard at not shooting you, but Krennan explained everything to us.', `VerifiedBuild`=25383 WHERE `ID`=14347; -- Hold the Line
UPDATE `quest_offer_reward` SET `RewardText`='$n!!! You ARE alive!$B$BI thought I was having dreams about the old days when I heard your voice...', `VerifiedBuild`=25383 WHERE `ID`=14336; -- Kill or Be Killed
UPDATE `quest_offer_reward` SET `RewardText`='Forsaken! Quick, $n! We must mount a defense.', `VerifiedBuild`=25383 WHERE `ID`=14321; -- Invasion
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14320; -- In Need of Ingredients
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14313; -- Among Humans Again
UPDATE `quest_offer_reward` SET `RewardText`='I need you to pull through, $n. This dosage is strong enough to kill a horse.$B$BBut I know you. I know what you''re made of. You will be fine.$B$BTrust me. I know what you''re going through.$B$BNow drink up and close your eyes.', `VerifiedBuild`=25383 WHERE `ID`=14375; -- Last Chance at Humanity
UPDATE `quest_offer_reward` SET `RewardText`='They... they''ve stopped coming.$B$BNo, $n. That''s not a good thing.', `VerifiedBuild`=25383 WHERE `ID`=14222; -- Last Stand
UPDATE `quest_offer_reward` SET `RewardText`='We''ve given them everything we have... yet still they come. Do not worry, $n. We''ll slay many more before today is over.', `VerifiedBuild`=25383 WHERE `ID`=14221; -- Never Surrender, Sometimes Retreat
UPDATE `quest_offer_reward` SET `RewardText`='You''ve done well, $n. You''ve done more than could be asked of any Gilnean.$B$BWe''re running low on ammunition. It''s time to regroup inside now.', `VerifiedBuild`=25383 WHERE `ID`=14218; -- By Blood and Ash
UPDATE `quest_offer_reward` SET `RewardText`='Brace yourself, $n.$B$BHere they come.', `VerifiedBuild`=25383 WHERE `ID`=14212; -- Sacrifices
UPDATE `quest_offer_reward` SET `RewardText`='We''re left with very few choices, $n. What we do next will be a critical decision.', `VerifiedBuild`=25383 WHERE `ID`=14294; -- Time to Regroup
UPDATE `quest_offer_reward` SET `RewardText`='Well done, $n. We''ll make sure Krennan makes it out of the city alive.', `VerifiedBuild`=25383 WHERE `ID`=14293; -- Save Krennan Aranas
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14214; -- Message to Greymane
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14204; -- From the Shadows
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14159; -- The Rebel Lord's Arsenal
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=26129; -- Brothers In Arms
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=24930; -- While You're At It
UPDATE `quest_offer_reward` SET `RewardText`='We did it, $n. Thanks to you a good man has survived.', `VerifiedBuild`=25383 WHERE `ID`=14154; -- By the Skin of His Teeth
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=28850; -- The Prison Rooftop
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14157; -- Old Divisions
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14286; -- Safety in Numbers
UPDATE `quest_offer_reward` SET `RewardText`='$n! Where have you been?$B$BAnyway... it''s great to see you in one piece.', `VerifiedBuild`=25383 WHERE `ID`=14265; -- Your Instructor
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14099; -- Royal Orders
UPDATE `quest_offer_reward` SET `RewardText`='Good job, $n. Thanks to you, many Gilneans will live to see another day.', `VerifiedBuild`=25383 WHERE `ID`=14098; -- Evacuate the Merchant Square
UPDATE `quest_offer_reward` SET `RewardText`='It''s no use, $n! They''re not letting up.', `VerifiedBuild`=25383 WHERE `ID`=14093; -- All Hell Breaks Loose
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14094; -- Salvage the Supplies
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14091; -- Something's Amiss
UPDATE `quest_offer_reward` SET `VerifiedBuild`=25383 WHERE `ID`=14078; -- Lockdown!
DELETE FROM `quest_poi_points` WHERE (`QuestID`=24675 AND `Idx1`=2 AND `Idx2`=0) OR (`QuestID`=14369 AND `Idx1`=1 AND `Idx2`=0) OR (`QuestID`=14369 AND `Idx1`=0 AND `Idx2`=9) OR (`QuestID`=14369 AND `Idx1`=0 AND `Idx2`=8) OR (`QuestID`=14369 AND `Idx1`=0 AND `Idx2`=7) OR (`QuestID`=14369 AND `Idx1`=0 AND `Idx2`=6) OR (`QuestID`=14369 AND `Idx1`=0 AND `Idx2`=5) OR (`QuestID`=14369 AND `Idx1`=0 AND `Idx2`=4) OR (`QuestID`=14369 AND `Idx1`=0 AND `Idx2`=3) OR (`QuestID`=14369 AND `Idx1`=0 AND `Idx2`=2) OR (`QuestID`=14369 AND `Idx1`=0 AND `Idx2`=1) OR (`QuestID`=14369 AND `Idx1`=0 AND `Idx2`=0) OR (`QuestID`=14157 AND `Idx1`=0 AND `Idx2`=0) OR (`QuestID`=14098 AND `Idx1`=2 AND `Idx2`=0) OR (`QuestID`=31814 AND `Idx1`=2 AND `Idx2`=0) OR (`QuestID`=31814 AND `Idx1`=1 AND `Idx2`=0) OR (`QuestID`=31814 AND `Idx1`=0 AND `Idx2`=0);
INSERT INTO `quest_poi_points` (`QuestID`, `Idx1`, `Idx2`, `X`, `Y`, `VerifiedBuild`) VALUES
(24675, 2, 0, -1366, 1217, 25383), -- Last Meal
(14369, 1, 0, -1844, 2567, 25383), -- Unleash the Beast
(14369, 0, 9, -2211, 2475, 25383), -- Unleash the Beast
(14369, 0, 8, -2243, 2554, 25383), -- Unleash the Beast
(14369, 0, 7, -2115, 2683, 25383), -- Unleash the Beast
(14369, 0, 6, -2103, 2686, 25383), -- Unleash the Beast
(14369, 0, 5, -1958, 2711, 25383), -- Unleash the Beast
(14369, 0, 4, -1943, 2694, 25383), -- Unleash the Beast
(14369, 0, 3, -1933, 2563, 25383), -- Unleash the Beast
(14369, 0, 2, -1978, 2528, 25383), -- Unleash the Beast
(14369, 0, 1, -2058, 2470, 25383), -- Unleash the Beast
(14369, 0, 0, -2179, 2462, 25383), -- Unleash the Beast
(14157, 0, 0, -1749, 1426, 25383), -- Old Divisions
(14098, 2, 0, -1438, 1401, 25383), -- Evacuate the Merchant Square
(31814, 2, 0, -222, -3165, 25383), -- Analynn
(31814, 1, 0, 3537, 535, 25383), -- Analynn
(31814, 0, 0, 3537, 535, 25383); -- Analynn
UPDATE `quest_poi_points` SET `X`=-1673, `Y`=1345, `VerifiedBuild`=25383 WHERE (`QuestID`=14293 AND `Idx1`=1 AND `Idx2`=0); -- Save Krennan Aranas
UPDATE `quest_poi_points` SET `X`=-1786, `Y`=1438, `VerifiedBuild`=25383 WHERE (`QuestID`=14293 AND `Idx1`=0 AND `Idx2`=0); -- Save Krennan Aranas
DELETE FROM `quest_details` WHERE `ID` IN (24676 /*Push Them Out*/, 24674 /*Slaves to No One*/, 24675 /*Last Meal*/, 24575 /*Liberation Day*/, 24677 /*Flank the Forsaken*/, 24592 /*Betrayal at Tempest's Reach*/, 24672 /*Onwards and Upwards*/, 24673 /*Return to Stormglen*/, 24593 /*Neither Human Nor Beast*/, 24646 /*Take Back What's Ours*/, 24628 /*Preparations*/, 24627 /*At Our Doorstep*/, 24617 /*Tal'doren, the Wild Home*/, 24616 /*Losing Your Tail*/, 24578 /*The Blackwald*/, 24501 /*Queen-Sized Troubles*/, 24495 /*Pieces of the Past*/, 24484 /*Pest Control*/, 24483 /*Stormglen*/, 24472 /*Introductions Are in Order*/, 24468 /*Stranded at the Marsh*/, 24438 /*Exodus*/, 14466 /*The King's Observatory*/, 14465 /*To Greymane Manor*/, 14463 /*Horses for Duskhaven*/, 14405 /*Escape By Sea*/, 14402 /*Ready to Go*/, 14401 /*Grandma's Cat*/, 14400 /*I Can't Wear This*/, 14399 /*Grandma's Lost It Alright*/, 14412 /*Washed Up*/, 14404 /*Not Quite Shipshape*/, 14416 /*The Hungry Ettin*/, 14406 /*The Crowley Orchard*/, 14403 /*The Hayward Brothers*/, 14398 /*Grandma Wahl*/, 14397 /*Evacuation*/, 14395 /*Gasping for Breath*/, 14396 /*As the Land Shatters*/, 14386 /*Leader of the Pack*/, 14368 /*Save the Children!*/, 14382 /*Two By Sea*/, 14369 /*Unleash the Beast*/, 14367 /*The Allens' Storm Cellar*/, 14366 /*Holding Steady*/, 14347 /*Hold the Line*/, 14348 /*You Can't Take 'Em Alone*/, 14336 /*Kill or Be Killed*/, 14321 /*Invasion*/, 14320 /*In Need of Ingredients*/, 14313 /*Among Humans Again*/, 14222 /*Last Stand*/, 14221 /*Never Surrender, Sometimes Retreat*/, 14218 /*By Blood and Ash*/, 14212 /*Sacrifices*/, 14294 /*Time to Regroup*/, 14293 /*Save Krennan Aranas*/, 14214 /*Message to Greymane*/, 14204 /*From the Shadows*/, 14159 /*The Rebel Lord's Arsenal*/, 26129 /*Brothers In Arms*/, 14154 /*By the Skin of His Teeth*/, 28850 /*The Prison Rooftop*/, 24930 /*While You're At It*/, 14157 /*Old Divisions*/, 14286 /*Safety in Numbers*/, 14265 /*Your Instructor*/, 14099 /*Royal Orders*/, 14094 /*Salvage the Supplies*/, 14098 /*Evacuate the Merchant Square*/, 14093 /*All Hell Breaks Loose*/, 14091 /*Something's Amiss*/, 14078 /*Lockdown!*/);
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(24676, 1, 0, 0, 0, 0, 0, 0, 0, 25383), -- Push Them Out
(24674, 1, 0, 0, 0, 0, 0, 0, 0, 25383), -- Slaves to No One
(24675, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Last Meal
(24575, 1, 274, 0, 0, 0, 0, 0, 0, 25383), -- Liberation Day
(24677, 274, 0, 0, 0, 0, 0, 0, 0, 25383), -- Flank the Forsaken
(24592, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Betrayal at Tempest's Reach
(24672, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Onwards and Upwards
(24673, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Return to Stormglen
(24593, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Neither Human Nor Beast
(24646, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Take Back What's Ours
(24628, 1, 0, 0, 0, 0, 0, 0, 0, 25383), -- Preparations
(24627, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- At Our Doorstep
(24617, 25, 0, 0, 0, 0, 0, 0, 0, 25383), -- Tal'doren, the Wild Home
(24616, 1, 25, 0, 0, 0, 0, 0, 0, 25383), -- Losing Your Tail
(24578, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- The Blackwald
(24501, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Queen-Sized Troubles
(24495, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Pieces of the Past
(24484, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Pest Control
(24483, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Stormglen
(24472, 1, 6, 5, 0, 0, 0, 0, 0, 25383), -- Introductions Are in Order
(24468, 1, 25, 0, 0, 0, 0, 0, 0, 25383), -- Stranded at the Marsh
(24438, 1, 0, 0, 0, 0, 0, 0, 0, 25383), -- Exodus
(14466, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- The King's Observatory
(14465, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- To Greymane Manor
(14463, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Horses for Duskhaven
(14405, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Escape By Sea
(14402, 1, 0, 0, 0, 0, 0, 0, 0, 25383), -- Ready to Go
(14401, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Grandma's Cat
(14400, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- I Can't Wear This
(14399, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Grandma's Lost It Alright
(14412, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Washed Up
(14404, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Not Quite Shipshape
(14416, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- The Hungry Ettin
(14406, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- The Crowley Orchard
(14403, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- The Hayward Brothers
(14398, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Grandma Wahl
(14397, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Evacuation
(14395, 25, 6, 1, 0, 0, 0, 0, 0, 25383), -- Gasping for Breath
(14396, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- As the Land Shatters
(14386, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Leader of the Pack
(14368, 18, 0, 0, 0, 0, 0, 0, 0, 25383), -- Save the Children!
(14382, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Two By Sea
(14369, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Unleash the Beast
(14367, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- The Allens' Storm Cellar
(14366, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Holding Steady
(14347, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Hold the Line
(14348, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- You Can't Take 'Em Alone
(14336, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Kill or Be Killed
(14321, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Invasion
(14320, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- In Need of Ingredients
(14313, 1, 5, 274, 0, 0, 0, 0, 0, 25383), -- Among Humans Again
(14222, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Last Stand
(14221, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Never Surrender, Sometimes Retreat
(14218, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- By Blood and Ash
(14212, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Sacrifices
(14294, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Time to Regroup
(14293, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Save Krennan Aranas
(14214, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Message to Greymane
(14204, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- From the Shadows
(14159, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- The Rebel Lord's Arsenal
(26129, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Brothers In Arms
(14154, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- By the Skin of His Teeth
(28850, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- The Prison Rooftop
(24930, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- While You're At It
(14157, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Old Divisions
(14286, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Safety in Numbers
(14265, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Your Instructor
(14099, 25, 0, 0, 0, 0, 0, 0, 0, 25383), -- Royal Orders
(14094, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Salvage the Supplies
(14098, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Evacuate the Merchant Square
(14093, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- All Hell Breaks Loose
(14091, 0, 0, 0, 0, 0, 0, 0, 0, 25383), -- Something's Amiss
(14078, 0, 0, 0, 0, 0, 0, 0, 0, 25383); -- Lockdown!
UPDATE `quest_request_items` SET `CompletionText`='Did you get what I needed, $n?', `VerifiedBuild`=25383 WHERE `ID`=24675; -- Last Meal
UPDATE `quest_request_items` SET `CompletionText`='Do you have the scythe, $n?', `VerifiedBuild`=25383 WHERE `ID`=24646; -- Take Back What's Ours
UPDATE `quest_request_items` SET `CompletionText`='You''ve returned, $n.', `VerifiedBuild`=25383 WHERE `ID`=24628; -- Preparations
UPDATE `quest_request_items` SET `CompletionText`='How did it go, $n?', `VerifiedBuild`=25383 WHERE `ID`=24472; -- Introductions Are in Order
UPDATE `quest_request_items` SET `CompletionText`='You''re such a charming young $gman:lady;, $n.', `VerifiedBuild`=25383 WHERE `ID`=14401; -- Grandma's Cat
UPDATE `quest_request_items` SET `CompletionText`='Do you have my supplies, $n?', `VerifiedBuild`=25383 WHERE `ID`=14404; -- Not Quite Shipshape
UPDATE `quest_request_items` SET `CompletionText`='Have you salvaged the supplies, $n?', `VerifiedBuild`=25383 WHERE `ID`=14094; -- Salvage the Supplies
UPDATE `creature_addon` SET `emote`= 333 WHERE `guid`= 376570;
UPDATE `creature` SET `MovementType`= 1, `spawndist`= 3 WHERE `guid` IN (376655, 376654, 376510);
UPDATE `creature_addon` SET `emote`= 27, `Auras`= '67503' WHERE `guid`= 376582;
UPDATE `creature_addon` SET `emote`= 375 WHERE `guid`= 376579;
-- Creature Lord Darius Crowley 35077 SAI
SET @ENTRY := 35077;
UPDATE `creature_template` SET `AIName`="SmartAI", `DamageModifier`= 3 WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 19, 0, 100, 0, 14154, 0, 0, 0, 11, 66914, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "When player accepts quest 14154 - Self: Cast spell 66914 on Action invoker // "),
(@ENTRY, 0, 1, 0, 37, 0, 100, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Disable combat based movement // "),
(@ENTRY, 0, 2, 0, 0, 0, 100, 0, 6000, 6000, 15000, 17000, 11, 67825, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 6000 and 6000 ms (and later repeats every 15000 and 17000 ms) - Self: Cast spell 67825 on Victim // ");
UPDATE `creature_template` SET `DamageModifier`= 3 WHERE `entry`= 35124;
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_gen_gilneas_prison_periodic_dummy');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(66853, 'spell_gen_gilneas_prison_periodic_dummy');
DELETE FROM `spell_target_position` WHERE `ID` IN (66925, 66836);
INSERT INTO `spell_target_position` (`ID`, `EffectIndex`, `MapID`, `PositionX`, `PositionY`, `PositionZ`, `Orientation`) VALUES
(66925, 0, 654, -1636.292, 1481.836, 70.94804, 4.081235),
(66836, 0, 654, -1620.981, 1509.193, 67.10413, 3.919209);
UPDATE `creature_template` SET `scriptname`= 'npc_worgen_runt' WHERE `entry` IN (35456, 35188);
-- Creature Worgen Alpha 35167 SAI
SET @ENTRY := 35167;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 1, 2, 0, 100, 1, 0, 30, 0, 0, 11, 8599, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When health between 0% and 30% (check every 0 - 0 ms) - Self: Cast spell 8599 on Self // Worgen Alpha - Between 0-30% Health - Cast 'Enrage' (No Repeat)"),
(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Talk 0 // Worgen Alpha - Between 0-30% Health - Say Line 0 (No Repeat)"),
(@ENTRY, 0, 2, 0, 54, 0, 100, 0, 0, 0, 0, 0, 69, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1639.317, 1491.14, 67.34758, 0, "On just summoned - Self: Move to None (point id 0) // ");
@@ -1,88 +0,0 @@
-- Creature Josiah Event Trigger 50415 SAI
SET @ENTRY := 50415;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 44, 171, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On just summoned - Self: Set phase id to 171 // "),
(@ENTRY, 0, 1, 0, 1, 0, 100, 1, 2000, 2000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 2000 and 2000 ms (and later repeats every 0 and 0 ms) - Owner/Summoner: Talk 0 // ");
DELETE FROM `creature_text` WHERE `CreatureID` IN (50415, 35911, 35552, 35551, 35753);
INSERT INTO `creature_text` (`CreatureID`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `comment`) VALUES
(50415, 0, 0, 'You''ve been bitten by a worgen. It''s probably nothing, but it sure stings a little.$B$B|TInterface\\Icons\\INV_Misc_monsterfang_02.blp:32|t', 42, 0, 100, 0, 0, 0, 50192, 'Josiah Event Trigger to Player'),
(35911, 0, 0, 'If we can make it past the gates into Duskhaven we''ll be safe. The eastern mountains are virtually impassable.', 12, 0, 100, 1, 0, 19696, 36107, 'King Genn Greymane to Player'),
(35911, 1, 0, 'We were fools to take up arms against each other, Darius. The worgen would''ve never stood a chance.', 12, 0, 100, 1, 0, 19696, 36108, 'King Genn Greymane to Player'),
(35551, 0, 0, 'I''ll stay behind with the Royal Guard, father. It is my duty to Gilneas.', 12, 0, 100, 1, 0, 19696, 36106, 'Prince Liam Greymane to Player'),
(35552, 0, 0, 'We need to keep the worgen''s attention in the city, Genn. It''s the only shot we have for the survivors to make it to Duskhaven.', 12, 0, 100, 66, 0, 19696, 36103, 'Lord Darius Crowley to Player'),
(35552, 1, 0, 'Not a chance, boy. Gilneas is going to need its king''s undivided attention. Can''t have your father wondering whether his child is alive or not.', 12, 0, 100, 66, 0, 19696, 36104, 'Lord Darius Crowley to Player'),
(35552, 2, 0, 'My men and I will hole up inside the Light''s Dawn Cathedral. I''ve already given the order and the cannons are on their way. Lead our people well, Genn.', 12, 0, 100, 66, 0, 19696, 36105, 'Lord Darius Crowley to Player'),
(35753, 0, 0, 'Help! Up here!', 14, 0, 100, 0, 0, 0, 46756, 'Krennan Aranas to Player');
UPDATE `creature_template` SET `scriptname`= 'npc_josiah_avery' WHERE `entry`= 35370;
DELETE FROM `conditions` WHERE `SourceEntry`= 67350 AND `SourceTypeOrReferenceId`= 13;
INSERT INTO conditions (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES
(13, 1, 67350, 0, 0, 31, 0, 3, 35374, 0, 0, 0, '', 'Summon Josiah - Target Lab Trigger'),
(13, 4, 67350, 0, 0, 31, 0, 3, 35374, 0, 0, 0, '', 'Summon Josiah - Target Lab Trigger');
UPDATE `creature_template` SET `InhabitType`= 1 | 8 WHERE `entry` IN (35907, 35504, 35509, 50474);
DELETE FROM `creature_sparring_template` WHERE `AttackerEntry` IN (50471, 50474, 35505, 35504, 35509);
INSERT INTO `creature_sparring_template` (`AttackerEntry`, `VictimEntry`, `HealthLimitPct`) VALUES
(50471, 50474, 90.0),
(50474, 50471, 90.0),
(35505, 35504, 90.0),
(35509, 35505, 90.0),
(35505, 35509, 90.0);
UPDATE `creature_addon` SET `emote`= 214 WHERE `guid` IN (376746, 376788, 376779, 376756, 376694, 376702, 376737, 376698, 376726, 376704, 376713);
UPDATE `creature_addon` SET `emote`= 333 WHERE `guid` IN (376711, 376790, 376757, 376703, 376698, 376695, 376736, 376768, 376716, 376754);
UPDATE `creature` SET `SpawnDist`= 5 WHERE `id`= 35229;
-- Creature Gilneas City Guard 35504 SAI
SET @ENTRY := 35504;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 0, 0, 100, 0, 0, 0, 2000, 2000, 11, 67595, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 0 and 0 ms (and later repeats every 2000 and 2000 ms) - Self: Cast spell 67595 on Victim // "),
(@ENTRY, 0, 1, 0, 1, 0, 100, 0, 2000, 2000, 2000, 2000, 49, 0, 0, 0, 0, 0, 0, 11, 35505, 20, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 2000 and 2000 ms (and later repeats every 2000 and 2000 ms) - Self: Attack Creature Bloodfang Ripper (35505) in 20 yd // ");
-- Creature Gilneas City Guard 50474 SAI
SET @ENTRY := 50474;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 1, 0, 100, 0, 0, 0, 2000, 2000, 49, 0, 0, 0, 0, 0, 0, 11, 50471, 10, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 0 and 0 ms (and later repeats every 2000 and 2000 ms) - Self: Attack Creature Afflicted Gilnean (50471) in 10 yd // ");
-- Creature Afflicted Gilnean 50474 SAI
SET @ENTRY := 50471;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 1, 0, 100, 0, 0, 0, 2000, 2000, 49, 0, 0, 0, 0, 0, 0, 11, 50474, 10, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 0 and 0 ms (and later repeats every 2000 and 2000 ms) - Self: Attack Creature Gilneas City Guard (50474) in 10 yd // ");
-- Creature King Genn Greymane 35911 SAI
SET @ENTRY := 35911;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 1, 20, 0, 100, 0, 14294, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When player rewards quest 14294 - Self: Talk 0 // "),
(@ENTRY, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 80, 3555200, 0, 0, 0, 0, 0, 10, 377011, 0, 0, 0, 0, 0, 0, " Linked - Start timed action list id #3555200 // "),
(@ENTRY, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 80, 3591100, 0, 0, 0, 0, 0, 10, 377012, 0, 0, 0, 0, 0, 0, " Linked - Start timed action list id #3591100 // "),
(@ENTRY, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 3555100, 0, 0, 0, 0, 0, 10, 377026, 0, 0, 0, 0, 0, 0, " Linked - Start timed action list id #3555100 // ");
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry` IN (35552, 35551);
DELETE FROM `smart_scripts` WHERE `entryorguid`=3555200 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
(3555200,9,0,0,0,0,100,0,8000,8000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Lord Darius Crowley - Talk 0"),
(3555200,9,1,0,0,0,100,0,14000,14000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Lord Darius Crowley - Talk 1"),
(3555200,9,2,0,0,0,100,0,9000,9000,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Lord Darius Crowley - Talk 2");
DELETE FROM `smart_scripts` WHERE `entryorguid`=3591100 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
(3591100,9,0,0,0,0,100,0,39000,39000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"King Genn Greymane - Talk 1");
DELETE FROM `smart_scripts` WHERE `entryorguid`=3555100 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
(3555100,9,0,0,0,0,100,0,16000,16000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Prince Liam Greymane - Talk 0");
@@ -1,143 +0,0 @@
UPDATE `creature_template` SET `flags_extra`= `flags_extra` | 2 WHERE `entry` IN (35870, 35233, 35230);
UPDATE `creature_template` SET `VehicleID`= 463 WHERE `entry`= 35231;
UPDATE `creature_template` SET `VehicleID`= 470 WHERE `entry`= 35317;
UPDATE `creature` SET `spawntimesecs`= 5 WHERE `id`= 35229;
UPDATE `creature_template` SET `npcflag`= 16777216 WHERE `entry` IN (44427, 35231, 44428, 35317, 44429);
DELETE FROM `npc_spellclick_spells` WHERE `npc_entry` IN (44427, 35231, 44428, 35317, 44429);
INSERT INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `user_type`) VALUES
(44427, 67001, 3, 0),
(44428, 46598, 3, 0),
(35231, 46598, 1, 0),
(44429, 82992, 3, 0),
(35317, 43671, 1, 0);
DELETE FROM `vehicle_template_accessory` WHERE `entry`= 35231;
INSERT INTO `vehicle_template_accessory` (`entry`, `accessory_entry`, `seat_id`, `minion`, `summontype`, `summontimer`, `description`) VALUES
(35231, 35230, 1, 1, 5, 0, 'Crowley''s Horse - Lord Darius Crowley');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`= 18 AND `SourceGroup` IN (44427, 35317, 44428, 44429);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionValue1`, `Comment`) VALUES
(18, 44427, 67001, 9, 14212, 'Required quest active for spellclick'),
(18, 44429, 82992, 9, 14212, 'Required quest active for spellclick'),
(18, 35317, 43671, 9, 14218, 'Required quest active for spellclick');
UPDATE `creature_template` SET `speed_run`= 1.28571, `ScriptName`= 'npc_crowleys_horse' WHERE `entry`= 35231;
SET @ID := 352310;
DELETE FROM `waypoint_data` WHERE `id`= @ID;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `move_type`) VALUES
(@ID, 1, -1686.12, 1655.639, 20.61058, 1),
(@ID, 2, -1668.156, 1639.432, 20.61058, 1),
(@ID, 3, -1666.63, 1628.859, 20.53271, 1),
(@ID, 4, -1670.76, 1617.431, 20.61058, 1),
(@ID, 5, -1693.648, 1592.639, 20.61058, 1),
(@ID, 6, -1708.017, 1590.55, 20.61042, 1),
(@ID, 7, -1719.366, 1595.649, 20.61042, 1),
(@ID, 8, -1720.566, 1610.141, 20.6074, 1),
(@ID, 9, -1711.898, 1629.703, 20.6074, 1),
(@ID, 10, -1698.149, 1656.483, 20.61058, 1),
(@ID, 11, -1696.424, 1682.012, 20.52616, 1),
(@ID, 12, -1684.675, 1700.12, 20.46484, 1),
(@ID, 13, -1658.309, 1710.313, 20.58983, 1),
(@ID, 14, -1625.477, 1712.299, 21.80511, 1),
(@ID, 15, -1592.095, 1710.71, 20.58986, 1);
SET @ID := 352311;
DELETE FROM `waypoint_data` WHERE `id`= @ID;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `move_type`) VALUES
(@ID, 1, -1545.082, 1684.233, 20.60992, 1),
(@ID, 2, -1542.793, 1656.083, 20.60992, 1),
(@ID, 3, -1542.998, 1640.535, 20.60992, 1),
(@ID, 4, -1520.733, 1618.097, 20.61054, 1),
(@ID, 5, -1498.792, 1621.738, 20.61054, 1),
(@ID, 6, -1468.356, 1630.78, 20.61054, 1),
(@ID, 7, -1441.646, 1627.67, 20.61054, 1),
(@ID, 8, -1429.844, 1616.627, 20.58984, 1),
(@ID, 9, -1417.991, 1586.554, 20.58984, 1),
(@ID, 10, -1429.177, 1548.783, 20.84849, 1),
(@ID, 11, -1447.417, 1532.79, 20.60095, 1),
(@ID, 12, -1463.104, 1535.031, 20.61054, 1),
(@ID, 13, -1483.035, 1544.151, 20.61054, 1),
(@ID, 14, -1505.156, 1568.611, 20.61053, 1),
(@ID, 15, -1531.599, 1581.872, 26.53872, 1),
(@ID, 16, -1540.594, 1574.429, 29.20671, 1);
SET @ID := 444280;
DELETE FROM `waypoint_data` WHERE `id`= @ID;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `move_type`) VALUES
(@ID, 1, -1512.36, 1570.78, 24.06706, 1),
(@ID, 2, -1498.715, 1565.426, 20.87811, 1),
(@ID, 3, -1487.863, 1557.163, 20.85, 1),
(@ID, 4, -1474.18, 1542.68, 20.61054, 1),
(@ID, 5, -1457.6, 1532.64, 20.60095, 1),
(@ID, 6, -1438.01, 1525.31, 20.87622, 1),
(@ID, 7, -1424.2, 1545.7, 20.46568, 1),
(@ID, 8, -1411.29, 1556.16, 20.55698, 1),
(@ID, 9, -1414.19, 1577.65, 20.58984, 1),
(@ID, 10, -1427.47, 1617.3, 20.58984, 1),
(@ID, 11, -1445.54, 1633.9, 20.61054, 1),
(@ID, 12, -1470.71, 1658.21, 20.61054, 1),
(@ID, 13, -1491.05, 1658.74, 20.61054, 1),
(@ID, 14, -1515.33, 1641.18, 20.60992, 1),
(@ID, 15, -1526.75, 1630.37, 20.61054, 1),
(@ID, 16, -1528.42, 1610.71, 20.61054, 1),
(@ID, 17, -1532.39, 1585.36, 26.53804, 1);
DELETE FROM `conditions` WHERE `SourceEntry`= 67063 AND `SourceTypeOrReferenceId`= 13;
INSERT INTO conditions (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES
(13, 7, 67063, 0, 0, 31, 0, 3, 35229, 0, 0, 0, '', 'Throw Torch - Target Bloodfang Stalker');
DELETE FROM `creature_text` WHERE `CreatureID`= 35230;
INSERT INTO `creature_text` (`CreatureID`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `comment`) VALUES
(35230, 0, 0, 'Let''s round up as many of them as we can. Every worgen chasing us is one less worgen chasing the survivors!', 12, 0, 100, 0, 0, 19696, 35498, 'Lord Darius Crowley to Player'),
(35230, 1, 0, 'You''ll never catch us, you blasted mongrels!', 14, 0, 100, 0, 0, 19696, 35497, 'Lord Darius Crowley to Player');
-- Creature Lord Darius Crowley 35230 SAI
SET @ENTRY := 35230;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 60, 0, 100, 1, 7000, 7000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Every 0 and 0 ms (for the first time, timer between 7000 and 7000 ms) - Self: Talk 0 // "),
(@ENTRY, 0, 1, 0, 60, 0, 100, 1, 39000, 39000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Every 0 and 0 ms (for the first time, timer between 39000 and 39000 ms) - Self: Talk 1 // ");
UPDATE `creature_template` SET `InhabitType`= 1 WHERE `entry`= 36057;
DELETE FROM `creature_sparring_template` WHERE `AttackerEntry` IN (36057, 35229, 41015, 35627);
INSERT INTO `creature_sparring_template` (`AttackerEntry`, `VictimEntry`, `HealthLimitPct`) VALUES
(36057, 35229, 90.0),
(35229, 36057, 90.0),
(35229, 35317, 100.0),
(41015, 35627, 90.0),
(35627, 41015, 90.0);
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_gen_throw_torch');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(67063, 'spell_gen_throw_torch');
UPDATE `creature_addon` SET `emote`= 385 WHERE `guid`= 377296;
UPDATE `creature_addon` SET `emote`= 214 WHERE `guid`= 377414;
DELETE FROM `creature` WHERE `guid` IN (377447, 377448);
DELETE FROM `creature_addon` WHERE `guid` IN (377447, 377448);
-- Creature Northgate Rebel 41015 SAI
SET @ENTRY := 41015;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 1, 0, 100, 0, 0, 0, 2000, 2000, 49, 0, 0, 0, 0, 0, 0, 11, 35627, 0, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 0 and 0 ms (and later repeats every 2000 and 2000 ms) - Self: Attack Creature Frenzied Stalker (35627) in 0 yd // ");
UPDATE `creature_template` SET `VehicleID`= 1025, `speed_run`= 1.28571, `spell1`= 67063, `ScriptName`= 'npc_crowleys_horse' WHERE `entry`= 44428;
-- Creature Lord Darius Crowley 35566 SAI
SET @ENTRY := 35566;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 1, 20, 0, 100, 0, 14222, 0, 0, 0, 85, 98274, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "When player rewards quest 14222 - Invoker: Cast spell 98274 to Action invoker // "),
(@ENTRY, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 85, 68630, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, " Linked - Invoker: Cast spell 68630 to Action invoker // "),
(@ENTRY, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 85, 72788, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, " Linked - Invoker: Cast spell 72788 to Action invoker // ");
@@ -1,43 +0,0 @@
-- Creature Celestine of the Harvest 35873 SAI
SET @ENTRY := 35873;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 13236, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On reset (e.g. after reaching home) - Self: Cast spell 13236 on Self // ");
-- Creature Vitus Darkwalker 35869 SAI
SET @ENTRY := 35869;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 45104, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On reset (e.g. after reaching home) - Self: Cast spell 45104 on Self // ");
-- Creature Bloodfang Lurker 35463 SAI
SET @ENTRY := 35463;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 1, 2, 0, 100, 1, 0, 30, 0, 0, 11, 8599, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When health between 0% and 30% (check every 0 - 0 ms) - Self: Cast spell 8599 on Self // Bloodfang Lurker - Between 0-30% Health - Cast 'Enrage' (No Repeat)"),
(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Talk 0 // Bloodfang Lurker - Between 0-30% Health - Say Line 0 (No Repeat)"),
(@ENTRY, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On respawn - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 5916, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Cast spell 5916 on Self // Bloodfang Lurker - On Respawn - Cast 'Shadowstalker Stealth' (No Repeat)"),
(@ENTRY, 0, 4, 5, 7, 0, 100, 1, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On evade - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 5916, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Cast spell 5916 on Self // Bloodfang Lurker - On Evade - Cast 'Shadowstalker Stealth' (No Repeat)"),
(@ENTRY, 0, 6, 0, 4, 0, 100, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On aggro - Self: Set react state to REACT_AGGRESSIVE // "),
(@ENTRY, 0, 7, 0, 8, 0, 100, 0, 67805, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On spell 67805 hit - Self: Attack Action invoker // ");
UPDATE `creature_addon` SET `auras`= '' WHERE `guid`= 376841;
-- Creature Celestine of the Harvest 44459 SAI
SET @ENTRY := 44459;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 13236, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On reset (e.g. after reaching home) - Self: Cast spell 13236 on Self // ");
-- Creature Vitus Darkwalker 44469 SAI
SET @ENTRY := 44469;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 45104, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On reset (e.g. after reaching home) - Self: Cast spell 45104 on Self // ");
@@ -1,7 +0,0 @@
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_dru_eclipse_mastery_driver_passive';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(79577, 'spell_dru_eclipse_mastery_driver_passive');
DELETE FROM `spell_proc` WHERE `SpellID`= 79577;
INSERT INTO `spell_proc` (`SpellID`, `SpellFamilyName`, `SpellFamilyMask0`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`) VALUES
(79577, 0, 0, 0x00010000, 1, 1);
@@ -1,5 +0,0 @@
-- Add Pet trainer scriptname to pet trainer in stormwind
UPDATE `creature_template` SET `ScriptName`= 'npc_pet_trainer' WHERE `entry`= 44251;
-- druid's natures grace should have a 60 seconds cooldown and should proc on cast, not on hit
UPDATE `spell_proc` SET `SpellPhaseMask`= 1, `Cooldown`= 60000, `HitMask`= 12287 WHERE `SpellId`= -16880;
@@ -1,74 +0,0 @@
-- Assign scriptname to instance
UPDATE `instance_template` SET `script`= 'instance_grim_batol' WHERE `map`= 670;
-- Template Updates
UPDATE `creature_template` SET `scriptname`= 'boss_general_umbriss', `flags_extra`= `flags_extra`| 0x40000000 WHERE `entry`= 39625;
UPDATE `creature_template` SET `minlevel`= 87, `maxlevel`= 87, `BaseAttackTime`= 1500, `unit_flags`= 67141696, `lootid`= 48337, `mechanic_immune_mask`= 617299839, `flags_extra`= `flags_extra`| 0x40000000 WHERE `entry`= 48337;
-- Blitz / Ground Siege
UPDATE `creature_template` SET `faction`= 35, `unit_flags`= 33554688, `flags_extra`= 131 WHERE `entry` IN (40040, 40030);
-- Remove db side spawned Malignant Trogg
DELETE FROM `creature` WHERE `guid`= 340015;
DELETE FROM `creature_addon` WHERE `guid`= 340015;
-- Texts
DELETE FROM `creature_text` WHERE `CreatureID`= 39625;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(39625, 0, 0, 'Cover the rear! Alexstrasza''s brood decimate our ranks!', 14, 0, 100, 0, 0, 18537, 40642, 'General Umbriss'),
(39625, 0, 1, 'Reinforce the front! We are being invaded!', 14, 0, 100, 0, 0, 18536, 40640, 'General Umbriss'),
(39625, 1, 0, 'A million more await my orders. What chance do you have?', 14, 0, 100, 0, 0, 18530, 47784, 'General Umbriss to Player'),
(39625, 2, 0, 'Attack you cowardly vermin!', 14, 0, 100, 0, 0, 18535, 47799, 'General Umbriss'),
(39625, 2, 1, 'Vermin, your dinner awaits!', 14, 0, 100, 0, 0, 18531, 47785, 'General Umbriss'),
(39625, 3, 0, 'Messy...', 14, 0, 100, 0, 0, 18532, 47786, 'General Umbriss'),
(39625, 4, 0, '|TInterface\\Icons\\ability_warrior_charge.blp:20|tGeneral Umbriss sets his eyes on |cFFFF0000$n|r and begins to cast |cFFFF0000|Hspell:74670|h[Blitz]|h|r!', 41, 0, 100, 0, 0, 0, 39994, 'General Umbriss to Player'),
(39625, 5, 0, '|TInterface\\Icons\\spell_nature_earthquake.blp:20|tGeneral Umbriss begins to cast |cFFFF0000|Hspell:74634|h[Ground Siege]|h|r!', 41, 0, 100, 0, 0, 0, 50666, 'General Umbriss to Ground Siege'),
(39625, 6, 0, '%s goes into a frenzy!', 41, 0, 100, 0, 0, 0, 10645, 'General Umbriss');
-- Spell scriptnames
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_umbriss_summon_blitz_trigger',
'spell_umbriss_summon_ground_siege_trigger',
'spell_umbriss_bleeding_wound',
'spell_umbriss_modguds_malice');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(74668, 'spell_umbriss_summon_blitz_trigger'),
(74640, 'spell_umbriss_summon_ground_siege_trigger'),
(74846, 'spell_umbriss_bleeding_wound'),
(91937, 'spell_umbriss_bleeding_wound'),
(74699, 'spell_umbriss_modguds_malice'),
(90169, 'spell_umbriss_modguds_malice');
DELETE FROM `conditions` WHERE `SourceEntry` IN (74670, 90250, 74634, 90249, 90170) AND `SourceTypeOrReferenceId`= 13;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES
(13, 1, 74670, 0, 0, 31, 0, 3, 40040, 0, 0, 0, '', 'Blitz - Target Blitz Stalker'),
(13, 1, 90250, 0, 0, 31, 0, 3, 40040, 0, 0, 0, '', 'Blitz - Target Blitz Stalker'),
(13, 1, 74634, 0, 0, 31, 0, 3, 40030, 0, 0, 0, '', 'Ground Siege - Target Ground Siege Stalker'),
(13, 1, 90249, 0, 0, 31, 0, 3, 40030, 0, 0, 0, '', 'Ground Siege - Target Ground Siege Stalker'),
(13, 1, 90170, 0, 0, 31, 0, 3, 39625, 0, 0, 0, '', 'Modgud''s Malice - Target General Umbriss'),
(13, 2, 90170, 0, 0, 31, 0, 3, 39625, 0, 0, 0, '', 'Modgud''s Malice - Target General Umbriss'),
(13, 4, 90170, 0, 0, 31, 0, 3, 45467, 0, 0, 0, '', 'Modgud''s Malice - Target Trogg Dweller');
-- Creature Malignant Trogg 39984 SAI
SET @ENTRY := 39984;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 1, 0, 100, 1, 3000, 3000, 0, 0, 49, 0, 0, 0, 0, 0, 0, 18, 100, 0, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 3000 and 3000 ms (and later repeats every 0 and 0 ms) - Self: Attack Players in 100 yards // "),
(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 6000, 7000, 6000, 7000, 11, 76507, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 6000 and 7000 ms (and later repeats every 6000 and 7000 ms) - Self: Cast spell 76507 on Victim // ");
DELETE FROM `creature_template_addon` WHERE `entry`= 48350;
INSERT INTO `creature_template_addon` (`entry`, `bytes2`, `auras`) VALUES
(48350, 1, 74699);
-- Creature Trogg Dweller 45467 SAI
SET @ENTRY := 45467;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 1, 0, 100, 1, 3000, 3000, 0, 0, 49, 0, 0, 0, 0, 0, 0, 18, 100, 0, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 3000 and 3000 ms (and later repeats every 0 and 0 ms) - Self: Attack Players in 100 yards // "),
(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 6000, 7000, 6000, 7000, 11, 76507, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 6000 and 7000 ms (and later repeats every 6000 and 7000 ms) - Self: Cast spell 76507 on Victim // ");
-- Remove pathfinding from troggs since they have to pass ugly terrain
UPDATE `creature_template` SET `flags_extra`= `flags_extra` | 0x20000000 WHERE `entry` IN (45467, 39984, 48350, 48348);
@@ -1 +0,0 @@
UPDATE `playercreateinfo_skills` SET `classMask`= `classMask` | 1024 WHERE `skill`= 16;
@@ -1,10 +0,0 @@
UPDATE `creature_template` SET `InhabitType`= 8 WHERE `entry`= 44199;
-- Creature Rampaging Worgen 34884 SAI
SET @ENTRY := 34884;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 1, 2, 0, 100, 1, 0, 30, 0, 0, 11, 8599, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When health between 0% and 30% (check every 0 - 0 ms) - Self: Cast spell 8599 on Self // Rampaging Worgen - Between 0-30% Health - Cast 'Enrage' (No Repeat)"),
(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Talk 0 // Rampaging Worgen - Between 0-30% Health - Say Line 0 (No Repeat)"),
(@ENTRY, 0, 2, 0, 1, 0, 100, 0, 0, 0, 3000, 3000, 49, 0, 0, 0, 0, 0, 0, 11, 34916, 15, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 0 and 0 ms (and later repeats every 3000 and 3000 ms) - Self: Attack Creature Gilneas City Guard (34916) in 15 yd // ");
@@ -1 +0,0 @@
DELETE FROM `spell_learn_spell` WHERE `entry`= 87840 AND `SpellID`= 33388;
@@ -1,11 +0,0 @@
DELETE FROM `spell_learn_spell` WHERE `entry` IN (34428);
INSERT INTO `spell_learn_spell` (`entry`, `SpellID`, `Active`) VALUES
(34428, 32215, 1);
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_dru_natures_grace',
'spell_dru_solar_beam');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(-16880, 'spell_dru_natures_grace'),
(78675, 'spell_dru_solar_beam');
@@ -1,35 +0,0 @@
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_warl_pet_scaling_01',
'spell_warl_pet_scaling_02',
'spell_warl_pet_scaling_03',
'spell_warl_pet_scaling_04',
'spell_warl_pet_scaling_05',
'spell_warl_pet_passive',
'spell_hun_pet_scaling_01',
'spell_hun_pet_scaling_02',
'spell_hun_pet_scaling_03',
'spell_hun_pet_scaling_04',
'spell_hun_pet_scaling_05',
'spell_hun_pet_passive_crit',
'spell_dk_pet_scaling_01',
'spell_dk_pet_scaling_02',
'spell_dk_pet_scaling_03',
'spell_dk_crit');
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
(34947,'spell_warl_pet_scaling_01'),
(34956,'spell_warl_pet_scaling_02'),
(34957,'spell_warl_pet_scaling_03'),
(34958,'spell_warl_pet_scaling_04'),
(61013,'spell_warl_pet_scaling_05'),
(35695,'spell_warl_pet_passive'),
(34902,'spell_hun_pet_scaling_01'),
(34903,'spell_hun_pet_scaling_02'),
(34904,'spell_hun_pet_scaling_03'),
(61017,'spell_hun_pet_scaling_04'),
(89446,'spell_hun_pet_scaling_05'),
(19591,'spell_hun_pet_passive_crit'),
(54566,'spell_dk_pet_scaling_01'),
(51996,'spell_dk_pet_scaling_02'),
(61697,'spell_dk_pet_scaling_03'),
(110474,'spell_dk_crit');
@@ -1,15 +0,0 @@
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_mage_flame_orb',
'spell_mage_flame_orb_aoe_dummy');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(82731, 'spell_mage_flame_orb'), -- Flame Orb
(92283, 'spell_mage_flame_orb'), -- Frostfire Orb
(82734, 'spell_mage_flame_orb_aoe_dummy'),
(84718, 'spell_mage_flame_orb_aoe_dummy');
UPDATE `creature_template` SET `minlevel`= 74, `maxlevel`= 74, `faction`= 5, `unit_flags`= 33556552, `unit_flags2`= 32768, `HoverHeight`= 2, `flags_extra`= 2, `speed_walk`= 1, `ScriptName`= 'npc_mage_orb' WHERE `entry` IN (44214, 45322);
DELETE FROM `creature_template_addon` WHERE `entry` IN (44214, 45322);
INSERT INTO `creature_template_addon` (`entry`, `bytes1`) VALUES
(44214, 33554432),
(45322, 33554432);
@@ -1,18 +0,0 @@
UPDATE `creature_template` SET `VehicleId`=2237 WHERE `entry`= 62454;
-- Creature Fel Soldier 18944 SAI
SET @ENTRY := 18944;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 29, 1, 120, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, "On data 1 set to 1 - Self: Follow Owner/Summoner by distance 1, angle 120 // Fel Soldier - On Data Set - Follow"),
(@ENTRY, 0, 1, 0, 38, 0, 100, 0, 2, 2, 0, 0, 29, 6, 120, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, "On data 2 set to 2 - Self: Follow Owner/Summoner by distance 6, angle 120 // Fel Soldier - On Data Set - Follow"),
(@ENTRY, 0, 2, 0, 38, 0, 100, 0, 3, 3, 0, 0, 29, 1, 240, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, "On data 3 set to 3 - Self: Follow Owner/Summoner by distance 1, angle 240 // Fel Soldier - On Data Set - Follow"),
(@ENTRY, 0, 3, 0, 38, 0, 100, 0, 4, 4, 0, 0, 29, 6, 240, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, "On data 4 set to 4 - Self: Follow Owner/Summoner by distance 6, angle 240 // Fel Soldier - On Data Set - Follow"),
(@ENTRY, 0, 4, 5, 54, 0, 100, 0, 0, 0, 0, 0, 11, 51347, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On just summoned - Self: Cast spell 51347 on Self // Fel Soldier - On Reset - Cast Teleport Visual Only"),
(@ENTRY, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Set walk // Fel Soldier - On Respawn - Set Run False"),
(@ENTRY, 0, 6, 0, 0, 0, 100, 0, 3000, 12000, 9000, 15000, 11, 15496, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 3000 and 12000 ms (and later repeats every 9000 and 15000 ms) - Self: Cast spell 15496 on Victim // Fel Soldier - In Combat - Cast Cleave"),
(@ENTRY, 0, 7, 0, 0, 0, 100, 0, 6000, 20000, 16000, 33000, 11, 32009, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 6000 and 20000 ms (and later repeats every 16000 and 33000 ms) - Self: Cast spell 32009 on Victim // Fel Soldier - In Combat - Cast Cutdown"),
(@ENTRY, 0, 8, 0, 4, 0, 100, 0, 0, 0, 0, 0, 39, 15, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On aggro - Self: Call for help within 15 yards // Fel Soldier - On Aggro - Call For Help"),
(@ENTRY, 0, 9, 0, 60, 0, 100, 0, 5000, 5000, 5000, 5000, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Every 5000 and 5000 ms (for the first time, timer between 5000 and 5000 ms) - Self: Set home position to current position // Fel Soldier - On Update - Set Home Position"),
(@ENTRY, 0, 10, 0, 1, 0, 100, 0, 1200000, 1200000, 1200000, 1200000, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 1200000 and 1200000 ms (and later repeats every 1200000 and 1200000 ms) - Self: Despawn instantly // ");
@@ -1,31 +0,0 @@
-- Drop SAI and assign scriptname
UPDATE `creature_template` SET `AIName`="", `Scriptname`= 'npc_umbriss_skardyn' WHERE `entry` IN (39984, 45467);
DELETE FROM `smart_scripts` WHERE `entryorguid`=39984 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=45467 AND `source_type`=0;
-- Spell scriptnames
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_umbriss_modguds_malice';
-- Currency Loot
DELETE FROM `creature_onkill_reward` WHERE `creature_id`= 48337;
INSERT INTO `creature_onkill_reward` (`creature_id`, `CurrencyId1`, `CurrencyCount1`) VALUES
(48337, 395, 7000);
-- Loot
-- General Umbriss
UPDATE `creature_template` SET `lootid` = 39625 WHERE `entry` = 39625;
UPDATE `creature_template` SET `lootid` = 48337 WHERE `entry` = 48337;
DELETE FROM `creature_loot_template` WHERE `entry` IN (39625, 48337);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(39625, 56113, 0, 1, 1, 1, 1),
(39625, 56112, 0, 1, 1, 1, 1),
(39625, 56114, 0, 1, 1, 1, 1),
(39625, 56115, 0, 1, 1, 1, 1),
(39625, 56116, 0, 1, 1, 1, 1);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(48337, 56442, 0, 1, 1, 1, 1),
(48337, 56443, 0, 1, 1, 1, 1),
(48337, 56444, 0, 1, 1, 1, 1),
(48337, 56440, 0, 1, 1, 1, 1),
(48337, 56441, 0, 1, 1, 1, 1);
@@ -1,102 +0,0 @@
-- Template Updates
UPDATE `creature_template` SET `Scriptname`= 'boss_forgemaster_throngus', `flags_extra`= `flags_extra`| 0x40000000, `mechanic_immune_mask`= 617299839 WHERE `entry`= 40177;
UPDATE `creature_template` SET `flags_extra`= `flags_extra`| 0x40000000 | 1, `mechanic_immune_mask`= 617299839, `minlevel`= 87, `maxlevel`= 87 WHERE `entry`= 48702;
-- Cave In Stalker
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 7, `unit_flags`= 34078720, `flags_extra`= 131, `ScriptName`= 'npc_throngus_cave_in' WHERE `entry`= 40228;
-- Fixate Stalker
UPDATE `creature_template` SET `minlevel`= 80, `maxlevel`= 80, `faction`= 35, `unit_flags`= 33554432, `flags_extra`= 128 WHERE `entry`= 40255;
-- Fire Patch
UPDATE `creature_template` SET `minlevel`= 80, `maxlevel`= 80, `faction`= 7, `unit_flags`= 33554432, `flags_extra`= 128 WHERE `entry`= 48711;
-- Template Addons
DELETE FROM `creature_template_addon` WHERE `entry` IN (40228, 48711);
INSERT INTO `creature_template_addon` (`entry`, `auras`) VALUES
(40228, '74990'),
(48711, '90752');
-- Spells
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_throngus_mighty_stomp',
'spell_throngus_pick_weapon',
'spell_throngus_flame_arrow_barrage',
'spell_throngus_flaming_arrow',
'spell_throngus_personal_phalanx',
'spell_throngus_personal_phalanx_aoe',
'spell_throngus_fixate_effect',
'spell_throngus_burning_dual_blades',
'spell_throngus_disorienting_roar',
'spell_throngus_encumbered',
'spell_throngus_impaling_slam');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(74984, 'spell_throngus_mighty_stomp'),
(75000, 'spell_throngus_pick_weapon'),
(74945, 'spell_throngus_flame_arrow_barrage'),
(74944, 'spell_throngus_flaming_arrow'),
(90810, 'spell_throngus_flaming_arrow'),
(74908, 'spell_throngus_personal_phalanx'),
(74914, 'spell_throngus_personal_phalanx_aoe'),
(75071, 'spell_throngus_fixate_effect'),
(74981, 'spell_throngus_burning_dual_blades'),
(90738, 'spell_throngus_burning_dual_blades'),
(74976, 'spell_throngus_disorienting_roar'),
(90737, 'spell_throngus_disorienting_roar'),
(75007, 'spell_throngus_encumbered'),
(90729, 'spell_throngus_encumbered'),
(75056, 'spell_throngus_impaling_slam'),
(90756, 'spell_throngus_impaling_slam');
-- Texts
DELETE FROM `creature_text` WHERE `CreatureID`= 40177;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(40177, 0, 0, 'NO! Throngus get whipped again if he no finish!', 14, 0, 100, 0, 0, 18943, 47777, 'Forgemaster Throngus - Say Aggro'),
(40177, 1, 0, 'You not get through defenses!', 14, 0, 100, 0, 0, 18947, 47781, 'Forgemaster Throngus - Say Personal Phalanx'),
(40177, 2, 0, 'Oh, this gonna HURT!', 14, 0, 100, 53, 0, 18949, 47782, 'Forgemaster Throngus - Say Mace'),
(40177, 3, 0, 'Throngus SLICE you up!', 14, 0, 100, 0, 0, 18948, 47783, 'Forgemaster Throngus - Say Swords'),
(40177, 4, 0, '|TInterface\\Icons\\inv_shield_76.blp:20|t%s equips his |cFFFF0000Shield|r and gains |cFFFF0000|Hspell:74908|h[Personal Phalanx]|h|r!', 41, 0, 100, 0, 0, 0, 40747, 'Forgemaster Throngus - Announce Personal Phalanx'),
(40177, 5, 0, '|TInterface\\Icons\\inv_mace_15.blp:20|t%s equips his |cFFFF0000Mace|r and is |cFFFF0000|Hspell:75007|h[Encumbered]|h|r!', 41, 0, 100, 53, 0, 0, 40239, 'Forgemaster Throngus - Announce Mace'),
(40177, 6, 0, '|TInterface\\Icons\\ability_dualwield.blp:20|t%s equips his |cFFFF0000Swords|r and gains |cFFFF0000|Hspell:74981|h[Dual Blades]|h|r!', 41, 0, 100, 0, 0, 0, 40746, 'Forgemaster Throngus - Announce Swords'),
(40177, 7, 0, '$n is impaled!', 41, 0, 100, 0, 0, 0, 30718, 'Forgemaster Throngus - Announce Impaled'),
(40177, 8, 0, 'Throngus use your corpse on body. Somewhere...', 14, 0, 100, 0, 0, 18944, 47778, 'Forgemaster Throngus - Slay 1'),
(40177, 8, 1, 'You break easy!', 14, 0, 100, 0, 0, 18945, 47779, 'Forgemaster Throngus - Slay 2'),
(40177, 9, 0, 'Death... Good choice. Not best choice maybe, but better than fail and live.', 14, 0, 100, 0, 0, 18946, 47780, 'Forgemaster Throngus to Player');
-- Conditions
DELETE FROM `conditions` WHERE `SourceEntry` IN (74945, 75071) AND `SourceTypeOrReferenceId`= 13;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES
(13, 1, 74945, 0, 0, 31, 0, 3, 40197, 0, 0, 0, '', 'Flame Arrow Barrage - Target Twilight Archer'),
(13, 1, 75071, 0, 0, 31, 0, 3, 40255, 0, 0, 0, '', 'Fixate Effect - Target Fixate Stalker');
-- Proc Entries
DELETE FROM `spell_proc` WHERE `SpellId` IN (74981, 90738, 74976, 90737, 90759);
INSERT INTO `spell_proc` (`SpellId`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `Cooldown`) VALUES
(74981, 0x00000004, 1, 0, 8400),
(90738, 0x00000004, 1, 0, 8400),
(90759, 0x00000004, 1, 0, 2000);
INSERT INTO `spell_proc` (`SpellId`, `SchoolMask`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`) VALUES
(74976, 1|2|4|8|16|32|64, 0x00015510, 7, 1, 0),
(90737, 1|2|4|8|16|32|64, 0x00015510, 7, 1, 0);
DELETE FROM `creature_onkill_reward` WHERE `creature_id` IN (40177, 48702);
INSERT INTO `creature_onkill_reward` (`creature_id`, `CurrencyId1`, `CurrencyCount1`) VALUES
(40177, 395, 3500),
(48702, 395, 7000);
UPDATE `creature_template` SET `lootid`= 40177 WHERE `entry`= 40177;
UPDATE `creature_template` SET `lootid`= 48702 WHERE `entry`= 48702;
DELETE FROM creature_loot_template WHERE entry IN (40177, 48702);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(40177, 56119, 0, 1, 1, 1, 1),
(40177, 56118, 0, 1, 1, 1, 1),
(40177, 56120, 0, 1, 1, 1, 1),
(40177, 56121, 0, 1, 1, 1, 1),
(40177, 56122, 0, 1, 1, 1, 1);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(48702, 56448, 0, 1, 1, 1, 1),
(48702, 56447, 0, 1, 1, 1, 1),
(48702, 56445, 0, 1, 1, 1, 1),
(48702, 56449, 0, 1, 1, 1, 1),
(48702, 56446, 0, 1, 1, 1, 1);
@@ -1,86 +0,0 @@
-- Template Updates
-- Drahga Shadowburner
UPDATE `creature_template` SET `mechanic_immune_mask`= 667893759, `ScriptName`= 'boss_drahga_shadowburner' WHERE `entry`= 40319;
UPDATE `creature_template` SET `mechanic_immune_mask`= 667893759, `minlevel`= 87, `maxlevel`= 87, `flags_extra`= 1 WHERE `entry`= 48784;
-- Invocation of Flame Stalker
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `unit_flags`= 33554432, `flags_extra`= 131 WHERE `entry`= 40355;
-- Valiona
UPDATE `creature_template` SET `InhabitType`= 5, `mechanic_immune_mask`= 667893759, `VehicleId`= 737, `flags_extra`= `flags_extra`|0x00000200, `scriptname`= 'npc_drahga_valiona' WHERE `entry`= 40320;
UPDATE `creature_template` SET `minlevel`= 87, `maxlevel`= 87, `InhabitType`= 7, `mechanic_immune_mask`= 667893759, `VehicleId`= 737, `flags_extra`= `flags_extra`|0x00000200 WHERE `entry`= 48801;
-- Seeping Twilight
UPDATE `creature_template` SET `unit_flags`= 33554432, `flags_extra`= 131 WHERE `entry`= 40365;
-- Devouring Flames
UPDATE `creature_template` SET `unit_flags`= 33554432, `flags_extra`= 131 WHERE `entry`= 48798;
-- Invoked Flaming Spirit
UPDATE `creature_template` SET `scriptname`= 'npc_drahga_invoked_flaming_spirit', `flags_extra`= `flags_extra`|0x00000100|0x00000040|0x40000000, `mechanic_immune_mask`= 1|2|4|16|32|64|128|256|512|1024|2048|4096|8192|65536|8388608, `DamageModifier`= 1 WHERE `entry`= 40357;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `flags_extra`= `flags_extra`|0x00000100|0x00000040|0x40000000, `mechanic_immune_mask`= 1|2|4|16|32|64|128|256|512|1024|2048|4096|8192|65536|8388608, `DamageModifier`= 1 WHERE `entry`= 48785;
-- Correct Drahga's position from own sniff
UPDATE `creature` SET `position_x`= -436.9, `position_y`= -699.6, `position_z`= 268.767, `orientation`= 3.401 WHERE `guid`= 340123;
-- Cleanup
DELETE FROM `creature` WHERE `guid`= 340307;
DELETE FROM `creature_addon` WHERE `guid`= 340307;
-- Template Addons
DELETE FROM `creature_template_addon` WHERE `entry` IN (40355, 40365, 40357, 48785);
INSERT INTO `creature_template_addon` (`entry`, `auras`) VALUES
(40355, '75222 75232'),
(40365, '75318 75274'),
(40357, '75235'),
(48785, '75235');
-- Texts
DELETE FROM `creature_text` WHERE `CreatureID` IN (40320, 40319);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
-- Valiona
(40320, 0, 0, 'If they do not kill you, I will do it myself!', 14, 0, 100, 0, 0, 18523, 47769, 'Valiona - Summoned'),
(40320, 1, 0, '|TInterface\\Icons\\spell_fire_twilightflamebreath.blp:20|t%s begins to cast |cFFFF0000|Hspell:90949|h[Devouring Flames]|h|r!', 41, 0, 100, 0, 0, 0, 48982, 'Valiona - Announce Devouring Flames'),
(40320, 2, 0, 'I will not die for you, Drahga.', 14, 0, 100, 0, 0, 18524, 47768, 'Valiona - Flee'),
-- Drahga
(40319, 1, 0, 'I will burn you from the inside out!', 14, 0, 100, 0, 0, 18610, 47760, 'Drahga Shadowburner - Aggro'),
(40319, 2, 0, '|TInterface\\Icons\\spell_fire_elemental_totem.blp:20|t%s Summons an |cFFFF6F00|Hspell:75218|h[Invocation of Flame]|h|r!', 41, 0, 100, 0, 0, 0, 40465, 'Drahga Shadowburner - Announce Invocation'),
(40319, 3, 0, 'BY FIRE BE... BURNED!', 14, 0, 100, 0, 0, 18619, 47766, 'Drahga Shadowburner - Invocation 1'),
(40319, 3, 1, 'INCINERATE THEM, MINIONS!', 14, 0, 100, 0, 0, 18616, 47765, 'Drahga Shadowburner - Invocation 2'),
(40319, 4, 0, 'Dragon, you will do as I command! Catch me!', 14, 0, 100, 22, 0, 18621, 47767, 'Drahga Shadowburner - Valiona Intro'),
(40319, 5, 0, 'You should have come better prepared!', 14, 0, 100, 0, 0, 18612, 47762, 'Drahga Shadowburner - Slay 1'),
(40319, 5, 1, 'An easy kill!', 14, 0, 100, 0, 0, 18611, 47761, 'Drahga Shadowburner - Slay 2'),
(40319, 6, 0, 'Valiona, finish them! Avenge me!', 14, 0, 100, 0, 0, 18614, 47764, 'Drahga Shadowburner - Death');
-- Conditions
DELETE FROM `conditions` WHERE `SourceEntry`= 90950;
INSERT INTO conditions (SourceTypeOrReferenceId, SourceGroup, SourceEntry, SourceId, ElseGroup, ConditionTypeOrReference, ConditionTarget, ConditionValue1, ConditionValue2, ConditionValue3, NegativeCondition, ErrorType, ScriptName, Comment) VALUES
(13, 1, 90950, 0, 0, 31, 0, 3, 48798, 0, 0, 0, '', 'Devouring Flames - Target Devouring Flames Stalker');
-- Spell Scripts
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_drahga_burning_shadowbolt',
'spell_drahga_devouring_flames_aoe');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(75245, 'spell_drahga_burning_shadowbolt'),
(90915, 'spell_drahga_burning_shadowbolt'),
(90945, 'spell_drahga_devouring_flames_aoe');
-- Currency Loot
DELETE FROM `creature_onkill_reward` WHERE `creature_id` IN (40319, 48784);
INSERT INTO `creature_onkill_reward` (`creature_id`, `CurrencyId1`, `CurrencyCount1`) VALUES
(40319, 395, 3500),
(48784, 395, 7000);
UPDATE `creature_template` SET `lootid`= 40319 WHERE `entry`= 40319;
UPDATE `creature_template` SET `lootid`= 48784 WHERE `entry`= 48784;
DELETE FROM `creature_loot_template` WHERE `Entry` IN (40319, 48784);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(40319, 56126, 0, 1, 1, 1, 1),
(40319, 56125, 0, 1, 1, 1, 1),
(40319, 56123, 0, 1, 1, 1, 1),
(40319, 56124, 0, 1, 1, 1, 1),
(40319, 56127, 0, 1, 1, 1, 1);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(48784, 56450, 0, 1, 1, 1, 1),
(48784, 56453, 0, 1, 1, 1, 1),
(48784, 56451, 0, 1, 1, 1, 1),
(48784, 56452, 0, 1, 1, 1, 1),
(48784, 56454, 0, 1, 1, 1, 1);
@@ -1,5 +0,0 @@
DELETE FROM `lfg_dungeon_template` WHERE `dungeonId`= 262;
INSERT INTO `lfg_dungeon_template` (`dungeonId`, `requiredItemLevel`) VALUES
(262, 180);
UPDATE `quest_template` SET `RewardCurrencyCount1`= 2300 WHERE `ID` IN (24788, 24789);
@@ -1,114 +0,0 @@
-- Template Updates
-- Erudax
UPDATE `creature_template` SET `mechanic_immune_mask`= 667893759, `scriptname`= 'boss_erudax', `flags_extra`= `flags_extra`|1073741824 WHERE `entry`= 40484;
UPDATE `creature_template` SET `minlevel`= 87, `maxlevel`= 87, `mechanic_immune_mask`= 667893759, `flags_extra`= `flags_extra`|1073741824 WHERE `entry`= 48822;
-- Faceless Portal Stalker
UPDATE `creature_template` SET `unit_flags`= 33554432, `flags_extra`= 131 WHERE `entry`= 44314;
UPDATE `creature_template_addon` SET `auras`= '' WHERE `entry`= 44314;
-- Shadow Gale Stalker
UPDATE `creature_template` SET `unit_flags`= 33554432, `flags_extra`= 128 WHERE `entry`= 40567;
-- Faceless Corruptor
UPDATE `creature_template` SET `scriptname`= 'npc_erudax_faceless_corruptor', `mechanic_immune_mask`= 634339327, `flags_extra`= 1073741824 WHERE `entry` IN (40600, 48844);
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `flags_extra`= 1073741824 WHERE `entry` IN (48828, 48845);
-- Alexstrasza's Egg
UPDATE `creature_template` SET `RegenHealth`= 0 WHERE `entry`= 40486;
-- Twilight Hatchling
UPDATE `creature_template` SET `InhabitType`= 4 WHERE `entry` IN (39388, 48832);
-- Conditions
DELETE FROM `conditions` WHERE `SourceEntry` IN (75656, 75664, 91086, 75520, 91049, 75763, 91040, 75809) AND `SourceTypeOrReferenceId` = 13;
INSERT INTO `conditions` (SourceTypeOrReferenceId, SourceGroup, SourceEntry, SourceId, ElseGroup, ConditionTypeOrReference, ConditionTarget, ConditionValue1, ConditionValue2, ConditionValue3, NegativeCondition, ErrorType, ScriptName, Comment) VALUES
(13, 1, 75656, 0, 0, 31, 0, 3, 40566, 0, 0, 0, '', 'Shadow Gale Trigger - Target Shadow Gale Controller'),
(13, 1, 75664, 0, 0, 31, 0, 3, 40567, 0, 0, 0, '', 'Shadow Gale - Target Shadow Gale Stalker'),
(13, 1, 91086, 0, 0, 31, 0, 3, 40567, 0, 0, 0, '', 'Shadow Gale - Target Shadow Gale Stalker'),
(13, 1, 75520, 0, 0, 31, 0, 3, 40486, 0, 0, 0, '', 'Twilight Corruption - Target Alexstrasza''s Egg'),
(13, 1, 91049, 0, 0, 31, 0, 3, 40486, 0, 0, 0, '', 'Twilight Corruption - Target Alexstrasza''s Egg'),
(13, 1, 75763, 0, 0, 31, 0, 3, 40484, 0, 0, 0, '', 'Umbral Mending - Target Erduax'),
(13, 1, 91040, 0, 0, 31, 0, 3, 40484, 0, 0, 0, '', 'Umbral Mending - Target Erduax'),
(13, 1, 75809, 0, 0, 31, 0, 3, 40600, 0, 0, 0, '', 'Shield of Nightmares - Target Faceless Corruptor'),
(13, 1, 75809, 0, 1, 31, 0, 3, 48844, 0, 0, 0, '', 'Shield of Nightmares - Target Faceless Corruptor');
DELETE FROM `creature_template_addon` WHERE `entry` IN (39388, 48832);
INSERT INTO `creature_template_addon` (`entry`, `auras`) VALUES
(39388, 76192),
(48832, 91044);
-- Spells
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_erudax_shadow_gale_trigger',
'spell_erudax_shadow_gale',
'spell_erudax_shadow_gale_aura',
'spell_erudax_twilight_corruption');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(75656, 'spell_erudax_shadow_gale_trigger'),
(75692, 'spell_erudax_shadow_gale'),
(91087, 'spell_erudax_shadow_gale'),
(75694, 'spell_erudax_shadow_gale_aura'),
(75520, 'spell_erudax_twilight_corruption'),
(91049, 'spell_erudax_twilight_corruption');
-- Spell Target Positions
DELETE FROM `spell_target_position` WHERE `ID` IN (75704, 91072);
INSERT INTO `spell_target_position` (`ID`, `EffectIndex`, `MapID`, `PositionX`, `PositionY`, `PositionZ`, `Orientation`, `VerifiedBuild`) VALUES
(75704, 0, 670, -620.443, -827.19, 241.8573, 3.184877, 15595),
(91072, 0, 670, -620.443, -827.19, 241.8573, 3.184877, 15595),
(91072, 1, 670, -620.443, -827.19, 241.8573, 3.184877, 15595);
-- Texts
DELETE FROM `creature_text` WHERE `CreatureID`= 40484;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(40484, 0, 0, 'The darkest days are still ahead!', 14, 0, 100, 0, 0, 18638, 47770, 'Erudax - Aggro'),
(40484, 1, 0, '|TInterface\\Icons\\spell_shadow_shadowfury.blp:20|t%s begins to cast |cFFA043E7|Hspell:75694|h[Shadow Gale]|h|r!', 41, 0, 100, 0, 0, 0, 40609, 'Erudax - Announce Shadow Gale'),
(40484, 2, 0, 'F\'lakh ghet! The shadow\'s hunger cannot be sated!', 14, 0, 100, 0, 0, 18644, 47774, 'Erudax - Shadow Gale'),
(40484, 3, 0, 'Come, suffering... Enter, chaos!', 14, 0, 100, 0, 0, 18646, 40612, 'Erudax to Erudax'),
(40484, 4, 0, '%s summons a |cFFFF0000Faceless Guardian|r!', 41, 0, 100, 0, 0, 0, 0, 'Erudax to Erudax'),
(40484, 5, 0, '|TInterface\\Icons\\spell_shadow_sacrificialshield.blp:20|t%s begins to cast |cFF006EFD|Hspell:75809|h[Shield of Nightmares]|h|r on the |cFF006EFDFaceless Corruptor|r!', 41, 0, 100, 0, 0, 0, 40610, 'Erudax - Shield of Nightmares'),
(40484, 6, 0, 'Flesh for the offering!', 14, 0, 100, 0, 0, 18640, 47772, 'Erudax - Slay 1'),
(40484, 6, 1, 'Ahahaha!', 16, 0, 100, 0, 0, 18639, 47771, 'Erudax - Slay 2'),
(40484, 7, 0, 'Ywaq maq oou; ywaq maq ssaggh. Yawq ma shg\'fhn.', 14, 0, 100, 0, 0, 18641, 47773, 'Erudax - Death');
-- Achiement
DELETE FROM `achievement_criteria_data` WHERE `criteria_id`= 16001;
INSERT INTO `achievement_criteria_data` (`criteria_id`, `type`, `value1`, `value2`, `ScriptName`) VALUES
(16001, 11, 0, 0, 'achievement_dont_need_to_break_eggs');
-- Currency Loot
DELETE FROM `creature_onkill_reward` WHERE `creature_id` IN (40484, 48822);
INSERT INTO `creature_onkill_reward` (`creature_id`, `CurrencyId1`, `CurrencyCount1`) VALUES
(40484, 395, 3500),
(48822, 395, 7000);
-- Loot
UPDATE `creature_template` SET `lootid`= 40484 WHERE `entry`= 40484;
UPDATE `creature_template` SET `lootid`= 48822 WHERE `entry`= 48822;
DELETE FROM `creature_loot_template` WHERE `entry` IN (40484, 48822);
INSERT INTO `creature_loot_template` (`Entry`, `Reference`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(40484, 404840, 100, 1, 0, 2, 2),
(48822, 488220, 100, 1, 0, 2, 2);
DELETE FROM `reference_loot_template` WHERE `entry` IN (404840, 488220);
INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
-- Normal
(404840, 56133, 0, 1, 1, 1, 1),
(404840, 56128, 0, 1, 1, 1, 1),
(404840, 56135, 0, 1, 1, 1, 1),
(404840, 56129, 0, 1, 1, 1, 1),
(404840, 56136, 0, 1, 1, 1, 1),
(404840, 56138, 0, 1, 1, 1, 1),
(404840, 56132, 0, 1, 1, 1, 1),
(404840, 56130, 0, 1, 1, 1, 1),
(404840, 56131, 0, 1, 1, 1, 1),
(404840, 56137, 0, 1, 1, 1, 1),
-- Heroic
(488220, 56460, 0, 1, 1, 1, 1),
(488220, 56455, 0, 1, 1, 1, 1),
(488220, 56464, 0, 1, 1, 1, 1),
(488220, 56457, 0, 1, 1, 1, 1),
(488220, 56463, 0, 1, 1, 1, 1),
(488220, 56462, 0, 1, 1, 1, 1),
(488220, 56458, 0, 1, 1, 1, 1),
(488220, 56459, 0, 1, 1, 1, 1),
(488220, 56456, 0, 1, 1, 1, 1),
(488220, 56461, 0, 1, 1, 1, 1),
(488220, 52078, 100, 1, 2, 1, 1); -- Chaos Orb
@@ -1,82 +0,0 @@
UPDATE `creature_template` SET `speed_walk`=0.2, `speed_run`=1.142857 WHERE `entry`=49039; -- Glubtok Firewall Platter Creature Level 1b
UPDATE `creature_template` SET `speed_walk`=0.2, `speed_run`=1.142857 WHERE `entry`=48976; -- Glubtok Firewall Platter Creature Level 2a
UPDATE `creature_template` SET `minlevel`=86, `maxlevel`=86 WHERE `entry`=48829; -- Ogre Henchman
UPDATE `creature_template` SET `speed_walk`=0.2, `speed_run`=1.142857 WHERE `entry`=48975; -- Glubtok Firewall Platter Creature Level 1a
UPDATE `creature_template` SET `speed_walk`=0.2, `speed_run`=1.142857 WHERE `entry`=48974; -- Glubtok Firewall Platter
UPDATE `creature_template` SET `speed_walk`=0.2, `speed_run`=1.142857 WHERE `entry`=49041; -- Glubtok Firewall Platter Creature Level 2b
UPDATE `creature_template` SET `speed_walk`=0.2, `speed_run`=1.142857 WHERE `entry`=49040; -- Glubtok Firewall Platter Creature Level 1c
UPDATE `creature_template` SET `speed_walk`=0.2, `speed_run`=1.142857 WHERE `entry`=49042; -- Glubtok Firewall Platter Creature Level 2c
UPDATE `creature_template` SET `BaseAttackTime`=1000 WHERE `entry`=48229; -- Kobold Digger
UPDATE `creature_template` SET `minlevel`=85, `maxlevel`=85, `BaseAttackTime`=1000 WHERE `entry`=48834; -- Kobold Digger
UPDATE `creature_template` SET `minlevel`=86, `maxlevel`=86 WHERE `entry`=48830; -- Ogre Bodyguard
UPDATE `creature_template` SET `minlevel`=85, `maxlevel`=85, `unit_flags2`=0 WHERE `entry`=48835; -- Mining Powder
DELETE FROM `creature` WHERE `id` IN (49039, 48976, 48975, 48974, 49041, 49040, 49042);
DELETE FROM `creature_addon` WHERE `guid` NOT IN (SELECT `guid` FROM `creature`);
UPDATE `creature_template` SET `flags_extra`= 131 WHERE `entry` IN (49039, 48976, 48975, 49041, 49040, 49042);
-- Conditions
DELETE FROM `conditions` WHERE `SourceEntry` IN (89769, 91063, 89697, 91066) AND `SourceTypeOrReferenceId` = 13;
INSERT INTO `conditions` (SourceTypeOrReferenceId, SourceGroup, SourceEntry, SourceId, ElseGroup, ConditionTypeOrReference, ConditionTarget, ConditionValue1, ConditionValue2, ConditionValue3, NegativeCondition, ErrorType, ScriptName, Comment) VALUES
(13, 1, 89769, 0, 0, 31, 0, 3, 48230, 0, 0, 0, '', 'Explode - Target Ogre Henchman'),
(13, 1, 89769, 0, 1, 31, 0, 3, 48284, 0, 0, 0, '', 'Explode - Target Mining Powder'),
(13, 1, 89769, 0, 2, 31, 0, 3, 48229, 0, 0, 0, '', 'Explode - Target Kobold Digger'),
(13, 1, 89769, 0, 3, 31, 0, 3, 48279, 0, 0, 0, '', 'Explode - Target Goblin Overseer'),
(13, 1, 89769, 0, 4, 31, 0, 3, 48338, 0, 0, 0, '', 'Explode - Target Goblin Bunny'),
(13, 1, 89769, 0, 5, 31, 0, 3, 48278, 0, 0, 0, '', 'Explode - Target Mining Monkey'),
(13, 1, 89769, 0, 6, 31, 0, 3, 48445, 0, 0, 0, '', 'Explode - Target Oaf Lackey'),
(13, 1, 89697, 0, 7, 31, 0, 3, 48419, 0, 0, 0, '', 'Explode - Target Defias Miner'),
(13, 1, 89697, 0, 8, 31, 0, 3, 48418, 0, 0, 0, '', 'Explode - Target Defias Envoker'),
(13, 1, 89697, 0, 9, 31, 0, 3, 48421, 0, 0, 0, '', 'Explode - Target Defias Overseer'),
(13, 1, 89697, 0, 10, 31, 0, 3, 48502, 0, 0, 0, '', 'Explode - Target Defias Enforcer'),
(13, 1, 89697, 0, 11, 31, 0, 3, 48417, 0, 0, 0, '', 'Explode - Target Blood Wizard'),
(13, 1, 89697, 0, 12, 31, 0, 3, 48505, 0, 0, 0, '', 'Explode - Target Defias Shadowguard'),
--
(13, 1, 91063, 0, 0, 31, 0, 3, 48230, 0, 0, 0, '', 'Explode - Target Ogre Henchman'),
(13, 1, 91063, 0, 1, 31, 0, 3, 48284, 0, 0, 0, '', 'Explode - Target Mining Powder'),
(13, 1, 91063, 0, 2, 31, 0, 3, 48229, 0, 0, 0, '', 'Explode - Target Kobold Digger'),
(13, 1, 91063, 0, 3, 31, 0, 3, 48279, 0, 0, 0, '', 'Explode - Target Goblin Overseer'),
(13, 1, 91063, 0, 4, 31, 0, 3, 48338, 0, 0, 0, '', 'Explode - Target Goblin Bunny'),
(13, 1, 91063, 0, 5, 31, 0, 3, 48278, 0, 0, 0, '', 'Explode - Target Mining Monkey'),
(13, 1, 91063, 0, 6, 31, 0, 3, 48445, 0, 0, 0, '', 'Explode - Target Oaf Lackey'),
(13, 1, 91063, 0, 7, 31, 0, 3, 48419, 0, 0, 0, '', 'Explode - Target Defias Miner'),
(13, 1, 91063, 0, 8, 31, 0, 3, 48418, 0, 0, 0, '', 'Explode - Target Defias Envoker'),
(13, 1, 91063, 0, 9, 31, 0, 3, 48421, 0, 0, 0, '', 'Explode - Target Defias Overseer'),
(13, 1, 91063, 0, 10, 31, 0, 3, 48502, 0, 0, 0, '', 'Explode - Target Defias Enforcer'),
(13, 1, 91063, 0, 11, 31, 0, 3, 48417, 0, 0, 0, '', 'Explode - Target Defias Blood Wizard'),
(13, 1, 91063, 0, 12, 31, 0, 3, 48505, 0, 0, 0, '', 'Explode - Target Defias Shadowguard'),
--
(13, 1, 89697, 0, 0, 31, 0, 3, 45979, 0, 0, 0, '', 'Cannonball - Target General Purpose Bunny'),
--
(13, 1, 91066, 0, 0, 31, 0, 3, 45979, 0, 0, 0, '', 'Cannonball - Target General Purpose Bunny');
-- Creature Mining Powder 48284 SAI
SET @ENTRY := 48284;
UPDATE `creature_template` SET `AIName`="SmartAI", `flags_extra`= 2 WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 1, 6, 0, 100, 0, 0, 0, 0, 0, 11, 90096, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On death - Self: Cast spell 90096 on Self // "),
(@ENTRY, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 11, 89769, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Cast spell 89769 on Self // "),
(@ENTRY, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 3, 0, 11686, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Morph to model 11686 // ");
-- Creature Kobold Digger 48229 SAI
SET @ENTRY := 48229;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
SET @ENTRY := -375926;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 1, 60, 0, 100, 1, 100, 100, 0, 0, 11, 46598, 0, 0, 0, 0, 0, 10, 375931, 0, 0, 0, 0, 0, 0, "Every 0 and 0 ms (for the first time, timer between 100 and 100 ms) - Self: Cast spell 46598 on Creature Ogre Henchman 48230 (375931) // "),
(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Set react state to REACT_PASSIVE // ");
-- Creature Ogre Henchman 48230 SAI
SET @ENTRY := 48230;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
SET @ENTRY := -375931;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 1, 1, 100, 0, 6500, 6500, 13000, 13000, 5, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 6500 and 6500 ms (and later repeats every 13000 and 13000 ms) - Self: Play emote 16 // "),
(@ENTRY, 0, 1, 0, 1, 1, 100, 0, 8000, 8000, 13000, 13000, 86, 89697, 0, 10, 375933, 0, 0, 10, 375992, 0, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 8000 and 8000 ms (and later repeats every 13000 and 13000 ms) - SMART_TARGET_CREATURE_GUID: Cast spell 89697 at Creature General Purpose Bunny JMF 45979 (375992) // "),
(@ENTRY, 0, 2, 0, 4, 0, 100, 1, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On aggro - Self: Set event phase to 2 // "),
(@ENTRY, 0, 3, 0, 27, 0, 100, 1, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On passenger boarded (vehicle) - Self: Set event phase to 1 // "),
(@ENTRY, 0, 4, 0, 28, 0, 100, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On passenger removed (vehicle) - Action invoker: Set react state to REACT_AGGRESSIVE // ");
@@ -1,105 +0,0 @@
-- Template Updates
-- Glubtok
UPDATE `creature_template` SET `scriptname`= 'boss_glubtok' WHERE `entry`= 47162;
UPDATE `creature_template` SET `minlevel`=87, `maxlevel`=87 WHERE `entry`=48936;
-- General Purpose Bunny JMF Look 2
UPDATE `creature_template` SET `InhabitType`= 4 WHERE `entry`= 47242;
-- General Purpose Bunny JMF
UPDATE `creature_template` SET `InhabitType`= 4 WHERE `entry`= 45979;
-- Glubtok Firewall Platter
UPDATE `creature_template` SET `InhabitType`= 4 WHERE `entry`= 48974;
-- Texts
DELETE FROM `creature_text` WHERE `CreatureID`= 47162;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(47162, 0, 0, 'Glubtok show you da power of de arcane!', 14, 0, 100, 0, 0, 21151, 47256, 'Glubtok to Player'),
(47162, 1, 0, 'Fists of flame!', 14, 0, 100, 0, 0, 21153, 47239, 'Glubtok'),
(47162, 2, 0, 'Fists of frost!', 14, 0, 100, 0, 0, 21156, 47238, 'Glubtok'),
(47162, 3, 0, 'Glubtok ready?', 14, 0, 100, 1, 0, 21154, 47361, 'Glubtok'),
(47162, 4, 0, 'Let''s do it!', 14, 0, 100, 15, 0, 21157, 47362, 'Glubtok'),
(47162, 5, 0, 'ARCANE POWER!!!', 14, 0, 100, 15, 0, 21146, 47363, 'Glubtok'),
(47162, 6, 0, '|TInterface\\Icons\\spell_holy_innerfire.blp:20|t Glubtok creates a moving |cFFFF0000|Hspell:91398|h[Fire Wall]|h|r!', 41, 0, 100, 0, 0, 0, 49155, 'Glubtok'),
(47162, 7, 0, 'TOO...MUCH...POWER!!!', 14, 0, 100, 15, 0, 21145, 47422, 'Glubtok');
-- Conditions
DELETE FROM `conditions` WHERE `SourceEntry` IN (88072, 88093) AND `SourceTypeOrReferenceId`= 13;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES
(13, 1, 88072, 0, 0, 31, 0, 3, 47162, 0, 0, 0, '', 'Arcane Fire Beam - Target Glubtok'),
(13, 1, 88093, 0, 0, 31, 0, 3, 47162, 0, 0, 0, '', 'Arcane Frost Beam - Target Glubtok');
-- Spells
DELETE FROM `spell_proc` WHERE `SpellId` IN (87900, 87897);
INSERT INTO `spell_proc` (`SpellId`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `Cooldown`) VALUES
(87900, 0x00000004, 1, 0, 4000),
(87897, 0x00000004, 1, 0, 4000);
-- Spellclick spells
DELETE FROM `npc_spellclick_spells` WHERE `npc_entry` IN (48974, 48975, 49039, 49040);
INSERT INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `user_type`) VALUES
(48974, 46598, 1, 1),
(48975, 47020, 1, 1),
(49039, 47020, 1, 1),
(49040, 47020, 1, 1);
-- Vehicle Accessory
DELETE FROM `vehicle_template_accessory` WHERE `entry` IN (48974, 48975, 49039, 49040);
INSERT INTO `vehicle_template_accessory` (`entry`, `accessory_entry`, `seat_id`, `minion`, `description`, `summontype`, `summontimer`) VALUES
(48974, 48975, 0, 1, 'Glubtok Firewall Platter', 5, 0),
(48974, 49039, 1, 1, 'Glubtok Firewall Platter', 5, 0),
(48974, 49040, 2, 1, 'Glubtok Firewall Platter', 5, 0),
(48974, 49040, 3, 1, 'Glubtok Firewall Platter', 5, 0),
(48974, 48975, 4, 1, 'Glubtok Firewall Platter', 5, 0),
(48974, 49039, 5, 1, 'Glubtok Firewall Platter', 5, 0),
(48974, 49040, 6, 1, 'Glubtok Firewall Platter', 5, 0),
(48974, 49040, 7, 1, 'Glubtok Firewall Platter', 5, 0),
(49040, 49042, 5, 1, 'Glubtok Firewall Platter Creature Level 1c - Glubtok Firewall Platter Creature Level 2c', 5, 0), -- Glubtok Firewall Platter Creature Level 1c - Glubtok Firewall Platter Creature Level 2c
(49040, 49042, 4, 1, 'Glubtok Firewall Platter Creature Level 1c - Glubtok Firewall Platter Creature Level 2c', 5, 0), -- Glubtok Firewall Platter Creature Level 1c - Glubtok Firewall Platter Creature Level 2c
(49040, 49042, 1, 1, 'Glubtok Firewall Platter Creature Level 1c - Glubtok Firewall Platter Creature Level 2c', 5, 0), -- Glubtok Firewall Platter Creature Level 1c - Glubtok Firewall Platter Creature Level 2c
(49040, 49042, 0, 1, 'Glubtok Firewall Platter Creature Level 1c - Glubtok Firewall Platter Creature Level 2c', 5, 0), -- Glubtok Firewall Platter Creature Level 1c - Glubtok Firewall Platter Creature Level 2c
(49039, 49041, 5, 1, 'Glubtok Firewall Platter Creature Level 1b - Glubtok Firewall Platter Creature Level 2b', 5, 0), -- Glubtok Firewall Platter Creature Level 1b - Glubtok Firewall Platter Creature Level 2b
(49039, 49041, 4, 1, 'Glubtok Firewall Platter Creature Level 1b - Glubtok Firewall Platter Creature Level 2b', 5, 0), -- Glubtok Firewall Platter Creature Level 1b - Glubtok Firewall Platter Creature Level 2b
(49039, 49041, 1, 1, 'Glubtok Firewall Platter Creature Level 1b - Glubtok Firewall Platter Creature Level 2b', 5, 0), -- Glubtok Firewall Platter Creature Level 1b - Glubtok Firewall Platter Creature Level 2b
(49039, 49041, 0, 1, 'Glubtok Firewall Platter Creature Level 1b - Glubtok Firewall Platter Creature Level 2b', 5, 0), -- Glubtok Firewall Platter Creature Level 1b - Glubtok Firewall Platter Creature Level 2b
(48975, 48976, 5, 1, 'Glubtok Firewall Platter Creature Level 1a - Glubtok Firewall Platter Creature Level 2a', 5, 0), -- Glubtok Firewall Platter Creature Level 1a - Glubtok Firewall Platter Creature Level 2a
(48975, 48976, 4, 1, 'Glubtok Firewall Platter Creature Level 1a - Glubtok Firewall Platter Creature Level 2a', 5, 0), -- Glubtok Firewall Platter Creature Level 1a - Glubtok Firewall Platter Creature Level 2a
(48975, 48976, 1, 1, 'Glubtok Firewall Platter Creature Level 1a - Glubtok Firewall Platter Creature Level 2a', 5, 0), -- Glubtok Firewall Platter Creature Level 1a - Glubtok Firewall Platter Creature Level 2a
(48975, 48976, 0, 1, 'Glubtok Firewall Platter Creature Level 1a - Glubtok Firewall Platter Creature Level 2a', 5, 0); -- Glubtok Firewall Platter Creature Level 1a - Glubtok Firewall Platter Creature Level 2a
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_glubtok_blossom_targeting';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(88140, 'spell_glubtok_blossom_targeting');
-- Creature Fire Blossom 48957 SAI
SET @ENTRY := 48957;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 18, 30, 0, 0, 0, 0, 0, 0, "On just summoned - Self: Attack Players in 30 yards // ");
-- Creature Frost Blossom 48957 SAI
SET @ENTRY := 48958;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 18, 30, 0, 0, 0, 0, 0, 0, "On just summoned - Self: Attack Players in 30 yards // ");
-- Currency Loot
DELETE FROM `creature_onkill_reward` WHERE `creature_id`= 48936;
INSERT INTO `creature_onkill_reward` (`creature_id`, `CurrencyId1`, `CurrencyCount1`) VALUES
(48936, 395, 7000);
-- Loot
UPDATE creature_template SET `lootid`= 47162 WHERE `entry`= 47162;
DELETE FROM `creature_loot_template` WHERE `entry` IN (47162, 48936);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(47162, 5195, 0, 1, 1, 1, 1),
(47162, 2169, 0, 1, 1, 1, 1),
(47162, 5194, 0, 1, 1, 1, 1);
UPDATE creature_template SET `lootid`= 48936 WHERE `entry`= 48936;
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(48936, 63467, 0, 1, 1, 1, 1),
(48936, 63468, 0, 1, 1, 1, 1),
(48936, 63471, 0, 1, 1, 1, 1),
(48936, 63470, 0, 1, 1, 1, 1),
(48936, 65163, 0, 1, 1, 1, 1);
@@ -1,5 +0,0 @@
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_umbriss_blitz';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(74670, 'spell_umbriss_blitz'),
(90250, 'spell_umbriss_blitz');
@@ -1,18 +0,0 @@
UPDATE `creature_template` SET `ScriptName`= '' WHERE `entry` IN (22551, 31991, 37310, 22577, 32105, 37426);
UPDATE `creature_template` SET `unit_class`=8 WHERE `entry`=49317;
UPDATE `creature_template` SET `mechanic_immune_mask`=`mechanic_immune_mask`|625950703 WHERE `entry`=48828;
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=49311;
UPDATE `creature_template` SET `unit_class`=2 WHERE `entry`=51088;
UPDATE `creature_template` SET `unit_class`=8 WHERE `entry`=49318;
UPDATE `creature_template` SET `unit_class`=8 WHERE `entry`=49320;
UPDATE `creature_template` SET `unit_class`=2 WHERE `entry`=49324;
UPDATE `creature_template` SET `unit_class`=2 WHERE `entry`=49325;
UPDATE `creature_template` SET `unit_class`=2 WHERE `entry`=49326;
UPDATE `creature_template` SET `unit_class`=2 WHERE `entry`=49328;
UPDATE `creature_template` SET `unit_class`=2 WHERE `entry`=49330;
UPDATE `creature_template` SET `difficulty_entry_1`= 49708 WHERE `entry`= 46962;
UPDATE `creature_template` SET `difficulty_entry_1`= 49711 WHERE `entry`= 46963;
UPDATE `creature_template` SET `unit_flags2`=`unit_flags2` | 2048 WHERE `entry`=48835;
UPDATE `creature_template` SET `flags_extra`=`flags_extra`| 2 WHERE `entry`=48835;
UPDATE `creature` SET `MovementType`= 1 WHERE `id`= 35229 AND `spawndist` <> 0;
DELETE FROM `conditions` WHERE `SourceEntry`= 91052 AND `SourceTypeOrReferenceId`= 13;
@@ -1,187 +0,0 @@
-- Boss Immunities
-- Default immunities except interrupt
UPDATE `creature_template` SET `mechanic_immune_mask`= 80297855 WHERE `entry` IN (46962, 49708, 46964, 49712, 39425, 49262, 39731, 48715, 49624, 42333);
-- Default boss immunities
UPDATE `creature_template` SET `mechanic_immune_mask`= 617299839 WHERE `entry` IN
(46963, 49711, 3887, 49709, 4278, 49710, 43612, 48951, 43614, 49043, 49045, 44819, 51088, 47162, 48936, 47296, 48940,
43778, 48941, 47626, 48943, 47739, 48944, 49429, 39665, 39666, 39679, 39680, 39698, 39699, 39700, 39701, 39705, 39706, 39428, 48714, 39788, 48902, 39587, 48710, 48939);
-- Boss damage
UPDATE `creature_template` SET `DamageModifier`= 121.2 WHERE `entry` IN (44577, 48932, 45378, 43614, 49043, 43612, 48951, 44819, 51088, 39425, 49262, 39428, 48714, 39788, 48902,
39731, 48715, 48710, 39587, 39378, 48815, 39665, 39666, 39679, 39680, 39698, 39699, 39700, 39701, 39705, 39706, 43878, 43879, 43873, 43874, 43875, 43876, 48936, 48940, 48941, 48943,
48944, 49429, 49708, 49709, 49710, 49711, 49712, 43438, 49642, 43214, 49538, 42188, 49654, 42333, 49624, 39732, 48776, 40320, 48801, 48939);
-- Specific updates
-- Temple Guardian Anhuur HC updates
UPDATE `creature_template` SET `difficulty_entry_1`= 48902 WHERE `entry`= 39425;
UPDATE `creature_template` SET `minlevel`= 87, `maxlevel`= 87, `faction`= 16, `speed_walk`= 2, `speed_run`= 1.42857, `unit_flags`= 2048, `movementId`= 151 WHERE `entry`= 49262;
-- Anraphet HC updates
UPDATE `creature_template` SET `difficulty_entry_1`= 48902 WHERE `entry`= 39788;
UPDATE `creature_template` SET `minlevel`= 87, `maxlevel`= 87, `faction`= 16, `speed_walk`= 1.6, `unit_flags`= 33555008, `movementId`= 167 WHERE `entry`= 48902;
-- Ammunae HC updates
UPDATE `creature_template` SET `difficulty_entry_1`= 48715 WHERE `entry`= 39731;
UPDATE `creature_template` SET `minlevel`= 87, `maxlevel`= 87, `faction`= 16, `speed_walk`= 2, `speed_run`= 1.42857, `unit_flags`= 32832, `VehicleId`= 758, `movementId`= 151 WHERE `entry`= 48715;
-- Isiset HC updates
UPDATE `creature_template` SET `difficulty_entry_1`= 48710 WHERE `entry`= 39587;
UPDATE `creature_template` SET `minlevel`= 87, `maxlevel`= 87, `faction`= 16, `speed_walk`= 2, `speed_run`= 1.42857, `unit_flags`= 32832, `movementId`= 151 WHERE `entry`= 48710;
-- Setesh HC updates
UPDATE `creature_template` SET `difficulty_entry_1`= 48776 WHERE `entry`= 39732;
UPDATE `creature_template` SET `minlevel`= 87, `maxlevel`= 87, `faction`= 16, `speed_walk`= 2.8, `speed_run`= 1.42857, `unit_flags`= 32832, `movementId`= 154 WHERE `entry`= 48776;
-- Currency loot
DELETE FROM `creature_onkill_reward` WHERE `creature_id` IN (39425, 39788, 39428, 39731, 39587, 39732, 39378, 43614, 44577, 43612, 44819);
INSERT INTO `creature_onkill_reward` (`creature_id`, `CurrencyId1`, `CurrencyCount1`) VALUES
-- 35 Justice Points
(39425, 395, 3500),
(39788, 395, 3500),
(39428, 395, 3500),
(39731, 395, 3500),
(39587, 395, 3500),
(39732, 395, 3500),
(39378, 395, 3500),
(43614, 395, 3500),
(44577, 395, 3500),
(43612, 395, 3500),
(44819, 395, 3500);
-- Loot
-- Corborus
UPDATE `creature_template` SET `difficulty_entry_1`= 49642, `lootid`= 43438 WHERE `entry`= 43438;
DELETE FROM `creature_loot_template` WHERE entry IN (43438, 49642);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(43438, 55793, 0, 1, 1, 1, 1),
(43438, 55792, 0, 1, 1, 1, 1),
(43438, 55794, 0, 1, 1, 1, 1),
(43438, 55795, 0, 1, 1, 1, 1),
(43438, 55796, 0, 1, 1, 1, 1);
UPDATE `creature_template` SET `lootid`= 49642 WHERE `entry`= 49642;
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(49642, 56331, 0, 1, 1, 1, 1),
(49642, 56330, 0, 1, 1, 1, 1),
(49642, 56332, 0, 1, 1, 1, 1),
(49642, 56328, 0, 1, 1, 1, 1),
(49642, 56329, 0, 1, 1, 1, 1);
-- Slabhide
UPDATE `creature_template` SET `difficulty_entry_1`= 49538, `lootid`= 43214 WHERE `entry`= 43214;
DELETE FROM `creature_loot_template` WHERE `entry` IN (43214, 49538);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(43214, 63043, 0.1, 1, 2, 1, 1), -- Drake Mount Drop
(43214, 55798, 0, 1, 1, 1, 1),
(43214, 55797, 0, 1, 1, 1, 1),
(43214, 55799, 0, 1, 1, 1, 1),
(43214, 55800, 0, 1, 1, 1, 1),
(43214, 55801, 0, 1, 1, 1, 1);
UPDATE `creature_template` SET `lootid`= 49538 WHERE `entry`= 49538;
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(49538, 63043, 0.1, 1, 2, 1, 1), -- Drake Mount Drop
(49538, 56334, 0, 1, 1, 1, 1),
(49538, 56336, 0, 1, 1, 1, 1),
(49538, 56333, 0, 1, 1, 1, 1),
(49538, 56337, 0, 1, 1, 1, 1),
(49538, 56335, 0, 1, 1, 1, 1);
-- Ozruk
UPDATE `creature_template` SET `difficulty_entry_1`= 49654, `lootid`= 42188 WHERE `entry`= 42188;
DELETE FROM `creature_loot_template` WHERE `entry` IN (42188, 49654);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(42188, 55802, 0, 1, 1, 1, 1),
(42188, 55803, 0, 1, 1, 1, 1),
(42188, 55804, 0, 1, 1, 1, 1),
(42188, 55810, 0, 1, 1, 1, 1),
(42188, 55811, 0, 1, 1, 1, 1);
UPDATE `creature_template` SET `lootid`= 49654 WHERE `entry`= 49654;
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(49654, 56340, 0, 1, 1, 1, 1),
(49654, 56341, 0, 1, 1, 1, 1),
(49654, 56338, 0, 1, 1, 1, 1),
(49654, 56339, 0, 1, 1, 1, 1),
(49654, 56342, 0, 1, 1, 1, 1);
-- High Priestess Azil
UPDATE `creature_template` SET `difficulty_entry_1`= 49624, `lootid`= 42333 WHERE `entry`= 42333;
DELETE FROM `creature_loot_template` WHERE `entry` IN (42333, 49624);
DELETE FROM `reference_loot_template` WHERE `entry` IN (423330, 496240);
INSERT INTO `creature_loot_template` (`Entry`, `Reference`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(42333, 423330, 100, 1, 0, 2, 2);
INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(423330, 55817, 0, 1, 1, 1, 1),
(423330, 55812, 0, 1, 1, 1, 1),
(423330, 55818, 0, 1, 1, 1, 1),
(423330, 55816, 0, 1, 1, 1, 1),
(423330, 55814, 0, 1, 1, 1, 1),
(423330, 55819, 0, 1, 1, 1, 1),
(423330, 55820, 0, 1, 1, 1, 1),
(423330, 55821, 0, 1, 1, 1, 1),
(423330, 55813, 0, 1, 1, 1, 1),
(423330, 55815, 0, 1, 1, 1, 1);
UPDATE creature_template SET `lootid`= 49624 WHERE `entry`= 49624;
INSERT INTO `creature_loot_template` (`Entry`, `Reference`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(49624, 496240, 100, 1, 0, 2, 2);
INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(496240, 56348, 0, 1, 1, 1, 1),
(496240, 56344, 0, 1, 1, 1, 1),
(496240, 56352, 0, 1, 1, 1, 1),
(496240, 56347, 0, 1, 1, 1, 1),
(496240, 56345, 0, 1, 1, 1, 1),
(496240, 56351, 0, 1, 1, 1, 1),
(496240, 56349, 0, 1, 1, 1, 1),
(496240, 56350, 0, 1, 1, 1, 1),
(496240, 56346, 0, 1, 1, 1, 1),
(496240, 56343, 0, 1, 1, 1, 1),
(496240, 52078, 100, 1, 2, 1, 1); -- Chaos Orb
-- The Stonecore
UPDATE `creature_template` SET `mingold`= 14000, `maxgold`= 16000 WHERE `entry` IN (43438, 43214, 42188, 42333);
UPDATE `creature_template` SET `mingold`= 19000, `maxgold`= 20000 WHERE `entry` IN (49642, 49538, 49654, 49624);
DELETE FROM `creature_onkill_reward` WHERE `creature_id` IN (49642, 49538, 49654, 49624);
INSERT INTO `creature_onkill_reward` (`creature_id`, `CurrencyId1`, `CurrencyCount1`) VALUES
-- 70 Justice Points
(49642, 395, 7000),
(49538, 395, 7000),
(49654, 395, 7000),
(49624, 395, 7000);
-- The Vortex Pinnacle
UPDATE `creature_template` SET `mingold`= 14000, `maxgold`= 16000 WHERE `entry` IN (43878, 43873, 43875);
UPDATE `creature_template` SET `mingold`= 19000, `maxgold`= 20000 WHERE `entry` IN (43879, 43874, 43876);
DELETE FROM `creature_onkill_reward` WHERE `creature_id` IN (43879, 43874, 43876);
INSERT INTO `creature_onkill_reward` (`creature_id`, `CurrencyId1`, `CurrencyCount1`) VALUES
-- 70 Justice Points
(43879, 395, 7000),
(43874, 395, 7000),
(43876, 395, 7000);
-- Shadowfang Keep
UPDATE `creature_template` SET `mingold`= 7000, `maxgold`= 8000 WHERE `entry` IN (46962, 3887, 4278, 46963, 46964);
UPDATE `creature_template` SET `mingold`= 19000, `maxgold`= 20000 WHERE `entry` IN (49708, 49709, 49710, 49711, 49712);
DELETE FROM `creature_onkill_reward` WHERE `creature_id` IN (49708, 49709, 49710, 49711, 49712);
INSERT INTO `creature_onkill_reward` (`creature_id`, `CurrencyId1`, `CurrencyCount1`) VALUES
-- 70 Justice Points
(49708, 395, 7000),
(49709, 395, 7000),
(49710, 395, 7000),
(49711, 395, 7000),
(49712, 395, 7000);
-- Deadmines
UPDATE `creature_template` SET `mingold`= 7000, `maxgold`= 8000 WHERE `entry` IN (47162, 47296, 43778, 47626, 47739);
UPDATE `creature_template` SET `mingold`= 19000, `maxgold`= 20000 WHERE `entry` IN (48936, 48940, 48941, 48943, 48944);
DELETE FROM `creature_onkill_reward` WHERE `creature_id` IN (48936, 48940, 48941, 48943, 48944, 49429);
INSERT INTO `creature_onkill_reward` (`creature_id`, `CurrencyId1`, `CurrencyCount1`) VALUES
-- 70 Justice Points
(48936, 395, 7000),
(48940, 395, 7000),
(48941, 395, 7000),
(48943, 395, 7000),
(48944, 395, 7000),
(49429, 395, 7000);
@@ -1,81 +0,0 @@
-- Template Updates
-- Helix Gearbreaker
UPDATE `creature_template` SET `scriptname`= 'boss_helix_gearbreaker', `flags_extra`= 0 WHERE `entry`= 47296;
UPDATE `creature_template` SET `flags_extra`= `flags_extra`|1, `DamageModifier`= 15 WHERE `entry`= 48940;
-- Lumbering Oaf
UPDATE `creature_template` SET `scriptname`= 'npc_helix_lumbering_oaf' WHERE `entry`= 47297;
UPDATE `creature_template` SET `minlevel`= 87, `maxlevel`= 87 WHERE `entry`= 48939;
-- Sticky Bomb
UPDATE `creature_template` SET `difficulty_entry_1`= 49134, `scriptname`= 'npc_helix_sticky_bomb' WHERE `entry`= 47314;
UPDATE `creature_template` SET `minlevel`= 85, `maxlevel`= 85, `faction`= 14, `unit_flags`= 33554432 WHERE `entry`= 49134;
-- Helix' Crew
UPDATE `creature_template` SET `scriptname`= 'npc_helix_crew' WHERE `entry`= 49139;
-- Texts
DELETE FROM `creature_text` WHERE `CreatureID` IN (47296, 47297, 49139);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
-- Helix Gearbreaker
(47296, 0, 0, 'The mistress will pay me handsomely for your heads!', 14, 0, 100, 0, 0, 20849, 47474, 'Helix Gearbreaker - Aggro'),
(47296, 1, 0, 'Bombs away!', 14, 0, 100, 0, 0, 20847, 47475, 'Helix Gearbreaker - Bomb'),
(47296, 2, 0, 'Ready Oafie? Throw!', 14, 0, 100, 0, 0, 20848, 47476, 'Helix Gearbreaker - Throw Helix'),
(47296, 3, 0, 'Helix attaches a bomb to $n''s chest!', 41, 0, 100, 0, 0, 0, 47544, 'Helix Gearbreaker - Announce Bomb'),
(47296, 4, 0, 'I didn''t need him! Not when I''ve got YOU oafs!', 14, 0, 100, 0, 0, 20846, 47573, 'Helix Gearbreaker - Oaf Death'),
(47296, 5, 0, 'Only ten copper? You''re not even worth killing!', 14, 0, 100, 0, 0, 20845, 47574, 'Helix Gearbreaker - Slay'),
(47296, 6, 0, 'The scales...have...tipped...', 14, 0, 100, 0, 0, 20844, 47575, 'Helix Gearbreaker - Death'),
(47297, 0, 1, 'No...NO!', 14, 0, 100, 0, 0, 20854, 47480, 'Lumbering Oaf to Helix Gearbreaker'),
(47297, 1, 2, 'OAF SMASH!!', 14, 0, 100, 0, 0, 0, 48117, 'Lumbering Oaf to Helix Gearbreaker'),
(49139, 0, 0, 'Blowin'' em'' to bits, boss!', 12, 0, 100, 0, 0, 0, 49191, 'Helix Crew - Throw Bomb');
-- Spells
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_helix_throw_bomb_targeting',
'spell_helix_sticky_bomb_periodic_trigger',
'spell_helix_explode',
'spell_helix_oaf_grab_targeting',
'spell_helix_force_player_to_ride_oaf',
'spell_helix_oaf_smash',
'spell_helix_ride_face_targeting',
'spell_helix_ride_vehicle',
'spell_helix_ride_face_timer_aura',
'spell_helix_chest_bomb_emote',
'spell_helix_chest_bomb');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(88268, 'spell_helix_throw_bomb_targeting'),
(88329, 'spell_helix_sticky_bomb_periodic_trigger'),
(88321, 'spell_helix_explode'),
(91567, 'spell_helix_explode'),
(88974, 'spell_helix_explode'),
(91566, 'spell_helix_explode'),
(88289, 'spell_helix_oaf_grab_targeting'),
(88278, 'spell_helix_force_player_to_ride_oaf'),
(88300, 'spell_helix_oaf_smash'),
(91568, 'spell_helix_oaf_smash'),
(88349, 'spell_helix_ride_face_targeting'),
(88360, 'spell_helix_ride_vehicle'),
(88351, 'spell_helix_ride_face_timer_aura'),
(91572, 'spell_helix_chest_bomb_emote'),
(88352, 'spell_helix_chest_bomb');
-- Conditions
DELETE FROM `conditions` WHERE `SourceEntry`= 88295 AND `SourceTypeOrReferenceId`= 13;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES
(13, 1, 88295, 0, 0, 31, 0, 3, 45979, 0, 0, 0, '', 'Charge - Target General Purpose Bunny'),
(13, 1, 88295, 0, 0, 35, 0, 1, 20, 3, 0, 0, '', 'Charge - Target Distance Must be Higher than 15 yards');
-- Loot
UPDATE `creature_template` SET `lootid`= 47296 WHERE `entry`= 47296;
UPDATE `creature_template` SET `lootid`= 48940 WHERE `entry`= 48940;
DELETE FROM `creature_loot_template` WHERE `Entry` IN (47296, 48940);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(47296, 5199, 0, 1, 1, 1, 1),
(47296, 5191, 0, 1, 1, 1, 1),
(47296, 5200, 0, 1, 1, 1, 1),
(47296, 5443, 0, 1, 1, 1, 1);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(48940, 63473, 0, 1, 1, 1, 1),
(48940, 63475, 0, 1, 1, 1, 1),
(48940, 63476, 0, 1, 1, 1, 1),
(48940, 63474, 0, 1, 1, 1, 1),
(48940, 65164, 0, 1, 1, 1, 1);
@@ -1,115 +0,0 @@
-- Template Updates
-- Foe Reaper 5000
UPDATE `creature_template` SET `unit_flags2`= 0, `ScriptName`= 'boss_foe_reaper_5000' WHERE `entry`= 43778;
UPDATE `creature_template` SET `minlevel`= 87, `maxlevel`= 87, `unit_flags2`= 0, `flags_extra`= 1 WHERE `entry`= 48941;
-- Prototype Reaper
UPDATE `creature_template` SET `speed_walk`=1, `speed_run`=1.142857, `spell1`= 91734, `spell2`= 91735, `spell3`= 91736, `unit_flags2`= 0 WHERE `entry`= 49208;
UPDATE `npc_spellclick_spells` SET `spell_id`= 43671 WHERE `npc_entry`= 49208;
-- Defias Watcher
UPDATE `creature_template` SET `unit_flags2`= 0, `RegenHealth`= 0, `ScriptName`= 'npc_deadmines_defias_watcher' WHERE `entry`= 47404;
UPDATE `creature_template` SET `unit_flags2`= 0, `RegenHealth`= 0 WHERE `entry`= 48803;
-- Defias Reaper
UPDATE `creature_template` SET `unit_flags2`= 0, `ScriptName`= 'npc_deadmines_defias_watcher' WHERE `entry`= 47403;
UPDATE `creature_template` SET `unit_flags2`= 0 WHERE `entry`= 48804;
-- Deadmines Foe Reaper Targeting Bunny
UPDATE `creature_template` SET `faction`= 35, `unit_flags`= 33554432, `flags_extra`= 128 WHERE `entry`= 47468;
-- Molten Slag
UPDATE `creature_template` SET `DamageModifier`= 30, `ScriptName`= 'npc_foe_reaper_5000_molten_slag' WHERE `entry`= 49229;
DELETE FROM `creature_text` WHERE `CreatureID` IN (43778, 45979);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
-- Foe Reaper 5000
(43778, 0, 0, 'Foe Reaper 5000 on-line. All systems nominal.', 14, 0, 100, 0, 0, 22137, 47596, 'Foe Reaper 5000'),
(43778, 1, 0, '|TInterface\\Icons\\ability_whirlwind.blp:20|t Foe Reaper 5000 begins to activate |cFFFF0000|Hspell:88481|h[Overdrive]|h|r!', 41, 0, 100, 0, 0, 0, 48812, 'Foe Reaper 5000'),
(43778, 2, 0, 'Overdrive engine activated.', 14, 0, 100, 0, 0, 22142, 47609, 'Foe Reaper 5000'),
(43778, 3, 0, 'Acquiring target...', 14, 0, 100, 0, 0, 22140, 47628, 'Foe Reaper 5000 to Player'),
(43778, 4, 0, 'Target acquired. Harvesting servos engaged.', 14, 0, 100, 0, 0, 22141, 47629, 'Foe Reaper 5000'),
(43778, 5, 0, 'Safety restrictions off-line. Catastrophic system failure imminent.', 14, 0, 100, 0, 0, 22143, 47642, 'Foe Reaper 5000'),
(43778, 6, 0, '|TInterface\Icons\spell_fire_totemofwrath.blp:20|t Foe Reaper 5000 |cFFFF0000|Hspell:88522|h[Safety Restrictions are Off-line]|h|r!', 41, 0, 100, 0, 0, 0, 50713, 'Foe Reaper 5000'),
(43778, 7, 0, 'Target destroyed.', 14, 0, 100, 0, 0, 22139, 47630, 'Feindschnitter 5000 to Player'),
(43778, 8, 0, 'Overheat threshold exceeded. System failure. Wheat clog in port two. Shutting down.', 14, 0, 100, 0, 0, 22138, 47643, 'Foe Reaper 5000'),
-- General Purpose Bunny
(45979, 0, 0, 'A stray jolt from the Foe Reaper has disrupted the foundry controls!', 41, 0, 100, 0, 0, 0, 49315, 'General Purpose Bunny JMF'),
(45979, 1, 0, 'The molten slag begins to bubble furiously!', 41, 0, 100, 0, 0, 0, 49316, 'General Purpose Bunny JMF');
-- Template Addon
DELETE FROM `creature_template_addon` WHERE `entry`= 47468;
INSERT INTO `creature_template_addon` (`entry`, `auras`) VALUES
(47468, 88508);
-- Conditions
DELETE FROM `conditions` WHERE `SourceEntry` IN (89132, 91839, 91841, 91842, 91843) AND `SourceTypeOrReferenceId`= 13;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES
(13, 1, 89132, 0, 0, 31, 0, 3, 43778, 0, 0, 0, '', 'Energize - Target Foe Reaper 5000'),
(13, 1, 91839, 0, 0, 31, 0, 5, 123207, 0, 0, 0, '', 'Summon Molten Slag - Target Goblin Smelthing Pot'),
(13, 1, 91841, 0, 0, 31, 0, 5, 123208, 0, 0, 0, '', 'Summon Molten Slag - Target Goblin Smelthing Pot'),
(13, 1, 91842, 0, 0, 31, 0, 5, 123209, 0, 0, 0, '', 'Summon Molten Slag - Target Goblin Smelthing Pot'),
(13, 1, 91843, 0, 0, 31, 0, 5, 123210, 0, 0, 0, '', 'Summon Molten Slag - Target Goblin Smelthing Pot');
-- Spells
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_deadmines_on_fire',
'spell_foe_reaper_5000_acquire_target',
'spell_foe_reaper_5000_fixate_targeting',
'spell_foe_reaper_5000_fixate');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(91737, 'spell_deadmines_on_fire'),
(88492, 'spell_foe_reaper_5000_acquire_target'),
(91831, 'spell_foe_reaper_5000_fixate_targeting'),
(91830, 'spell_foe_reaper_5000_fixate');
-- Loot
UPDATE `creature_template` SET `lootid`= 43778 WHERE `entry` = 43778;
DELETE FROM creature_loot_template WHERE `Entry` IN (43778, 48941);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(43778, 1937, 0, 1, 1, 1, 1),
(43778, 5187, 0, 1, 1, 1, 1),
(43778, 5201, 0, 1, 1, 1, 1);
UPDATE `creature_template` SET `lootid` = 48941 WHERE `entry` = 48941;
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(48941, 65166, 0, 1, 1, 1, 1),
(48941, 65165, 0, 1, 1, 1, 1),
(48941, 65167, 0, 1, 1, 1, 1);
-- SAI
-- Creature General Purpose Bunny JMF (Look 2) 47242 SAI
SET @ENTRY := 47242;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
SET @ENTRY := -375839;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 72, 0, 100, 0, 1, 0, 0, 0, 67, 0, 150, 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "On DoAction 1 - Trigger timed event #0"),
(@ENTRY, 0, 1, 0, 59, 0, 100, 1, 0, 0, 0, 0, 11, 89202, 2, 0, 0, 0, 0, 10, 375842, 0, 0, 0, 0, 0, 0, "On timed event 0 triggered - Self: Cast spell 89202 on Creature General Purpose Bunny JMF (Look 2)");
SET @ENTRY := -375846;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 72, 0, 100, 0, 1, 0, 0, 0, 67, 0, 2500, 2500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "On DoAction 1 - Trigger timed event #0"),
(@ENTRY, 0, 1, 0, 59, 0, 100, 1, 0, 0, 0, 0, 11, 89202, 2, 0, 0, 0, 0, 10, 375841, 0, 0, 0, 0, 0, 0, "On timed event 0 triggered - Self: Cast spell 89202 on Creature General Purpose Bunny JMF (Look 2)");
SET @ENTRY := -375922;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 72, 0, 100, 0, 1, 0, 0, 0, 67, 0, 2500, 2500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "On DoAction 1 - Trigger timed event #0"),
(@ENTRY, 0, 1, 0, 59, 0, 100, 1, 0, 0, 0, 0, 11, 89202, 2, 0, 0, 0, 0, 10, 375840, 0, 0, 0, 0, 0, 0, "On timed event 0 triggered - Self: Cast spell 89202 on Creature General Purpose Bunny JMF (Look 2)");
SET @ENTRY := -375844;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 72, 0, 100, 0, 1, 0, 0, 0, 67, 0, 5000, 5000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "On DoAction 1 - Trigger timed event #0"),
(@ENTRY, 0, 1, 0, 59, 0, 100, 1, 0, 0, 0, 0, 11, 89202, 2, 0, 0, 0, 0, 10, 375923, 0, 0, 0, 0, 0, 0, "On timed event 0 triggered - Self: Cast spell 89202 on Creature General Purpose Bunny JMF (Look 2)");
SET @ENTRY := -375843;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 72, 0, 100, 0, 1, 0, 0, 0, 67, 0, 5000, 5000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "On DoAction 1 - Trigger timed event #0"),
(@ENTRY, 0, 1, 0, 59, 0, 100, 1, 0, 0, 0, 0, 11, 89202, 2, 0, 0, 0, 0, 10, 375848, 0, 0, 0, 0, 0, 0, "On timed event 0 triggered - Self: Cast spell 89202 on Creature General Purpose Bunny JMF (Look 2)");
SET @ENTRY := -375847;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 72, 0, 100, 0, 1, 0, 0, 0, 67, 0, 5000, 5000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "On DoAction 1 - Trigger timed event #0"),
(@ENTRY, 0, 1, 0, 59, 0, 100, 1, 0, 0, 0, 0, 11, 89202, 2, 0, 0, 0, 0, 10, 375921, 0, 0, 0, 0, 0, 0, "On timed event 0 triggered - Self: Cast spell 89202 on Creature General Purpose Bunny JMF (Look 2)");
@@ -1,5 +0,0 @@
UPDATE `gameobject_template` SET `ScriptName`= 'go_deadmines_defias_cannon' WHERE `entry`= 16398;
DELETE FROM `creature_text` WHERE `CreatureID`= 45979 AND `GroupID`= 2;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(45979, 2, 0, 'The cannon was rigged with an explosive trap!', 41, 0, 100, 0, 0, 0, 48790, 'General Purpose Bunny JMF to Player');
@@ -1,48 +0,0 @@
-- Template Updates
-- Admiral Ripsnarl
UPDATE `creature_template` SET `ScriptName`= 'boss_admiral_ripsnarl' WHERE `entry`= 47626;
UPDATE `creature_template` SET `minlevel`= 87, `maxlevel`= 87, `DamageModifier`= 30, `flags_extra`= 1 WHERE `entry`= 48943;
-- Vapor
UPDATE `creature_template` SET `minlevel`= 15, `maxlevel`= 15, `difficulty_entry_1`= 49241, `ScriptName`= 'npc_ripsnarl_vapor' WHERE `entry`= 47714;
UPDATE `creature_template` SET `minlevel`= 87, `maxlevel`= 87, `exp`= 3, `faction`= 14, `DamageModifier`= 10 WHERE `entry`= 49241;
-- Texts
DELETE FROM `creature_text` WHERE `CreatureID`= 47626;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(47626, 0, 0, 'Ah, fresh meat!', 14, 0, 100, 0, 0, 19882, 48179, 'Admiral Ripsnarl - Aggro'),
(47626, 1, 0, 'Do you feel that chill running up your spine?', 14, 0, 100, 0, 0, 19877, 47914, 'Admiral Ripsnarl - Fog 1'),
(47626, 2, 0, 'The fog is rolling in...', 14, 0, 100, 0, 0, 0, 47915, 'Admiral Ripsnarl - Fog 2'),
(47626, 3, 0, 'Your blood only increases my hunger!', 14, 0, 100, 0, 0, 19876, 48009, 'Admiral Ripsnarl - Slay'),
(47626, 4, 0, 'I can smell your fear...', 14, 0, 100, 0, 0, 19879, 48006, 'Admiral Ripsnarl - Go for the Throat 1'),
(47626, 4, 1, 'I will rip your heart from your chest!', 14, 0, 100, 0, 0, 19880, 48007, 'Admiral Ripsnarl - Go for the Throat 2'),
(47626, 5, 0, 'Multiple vapors appear from the fog! Kill Admiral Ripsnarl before you are overwhelmed!', 41, 0, 100, 0, 0, 19878, 50851, 'Admiral Ripsnarl - Announce Vapor'),
(47626, 6, 0, 'You will...NOT find her...until it is too late...', 14, 0, 100, 0, 0, 19875, 48010, 'Admiral Ripsnarl - Death');
-- Conditions
DELETE FROM `conditions` WHERE `SourceEntry` IN (95408) AND `SourceTypeOrReferenceId`= 13;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES
(13, 1, 95408, 0, 0, 31, 0, 3, 48266, 0, 0, 0, '', 'Ripnsarl Cannon Kill - Target Defias Cannon');
-- Spells
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_ripsnarl_go_for_the_throat_targeting',
'spell_ripsnarl_summon_vapor_targeting');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(88838, 'spell_ripsnarl_go_for_the_throat_targeting'),
(88833, 'spell_ripsnarl_summon_vapor_targeting');
-- Loot
UPDATE `creature_template` SET `lootid`= 47626 WHERE `entry` = 47626;
DELETE FROM creature_loot_template WHERE `Entry` IN (47626, 48943);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(47626, 872, 0, 1, 1, 1, 1),
(47626, 5196, 0, 1, 1, 1, 1),
(47626, 1156, 0, 1, 1, 1, 1);
UPDATE `creature_template` SET `lootid`= 48943 WHERE `entry` = 48943;
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(65168, 65166, 0, 1, 1, 1, 1),
(48943, 65170, 0, 1, 1, 1, 1),
(48943, 65169, 0, 1, 1, 1, 1);
@@ -1,186 +0,0 @@
-- Template Updates
-- "Captain" Cookie
UPDATE `creature_template` SET `unit_flags`= 33587264, `ScriptName`= 'boss_captain_cookie', `flags_extra`= 0 WHERE `entry`= 47739;
UPDATE `creature_template` SET `unit_flags`= 33587264, `minlevel`= 87, `maxlevel`= 87, `flags_extra`= 1 WHERE `entry`= 48944;
-- Cookie's Cauldron
UPDATE `creature_template` SET `unit_flags`= 2304, `VehicleId`= 1283 WHERE `entry`= 47754;
-- Food
UPDATE `creature_template` SET `unit_flags`= 768, `unit_flags2`= 67110912, `npcflag`= 16777216, `flags_extra`= 2 WHERE `entry` IN (48006, 48276, 48294, 48293, 48295, 48296, 48297, 48298, 48300, 48299, 48301, 48302);
-- Texts
DELETE FROM `creature_text` WHERE `CreatureID`= 45979 AND `GroupID`= 3;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(45979, 3, 0, 'A shadowy figure appears in the ship''s cabin!', 41, 0, 100, 0, 0, 0, 48276, 'General Purpose Bunny JMF to Player');
-- Conditions
DELETE FROM `conditions` WHERE `SourceEntry`= 89250 AND `SourceTypeOrReferenceId`= 13;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES
(13, 1, 89250, 0, 0, 31, 0, 3, 45979, 375838, 0, 0, '', 'Charge - Target General Purpose Bunny');
-- Creature Cookie's Cauldron 47754 SAI
SET @ENTRY := 47754;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 1, 0, 60, 0, 100, 1, 0, 0, 0, 0, 11, 89251, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Every 0 and 0 ms (for the first time, timer between 0 and 0 ms) - Self: Cast spell 89251 on Self // ");
-- Spells
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_cookie_throw_food_targeting',
'spell_cookie_satiated');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(89268, 'spell_cookie_throw_food_targeting'),
(89740, 'spell_cookie_throw_food_targeting'),
(90561, 'spell_cookie_throw_food_targeting'),
(90582, 'spell_cookie_throw_food_targeting'),
(90562, 'spell_cookie_throw_food_targeting'),
(90583, 'spell_cookie_throw_food_targeting'),
(90563, 'spell_cookie_throw_food_targeting'),
(90584, 'spell_cookie_throw_food_targeting'),
(90564, 'spell_cookie_throw_food_targeting'),
(90585, 'spell_cookie_throw_food_targeting'),
(90565, 'spell_cookie_throw_food_targeting'),
(90586, 'spell_cookie_throw_food_targeting'),
(89267, 'spell_cookie_satiated'),
(92834, 'spell_cookie_satiated');
-- Template Addons
DELETE FROM `creature_template_addon` WHERE `entry` IN (48006, 48276, 48294, 48293, 48295, 48296, 48297, 48298, 48300, 48299, 48301, 48302);
INSERT INTO `creature_template_addon` (`entry`, `auras`) VALUES
-- Delicious Food
(48006 ,'89730'),
(48294 ,'89730'),
(48296 ,'89730'),
(48297 ,'89730'),
(48300 ,'89730'),
(48301 ,'89730'),
-- Rooten Food
(48276, '95513'),
(48293, '95513'),
(48295, '95513'),
(48298, '95513'),
(48299, '95513'),
(48302, '95513');
-- Spellclick spells
DELETE FROM `npc_spellclick_spells` WHERE `npc_entry` IN (48006, 48276, 48294, 48293, 48295, 48296, 48297, 48298, 48300, 48299, 48301, 48302);
INSERT INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `user_type`) VALUES
-- Delicious Food
(48006, 89267, 3, 0),
(48294, 89267, 3, 0),
(48296, 89267, 3, 0),
(48297, 89267, 3, 0),
(48300, 89267, 3, 0),
(48301, 89267, 3, 0),
-- Rotten Food
(48276, 89732, 3, 0),
(48293, 89732, 3, 0),
(48295, 89732, 3, 0),
(48298, 89732, 3, 0),
(48299, 89732, 3, 0),
(48302, 89732, 3, 0);
-- SAI
SET @ENTRY := 48302;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 1, 0, 73, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On spellclick - Self: Despawn instantly // ");
SET @ENTRY := 48299;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 1, 0, 73, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On spellclick - Self: Despawn instantly // ");
SET @ENTRY := 48298;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 1, 0, 73, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On spellclick - Self: Despawn instantly // ");
SET @ENTRY := 48295;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 1, 0, 73, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On spellclick - Self: Despawn instantly // ");
SET @ENTRY := 48293;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 1, 0, 73, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On spellclick - Self: Despawn instantly // ");
SET @ENTRY := 48276;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 1, 0, 73, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On spellclick - Self: Despawn instantly // ");
SET @ENTRY := 48301;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 1, 0, 73, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On spellclick - Self: Despawn instantly // ");
SET @ENTRY := 48300;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 1, 0, 73, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On spellclick - Self: Despawn instantly // ");
SET @ENTRY := 48297;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 1, 0, 73, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On spellclick - Self: Despawn instantly // ");
SET @ENTRY := 48296;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 1, 0, 73, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On spellclick - Self: Despawn instantly // ");
SET @ENTRY := 48294;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 1, 0, 73, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On spellclick - Self: Despawn instantly // ");
SET @ENTRY := 48006;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On AI initialize - Self: Set react state to REACT_PASSIVE // "),
(@ENTRY, 0, 1, 0, 73, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On spellclick - Self: Despawn instantly // ");
-- Loot
UPDATE `creature_template` SET `lootid`= 47739 WHERE `entry`= 47739;
UPDATE `creature_template` SET `lootid`= 48944 WHERE `entry` = 48944;
DELETE FROM creature_loot_template WHERE `Entry` IN (47739, 48944);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(47739, 5193, 0, 1, 1, 1, 1),
(47739, 5202, 0, 1, 1, 1, 1),
(47739, 5192, 0, 1, 1, 1, 1),
(47739, 5197, 0, 1, 1, 1, 1),
(47739, 5198, 0, 1, 1, 1, 1);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(48944, 65177, 0, 1, 1, 1, 1),
(48944, 65174, 0, 1, 1, 1, 1),
(48944, 65173, 0, 1, 1, 1, 1),
(48944, 65171, 0, 1, 1, 1, 1),
(48944, 65172, 0, 1, 1, 1, 1);
@@ -1 +0,0 @@
UPDATE `creature_template` SET `InhabitType`= 4 WHERE `entry` IN (48975, 49039, 49040, 48976, 49041, 49042);
@@ -1,63 +0,0 @@
-- Druid
DELETE FROM `spell_bonus_data` WHERE `entry` IN (
50464, -- Nourish
5176, -- Wrath
8921, -- Moonfire
467, -- Thorns
2912, -- Starfire
5185, -- Healing Touch
42231, -- Hurricane
5570, -- Insect Swarm
33763, -- Lifebloom
8936, -- Regrowth
774, -- Rejuvenation
50288, -- Starfall
44203, -- Tranquility
61391, -- Typhoon
48438 -- Wild Growth
);
-- Priest
DELETE FROM `spell_bonus_data` WHERE `entry` IN (
32546, -- Blinding Heal
34861, -- Circle of Healing
19236, -- Desperate Prayer
2944, -- Devouring Plague
64844, -- Devine Hymn
2061, -- Flash Heal
2060, -- Greater Heal
14914, -- Holy Fire
15237, -- Holy Nova Damage
23455, -- Holy Nova Heal
8092, -- Mind Blast
49821, -- Mind Sear
47750, -- Penance Heal
47666, -- Penance Damage
17, -- Power World: Shield
596, -- Player of Healing
33110, -- Prayer of Mending
139, -- Renew
32379, -- Shadow Word: Death
589, -- Shadow Word: Pain
34433, -- Shadowfiend
585, -- Smite
34914, -- Vampiric Touch
64085 -- Vampiric Touch (Dispelled)
);
-- Warlock
DELETE FROM `spell_bonus_data` WHERE `entry` IN (
755, -- Health Funel
47960, -- Shadowflame
31117 -- Unstable Affliction (Dispel)
);
-- Re-used from previous coefficient correction
-- Shaman
DELETE FROM `spell_bonus_data` WHERE `entry` IN (26364, 403, 421, 8042, 8050, 8056, 3606, 8349, 8187, 51490, 51505, 8004, 331, 77472, 1064, 5672, 379, 61295, 73921, 32175, 73899, 60103, 77478, 73683, 73682, 73685, 45297, 77451, 45284, 974, 8188);
-- Warlock
DELETE FROM `spell_bonus_data` WHERE `entry` IN (172, 686, 6229, 980, 603, 6789, 689, 1120, 5676, 6353, 17877, 348, 1949, 5857, 42223, 30108, 27243, 27285, 30283, 29722, 47897, 48181, 50796, 50590, 54786, 3110, 54049, 7814, 86121, 71521, 77799);
-- Mage
DELETE FROM `spell_bonus_data` WHERE `entry` IN (7268, 30451, 1449, 44425, 1463, 543, 133, 2948, 2136, 44614, 11366, 92315, 2120, 11113, 31661, 44457, 11129, 82731, 116, 42208, 120, 122, 30455, 11426, 44572, 71757, 44461, 31707);
@@ -1,9 +0,0 @@
-- Add random movement to multiple creatures
UPDATE `creature` SET `MovementType`= 1, `spawndist`= 10 WHERE `ID` IN (113, 524, 822, 30, 40, 476, 1922, 525, 119, 118);
UPDATE `creature` SET `MovementType`= 1, `spawndist`= 5 WHERE `ID` IN (475, 735);
-- Add quest items for Quest 'A pie for Billy'
DELETE FROM `creature_loot_template` WHERE `Entry` IN (113, 524) AND `Item`= 60401;
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `QuestRequired`, `LootMode`, `MinCount`, `MaxCount`) VALUES
(113, 60401, 21, 1, 1, 1, 1),
(524, 60401, 11, 1, 1, 1, 1);
@@ -1,14 +0,0 @@
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_mage_hot_streak',
'spell_mage_improved_hot_streak',
'spell_mage_pyroblast');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(44445, 'spell_mage_hot_streak'),
(-44446, 'spell_mage_improved_hot_streak'),
(92315, 'spell_mage_pyroblast');
DELETE FROM `spell_proc` WHERE `SpellID` IN (44445, -44446);
INSERT INTO `spell_proc` (`SpellID`, `SpellFamilyName`, `SpellFamilyMask0`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `AttributesMask`) VALUES
(44445, 3, 0, 0x00010000, 1, 2, 2, 0x0000020),
(-44446, 3, 0, 0x00010000, 1, 2, 0, 0x0000020);
@@ -1,22 +0,0 @@
-- Creature Lord Darius Crowley 35077 SAI
SET @ENTRY := 35077;
UPDATE `creature_template` SET `InhabitType`= 9 WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 19, 0, 100, 0, 14154, 0, 0, 0, 11, 66914, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "When player accepts quest 14154 - Self: Cast spell 66914 on Action invoker // "),
(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 6000, 6000, 15000, 17000, 11, 67825, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 6000 and 6000 ms (and later repeats every 15000 and 17000 ms) - Self: Cast spell 67825 on Victim // ");
-- Creature Gilnean Royal Guard 35232 SAI
SET @ENTRY := 35232;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 1, 0, 100, 0, 0, 0, 1000, 1000, 49, 0, 0, 0, 0, 0, 0, 11, 35118, 7, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 0 and 0 ms (and later repeats every 1000 and 1000 ms) - Self: Attack Creature Bloodfang Worgen (35118) in 7 yd // ");
-- Creature Prince Liam Greymane 34913 SAI
SET @ENTRY := 34913;
UPDATE `creature_template` SET `AIName`="SmartAI", `InhabitType`= 9 WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On aggro - Self: Talk 0 // "),
(@ENTRY, 0, 1, 0, 9, 0, 100, 0, 5, 50, 2000, 2000, 11, 50092, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When victim in range 5 - 50 yards (check every 2000 - 2000 ms) - Self: Cast spell 50092 on Victim // ");
@@ -1,8 +0,0 @@
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
('spell_warl_drain_life',
'spell_warl_drain_life_heal');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(689, 'spell_warl_drain_life'),
(89420, 'spell_warl_drain_life'),
(89653, 'spell_warl_drain_life_heal');
@@ -1,4 +0,0 @@
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_warl_drain_soul';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(1120, 'spell_warl_drain_soul');
@@ -1,158 +0,0 @@
UPDATE `creature_template` SET `difficulty_entry_1`= 49262, `mechanic_immune_mask`= 80297855 WHERE `entry`= 39425;
UPDATE `creature_template` SET `exp`= 3, `unit_class`= 2 WHERE `entry` IN (48902, 48710, 48776);
UPDATE `creature_template` SET `exp`= 3, `unit_class`= 4 WHERE `entry` IN (48715);
UPDATE `creature_template` SET `faction`= 17 WHERE `entry`= 49241;
DELETE FROM `creature_loot_template` WHERE `Entry`= 65168;
UPDATE `creature_loot_template` SET `Chance`= 100.0, `QuestRequired`= 1 WHERE `Item` IN
(60885, 60878, 60880, 60879, 60876, 60881, 60877, 60882);
UPDATE `spell_script_names` SET `spell_id`= 53290 WHERE `spell_id`= -53290;
UPDATE `spell_script_names` SET `spell_id`= 54747 WHERE `spell_id`= -54747;
UPDATE `spell_script_names` SET `spell_id`= 51627 WHERE `spell_id`= -51627;
UPDATE `spell_script_names` SET `spell_id`= 51474 WHERE `spell_id`= -51474;
UPDATE `spell_script_names` SET `spell_id`= 31876 WHERE `spell_id`= -31876;
UPDATE `spell_script_names` SET `spell_id`= 31661 WHERE `spell_id`= -31661;
UPDATE `spell_script_names` SET `spell_id`= 31656 WHERE `spell_id`= -31656;
UPDATE `spell_script_names` SET `spell_id`= 31244 WHERE `spell_id`= -31244;
UPDATE `spell_script_names` SET `spell_id`= 30675 WHERE `spell_id`= -30675;
UPDATE `spell_script_names` SET `spell_id`= 29441 WHERE `spell_id`= -29441;
UPDATE `spell_script_names` SET `spell_id`= 27243 WHERE `spell_id`= -27243;
UPDATE `spell_script_names` SET `spell_id`= 27243 WHERE `spell_id`= -27243;
DELETE FROM `spell_script_names` WHERE `spell_id` IN
(54748, 59088, 54639, 53501, 49467, 49217, 49208, 49015, 31871, 31785, 20335, 18213, 15337, 20185, 20186, 20375, 21084, 31892, 44401, 49005, 51209, 53601, 53720, 53736, 54748, 54909, 58914, 70827, 74396);
UPDATE `creature_template` SET `ScriptName`= '' WHERE `ScriptName`= 'boss_mr_smite';
UPDATE `creature_template` SET `ScriptName`= '' WHERE `ScriptName`= 'npc_shadowfang_prisoner';
UPDATE `creature_template` SET `ScriptName`= '' WHERE `ScriptName`= 'npc_lunaclaw_spirit';
UPDATE `creature_template` SET `ScriptName`= '' WHERE `ScriptName`= 'boss_archmage_arugal';
UPDATE `creature_template` SET `ScriptName`= '' WHERE `ScriptName`= 'npc_yenniku';
UPDATE `creature_template` SET `ScriptName`= '' WHERE `ScriptName`= 'npc_arugal_voidwalker';
UPDATE `creature_template` SET `ScriptName`= '' WHERE `ScriptName`= 'npcs_dithers_and_arbington';
UPDATE `creature_template` SET `ScriptName`= '' WHERE `ScriptName`= 'npc_lazy_peon';
DELETE FROM `spell_script_names` WHERE `ScriptName` IN (
'spell_sha_shamanistic_rage',
'spell_dk_rime',
'spell_warr_second_wind',
'spell_dru_glyph_of_rejuvenation',
'spell_dru_glyph_of_rake',
'spell_warr_item_t10_prot_4p_bonus',
'spell_dk_glyph_of_scourge_strike',
'spell_mage_magic_absorption',
'spell_sha_t3_6p_bonus',
'spell_dru_t10_balance_4p_bonus',
'spell_dru_t10_restoration_4p_bonus_dummy',
'spell_hun_glyph_of_mend_pet',
'spell_dk_unholy_blight',
'spell_pri_imp_shadowform',
'spell_dk_mark_of_blood',
'spell_pal_spiritual_attunement',
'spell_rog_turn_the_tables_proc',
'spell_pri_mana_burn',
'spell_dk_glyph_of_death_grip',
'spell_dru_item_t6_trinket',
'spell_dru_t3_6p_bonus',
'spell_dru_omen_of_clarity',
'spell_pri_t10_heal_2p_bonus',
'spell_sha_glyph_of_earth_shield',
'spell_pri_improved_spirit_tap',
'spell_pal_judgements_of_the_wise',
'spell_dk_hungering_cold',
'spell_dk_death_rune',
'spell_sha_t9_elemental_4p_bonus',
'spell_dru_leader_of_the_pack',
'spell_dk_vendetta',
'spell_pal_glyph_of_divinity',
'spell_sha_t10_restoration_4p_bonus',
'spell_warr_t3_prot_8p_bonus',
'spell_mage_burning_determination',
'spell_dk_blade_barrier',
'spell_pal_sacred_shield_dummy',
'spell_mage_imp_blizzard',
'spell_dru_t3_2p_bonus',
'spell_hun_rapid_recuperation_trigger',
'spell_dk_wandering_plague',
'spell_dru_t4_2p_bonus',
'spell_sha_frozen_power',
'spell_dru_glyph_of_shred',
'spell_warr_glyph_of_blocking',
'spell_dk_dancing_rune_weapon',
'spell_dk_necrosis',
'spell_dk_pvp_4p_bonus',
'spell_dk_scent_of_blood_trigger',
'spell_dk_sudden_doom',
'spell_dk_threat_of_thassarian',
'spell_wotf_shared_cd',
'spell_dru_glyph_of_starfire_dummy',
'spell_dru_revitalize',
'spell_mage_gen_extra_effects',
'spell_dru_t3_8p_bonus',
'spell_rog_setup',
'spell_warl_seed_of_corruption_generic',
'spell_warl_t4_2p_bonus_fire',
'spell_howling_gale',
'spell_hun_hunting_party',
'spell_hun_kill_command_pet',
'spell_hun_roar_of_sacrifice',
'spell_husam_hurl_vehicle',
'spell_pal_judgement_of_wisdom_mana',
'spell_warl_t4_2p_bonus_shadow',
'spell_rog_deadly_brew',
'spell_mage_combustion',
'spell_mage_empowered_fire',
'spell_mage_fingers_of_frost',
'spell_mage_imp_mana_gems',
'spell_mage_missile_barrage',
'spell_sha_imp_water_shield',
'spell_sha_spirit_hunt',
'spell_pal_item_t6_trinket',
'spell_pal_divine_purpose',
'spell_pal_glyph_of_holy_light_dummy',
'spell_pri_aq_3p_bonus',
'spell_pal_heart_of_the_crusader',
'spell_pal_improved_lay_of_hands',
'spell_pal_infusion_of_light',
'spell_pal_judgement_of_light_heal',
'spell_pal_judgements_of_the_just',
'spell_pal_righteous_vengeance',
'spell_pal_seal_of_corruption',
'spell_pal_seal_of_vengeance',
'spell_pal_seals',
'spell_pal_sheath_of_light',
'spell_pal_t3_6p_bonus',
'spell_pal_t8_2p_bonus',
'spell_sha_t10_elemental_4p_bonus',
'spell_pri_glyph_of_dispel_magic',
'spell_pri_item_t6_trinket',
'spell_pri_shadowfiend_death',
'spell_pri_t3_4p_bonus',
'spell_pri_t5_heal_2p_bonus',
'spell_sha_astral_shift_aura',
'spell_rog_glyph_of_backstab',
'spell_rog_quick_recovery',
'spell_rog_turn_the_tables',
'spell_sha_flametongue_weapon',
'spell_sha_glyph_of_totem_of_wrath',
'spell_sha_item_t6_trinket',
'spell_sha_lightning_overload',
'spell_sha_maelstrom_weapon',
'spell_sha_static_shock',
'spell_sha_t8_elemental_4p_bonus',
'spell_sha_tidal_force_dummy',
'spell_sha_windfury_weapon',
'spell_shadowfang_keep_haunting_spirits',
'spell_uk_second_wind_proc',
'spell_warl_decimation',
'spell_warl_demonic_pact',
'spell_warl_glyph_of_corruption_nightfall',
'spell_warl_glyph_of_life_tap',
'spell_warl_improved_drain_soul',
'spell_warl_seed_of_corruption_dummy',
'spell_warr_deep_wounds_aura',
'spell_warr_extra_proc',
'spell_warr_vigilance_redirect_threat');
@@ -1,7 +0,0 @@
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_warl_fel_armor';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(28176, 'spell_warl_fel_armor');
DELETE FROM `spell_proc` WHERE `SpellId`= 28176;
INSERT INTO `spell_proc` (`SpellId`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `AttributesMask`) VALUES
(28176, 0x00050000, 0x00000001, 0x00000002, 0, 0x0000010 | 0x0000040);
@@ -1,4 +0,0 @@
UPDATE `battleground_template` SET `MinLvl`= 75, `StartMaxDist`= 75, `Weight`= 1 WHERE `ID`= 120;
UPDATE `battleground_template` SET `MinLvl`= 75, `StartMaxDist`= 75, `Weight`= 1 WHERE `ID`= 108;
DELETE FROM `gameobject` WHERE `id` IN (179830, 179831, 179785, 179786, 179871, 179904, 179905, 179899, 179907, 179906) AND `map`= 726;
@@ -1,20 +0,0 @@
DELETE FROM `spell_script_names` WHERE `ScriptName` IN (
'spell_sha_ancestral_resolve',
'spell_sha_resurgence',
'spell_sha_ancestral_healing',
'spell_sha_cleanse_spirit');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(-77829, 'spell_sha_ancestral_resolve'),
(-16180, 'spell_sha_resurgence'),
(-16176, 'spell_sha_ancestral_healing'),
(51886, 'spell_sha_cleanse_spirit');
DELETE FROM `spell_proc` WHERE `SpellId` IN (-16180, 16188, -16176, -82984);
INSERT INTO `spell_proc` (`SpellId`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `AttributesMask`) VALUES
(-16180, 0x00004000, 0x00000002, 0x00000002, 0x00000002, 0),
(-16176, 0x00055550, 0x00000002, 0x00000002, 0x00000002, 0),
(-82984, 0x00010000, 0x00000001, 0x00000002, 0x00000000, 0);
INSERT INTO `spell_proc` (`SpellId`, `SchoolMask`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `AttributesMask`) VALUES
(16188, 8, 0x00015550, 0x00000001|0x00000002, 0x00000001, 0, 0);
@@ -1,4 +0,0 @@
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_sha_earth_shock';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(8042, 'spell_sha_earth_shock');
@@ -1 +0,0 @@
UPDATE `spelleffect_dbc` SET `EffectImplicitTargetA`=47, `EffectImplicitTargetB`=0 WHERE `Id`=155915;
@@ -1,7 +0,0 @@
-- Icy Touch
UPDATE `spell_bonus_data` SET `ap_bonus`= 0.2 WHERE `entry`= 45477;
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_dk_runic_empowerment';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(81229, 'spell_dk_runic_empowerment');
@@ -1,4 +0,0 @@
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_warr_deep_wounds';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(-12834, 'spell_warr_deep_wounds');
@@ -1 +0,0 @@
UPDATE `spell_proc` SET `SpellFamilyMask0`= 0x00000020, `ProcFlags`= 0x00040000, `SpellTypeMask`= 1, `SpellPhaseMask`= 2, `Cooldown`= 5000 WHERE `SpellId`= -56636;
@@ -1,7 +0,0 @@
DELETE FROM `spell_script_names` where `ScriptName` IN
('spell_sha_healing_rain',
'spell_sha_healing_rain_triggered');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(73920, 'spell_sha_healing_rain'),
(73921, 'spell_sha_healing_rain_triggered');
@@ -1,3 +0,0 @@
DELETE FROM `spell_proc` WHERE `SpellId`= 52007;
INSERT INTO `spell_proc` (`SpellId`, `SpellFamilyName`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `Chance`) VALUES
(52007, 11, 0x00004400, 0x00000002, 0x00000002, 0, 20);
@@ -1,208 +0,0 @@
DELETE FROM `spell_proc` WHERE `SpellId` IN (
90848, -- Item - Proc Spell Power
90886, -- Item - Proc Haste Rating
90888, -- Item - Proc Haste Rating
90892, -- Item - Proc Crit Rating
90897, -- Item - Proc Spell Power
90899, -- Item - Proc Spell Power
90990, -- Item - Proc Spell Power
90993, -- Item - Proc Spell Power
95878, -- Item - Proc Mastery Rating
90943, -- Item - Proc Stacking Spell Power
90986, -- Item - Proc Stacking Spell Power
91011, -- Item - Proc Spell Power On Dmg
91025, -- Item - Proc Mastery
91031, -- Item - Proc Stacking Spell Power
91048, -- Item - Proc Spell Power
91080, -- Item - Proc Wandering DoT
91137, -- Item - Proc Spirit On Crit
91140, -- Item - Proc Spirit On Crit
91142, -- Item - Proc Haste Rating
91144, -- Item - Proc Haste Rating
91148, -- Item - Proc Spirit
91150, -- Item - Proc Spirit
91186, -- Item - Proc Spirit
91193, -- Item - Proc Intellect
91321, -- Item - Proc Stacking Spirit
91339, -- Item - Proc Stacking Strength
91353, -- Item - Proc Haste On Crit
91361, -- Item - Proc Strength
91365, -- Item - Proc Strength
91366, -- Item - Proc Strength On Crit
91369, -- Item - Proc Strength On Crit
91811, -- Item - Proc Stacking Strength
91814, -- Item - Proc Strength
91817, -- Item - Proc Strength
91822, -- Item - Proc Haste Rating
91833, -- Item - Proc Stacking Activator (5)
92044, -- Item - Proc Haste Rating
92054, -- Item - Proc Crit Rating
92056, -- Item - Proc Haste On Crit
92070, -- Item - Proc Agility
92086, -- Item - Proc Stacking Agility
92088, -- Item - Proc Crit Rating
92090, -- Item - Proc Stacking Agility
92093, -- Item - Proc Agility
92095, -- Item - Proc Agility On Crit
92097, -- Item - Proc Agility On Crit
92105, -- Item - Proc Stacking Agility
92114, -- Item - Proc Increased Attack Power
92125, -- Item - Proc Haste Rating
92127, -- Item - Proc Crit Rating
92164, -- Item - Proc Mastery Rating
92175, -- Item - Proc Mastery Rating
92319, -- Item - Proc Spell Power On Dmg
92322, -- Item - Proc Mastery
92326, -- Item - Proc Stacking Spell Power
92330, -- Item - Proc Stacking Spirit
92333, -- Item - Proc Spirit
92343, -- Item - Proc Haste Rating
92346, -- Item - Proc Strength
92350, -- Item - Proc Haste Rating
92353, -- Item - Proc Crit Rating
95763, -- Item - Proc Haste Rating
95873); -- Item - Proc Crit Rating - hw
-- Your melee and ranged critical strikes have a chance to grant stat_value for x seconds.
SET @PROC_FLAG := 0 | 0x00000154;
SET @TYPE_MASK := 0 | 0x00000001;
SET @PHASE_MASK := 0 | 0x00000002;
SET @HIT_MASK := 0 | 0x00000002;
INSERT INTO `spell_proc` (`SpellId`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `Cooldown`) VALUES
(92056, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 80000), -- Gear Detector
(92095, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 50000), -- Left Eye of Rajh
(92097, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 50000);
-- Your melee and ranged attacks have a chance to grant x stat_value for x seconds.
SET @PROC_FLAG := 0 | 0x00000154;
SET @TYPE_MASK := 0 | 0x00000001;
SET @PHASE_MASK := 0 | 0x00000002;
SET @HIT_MASK := 0 | 0x00000000;
INSERT INTO `spell_proc` (`SpellId`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `Cooldown`) VALUES
(92044, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 80000), -- Bileberry Smelling Salts
(92054, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 50000), -- Grace of the Herald - Heart of the Vile
(92070, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000), -- Key to the Endless Chamber
(92093, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000),
(92086, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 2000), -- Tia's Grace
(92090, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 2000),
(92088, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 50000), -- Grace of the Herald
(92105, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 2000), -- Fluid Death
(92125, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000), -- Prestor's Talisman of Machination
(92127, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 50000), -- Essence of the Cyclone
(92353, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 50000),
(95763, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 80000), -- Agony and Torment
(95873, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 80000); -- Herald of Doom
-- Your melee critical strikes have a chance to grant x stat_value for x seconds.
SET @PROC_FLAG := 0 | 0x00000014;
SET @TYPE_MASK := 0 | 0x00000001;
SET @PHASE_MASK := 0 | 0x00000002;
SET @HIT_MASK := 0 | 0x00000002;
INSERT INTO `spell_proc` (`SpellId`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `Cooldown`) VALUES
(91353, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 80000), -- Shrine-Cleansing Purifier - Tank-Commander Insignia
(91366, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 50000), -- Right Eye of Rajh
(91369, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 50000);
-- Your melee attacks grant / Your melee attacks have a chance to grant x stat_value.
SET @PROC_FLAG := 0 | 0x00000014;
SET @TYPE_MASK := 0 | 0x00000001;
SET @PHASE_MASK := 0 | 0x00000002;
SET @HIT_MASK := 0 | 0x00000000;
INSERT INTO `spell_proc` (`SpellId`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `Cooldown`) VALUES
(91339, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 2000), -- Petrified Spider Crab
(91361, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 100000), -- Heart of Solace
(91365, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 100000),
(91811, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 2000), -- License to Slay
(91814, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 100000), -- Impetuous
(91817, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 100000), -- Heart of Rage
(92346, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 100000),
(91822, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000), -- Crushing Weight
(92343, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000),
(91833, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 5000), -- Fury of Angerforge
(92114, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 50000), -- Unheeded Warning
(92164, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 80000), -- Porcelain Crab - Harrison's Insignia of Panache - Schnottz's Medallion of Command
(92175, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 80000); -- Porcelain Crab
-- Your healing spells have a chance to grant x stat_value for x seconds.
SET @PROC_FLAG := 0 | 0x00044000;
SET @TYPE_MASK := 0 | 0x00000002;
SET @PHASE_MASK := 0 | 0x00000002;
SET @HIT_MASK := 0 | 0x00000000;
INSERT INTO `spell_proc` (`SpellId`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `Cooldown`) VALUES
(91142, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000), -- Rainsong
(91144, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000),
(91148, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 100000), -- Blood of Isiset
(91150, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 100000),
(91186, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000), -- Fall of Morality
(92333, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000),
(91193, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000), -- Mandala of Stirring Patterns
(91321, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 2000), -- Jar of Ancient Remedies
(92330, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 2000);
-- Your healing spell critical strikes have a chance to grant x stat_value for x seconds.
SET @PROC_FLAG := 0 | 0x00044000;
SET @TYPE_MASK := 0 | 0x00000002;
SET @PHASE_MASK := 0 | 0x00000002;
SET @HIT_MASK := 0 | 0x00000002;
INSERT INTO `spell_proc` (`SpellId`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `Cooldown`) VALUES
(91137, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000), -- Tear of Blood
(91140, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000);
-- Your damage spells grant X, increasing stat_value for x seconds.
SET @PROC_FLAG_P := 0 | 0x00050000;
SET @PROC_FLAG_N := 0 | 0x00010000;
SET @TYPE_MASK := 0 | 0x00000001;
SET @PHASE_MASK := 0 | 0x00000002;
SET @HIT_MASK := 0 | 0x00000000;
INSERT INTO `spell_proc` (`SpellId`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `Cooldown`) VALUES
(91031, @PROC_FLAG_P, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 2000), -- Heart of Ignacious
(92326, @PROC_FLAG_P, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 2000);
-- Your harmful spells have a chance to grant x stat_value for x seconds.
SET @PROC_FLAG_P := 0 | 0x00050000;
SET @PROC_FLAG_N := 0 | 0x00010000;
SET @TYPE_MASK := 0 | 0x00000001;
SET @PHASE_MASK := 0 | 0x00000002;
SET @HIT_MASK := 0 | 0x00000000;
INSERT INTO `spell_proc` (`SpellId`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `Cooldown`) VALUES
(91011, @PROC_FLAG_P, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 100000), -- Bell of Enraging Resonance
(92319, @PROC_FLAG_P, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 100000),
(91025, @PROC_FLAG_N, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 50000), -- Theralion's Mirror
(92322, @PROC_FLAG_N, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 50000),
(91048, @PROC_FLAG_N, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000), -- Stump of Time
(91080, @PROC_FLAG_N, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 120000); -- Harmlight Token
-- Your spells have a chance to grant x stat_value for x seconds.
SET @PROC_FLAG := 0 | 0x00014000;
SET @TYPE_MASK := 0 | 0x00000007;
SET @PHASE_MASK := 0 | 0x00000001;
SET @HIT_MASK := 0 | 0x00000000;
INSERT INTO `spell_proc` (`SpellId`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `Cooldown`) VALUES
(90848, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 80000), -- Pelagic Prism
(90886, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000), -- Witching Hourglass
(90888, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000),
(90892, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 80000), -- Stonemother's Kiss
(90897, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000), -- Tendrills of Darkness
(90899, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 75000),
(90990, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 50000), -- Anhuur's Hymnal
(90993, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 50000),
(95878, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 80000); -- Talisman of Sinister Order
-- Your healing and damage periodic spells grant x stat_value each time they heal or deal damage.
SET @PROC_FLAG := 0 | 0x00040000;
SET @TYPE_MASK := 0 | 0x00000001 | 0x00000002;
SET @PHASE_MASK := 0 | 0x00000002;
SET @HIT_MASK := 0 | 0x00000000;
INSERT INTO `spell_proc` (`SpellId`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `Cooldown`) VALUES
(90943, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 2000), -- Gale of Shadows
(90986, @PROC_FLAG, @TYPE_MASK, @PHASE_MASK, @HIT_MASK, 2000);
@@ -1,10 +0,0 @@
INSERT INTO `spell_proc` (`SpellId`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `Cooldown`) VALUES
(94746, 0x00054000, 0x00000001 | 0x00000002, 0x00000002, 0x00000000, 45000), -- Enchant Weapon - Power Torrent
(94747, 0x00054400, 0x00000001 | 0x00000002, 0x00000002, 0x00000000, 45000), -- Enchant Weapon - Hurricane
(95472, 0x00050000, 0x00000001, 0x00000002, 0x00000000, 45000), -- Enchant Weapon - Avalanche
(95709, 0x00050000, 0x00000001, 0x00000002, 0x00000000, 45000); -- Enchant Weapon - Mending
DELETE FROM `spell_enchant_proc_data` WHERE `entry` IN (4098, 4099);
INSERT INTO `spell_enchant_proc_data` (`entry`, `customChance`, `PPMChance`, `procEx`) VALUES
(4098, 0, 1.25, 0), -- Enchant Weapon - Windwalk
(4099, 0, 1.25, 0); -- Enchant Weapon - Landslide
Loaded 100 of 471 files, more files were not shown because too many files have changed in this diff. Show more