DB Updates

This commit is contained in:
hondacrx
2021-09-29 19:26:16 -04:00
parent 3e040d6688
commit 475338bc4b
14 changed files with 3114 additions and 0 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,12 @@
DELETE FROM `playercreateinfo_cast_spell` WHERE `spell` IN (259086, 259085, 274907, 294662, 312339, 259087, 259084, 294659, 312338, 274905);
INSERT INTO `playercreateinfo_cast_spell` (`raceMask`, `ClassMask`, `spell`, `note`) VALUES
(0x10000000, 0x4, 259086, 'Void Elf summon Voidstalker Pet'), -- Voidelf
(0x20000000, 0x4, 259085, 'Lightforged Draenei summon Lightforged Talbuk Pet'), -- Lightforged Draenei
(0x800, 0x4, 274907, 'Dark Iron Dwarf summon Blazehound Pet'), -- Dark Iron Dwarf
(0x80000000, 0x4, 294662, 'Kul Tiran summon Alpine Falcon Pet'), -- Kul Tiran Human
(0x4000, 0x4, 312339, 'Mechagnome summon Robowolf Pet'), -- Mechagnome
(0x4000000, 0x4, 259087, 'Nightborne summon Manasaber Pet'), -- Nightborn
(0x8000000, 0x4, 259084, 'Highmountain Tauren summon Great Eagle Pet'), -- Highmountain Tauren
(0x40000000, 0x4, 294659, 'Zandalari Troll summon Slate Direhorn Pet'), -- Zandalari Troll
(0x1000, 0x4, 312338, 'Vulpera summon Crimson Cobra Pet'), -- Vulpera
(0x2000, 0x4, 274905, 'Maghar Orc Summon Shadowmoon Stalker Pet'); -- Maghar Orc
@@ -0,0 +1,16 @@
-- Josef Gregorian
DELETE FROM `creature_text` WHERE `CreatureID`=4576;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(4576,0,0,"One moment while I stitch this together...",12,1,100,0,0,0,2761,0,"Josef Gregorian"),
(4576,1,0,"There. I am finished with your robe, $n.",12,1,100,1,0,0,2762,0,"Josef Gregorian");
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=4576;
DELETE FROM `smart_scripts` WHERE `entryorguid`=4576 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=457600 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
(4576,0,0,0,20,0,100,0,1961,0,0,0,80,457600,0,0,0,0,0,1,0,0,0,0,0,0,0,"Josef Gregorian - On Quest 'Gathering Materials' Finished - Run Script"),
(457600,9,0,0,0,0,100,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Josef Gregorian - On Script - Remove Npc Flag Questgiver"),
(457600,9,1,0,0,0,100,0,1000,1000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Josef Gregorian - On Script - Say Line 0"),
(457600,9,2,0,0,0,100,0,3000,3000,0,0,11,9157,0,0,0,0,0,1,0,0,0,0,0,0,0,"Josef Gregorian - On Script - Cast 'Create Mage's Robe'"),
(457600,9,3,0,0,0,100,0,5000,5000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Josef Gregorian - On Script - Say Line 1"),
(457600,9,4,0,0,0,100,0,0,0,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Josef Gregorian - On Script - Add Npc Flag Questgiver");
@@ -0,0 +1,16 @@
-- Kil'hala
DELETE FROM `creature_text` WHERE `CreatureID`=3484;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(3484,0,0,"I shall now begin the robe...",12,1,100,0,0,0,2665,0,"Kil'hala"),
(3484,1,0,"Your robe is complete, $n.",12,1,100,1,0,0,2666,0,"Kil'hala");
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=3484;
DELETE FROM `smart_scripts` WHERE `entryorguid`=3484 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=348400 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
(3484,0,0,0,20,0,100,0,1945,0,0,0,80,348400,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kil'hala - On Quest 'Laughing Sisters' Finished - Run Script"),
(348400,9,0,0,0,0,100,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kil'hala - On Script - Remove Npc Flag Questgiver"),
(348400,9,1,0,0,0,100,0,1000,1000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kil'hala - On Script - Say Line 0"),
(348400,9,2,0,0,0,100,0,3000,3000,0,0,11,9157,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kil'hala - On Script - Cast 'Create Mage's Robe'"),
(348400,9,3,0,0,0,100,0,5000,5000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kil'hala - On Script - Say Line 1"),
(348400,9,4,0,0,0,100,0,0,0,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kil'hala - On Script - Add Npc Flag Questgiver");
@@ -0,0 +1,33 @@
-- J.D. Collie
DELETE FROM `creature_text` WHERE `CreatureID`=9117 AND `GroupID` IN (8,9);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(9117,8,0,"I know it'll work this time...",12,0,100,1,0,0,4839,0,"J.D. Collie"),
(9117,8,1,"This will be my best experiment yet!",12,0,100,1,0,0,4840,0,"J.D. Collie"),
(9117,8,2,"I know it'll work this time... My last 13 tries were just practice!",12,0,100,1,0,0,4842,0,"J.D. Collie"),
(9117,9,0,"Now, if I add the yellow ones...",12,0,100,0,0,0,4841,0,"J.D. Collie");
DELETE FROM `smart_scripts` WHERE `entryorguid`=9117 AND `source_type`=0 AND `id` IN (2,3,4);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (911701,911702,911703) AND `source_type`=9;
DELETE FROM `smart_scripts` WHERE `entryorguid`=911700 AND `source_type`=9 AND `id`=6;
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
(9117,0,2,0,20,0,100,0,3941,0,0,0,80,911701,0,0,0,0,0,1,0,0,0,0,0,0,0,"J.D. Collie - On Quest 'A Gnome's Assistance' Finished - Run Script"),
(9117,0,3,0,40,0,100,0,1,9117,0,0,80,911702,0,0,0,0,0,1,0,0,0,0,0,0,0,"J.D. Collie - On Waypoint 1 Reached - Run Script"),
(9117,0,4,0,40,0,100,0,2,9117,0,0,80,911703,0,0,0,0,0,1,0,0,0,0,0,0,0,"J.D. Collie - On Waypoint 2 Reached - Run Script"),
(911701,9,0,0,0,0,100,0,0,0,0,0,83,3,0,0,0,0,0,1,0,0,0,0,0,0,0,"J.D. Collie - On Script - Remove Npc Flag Questgiver+Gossip"),
(911701,9,1,0,0,0,100,0,1000,1000,0,0,1,8,0,0,0,0,0,1,0,0,0,0,0,0,0,"J.D. Collie - On Script - Say Line 8"),
(911701,9,2,0,0,0,100,0,4000,4000,0,0,53,1,9117,0,0,0,0,1,0,0,0,0,0,0,0,"J.D. Collie - On Script - Start Waypoint"),
(911702,9,0,0,0,0,100,0,0,0,0,0,54,16000,0,0,0,0,0,1,0,0,0,0,0,0,0,"J.D. Collie - On Script - Pause Waypoint"),
(911702,9,1,0,0,0,100,0,1000,1000,0,0,1,9,0,0,0,0,0,1,0,0,0,0,0,0,0,"J.D. Collie - On Script - Say Line 9"),
(911702,9,2,0,0,0,100,0,3000,3000,0,0,1,4,0,0,0,0,0,1,0,0,0,0,0,0,0,"J.D. Collie - On Script - Say Line 4"),
(911702,9,3,0,0,0,100,0,0,0,0,0,11,32990,0,0,0,0,0,1,0,0,0,0,0,0,0,"J.D. Collie - On Script - Cast 'Enchanting Cast Visual'"),
(911702,9,4,0,0,0,100,0,2000,2000,0,0,1,5,0,0,0,0,0,1,0,0,0,0,0,0,0,"J.D. Collie - On Script - Say Line 5"),
(911702,9,5,0,0,0,100,0,4000,4000,0,0,1,6,0,0,0,0,0,1,0,0,0,0,0,0,0,"J.D. Collie - On Script - Say Line 6"),
(911702,9,6,0,0,0,100,0,3000,3000,0,0,1,7,0,0,0,0,0,1,0,0,0,0,0,0,0,"J.D. Collie - On Script - Say Line 7"),
(911703,9,0,0,0,0,100,0,1000,1000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,0.872665,"J.D. Collie - On Script - Set Orientation"),
(911703,9,1,0,0,0,100,0,0,0,0,0,82,3,0,0,0,0,0,1,0,0,0,0,0,0,0,"J.D. Collie - On Script - Add Npc Flag Questgiver+Gossip"),
(911703,9,2,0,0,0,100,0,0,0,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0,"J.D. Collie - On Script - Say Line 3");
DELETE FROM `waypoints` WHERE `entry`=9117;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(9117,1,-6027.85,-1020.16,-217.056,""),
(9117,2,-6033.25,-1017.56,-217.055,"");
@@ -0,0 +1 @@
UPDATE `spell_proc` SET `DisableEffectsMask`=4 WHERE `SpellId`=41469;
@@ -0,0 +1,22 @@
-- Larion --> Add gossip option
DELETE FROM `gossip_menu` WHERE `MenuID`=5631;
INSERT INTO `gossip_menu` (`MenuID`, `TextID`, `VerifiedBuild`) VALUES
(5631,6742,0);
-- DELETE FROM `gossip_menu_option` WHERE `MenuID`=5630;
-- INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextID`, `VerifiedBuild`) VALUES
-- (5630,0,0,"Larion, I want to help you fight these pests!",9138,1,1,5631,0,0,0,"",0,0);
DELETE FROM `npc_text` WHERE `ID`=6742;
INSERT INTO `npc_text` (`ID`, `BroadcastTextID0`, `Probability0`) VALUES
(6742,9139,1);
-- DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=5630;
-- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
-- (15,5630,0,0,0,8,0,4148,0,0,0,0,0,"","Show gossip option if quest 'Bloodpetal Zapper' is rewarded"),
-- (15,5630,0,0,0,2,0,11320,1,1,1,0,0,"","Show gossip option if player does not have item 'Bloodpetal Zapper'");
-- UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=9118;
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=9118 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
-- (9118,0,0,0,62,0,100,0,5630,0,0,0,85,22565,0,0,0,0,0,7,0,0,0,0,0,0,0,"Larion - On Gossip Option 0 Selected - Invoker Cast 'Create Bloodpetal Zapper'");
@@ -0,0 +1,328 @@
-- Quest "Assisting Arch Druid Runetotem"
DELETE FROM `quest_details` WHERE `ID`=936;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(936,1,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=2 WHERE `ID`=936;
-- Quest "Assisting Arch Druid Runetotem"
DELETE FROM `quest_details` WHERE `ID`=3762;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3762,1,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=2 WHERE `ID`=3762;
-- Quest "Assisting Arch Druid Runetotem"
DELETE FROM `quest_details` WHERE `ID`=3784;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3784,1,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=2 WHERE `ID`=3784;
-- Quest "Un'Goro Soil"
DELETE FROM `quest_details` WHERE `ID`=3761;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3761,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=25, `EmoteOnIncomplete`=25 WHERE `ID`=3761;
-- Quest "Morrowgrain Research"
DELETE FROM `quest_details` WHERE `ID`=3782;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3782,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=2 WHERE `ID`=3782;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=3782;
-- Quest "Morrowgrain Research (Part 2)"
DELETE FROM `quest_details` WHERE `ID`=3786;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3786,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6 WHERE `ID`=3786;
UPDATE `quest_offer_reward` SET `Emote1`=4 WHERE `ID`=3786;
-- Quest "Morrowgrain to Thunder Bluff"
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=1 WHERE `ID`=3804;
UPDATE `quest_offer_reward` SET `Emote1`=4 WHERE `ID`=3804;
-- Quest "Assisting Arch Druid Staghelm"
DELETE FROM `quest_details` WHERE `ID` IN (3763,3789,3790,10520);
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3763,1,0,0,0,0,0,0,0,0),
(3789,1,0,0,0,0,0,0,0,0),
(3790,1,0,0,0,0,0,0,0,0),
(10520,1,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID` IN (3763,3789,3790,10520);
-- Quest "Un'Goro Soil"
DELETE FROM `quest_details` WHERE `ID`=3764;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3764,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=4, `EmoteOnComplete`=4 WHERE `ID`=3764;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=3764;
-- Quest "Morrowgrain Research"
DELETE FROM `quest_details` WHERE `ID`=3781;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3781,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=2 WHERE `ID`=3781;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=3781;
-- Quest "Morrowgrain Research (Part 2)"
DELETE FROM `quest_details` WHERE `ID`=3785;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3785,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=3785;
UPDATE `quest_offer_reward` SET `Emote1`=4 WHERE `ID`=3785;
-- Quest "Morrowgrain to Darnassus"
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=1 WHERE `ID`=3803;
UPDATE `quest_offer_reward` SET `Emote1`=4 WHERE `ID`=3803;
-- Quest "Bone-Bladed Weapons"
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6 WHERE `ID`=4300;
-- Quest "Bungle in the Jungle"
DELETE FROM `quest_details` WHERE `ID`=4496;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4496,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=4496;
UPDATE `quest_offer_reward` SET `Emote1`=21 WHERE `ID`=4496;
-- Quest "Volcanic Activity"
DELETE FROM `quest_details` WHERE `ID`=4502;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4502,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=4502;
UPDATE `quest_offer_reward` SET `Emote1`=4, `Emote2`=1 WHERE `ID`=4502;
-- Quest "The Apes of Un'Goro"
DELETE FROM `quest_details` WHERE `ID`=4289;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4289,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=2 WHERE `ID`=4289;
-- Quest "The Mighty U'cha"
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=1 WHERE `ID`=4301;
-- Quest "The Fare of Lar'korwi"
DELETE FROM `quest_details` WHERE `ID`=4290;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4290,1,1,1,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=1 WHERE `ID`=4290;
-- Quest "The Scent of Lar'korwi"
DELETE FROM `quest_details` WHERE `ID`=4291;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4291,1,1,1,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=1 WHERE `ID`=4291;
-- Quest "The Bait for Lar'korwi"
DELETE FROM `quest_details` WHERE `ID`=4292;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4292,1,1,1,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=2, `EmoteOnIncomplete`=2 WHERE `ID`=4292;
-- Quest "Chasing A-Me 01"
DELETE FROM `quest_details` WHERE `ID`=4243;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4243,18,1,1,0,4000,0,0,0,0);
-- Quest "Chasing A-Me 01 (Part 3)"
UPDATE `quest_offer_reward` SET `Emote1`=4, `Emote2`=1, `Emote3`=2 WHERE `ID`=4245;
-- Quest "Roll the Bones"
DELETE FROM `quest_details` WHERE `ID`=3882;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3882,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=3882;
UPDATE `quest_offer_reward` SET `Emote2`=22, `Emote3`=1, `EmoteDelay2`=1000, `EmoteDelay3`=1000 WHERE `ID`=3882;
-- Quest "Alien Ecology"
DELETE FROM `quest_details` WHERE `ID`=3883;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3883,5,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6 WHERE `ID`=3883;
-- Quest "Expedition Salvation"
DELETE FROM `quest_details` WHERE `ID`=3881;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3881,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=1 WHERE `ID`=3881;
UPDATE `quest_offer_reward` SET `Emote1`=4 WHERE `ID`=3881;
-- Quest "Muigin and Larion"
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=11 WHERE `ID`=4141;
-- Quest "A Visit to Gregan"
DELETE FROM `quest_details` WHERE `ID`=4142;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4142,6,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=4142;
UPDATE `quest_offer_reward` SET `Emote2`=1 WHERE `ID`=4142;
-- Quest "Haze of Evil"
DELETE FROM `quest_details` WHERE `ID`=4143;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4143,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=1 WHERE `ID`=4143;
-- Quest "Bloodpetal Sprouts"
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=1 WHERE `ID`=4144;
-- Quest "Larion and Muigin"
DELETE FROM `quest_details` WHERE `ID`=4145;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4145,5,1,6,0,0,0,0,0,0);
-- Quest "Marvon's Workshop"
DELETE FROM `quest_details` WHERE `ID`=4147;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4147,1,5,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=4147;
-- Quest "Zapper Fuel"
DELETE FROM `quest_details` WHERE `ID`=4146;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4146,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=5, `EmoteOnComplete`=5 WHERE `ID`=4146;
-- Quest "Bloodpetal Zapper"
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=1 WHERE `ID`=4148;
-- Quest "Finding the Source"
DELETE FROM `quest_details` WHERE `ID`=974;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(974,6,4,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=1 WHERE `ID`=974;
UPDATE `quest_offer_reward` SET `Emote1`=4 WHERE `ID`=974;
-- Quest "The New Springs"
DELETE FROM `quest_details` WHERE `ID`=980;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(980,1,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=980;
-- Quest "Strange Sources"
DELETE FROM `quest_details` WHERE `ID`=4842;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4842,1,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=4842;
-- Quest "Shizzle's Flyer"
DELETE FROM `quest_details` WHERE `ID`=4503;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4503,4,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=4503;
UPDATE `quest_offer_reward` SET `Emote2`=2 WHERE `ID`=4503;
-- Quest "Beware of Pterrordax"
UPDATE `quest_offer_reward` SET `Emote1`=1, `Emote2`=4 WHERE `ID`=4501;
-- Quest "A Little Help From My Friends"
UPDATE `quest_offer_reward` SET `Emote1`=4, `EmoteDelay1`=2000 WHERE `ID`=4491;
-- Quest "Crystals of Power"
DELETE FROM `quest_details` WHERE `ID`=4284;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4284,1,5,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=5 WHERE `ID`=4284;
-- Quest "It's a Secret to Everybody (Part 2)"
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=3845;
UPDATE `quest_offer_reward` SET `Emote1`=6 WHERE `ID`=3845;
-- Quest "It's a Secret to Everybody (Part 3)"
DELETE FROM `quest_details` WHERE `ID`=3908;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3908,1,1,1,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=3908;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=3908;
-- Quest "The Videre Elixir"
DELETE FROM `quest_details` WHERE `ID`=3909;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3909,5,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=6, `EmoteOnIncomplete`=6 WHERE `ID`=3909;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=3909;
-- Quest "The Videre Elixir"
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=1 WHERE `ID`=4041;
UPDATE `quest_offer_reward` SET `Emote1`=6 WHERE `ID`=4041;
-- Quest "Meet at the Grave"
DELETE FROM `quest_details` WHERE `ID`=3912;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3912,1,1,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=3912;
-- Quest "A Grave Situation"
DELETE FROM `quest_details` WHERE `ID`=3913;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3913,1,1,0,0,0,0,0,0,0);
-- Quest "Linken's Sword"
UPDATE `quest_request_items` SET `EmoteOnComplete`=25 WHERE `ID`=3914;
UPDATE `quest_offer_reward` SET `Emote1`=4, `Emote2`=6 WHERE `ID`=3914;
-- Quest "A Gnome's Assistance"
DELETE FROM `quest_details` WHERE `ID`=3941;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3941,1,1,1,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=5 WHERE `ID`=3941;
-- Quest "Linken's Memory"
DELETE FROM `quest_details` WHERE `ID`=3942;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3942,6,1,1,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=3 WHERE `ID`=3942;
-- Quest "Silver Heart"
DELETE FROM `quest_details` WHERE `ID`=4084;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4084,274,1,1,1,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=1 WHERE `ID`=4084;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=4084;
-- Quest "Aquementas"
DELETE FROM `quest_details` WHERE `ID`=4005;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4005,1,1,1,1,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=6, `EmoteOnIncomplete`=6 WHERE `ID`=4005;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=4005;
-- Quest "Linken's Adventure"
DELETE FROM `quest_details` WHERE `ID`=3961;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3961,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=3 WHERE `ID`=3961;
UPDATE `quest_offer_reward` SET `Emote1`=6 WHERE `ID`=3961;
-- Quest "It's Dangerous to Go Alone"
DELETE FROM `quest_details` WHERE `ID`=3962;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3962,273,1,1,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=1 WHERE `ID`=3962;
UPDATE `quest_offer_reward` SET `Emote1`=2, `Emote2`=1, `Emote3`=1 WHERE `ID`=3962;
-- Quest "Torwa Pathfinder"
DELETE FROM `quest_details` WHERE `ID`=9063;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(9063,1,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=2 WHERE `ID`=9063;
-- Quest "Bloodpetal Poison"
DELETE FROM `quest_details` WHERE `ID`=9052;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(9052,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=9052;
UPDATE `quest_offer_reward` SET `Emote1`=4 WHERE `ID`=9052;
-- Quest "Toxic Test"
DELETE FROM `quest_details` WHERE `ID`=9051;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(9051,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6 WHERE `ID`=9051;
UPDATE `quest_offer_reward` SET `Emote1`=2, `Emote2`=6 WHERE `ID`=9051;
-- Quest "A Better Ingredient"
DELETE FROM `quest_details` WHERE `ID`=9053;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(9053,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=9053;
UPDATE `quest_offer_reward` SET `Emote1`=4, `Emote2`=2 WHERE `ID`=9053;
@@ -0,0 +1,549 @@
-- Deadwood Den Watcher
DELETE FROM `smart_scripts` WHERE `entryorguid`=7156 AND `source_type`=0 AND `id`=1;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `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
(7156,0,1,0,2,0,100,1,0,50,0,0,0,39,30,1,0,0,0,0,1,0,0,0,0,0,0,0,"Deadwood Den Watcher - Between 0-50% Health - Call For Help (No Repeat)");
-- Overlord Ror
DELETE FROM `smart_scripts` WHERE `entryorguid`=9464 AND `source_type`=0 AND `id`=2;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(9464,0,2,0,2,0,100,1,0,50,0,0,0,39,40,1,0,0,0,0,1,0,0,0,0,0,0,0,"Overlord Ror - Between 0-50% Health - Call For Help (No Repeat)");
-- Duskwing
DELETE FROM `smart_scripts` WHERE `entryorguid`=11897 AND `source_type`=0 AND `id`=1;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `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
(11897,0,1,0,0,0,100,0,6000,9000,14000,17000,0,11,8281,0,0,0,0,0,1,0,0,0,0,0,0,0,"Duskwing - In Combat - Cast 'Sonic Burst'");
-- Unseen Servant
-- UPDATE `smart_scripts` SET `action_param1`=30991 WHERE `entryorguid`=8538 AND `source_type`=0 AND `id`=2;
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=8538 AND `source_type`=0 AND `id`=3;
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (8538,0,3,0,25,0,100,0,0,0,0,0,0,11,8279,0,0,0,0,0,1,0,0,0,0,0,0,0,"Unseen Servant - On Reset - Cast 'Stealth Detection'");
-- Rotting Ghoul
DELETE FROM `smart_scripts` WHERE `entryorguid`=1793 AND `source_type`=0 AND `id` IN (1,2);
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(1793,0,1,0,25,0,100,0,0,0,0,0,0,11,16800,0,0,0,0,0,1,0,0,0,0,0,0,0,"Rotting Ghoul - On Reset - Cast 'Ghoul Rot'"),
(1793,0,2,0,11,0,100,0,0,0,0,0,0,11,26047,0,0,0,0,0,1,0,0,0,0,0,0,0,"Rotting Ghoul - On Respawn - Cast 'Birth'");
-- Freezing Ghoul
DELETE FROM `smart_scripts` WHERE `entryorguid`=1796 AND `source_type`=0 AND `id` IN (1,2);
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(1796,0,1,0,23,0,100,0,12544,0,1000,3000,0,11,12544,2,0,0,0,0,1,0,0,0,0,0,0,0,"Freezing Ghoul - On Has No Aura 'Frost Armor' - Cast 'Frost Armor'"),
(1796,0,2,0,11,0,100,0,0,0,0,0,0,11,26047,0,0,0,0,0,1,0,0,0,0,0,0,0,"Freezing Ghoul - On Respawn - Cast 'Birth'");
-- Devouring Ooze
DELETE FROM `smart_scripts` WHERE `entryorguid`=1808 AND `source_type`=0 AND `id`=1;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `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
(1808,0,1,0,0,0,100,0,5000,10000,15000,20000,0,11,12250,0,0,0,0,0,1,0,0,0,0,0,0,0,"Devouring Ooze - In Combat - Cast 'Summon Oozeling'");
-- Oozeling
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8257;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8257 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`, `event_param5`, `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
(8257,0,0,0,54,0,100,0,0,0,0,0,0,49,0,0,0,0,0,0,21,20,0,0,0,0,0,0,"Oozeling - Just Summoned - Start Attacking");
-- Fledgling Chillwind
DELETE FROM `smart_scripts` WHERE `entryorguid`=7447 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(7447,0,0,0,0,0,100,0,1000,2000,2500,4500,0,11,16552,64,0,0,0,0,2,0,0,0,0,0,0,0,"Fledgling Chillwind - In Combat - Cast 'Venom Spit'");
-- Cauldron Lord Bilemaw
DELETE FROM `smart_scripts` WHERE `entryorguid`=11075 AND `source_type`=0 AND `id`=2;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(11075,0,2,0,25,0,100,0,0,0,0,0,0,11,3417,0,0,0,0,0,1,0,0,0,0,0,0,0,"Cauldron Lord Bilemaw - On Reset - Cast 'Thrash'");
-- Slavering Ghoul
DELETE FROM `smart_scripts` WHERE `entryorguid`=1791 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`, `event_param5`, `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
(1791,0,0,0,25,0,100,0,0,0,0,0,0,11,8876,0,0,0,0,0,1,0,0,0,0,0,0,0,"Slavering Ghoul - On Reset - Cast 'Thrash'"),
(1791,0,1,0,0,0,100,0,6000,9000,45000,60000,0,11,7125,0,0,0,0,0,2,0,0,0,0,0,0,0,"Slavering Ghoul - In Combat - Cast 'Toxic Saliva'"),
(1791,0,2,0,11,0,100,0,0,0,0,0,0,11,26047,0,0,0,0,0,1,0,0,0,0,0,0,0,"Slavering Ghoul - On Respawn - Cast 'Birth'");
-- Scarlet Paladin
DELETE FROM `smart_scripts` WHERE `entryorguid`=1834 AND `source_type`=0 AND `id`=4;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(1834,0,4,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Paladin - On Aggro - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=1834;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(1834,0,0,"You carry the taint of the Scourge. Prepare to enter the Twisting Nether.",12,7,100,0,0,0,2625,0,"Scarlet Paladin"),
(1834,0,1,"There is no escape for you. The Crusade shall destroy all who carry the Scourge's taint.",12,7,100,0,0,0,2626,0,"Scarlet Paladin"),
(1834,0,2,"The Light condemns all who harbor evil. Now you will die!",12,7,100,0,0,0,2627,0,"Scarlet Paladin"),
(1834,0,3,"The Scarlet Crusade shall smite the wicked and drive evil from these lands!",12,7,100,0,0,0,2628,0,"Scarlet Paladin");
-- Scarlet Priest
DELETE FROM `smart_scripts` WHERE `entryorguid`=10608 AND `source_type`=0 AND `id`=5;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(10608,0,5,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Priest - On Aggro - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=10608;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(10608,0,0,"You carry the taint of the Scourge. Prepare to enter the Twisting Nether.",12,7,100,0,0,0,2625,0,"Scarlet Priest"),
(10608,0,1,"There is no escape for you. The Crusade shall destroy all who carry the Scourge's taint.",12,7,100,0,0,0,2626,0,"Scarlet Priest"),
(10608,0,2,"The Light condemns all who harbor evil. Now you will die!",12,7,100,0,0,0,2627,0,"Scarlet Priest"),
(10608,0,3,"The Scarlet Crusade shall smite the wicked and drive evil from these lands!",12,7,100,0,0,0,2628,0,"Scarlet Priest");
-- Scarlet Sentinel
DELETE FROM `smart_scripts` WHERE `entryorguid`=1827 AND `source_type`=0 AND `id`=3;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(1827,0,3,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Sentinel - On Aggro - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=1827;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(1827,0,0,"You carry the taint of the Scourge. Prepare to enter the Twisting Nether.",12,7,100,0,0,0,2625,0,"Scarlet Sentinel"),
(1827,0,1,"There is no escape for you. The Crusade shall destroy all who carry the Scourge's taint.",12,7,100,0,0,0,2626,0,"Scarlet Sentinel"),
(1827,0,2,"The Light condemns all who harbor evil. Now you will die!",12,7,100,0,0,0,2627,0,"Scarlet Sentinel"),
(1827,0,3,"The Scarlet Crusade shall smite the wicked and drive evil from these lands!",12,7,100,0,0,0,2628,0,"Scarlet Sentinel");
-- Scarlet Spellbinder
UPDATE `smart_scripts` SET `action_param2`=0 WHERE `entryorguid`=4494 AND `source_type`=0 AND `id` IN (1,2);
DELETE FROM `smart_scripts` WHERE `entryorguid`=4494 AND `source_type`=0 AND `id`=4;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(4494,0,4,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Spellbinder - On Aggro - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=4494;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(4494,0,0,"You carry the taint of the Scourge. Prepare to enter the Twisting Nether.",12,7,100,0,0,0,2625,0,"Scarlet Spellbinder"),
(4494,0,1,"There is no escape for you. The Crusade shall destroy all who carry the Scourge's taint.",12,7,100,0,0,0,2626,0,"Scarlet Spellbinder"),
(4494,0,2,"The Light condemns all who harbor evil. Now you will die!",12,7,100,0,0,0,2627,0,"Scarlet Spellbinder"),
(4494,0,3,"The Scarlet Crusade shall smite the wicked and drive evil from these lands!",12,7,100,0,0,0,2628,0,"Scarlet Spellbinder");
-- Scarlet Mage
UPDATE `smart_scripts` SET `action_param2`=0 WHERE `entryorguid`=1826 AND `source_type`=0 AND `id`=1;
DELETE FROM `smart_scripts` WHERE `entryorguid`=1826 AND `source_type`=0 AND `id`=3;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(1826,0,3,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Mage - On Aggro - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=1826;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(1826,0,0,"You carry the taint of the Scourge. Prepare to enter the Twisting Nether.",12,7,100,0,0,0,2625,0,"Scarlet Mage"),
(1826,0,1,"There is no escape for you. The Crusade shall destroy all who carry the Scourge's taint.",12,7,100,0,0,0,2626,0,"Scarlet Mage"),
(1826,0,2,"The Light condemns all who harbor evil. Now you will die!",12,7,100,0,0,0,2627,0,"Scarlet Mage"),
(1826,0,3,"The Scarlet Crusade shall smite the wicked and drive evil from these lands!",12,7,100,0,0,0,2628,0,"Scarlet Mage");
-- Scarlet Avenger
DELETE FROM `smart_scripts` WHERE `entryorguid`=4493 AND `source_type`=0 AND `id` IN (0,2);
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(4493,0,0,0,25,0,100,0,0,0,0,0,0,11,12787,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Avenger - On Reset - Cast 'Thrash'"),
(4493,0,2,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Avenger - On Aggro - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=4493;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(4493,0,0,"You carry the taint of the Scourge. Prepare to enter the Twisting Nether.",12,7,100,0,0,0,2625,0,"Scarlet Avenger"),
(4493,0,1,"There is no escape for you. The Crusade shall destroy all who carry the Scourge's taint.",12,7,100,0,0,0,2626,0,"Scarlet Avenger"),
(4493,0,2,"The Light condemns all who harbor evil. Now you will die!",12,7,100,0,0,0,2627,0,"Scarlet Avenger"),
(4493,0,3,"The Scarlet Crusade shall smite the wicked and drive evil from these lands!",12,7,100,0,0,0,2628,0,"Scarlet Avenger");
-- Scarlet Knight
DELETE FROM `smart_scripts` WHERE `entryorguid`=1833 AND `source_type`=0 AND `id`=3;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(1833,0,3,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Knight - On Aggro - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=1833;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(1833,0,0,"You carry the taint of the Scourge. Prepare to enter the Twisting Nether.",12,7,100,0,0,0,2625,0,"Scarlet Knight"),
(1833,0,1,"There is no escape for you. The Crusade shall destroy all who carry the Scourge's taint.",12,7,100,0,0,0,2626,0,"Scarlet Knight"),
(1833,0,2,"The Light condemns all who harbor evil. Now you will die!",12,7,100,0,0,0,2627,0,"Scarlet Knight"),
(1833,0,3,"The Scarlet Crusade shall smite the wicked and drive evil from these lands!",12,7,100,0,0,0,2628,0,"Scarlet Knight");
-- Scarlet Medic
DELETE FROM `smart_scripts` WHERE `entryorguid`=10605 AND `source_type`=0 AND `id`=4;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(10605,0,4,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Medic - On Aggro - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=10605;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(10605,0,0,"You carry the taint of the Scourge. Prepare to enter the Twisting Nether.",12,7,100,0,0,0,2625,0,"Scarlet Medic"),
(10605,0,1,"There is no escape for you. The Crusade shall destroy all who carry the Scourge's taint.",12,7,100,0,0,0,2626,0,"Scarlet Medic"),
(10605,0,2,"The Light condemns all who harbor evil. Now you will die!",12,7,100,0,0,0,2627,0,"Scarlet Medic"),
(10605,0,3,"The Scarlet Crusade shall smite the wicked and drive evil from these lands!",12,7,100,0,0,0,2628,0,"Scarlet Medic");
-- Scarlet Invoker
DELETE FROM `smart_scripts` WHERE `entryorguid`=1835 AND `source_type`=0 AND `id` IN (0,1,3);
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(1835,0,0,0,0,0,100,0,0,0,2000,4000,0,11,15736,64,0,0,0,0,2,0,0,0,0,0,0,0,"Scarlet Invoker - In Combat - Cast 'Arcane Missiles'"),
(1835,0,1,0,9,0,100,0,0,8,12000,20000,0,11,11975,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Invoker - Within 0-8 Range - Cast 'Arcane Explosion'"),
(1835,0,3,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Invoker - On Aggro - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=1835;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(1835,0,0,"You carry the taint of the Scourge. Prepare to enter the Twisting Nether.",12,7,100,0,0,0,2625,0,"Scarlet Invoker"),
(1835,0,1,"There is no escape for you. The Crusade shall destroy all who carry the Scourge's taint.",12,7,100,0,0,0,2626,0,"Scarlet Invoker"),
(1835,0,2,"The Light condemns all who harbor evil. Now you will die!",12,7,100,0,0,0,2627,0,"Scarlet Invoker"),
(1835,0,3,"The Scarlet Crusade shall smite the wicked and drive evil from these lands!",12,7,100,0,0,0,2628,0,"Scarlet Invoker");
-- Scarlet Hunter
DELETE FROM `smart_scripts` WHERE `entryorguid`=1831 AND `source_type`=0 AND `id`=3;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(1831,0,3,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Hunter - On Aggro - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=1831;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(1831,0,0,"You carry the taint of the Scourge. Prepare to enter the Twisting Nether.",12,7,100,0,0,0,2625,0,"Scarlet Hunter"),
(1831,0,1,"There is no escape for you. The Crusade shall destroy all who carry the Scourge's taint.",12,7,100,0,0,0,2626,0,"Scarlet Hunter"),
(1831,0,2,"The Light condemns all who harbor evil. Now you will die!",12,7,100,0,0,0,2627,0,"Scarlet Hunter"),
(1831,0,3,"The Scarlet Crusade shall smite the wicked and drive evil from these lands!",12,7,100,0,0,0,2628,0,"Scarlet Hunter");
-- Gibbering Ghoul
DELETE FROM `smart_scripts` WHERE `entryorguid`=8531 AND `source_type`=0 AND `id`=1;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `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
(8531,0,1,0,0,0,100,0,6000,12000,22000,28000,0,11,12889,0,0,0,0,0,1,0,0,0,0,0,0,0,"Gibbering Ghoul - In Combat - Cast 'Curse of Tongues'");
-- Snarlflare
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=14272;
DELETE FROM `smart_scripts` WHERE `entryorguid`=14272 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
(14272,0,0,0,1,0,100,0,6000,10000,6000,10000,11,54293,0,0,0,0,0,1,0,0,0,0,0,0,0,"Snarlflare - Out Of Combat - Cast 'Flame Breath'"),
(14272,0,1,0,0,0,100,0,4000,6000,8000,12000,11,8873,0,0,0,0,0,2,0,0,0,0,0,0,0,"Snarlflare - Combat - Cast 'Flame Breath'");
-- Scarlet Smith
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=1885;
DELETE FROM `smart_scripts` WHERE `entryorguid`=1885 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`, `event_param5`, `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
(1885,0,0,0,0,0,100,0,5000,7000,5000,7000,0,11,12057,0,0,0,0,0,2,0,0,0,0,0,0,0,"Scarlet Smith - In Combat - Cast 'Strike'"),
(1885,0,1,0,0,0,100,0,8000,11000,11000,14000,0,11,11428,0,0,0,0,0,2,0,0,0,0,0,0,0,"Scarlet Smith - In Combat - Cast 'Knockdown'"),
(1885,0,2,0,2,0,100,1,0,15,0,0,0,25,1,0,0,0,0,0,0,0,0,0,0,0,0,0,"Scarlet Smith - Between 0-15% Health - Flee For Assist (No Repeat)");
-- Spectral Attendant
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=11873;
DELETE FROM `smart_scripts` WHERE `entryorguid`=11873 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`, `event_param5`, `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
(11873,0,0,0,0,0,100,0,0,0,3000,5000,0,11,13860,64,0,0,0,0,2,0,0,0,0,0,0,0,"Spectral Attendant - In Combat - Cast 'Mind Blast'"),
(11873,0,1,0,0,0,100,0,8000,11000,14000,17000,0,11,11981,0,0,0,0,0,2,0,0,0,0,0,0,0,"Spectral Attendant - In Combat - Cast 'Mana Burn'"),
(11873,0,2,0,0,0,100,0,5000,7000,18000,21000,0,11,11443,0,0,0,0,0,2,0,0,0,0,0,0,0,"Spectral Attendant - In Combat - Cast 'Cripple'");
-- The Husk
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=1851;
DELETE FROM `smart_scripts` WHERE `entryorguid`=1851 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`, `event_param5`, `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
(1851,0,0,0,0,0,100,0,9000,11000,20000,23000,0,11,3604,0,0,0,0,0,2,0,0,0,0,0,0,0,"The Husk - In Combat - Cast 'Tendon Rip'"),
(1851,0,1,0,0,0,100,0,5000,7000,12000,18000,0,11,17230,0,0,0,0,0,2,0,0,0,0,0,0,0,"The Husk - In Combat - Cast 'Infected Wound'");
-- Dreadwhisper
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=1849;
DELETE FROM `smart_scripts` WHERE `entryorguid`=1849 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`, `event_param5`, `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
(1849,0,0,0,0,0,100,0,1000,2000,18000,21000,0,11,11443,0,0,0,0,0,2,0,0,0,0,0,0,0,"Dreadwhisper - In Combat - Cast 'Criple'"),
(1849,0,1,0,0,0,100,0,6000,7000,11000,13000,0,11,17228,0,0,0,0,0,1,0,0,0,0,0,0,0,"Dreadwhisper - In Combat - Cast 'Shadow Bolt Volley'"),
(1849,0,2,0,0,0,100,0,10000,12000,18000,21000,0,11,7068,0,0,0,0,0,2,0,0,0,0,0,0,0,"Dreadwhisper - In Combat - Cast 'Veil of Shadow'");
-- Putridius
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=1850;
DELETE FROM `smart_scripts` WHERE `entryorguid`=1850 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`, `event_param5`, `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
(1850,0,0,0,0,0,100,0,11000,15000,18000,22000,0,11,10101,0,0,0,0,0,2,0,0,0,0,0,0,0,"Putridius - In Combat - Cast 'Knock Away'"),
(1850,0,1,0,0,0,100,0,7000,10000,22000,28000,0,11,12946,0,0,0,0,0,1,0,0,0,0,0,0,0,"Putridius - In Combat - Cast 'Putrid Stench'"),
(1850,0,2,0,0,0,100,0,5000,7000,8000,12000,0,11,10966,0,0,0,0,0,2,0,0,0,0,0,0,0,"Putridius - In Combat - Cast 'Uppercut'");
-- Venom Mist Lurker
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=1822;
DELETE FROM `smart_scripts` WHERE `entryorguid`=1822 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`, `event_param5`, `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
(1822,0,0,0,25,0,100,0,0,0,0,0,0,11,10022,0,0,0,0,0,1,0,0,0,0,0,0,0,"Venom Mist Lurker - On Reset - Cast 'Deadly Poison'");
-- Skeletal Flayer
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=1783 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
-- (1783,0,0,0,25,0,100,0,0,0,0,0,0,11,8876,0,0,0,0,0,1,0,0,0,0,0,0,0,"Skeletal Flayer - On Reset - Cast 'Thrash'");
-- Soulless Ghoul
UPDATE `smart_scripts` SET `action_param2`=0 WHERE `entryorguid`=1794 AND `source_type`=0 AND `id`=2;
-- Searing Ghoul
UPDATE `smart_scripts` SET `action_param2`=0 WHERE `entryorguid`=1795 AND `source_type`=0 AND `id`=1;
-- Skeletal Acolyte
UPDATE `smart_scripts` SET `event_param3`=3000, `event_param4`=5000 WHERE `entryorguid`=1789 AND `source_type`=0 AND `id`=0;
-- Diseased Black Bear
DELETE FROM `smart_scripts` WHERE `entryorguid`=1815 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(1815,0,0,0,0,0,100,0,6000,9000,11000,14000,0,11,3427,32,0,0,0,0,2,0,0,0,0,0,0,0,"Diseased Black Bear - In Combat - Cast 'Infected Wound'");
-- Diseased Grizzly
DELETE FROM `smart_scripts` WHERE `entryorguid`=1816 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(1816,0,0,0,0,0,100,0,6000,9000,11000,14000,0,11,3427,32,0,0,0,0,2,0,0,0,0,0,0,0,"Diseased Grizzly - In Combat - Cast 'Infected Wound'");
-- Skeletal Sorcerer
UPDATE `smart_scripts` SET `event_param3`=3000, `event_param4`=5000 WHERE `entryorguid`=1784 AND `source_type`=0 AND `id`=0;
-- Dethryll Satyr
UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=4000 WHERE `entryorguid`=2212 AND `source_type`=0 AND `id`=0;
-- Diseased Wolf
DELETE FROM `smart_scripts` WHERE `entryorguid`=1817 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(1817,0,0,0,0,0,100,0,4000,9000,10000,15000,0,11,3427,32,0,0,0,0,2,0,0,0,0,0,0,0,"Diseased Wolf - In Combat - Cast 'Infected Wound'");
-- Carrion Lurker
DELETE FROM `smart_scripts` WHERE `entryorguid`=1821 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(1821,0,0,0,25,0,100,0,0,0,0,0,0,11,3616,0,0,0,0,0,1,0,0,0,0,0,0,0,"Carrion Lurker - On Reset - Cast 'Poison Proc'");
-- Large Vile Slime
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=12387;
DELETE FROM `smart_scripts` WHERE `entryorguid`=12387 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`, `event_param5`, `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
(12387,0,0,0,0,0,100,0,0,0,3000,5000,0,11,13901,64,0,0,0,0,2,0,0,0,0,0,0,0,"Large Vile Slime - In Combat - Cast 'Arcane Bolt'"),
(12387,0,1,0,0,0,100,0,8000,11000,9000,15000,0,11,16843,0,0,0,0,0,1,0,0,0,0,0,0,0,"Large Vile Slime - In Combat - Cast 'Crimson Fury'"),
(12387,0,2,0,9,0,100,0,0,8,13000,15000,0,11,11975,0,0,0,0,0,1,0,0,0,0,0,0,0,"Large Vile Slime - Within 0-8 Range - Cast 'Arcane Explosion'");
-- Skeletal Sorcerer
UPDATE `smart_scripts` SET `event_chance`=100, `event_param1`=8000, `event_param3`=16000 WHERE `entryorguid`=1804 AND `source_type`=0 AND `id`=0;
-- Haunting Vision
-- UPDATE `smart_scripts` SET `action_param2`=0 WHERE `entryorguid`=4472 AND `source_type`=0 AND `id` IN (1,2);
-- Putrid Gargoyle
DELETE FROM `smart_scripts` WHERE `entryorguid`=8534 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(8534,0,0,0,25,0,100,0,0,0,0,0,0,11,16574,0,0,0,0,0,1,0,0,0,0,0,0,0,"Putrid Gargoyle - On Reset - Cast 'Putrid Bile'");
-- Diseased Flayer
DELETE FROM `smart_scripts` WHERE `entryorguid`=8532 AND `source_type`=0 AND `id` IN (1,2);
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(8532,0,1,0,25,0,100,0,0,0,0,0,0,11,16800,0,0,0,0,0,1,0,0,0,0,0,0,0,"Diseased Flayer - On Reset - Cast 'Ghoul Rot'"),
(8532,0,2,0,11,0,100,0,0,0,0,0,0,11,26047,0,0,0,0,0,1,0,0,0,0,0,0,0,"Diseased Flayer - On Respawn - Cast 'Birth'");
-- Eyeless Watcher
UPDATE `smart_scripts` SET `action_param1`=30991 WHERE `entryorguid`=8539 AND `source_type`=0 AND `id`=2;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8539 AND `source_type`=0 AND `id`=3;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(8539,0,3,0,25,0,100,0,0,0,0,0,0,11,8279,0,0,0,0,0,1,0,0,0,0,0,0,0,"Eyeless Watcher - On Reset - Cast 'Stealth Detection'");
-- Plague Ravager
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=8520 AND `source_type`=0 AND `id`=1;
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `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
-- (8520,0,1,0,25,0,100,0,0,0,0,0,0,11,3417,0,0,0,0,0,1,0,0,0,0,0,0,0,"Plague Ravager - On Reset - Cast 'Thrash'");
-- Scarlet Warder
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=9447 AND `source_type`=0 AND `id`=2;
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (9447,0,2,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Warder - On Aggro - Say Line 0");
-- DELETE FROM `creature_text` WHERE `CreatureID`=9447;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (9447,0,0,"You carry the taint of the Scourge. Prepare to enter the Twisting Nether.",12,7,100,0,0,0,2625,0,"Scarlet Warder"),
-- (9447,0,1,"There is no escape for you. The Crusade shall destroy all who carry the Scourge's taint.",12,7,100,0,0,0,2626,0,"Scarlet Warder"),
-- (9447,0,2,"The Light condemns all who harbor evil. Now you will die!",12,7,100,0,0,0,2627,0,"Scarlet Warder"),
-- (9447,0,3,"The Scarlet Crusade shall smite the wicked and drive evil from these lands!",12,7,100,0,0,0,2628,0,"Scarlet Warder");
-- -- Scarlet Cleric
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=9449 AND `source_type`=0 AND `id` IN (1,3);
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (9449,0,1,0,14,0,100,0,3000,40,25000,35000,0,11,15586,0,0,0,0,0,7,0,0,0,0,0,0,0,"Scarlet Cleric - On Friendly Between 0-40% Health - Cast 'Heal'"),
-- (9449,0,3,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Cleric - On Aggro - Say Line 0");
-- DELETE FROM `creature_text` WHERE `CreatureID`=9449;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (9449,0,0,"You carry the taint of the Scourge. Prepare to enter the Twisting Nether.",12,7,100,0,0,0,2625,0,"Scarlet Cleric"),
-- (9449,0,1,"There is no escape for you. The Crusade shall destroy all who carry the Scourge's taint.",12,7,100,0,0,0,2626,0,"Scarlet Cleric"),
-- (9449,0,2,"The Light condemns all who harbor evil. Now you will die!",12,7,100,0,0,0,2627,0,"Scarlet Cleric"),
-- (9449,0,3,"The Scarlet Crusade shall smite the wicked and drive evil from these lands!",12,7,100,0,0,0,2628,0,"Scarlet Cleric");
-- -- Scarlet Enchanter
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=9452 AND `source_type`=0 AND `id`=2;
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (9452,0,2,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Enchanter - On Aggro - Say Line 0");
-- DELETE FROM `creature_text` WHERE `CreatureID`=9452;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (9452,0,0,"You carry the taint of the Scourge. Prepare to enter the Twisting Nether.",12,7,100,0,0,0,2625,0,"Scarlet Enchanter"),
-- (9452,0,1,"There is no escape for you. The Crusade shall destroy all who carry the Scourge's taint.",12,7,100,0,0,0,2626,0,"Scarlet Enchanter"),
-- (9452,0,2,"The Light condemns all who harbor evil. Now you will die!",12,7,100,0,0,0,2627,0,"Scarlet Enchanter"),
-- (9452,0,3,"The Scarlet Crusade shall smite the wicked and drive evil from these lands!",12,7,100,0,0,0,2628,0,"Scarlet Enchanter");
-- Scarlet Praetorian
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=9448 AND `source_type`=0 AND `id`=2;
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (9448,0,2,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Praetorian - On Aggro - Say Line 0");
-- DELETE FROM `creature_text` WHERE `CreatureID`=9448;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (9448,0,0,"You carry the taint of the Scourge. Prepare to enter the Twisting Nether.",12,7,100,0,0,0,2625,0,"Scarlet Praetorian"),
-- (9448,0,1,"There is no escape for you. The Crusade shall destroy all who carry the Scourge's taint.",12,7,100,0,0,0,2626,0,"Scarlet Praetorian"),
-- (9448,0,2,"The Light condemns all who harbor evil. Now you will die!",12,7,100,0,0,0,2627,0,"Scarlet Praetorian"),
-- (9448,0,3,"The Scarlet Crusade shall smite the wicked and drive evil from these lands!",12,7,100,0,0,0,2628,0,"Scarlet Praetorian");
-- -- Scarlet Archmage
-- UPDATE `smart_scripts` SET `action_param2`=0 WHERE `entryorguid`=9451 AND `source_type`=0 AND `id` IN (0,2);
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=9451 AND `source_type`=0 AND `id`=5;
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (9451,0,5,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Archmage - On Aggro - Say Line 0");
-- DELETE FROM `creature_text` WHERE `CreatureID`=9451;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (9451,0,0,"You carry the taint of the Scourge. Prepare to enter the Twisting Nether.",12,7,100,0,0,0,2625,0,"Scarlet Archmage"),
-- (9451,0,1,"There is no escape for you. The Crusade shall destroy all who carry the Scourge's taint.",12,7,100,0,0,0,2626,0,"Scarlet Archmage"),
-- (9451,0,2,"The Light condemns all who harbor evil. Now you will die!",12,7,100,0,0,0,2627,0,"Scarlet Archmage"),
-- (9451,0,3,"The Scarlet Crusade shall smite the wicked and drive evil from these lands!",12,7,100,0,0,0,2628,0,"Scarlet Archmage");
-- -- Scarlet Curate
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=9450 AND `source_type`=0 AND `id`=4;
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (9450,0,4,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Scarlet Curate - On Aggro - Say Line 0");
-- DELETE FROM `creature_text` WHERE `CreatureID`=9450;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (9450,0,0,"You carry the taint of the Scourge. Prepare to enter the Twisting Nether.",12,7,100,0,0,0,2625,0,"Scarlet Curate"),
-- (9450,0,1,"There is no escape for you. The Crusade shall destroy all who carry the Scourge's taint.",12,7,100,0,0,0,2626,0,"Scarlet Curate"),
-- (9450,0,2,"The Light condemns all who harbor evil. Now you will die!",12,7,100,0,0,0,2627,0,"Scarlet Curate"),
-- (9450,0,3,"The Scarlet Crusade shall smite the wicked and drive evil from these lands!",12,7,100,0,0,0,2628,0,"Scarlet Curate");
-- Cursed Mage
UPDATE `smart_scripts` SET `event_param3`=2000, `event_param4`=4000 WHERE `entryorguid`=8524 AND `source_type`=0 AND `id`=0;
UPDATE `smart_scripts` SET `action_param2`=2 WHERE `entryorguid`=8524 AND `source_type`=0 AND `id`=1;
-- Baron Bloodbane
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=10819;
DELETE FROM `smart_scripts` WHERE `entryorguid`=10819 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`, `event_param5`, `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
(10819,0,0,0,0,0,100,0,3000,6000,9000,12000,0,11,18663,0,0,0,0,0,5,0,0,0,0,0,0,0,"Baron Bloodbane - In Combat - Cast 'Shadow Shock'"),
(10819,0,1,0,13,0,100,0,12000,16000,0,0,0,11,12555,0,0,0,0,0,7,0,0,0,0,0,0,0,"Baron Bloodbane - Target Casting - Cast 'Pummel'"),
-- (10819,0,2,0,1,0,100,0,1000,1000,1800000,1800000,0,11,11733,2,0,0,0,0,1,0,0,0,0,0,0,0,"Baron Bloodbane - Out of Combat - Cast 'Demon Armor'"),
(10819,0,3,0,0,0,100,0,3000,5000,6000,8000,0,11,13446,0,0,0,0,0,2,0,0,0,0,0,0,0,"Baron Bloodbane - In Combat - Cast 'Strike'");
-- Death Knight Soulbearer
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=10818;
DELETE FROM `smart_scripts` WHERE `entryorguid`=10818 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`, `event_param5`, `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
(10818,0,0,0,0,0,100,0,2000,4000,5000,9000,0,11,12471,2,0,0,0,0,5,0,0,0,0,0,0,0,"Death Knight Soulbearer - In Combat - Cast 'Shadow Bolt'"),
(10818,0,1,0,1,0,100,0,1000,1000,1800000,1800000,0,11,79934,2,0,0,0,0,1,0,0,0,0,0,0,0,"Death Knight Soulbearer - Out of Combat - Cast 'Demon Armor'"),
(10818,0,2,0,0,0,100,0,5000,7000,9000,11000,0,11,13737,0,0,0,0,0,2,0,0,0,0,0,0,0,"Death Knight Soulbearer - In Combat - Cast 'Mortal Strike'");
-- Forest Spider
DELETE FROM `smart_scripts` WHERE `entryorguid`=30 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(30,0,0,0,25,0,100,0,0,0,0,0,0,11,11959,0,0,0,0,0,1,0,0,0,0,0,0,0,"Forest Spider - On Reset - Cast 'Poison Proc'");
-- Mine Spider
DELETE FROM `smart_scripts` WHERE `entryorguid`=43 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(43,0,0,0,25,0,100,0,0,0,0,0,0,11,11959,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mine Spider - On Reset - Cast 'Poison Proc'");
-- Mother Fang
DELETE FROM `smart_scripts` WHERE `entryorguid`=471 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`, `event_param5`, `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
(471,0,0,0,25,0,100,0,0,0,0,0,0,11,11959,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mother Fang - On Reset - Cast 'Poison Proc'"),
(471,0,1,0,0,0,100,0,3000,6000,12000,15000,0,11,12023,0,0,0,0,0,2,0,0,0,0,0,0,0,"Mother Fang - In Combat - Cast 'Web'");
-- Ruklar the Trapper
DELETE FROM `smart_scripts` WHERE `entryorguid`=60 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`, `event_param5`, `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
(60,0,0,0,0,0,100,0,4000,6000,11000,15000,0,11,12024,0,0,0,0,0,2,0,0,0,0,0,0,0,"Ruklar the Trapper - In Combat - Cast 'Net'"),
(60,0,1,0,0,0,100,0,6000,8000,22000,26000,0,11,6016,2,0,0,0,0,2,0,0,0,0,0,0,0,"Ruklar the Trapper - In Combat - Cast 'Pierce Armor'");
-- Kobold Miner
DELETE FROM `smart_scripts` WHERE `entryorguid`=40 AND `source_type`=0 AND `id`=1;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `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
(40,0,1,0,0,0,100,0,4000,14000,22000,28000,0,11,6016,2,0,0,0,0,2,0,0,0,0,0,0,0,"Kobold Miner - In Combat - Cast 'Pierce Armor'");
-- Riverpaw Outrunner
DELETE FROM `smart_scripts` WHERE `entryorguid`=478 AND `source_type`=0 AND `id`=1;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `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
(478,0,1,0,25,0,100,0,0,0,0,0,0,11,8876,0,0,0,0,0,1,0,0,0,0,0,0,0,"Riverpaw Outrunner - On Reset - Cast 'Thrash'");
-- Kobold Geomancer
UPDATE `smart_scripts` SET `event_param3`=3000, `event_param4`=5000 WHERE `entryorguid`=476 AND `source_type`=0 AND `id`=2;
-- Defias Rogue Wizard
UPDATE `smart_scripts` SET `event_param3`=3000, `event_param4`=5000 WHERE `entryorguid`=474 AND `source_type`=0 AND `id`=0;
-- Defias Footpad
UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid`=481 AND `source_type`=0 AND `id`=0;
UPDATE `smart_scripts` SET `event_param1`=3000, `event_param2`=5000, `event_param3`=5000, `event_param4`=7000 WHERE `entryorguid`=481 AND `source_type`=0 AND `id`=1;
-- Young Goretusk
DELETE FROM `smart_scripts` WHERE `entryorguid`=454 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(454,0,0,0,9,0,50,1,5,40,0,0,0,11,6268,0,0,0,0,0,1,0,0,0,0,0,0,0,"Young Goretusk - Within 5-40 Range - Cast 'Rushing Charge' (No Repeat)");
-- Goretusk
DELETE FROM `smart_scripts` WHERE `entryorguid`=157 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(157,0,0,0,9,0,50,1,5,40,0,0,0,11,6268,0,0,0,0,0,1,0,0,0,0,0,0,0,"Goretusk - Within 5-40 Range - Cast 'Rushing Charge' (No Repeat)");
-- Murloc Coastrunner
DELETE FROM `smart_scripts` WHERE `entryorguid`=126 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(126,0,0,0,0,0,100,0,6000,9000,18000,24000,0,11,7357,2,0,0,0,0,2,0,0,0,0,0,0,0,"Murloc Coastrunner - In Combat - Cast 'Poisonous Stab'");
-- Slark
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=519 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
-- (519,0,0,0,25,0,100,0,0,0,0,0,0,11,8876,0,0,0,0,0,1,0,0,0,0,0,0,0,"Slark - On Reset - Cast 'Thrash'");
-- Brack
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=520 AND `source_type`=0 AND `id` IN (0,1,2);
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (520,0,0,0,0,0,100,0,6000,9000,12000,18000,0,11,9080,0,0,0,0,0,2,0,0,0,0,0,0,0,"Brack - In Combat - Cast 'Hamstring'"),
-- (520,0,1,0,0,0,100,0,9000,11000,22000,26000,0,11,6016,2,0,0,0,0,2,0,0,0,0,0,0,0,"Brack - In Combat - Cast 'Pierce Armor'"),
-- (520,0,2,0,0,0,100,0,5000,7000,11000,15000,0,11,11976,0,0,0,0,0,2,0,0,0,0,0,0,0,"Brack - In Combat - Cast 'Strike'");
-- Murloc Oracle
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=517 AND `source_type`=0 AND `id` IN (0,1);
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `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
-- (517,0,0,0,0,0,100,0,0,0,3000,5000,0,11,9734,64,0,0,0,0,2,0,0,0,0,0,0,0,"Murloc Oracle - In Combat - Cast 'Holy Smite'"),
-- (517,0,1,0,14,0,100,0,50,40,35000,45000,0,11,6074,0,0,0,0,0,7,0,0,0,0,0,0,0,"Murloc Oracle - Friendly At 50 Health - Cast 'Renew'");
-- Murloc Tidehunter
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=127 AND `source_type`=0 AND `id` IN (0,1);
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `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
-- (127,0,0,0,0,0,100,0,8000,11000,15000,19000,0,11,11831,0,0,0,0,0,1,0,0,0,0,0,0,0,"Murloc Tidehunter - In Combat - Cast 'Frost Nova'"),
-- (127,0,1,0,25,0,100,0,0,0,0,0,0,11,3616,0,0,0,0,0,1,0,0,0,0,0,0,0,"Murloc Tidehunter - On Reset - Cast 'Poison Proc'");
-- Harvest Reaper
UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=8000, `event_param3`=14000, `event_param4`=20000 WHERE `entryorguid`=115 AND `source_type`=0 AND `id`=0;
-- Fleshripper
UPDATE `smart_scripts` SET `event_chance`=100 WHERE `entryorguid` IN (1109,154) AND `source_type`=0 AND `id`=0;
-- Defias Trapper
UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid`=504 AND `source_type`=0 AND `id`=0;
-- Dust Devil
-- UPDATE `smart_scripts` SET `event_param1`=7000, `event_param2`=11000, `event_param3`=15000, `event_param4`=19000 WHERE `entryorguid`=832 AND `source_type`=0 AND `id`=0;
-- Riverpaw Shaman
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=1065 AND `source_type`=0 AND `id`=2;
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (1065,0,2,0,14,0,100,0,120,40,35000,45000,0,11,913,1,0,0,0,0,7,0,0,0,0,0,0,0,"Riverpaw Shaman - Friendly At 120 Health - Cast 'Healing Wave'");
-- Defias Looter
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=590 AND `source_type`=0 AND `id`=2;
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (590,0,2,0,0,0,100,0,4000,9000,24000,29000,0,11,6713,0,0,0,0,0,2,0,0,0,0,0,0,0,"Defias Looter - In Combat - Cast 'Disarm'");
-- Riverpaw Mongrel
-- UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=15000 WHERE `entryorguid`=123 AND `source_type`=0 AND `id`=1;
-- Defias Knuckleduster
-- UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid`=449 AND `source_type`=0 AND `id`=0;
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=449 AND `source_type`=0 AND `id`=2;
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (449,0,2,0,25,0,100,0,0,0,0,0,0,11,8876,0,0,0,0,0,1,0,0,0,0,0,0,0,"Defias Knuckleduster - On Reset - Cast 'Thrash'");
-- Riverpaw Bandit
-- UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid`=452 AND `source_type`=0 AND `id`=0;
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=452 AND `source_type`=0 AND `id`=2;
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (452,0,2,0,0,0,100,0,5000,9000,15000,19000,0,11,7357,2,0,0,0,0,2,0,0,0,0,0,0,0,"Riverpaw Bandit - In Combat - Cast 'Poisonous Stab'");
-- Riverpaw Taskmaster
DELETE FROM `smart_scripts` WHERE `entryorguid`=98 AND `source_type`=0 AND `id`=1;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `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
(98,0,1,0,74,0,100,0,0,80,12000,16000,0,11,3229,0,0,0,0,0,9,0,0,10,0,0,0,0,"Riverpaw Taskmaster - On Friendly Between 0-80% Health - Cast 'Quick Bloodlust'");
-- Leprithus
DELETE FROM `smart_scripts` WHERE `entryorguid`=572 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`, `event_param5`, `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
(572,0,0,0,0,0,100,0,8000,11000,11000,17000,0,11,4974,0,0,0,0,0,2,0,0,0,0,0,0,0,"Leprithus - In Combat - Cast 'Wither Touch'"),
(572,0,1,0,25,0,100,0,0,0,0,0,0,11,3616,0,0,0,0,0,1,0,0,0,0,0,0,0,"Leprithus - On Reset - Cast 'Poison Proc'");
-- Fix bytes2 for some range-attacking creatures
UPDATE `creature_addon` SET `bytes2`=2 WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE `id` IN (/*1831,*/8561,12322,2212,3745,3926,7155,7442,8564,11680/*,500*/));
UPDATE `creature_template_addon` SET `bytes2`=2 WHERE `entry` IN (/*1831,*/8561,12322,2212,3745,3926,7155,7442,8564,11680/*,500*/);
-- Brack and Slark shoud be running
-- UPDATE `waypoint_data` SET `move_type`=1 WHERE `id` IN (902060,902070);
@@ -0,0 +1,9 @@
-- Firewing Courier Aggro Text
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=18548;
DELETE FROM `smart_scripts` WHERE `entryorguid`=18548 AND `source_type`=0 AND `id`=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
(18548,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,"Firewing Courier - On Aggro - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=18548;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(18548,0,0,"This belongs to Firewing Point. You'll not be putting your grubby hands on it!",12,0,100,0,0,0,15528,0,"Firewing Courier");
@@ -0,0 +1,18 @@
-- Zeth'Gor Must Burn! (10792)
DELETE FROM `gameobject` WHERE `id`=183816;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (20813,20814,20815,20816) 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`, `event_param5`, `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
(20813,0,0,1,8,0,100,512,35724,0,0,0,0,33,20813,0,0,0,0,0,7,0,0,0,0,0,0,0,'Zeth\'Gor Quest Credit Marker, Barracks - On Spellhit \'Throw Torch\' - Quest Credit (No Repeat)'),
(20813,0,1,2,61,0,100,512,0,0,0,0,0,41,0,0,0,0,0,0,15,183816,75,0,0,0,0,0,'Zeth\'Gor Quest Credit Marker, Barracks - On Spellhit \'Throw Torch\' - Despawn Game Object'),
(20813,0,2,0,61,0,100,512,0,0,0,0,0,11,36325,0,0,0,0,0,1,0,0,0,0,0,0,0,'Zeth\'Gor Quest Credit Marker, Barracks - On Spellhit \'Throw Torch\' - Spawn Game Object'),
(20814,0,0,1,8,0,100,512,35724,0,0,0,0,33,20814,0,0,0,0,0,7,0,0,0,0,0,0,0,'Zeth\'Gor Quest Credit Marker, Stable - On Spellhit \'Throw Torch\' - Quest Credit (No Repeat)'),
(20814,0,1,2,61,0,100,512,0,0,0,0,0,41,0,0,0,0,0,0,15,183816,20,0,0,0,0,0,'Zeth\'Gor Quest Credit Marker, Stable - On Spellhit \'Throw Torch\' - Despawn Game Object'),
(20814,0,2,0,61,0,100,512,0,0,0,0,0,11,36325,0,0,0,0,0,1,0,0,0,0,0,0,0,'Zeth\'Gor Quest Credit Marker, Stable - On Spellhit \'Throw Torch\' - Spawn Game Object'),
(20815,0,0,1,8,0,100,512,35724,0,0,0,0,33,20815,0,0,0,0,0,7,0,0,0,0,0,0,0,'Zeth\'Gor Quest Credit Marker, East Hovel - On Spellhit \'Throw Torch\' - Kill Credit (No Repeat)'),
(20815,0,1,2,61,0,100,512,0,0,0,0,0,41,0,0,0,0,0,0,15,183816,20,0,0,0,0,0,'Zeth\'Gor Quest Credit Marker, East Hovel - On Spellhit \'Throw Torch\' - Despawn Game Object'),
(20815,0,2,0,61,0,100,512,0,0,0,0,0,11,36325,0,0,0,0,0,1,0,0,0,0,0,0,0,'Zeth\'Gor Quest Credit Marker, East Hovel - On Spellhit \'Throw Torch\' - Spawn Game Object'),
(20816,0,0,1,8,0,100,512,35724,0,0,0,0,33,20816,0,0,0,0,0,7,0,0,0,0,0,0,0,'Zeth\'Gor Quest Credit Marker, West Hovel - On Spellhit \'Throw Torch\' - Quest Credit (No Repeat)'),
(20816,0,1,2,61,0,100,512,0,0,0,0,0,41,0,0,0,0,0,0,15,183816,20,0,0,0,0,0,'Zeth\'Gor Quest Credit Marker, West Hovel - On Spellhit \'Throw Torch\' - Despawn Game Object'),
(20816,0,2,0,61,0,100,512,0,0,0,0,0,11,36325,0,0,0,0,0,1,0,0,0,0,0,0,0,'Zeth\'Gor Quest Credit Marker, West Hovel - On Spellhit \'Throw Torch\' - Spawn Game Object');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=36325;
@@ -0,0 +1,9 @@
-- Burn It Up... For the Horde! (10087)
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (18849, 19008) 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`, `event_param5`, `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
(18849,0,0,1,8,0,100,512,33067,0,0,0,0,33,18849,0,0,0,0,0,7,0,0,0,0,0,0,0,'Invis Alliance Siege Engine - East - On Spellhit \'Ignite Alliance Siege Engine\' - Quest Credit \'Burn It Up... For the Horde!\' (No Repeat)'),
(18849,0,1,2,61,0,100,512,0,0,0,0,0,41,0,0,0,0,0,0,15,182817,30,0,0,0,0,0,'Invis Alliance Siege Engine - East - On Spellhit \'Ignite Alliance Siege Engine\' - Despawn Game Object'),
(18849,0,2,0,61,0,100,512,0,0,0,0,0,50,182817,60,0,0,0,0,20,183122,40,0,0,0,0,0,'Invis Alliance Siege Engine - East - On Spellhit \'Ignite Alliance Siege Engine\' - Summon Game Object'),
(19008,0,0,1,8,0,100,512,33067,0,0,0,0,33,19008,0,0,0,0,0,7,0,0,0,0,0,0,0,'Invis Alliance Siege Engine - West - On Spellhit \'Ignite Alliance Siege Engine\' - Quest Credit \'Burn It Up... For the Horde!\' (No Repeat)'),
(19008,0,1,2,61,0,100,512,0,0,0,0,0,41,0,0,0,0,0,0,15,182817,30,0,0,0,0,0,'Invis Alliance Siege Engine - West - On Spellhit \'Ignite Alliance Siege Engine\' - Despawn Game Object'),
(19008,0,2,0,61,0,100,512,0,0,0,0,0,50,182817,60,0,0,0,0,20,185122,40,0,0,0,0,0,'Invis Alliance Siege Engine - West - On Spellhit \'Ignite Alliance Siege Engine\' - Summon Game Object');
@@ -0,0 +1,270 @@
-- Great Goretusk
UPDATE `smart_scripts` SET `event_chance`=100 WHERE `entryorguid`=547 AND `source_type`=0 AND `id`=0;
-- Tarantula
DELETE FROM `smart_scripts` WHERE `entryorguid`=442 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(442,0,0,0,25,0,100,0,0,0,0,0,0,11,11959,0,0,0,0,0,1,0,0,0,0,0,0,0,"Tarantula - On Reset - Cast 'Poison Proc'");
-- Greater Tarantula
DELETE FROM `smart_scripts` WHERE `entryorguid`=505 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(505,0,0,0,25,0,100,0,0,0,0,0,0,11,11959,0,0,0,0,0,1,0,0,0,0,0,0,0,"Greater Tarantula - On Reset - Cast 'Poison Proc'");
-- Chatter
DELETE FROM `smart_scripts` WHERE `entryorguid`=616 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(616,0,0,0,25,0,100,0,0,0,0,0,0,11,11959,0,0,0,0,0,1,0,0,0,0,0,0,0,"Chatter - On Reset - Cast 'Poison Proc'");
-- Redridge Mongrel
-- UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid`=423 AND `source_type`=0 AND `id`=0;
-- DELETE FROM `creature_text` WHERE `CreatureID`=423 AND `GroupID`=0 AND `ID`=2;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (423,0,2,"Grrrrr!",12,0,100,0,0,0,1869,0,"Redridge Mongrel");
-- Redridge Thrasher
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=712 AND `source_type`=0 AND `id` IN (1,2);
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (712,0,1,0,4,0,15,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Redridge Thrasher - On Aggro - Say Line 0"),
-- (712,0,2,0,25,0,100,0,0,0,0,0,0,11,8876,0,0,0,0,0,1,0,0,0,0,0,0,0,"Redridge Thrasher - On Reset - Cast 'Thrash'");
-- DELETE FROM `creature_text` WHERE `CreatureID`=712;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (712,0,0,"Grrrrr!",12,0,100,0,0,0,1869,0,"Redridge Thrasher"),
-- (712,0,1,"Grrrr... fresh meat!",12,0,100,0,0,0,1870,0,"Redridge Thrasher"),
-- (712,0,2,"More bones to gnaw on...",12,0,100,0,0,0,1871,0,"Redridge Thrasher");
-- Redridge Poacher
-- UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid`=424 AND `source_type`=0 AND `id`=0;
-- DELETE FROM `creature_text` WHERE `CreatureID`=424 AND `GroupID`=0 AND `ID`=2;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (424,0,2,"Grrrrr!",12,0,100,0,0,0,1869,0,"Redridge Poacher");
-- Redridge Brute
-- UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid`=426 AND `source_type`=0 AND `id`=0;
-- DELETE FROM `creature_text` WHERE `CreatureID`=426 AND `GroupID`=0 AND `ID`=2;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (426,0,2,"Grrrrr!",12,0,100,0,0,0,1869,0,"Redridge Brute");
-- Redridge Mystic
-- UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid`=430 AND `source_type`=0 AND `id`=0;
-- UPDATE `smart_scripts` SET `event_param3`=3000, `event_param4`=5000 WHERE `entryorguid`=430 AND `source_type`=0 AND `id`=1;
-- DELETE FROM `creature_text` WHERE `CreatureID`=430 AND `GroupID`=0 AND `ID`=2;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (430,0,2,"Grrrrr!",12,0,100,0,0,0,1869,0,"Redridge Mystic");
-- Redridge Basher
-- UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid`=446 AND `source_type`=0 AND `id`=0;
-- UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=9000, `event_param3`=15000, `event_param4`=19000 WHERE `entryorguid`=446 AND `source_type`=0 AND `id`=1;
-- DELETE FROM `creature_text` WHERE `CreatureID`=446 AND `GroupID`=0 AND `ID`=2;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (446,0,2,"Grrrrr!",12,0,100,0,0,0,1869,0,"Redridge Basher");
-- Redridge Alpha
-- UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid`=445 AND `source_type`=0 AND `id`=0;
-- UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=7000, `event_param3`=14000, `event_param4`=18000 WHERE `entryorguid`=445 AND `source_type`=0 AND `id`=1;
-- DELETE FROM `creature_text` WHERE `CreatureID`=445 AND `GroupID`=0 AND `ID`=2;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (445,0,2,"Grrrrr!",12,0,100,0,0,0,1869,0,"Redridge Alpha");
-- Redridge Drudger
-- UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid`=580 AND `source_type`=0 AND `id`=0;
-- DELETE FROM `creature_text` WHERE `CreatureID`=580 AND `GroupID`=0 AND `ID`=2;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (580,0,2,"Grrrrr!",12,0,100,0,0,0,1869,0,"Redridge Drudger");
-- Shadowhide Warrior
DELETE FROM `smart_scripts` WHERE `entryorguid`=568 AND `source_type`=0 AND `id` IN (0,1,2);
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(568,0,0,0,4,0,15,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Shadowhide Warrior - On Aggro - Say Line 0"),
(568,0,1,0,4,0,100,0,0,0,0,0,0,11,7164,0,0,0,0,0,1,0,0,0,0,0,0,0,"Shadowhide Warrior - On Aggro - Cast 'Defensive Stance'"),
(568,0,2,0,0,0,100,0,5000,9000,11000,17000,0,11,7405,2,0,0,0,0,2,0,0,0,0,0,0,0,"Shadowhide Warrior - In Combat - Cast 'Sunder Armor'");
DELETE FROM `creature_text` WHERE `CreatureID`=568 AND `GroupID`=0 AND `ID`=2;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(568,0,2,"Grrrrr!",12,0,100,0,0,0,1869,0,"Shadowhide Warrior");
-- Shadowhide Slayer
DELETE FROM `smart_scripts` WHERE `entryorguid`=431 AND `source_type`=0 AND `id`=2;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(431,0,2,0,4,0,15,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Shadowhide Slayer - On Aggro - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=431;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(431,0,0,"Grrrrr!",12,0,100,0,0,0,1869,0,"Shadowhide Slayer"),
(431,0,1,"Grrrr... fresh meat!",12,0,100,0,0,0,1870,0,"Shadowhide Slayer"),
(431,0,2,"More bones to gnaw on...",12,0,100,0,0,0,1871,0,"Shadowhide Slayer");
-- Shadowhide Darkweaver
-- UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid`=429 AND `source_type`=0 AND `id`=0;
-- UPDATE `smart_scripts` SET `event_param3`=3000, `event_param4`=5000 WHERE `entryorguid`=429 AND `source_type`=0 AND `id`=1;
-- DELETE FROM `creature_text` WHERE `CreatureID`=429 AND `GroupID`=0 AND `ID`=2;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (429,0,2,"Grrrrr!",12,0,100,0,0,0,1869,0,"Shadowhide Darkweaver");
-- Shadowhide Brute
-- UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid`=432 AND `source_type`=0 AND `id`=0;
-- DELETE FROM `creature_text` WHERE `CreatureID`=432 AND `GroupID`=0 AND `ID`=2;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (432,0,2,"Grrrrr!",12,0,100,0,0,0,1869,0,"Shadowhide Brute");
-- Shadowhide Gnoll
-- UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid`=433 AND `source_type`=0 AND `id`=0;
-- DELETE FROM `creature_text` WHERE `CreatureID`=433 AND `GroupID`=0 AND `ID`=2;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (433,0,2,"Grrrrr!",12,0,100,0,0,0,1869,0,"Shadowhide Gnoll");
-- Rabid Shadowhide Gnoll
DELETE FROM `smart_scripts` WHERE `entryorguid`=434 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(434,0,0,0,25,0,100,0,0,0,0,0,0,11,3616,0,0,0,0,0,1,0,0,0,0,0,0,0,"Rabid Shadowhide Gnoll - On Reset - Cast 'Poison Proc'");
-- DELETE FROM `creature_text` WHERE `CreatureID`=434 AND `GroupID`=0 AND `ID`=2;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (434,0,2,"Grrrrr!",12,0,100,0,0,0,1869,0,"Rabid Shadowhide Gnoll");
-- Shadowhide Assassin
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=579 AND `source_type`=0 AND `ID` IN (0,2,4);
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (579,0,0,0,25,0,100,0,0,0,0,0,0,11,3616,0,0,0,0,0,1,0,0,0,0,0,0,0,"Shadowhide Assassin - On Reset - Cast 'Poison Proc'"),
-- (579,0,2,0,25,0,100,0,0,0,0,0,0,11,30991,0,0,0,0,0,1,0,0,0,0,0,0,0,"Shadowhide Assassin - On Reset - Cast 'Stealth'"),
-- (579,0,4,0,4,0,15,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Shadowhide Assassin - On Aggro - Say Line 0");
-- DELETE FROM `creature_text` WHERE `CreatureID`=579;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (579,0,0,"Grrrrr!",12,0,100,0,0,0,1869,0,"Shadowhide Assassin"),
-- (579,0,1,"Grrrr... fresh meat!",12,0,100,0,0,0,1870,0,"Shadowhide Assassin"),
-- (579,0,2,"More bones to gnaw on...",12,0,100,0,0,0,1871,0,"Shadowhide Assassin");
-- Rohh the Silent
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=947 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`, `event_param5`, `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
-- (947,0,0,0,25,0,100,0,0,0,0,0,0,11,3616,0,0,0,0,0,1,0,0,0,0,0,0,0,"Rohh the Silent - On Reset - Cast 'Poison Proc'"),
-- (947,0,1,0,25,0,100,0,0,0,0,0,0,11,30991,0,0,0,0,0,1,0,0,0,0,0,0,0,"Rohh the Silent - On Reset - Cast 'Stealth'");
-- Murloc Flesheater
DELETE FROM `smart_scripts` WHERE `entryorguid`=422 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(422,0,0,0,25,0,100,0,0,0,0,0,0,11,3394,0,0,0,0,0,1,0,0,0,0,0,0,0,"Murloc Flesheater - On Reset - Cast 'Consume Flesh'");
-- Murloc Minor Tidecaller
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=548 AND `source_type`=0 AND `id`=1;
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `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
-- (548,0,1,0,14,0,100,0,180,40,25000,35000,0,11,547,0,0,0,0,0,7,0,0,0,0,0,0,0,"Murloc Minor Tidecaller - Friendly At 180 Health - Cast 'Heal'");
-- Murloc Tidecaller
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=545 AND `source_type`=0 AND `id`=1;
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `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
-- (545,0,1,0,14,0,100,0,200,40,23000,26000,0,11,913,0,0,0,0,0,7,0,0,0,0,0,0,0,"Murloc Tidecaller - Friendly At 200 Health - Cast 'Healing Wave'");
-- Murloc Nightcrawler
DELETE FROM `smart_scripts` WHERE `entryorguid`=544 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(544,0,0,0,25,0,100,0,0,0,0,0,0,11,8601,0,0,0,0,0,1,0,0,0,0,0,0,0,"Murloc Nightcrawler - On Reset - Cast 'Slowing Poison'");
-- Murloc Scout
DELETE FROM `smart_scripts` WHERE `entryorguid`=578 AND `source_type`=0 AND `id`=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`, `event_param5`, `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
(578,0,0,0,0,0,100,0,5000,7000,13000,15000,0,11,7357,2,0,0,0,0,2,0,0,0,0,0,0,0,"Murloc Scout - In Combat - Cast 'Poisonous Stab'");
-- Blackrock Outrunner / Blackrock Grunt / Blackrock Renegade / Blackrock Sentry / Blackrock Shadowcaster / Blackrock Hunter / Blackrock Tracker / Blackrock Champion
-- UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid` IN (485,440,437,4065,436,4462,615,435) AND `source_type`=0 AND `id`=0;
-- Blackrock Summoner
-- UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid`=4463 AND `source_type`=0 AND `id`=1;
-- UPDATE `smart_scripts` SET `action_param2`=0 WHERE `entryorguid`=4463 AND `source_type`=0 AND `id` IN (3,4);
-- Blackrock Scout
DELETE FROM `smart_scripts` WHERE `entryorguid`=4064 AND `source_type`=0 AND `id`=4;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(4064,0,4,0,4,0,15,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Blackrock Scout - On Aggro - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=4064 AND `GroupID`=1;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(4064,1,0,"Feel the power of the Blackrock Orcs!",12,1,100,0,0,0,1874,0,"Blackrock Scout"),
(4064,1,1,"You are no match for the Blackrock Orcs!",12,1,100,0,0,0,1875,0,"Blackrock Scout");
-- Blackrock Shadowcaster
-- UPDATE `smart_scripts` SET `action_param2`=0 WHERE `entryorguid`=436 AND `source_type`=0 AND `id`=3;
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=436 AND `source_type`=0 AND `id`=5;
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (436,0,5,0,0,0,100,0,4000,8000,18000,24000,0,11,8994,0,0,0,0,0,6,0,0,0,0,0,0,0,"Blackrock Shadowcaster - In Combat - Cast 'Banish'");
-- Blackrock Gladiator
DELETE FROM `smart_scripts` WHERE `entryorguid`=4464 AND `source_type`=0 AND `id`=6;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(4464,0,6,0,4,0,15,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Blackrock Gladiator - On Aggro - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=4464 AND `GroupID`=1;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(4464,1,0,"Feel the power of the Blackrock Orcs!",12,1,100,0,0,0,1874,0,"Blackrock Gladiator"),
(4464,1,1,"You are no match for the Blackrock Orcs!",12,1,100,0,0,0,1875,0,"Blackrock Gladiator");
-- Blackrock Hunter
-- UPDATE `smart_scripts` SET `event_param1`=6000, `event_param2`=15000, `event_param3`=19000, `event_param4`=28000 WHERE `entryorguid`=4462 AND `source_type`=0 AND `id`=2;
-- Gath'Ilzogg
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=334 AND `source_type`=0 AND `ID` IN (1,2);
-- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (334,0,1,0,0,0,100,0,7000,9000,32000,39000,0,11,3427,0,0,0,0,0,2,0,0,0,0,0,0,0,"Gath'Ilzogg - In Combat - Cast 'Infected Wound'"),
-- (334,0,2,0,0,0,100,0,5000,7000,12000,16000,0,11,11972,0,0,0,0,0,2,0,0,0,0,0,0,0,"Gath'Ilzogg - In Combat - Cast 'Shield Bash'");
-- Servant of Ilgalar
UPDATE `smart_scripts` SET `event_param1`=1000, `event_param2`=9000, `event_param3`=13000, `event_param4`=21000 WHERE `entryorguid`=819 AND `source_type`=0 AND `id`=0;
-- Grand Magus Doane
UPDATE `smart_scripts` SET `event_param3`=3000, `event_param4`=5000 WHERE `entryorguid`=397 AND `source_type`=0 AND `id`=1;
-- Minion of Doane
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=2531;
DELETE FROM `smart_scripts` WHERE `entryorguid`=2531 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`, `event_param5`, `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
(2531,0,0,0,54,0,100,0,0,0,0,0,0,49,0,0,0,0,0,0,21,40,0,0,0,0,0,0,"Minion of Doane - Just Summoned - Start Attacking");
-- Kazon
UPDATE `smart_scripts` SET `event_param1`=6000, `event_param2`=9000, `event_param3`=11000, `event_param4`=17000 WHERE `entryorguid`=584 AND `source_type`=0 AND `id`=0;
-- Blackrock Champion
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=435 AND `source_type`=0 AND `id`=5;
-- UPDATE `smart_scripts` SET `link`=0 WHERE `entryorguid`=435 AND `source_type`=0 AND `id`=4;
-- Kobold Digger / Kobold Tunneler / Kobold Worker / Kobold Laborer / Kobold Vermin
-- DELETE FROM `creature_text` WHERE `CreatureID` IN (1236,475,257,80,6) AND `GroupID`=0 AND `ID`=2;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (1236,0,2,"No kill me! No kill me!",12,0,100,0,0,0,1863,0,"Kobold Digger"),
-- (475,0,2,"No kill me! No kill me!",12,0,100,0,0,0,1863,0,"Kobold Tunneler"),
-- (257,0,2,"No kill me! No kill me!",12,0,100,0,0,0,1863,0,"Kobold Worker"),
-- (80,0,2,"No kill me! No kill me!",12,0,100,0,0,0,1863,0,"Kobold Laborer"),
-- (6,0,2,"No kill me! No kill me!",12,0,100,0,0,0,1863,0,"Kobold Vermin");
-- -- Kobold Geomancer / Kobold Miner / Goldtooth
-- DELETE FROM `creature_text` WHERE `CreatureID` IN (327,476,40) AND `GroupID`=0 AND `ID` IN (1,2);
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (327,0,1,"You no take candle!",12,0,100,0,0,0,1868,0,"Goldtooth"),
-- (327,0,2,"No kill me! No kill me!",12,0,100,0,0,0,1863,0,"Goldtooth"),
-- (476,0,1,"Yiieeeee! Me run!",12,0,100,0,0,0,1864,0,"Kobold Geomancer"),
-- (476,0,2,"No kill me! No kill me!",12,0,100,0,0,0,1863,0,"Kobold Geomancer"),
-- (40,0,1,"Yiieeeee! Me run!",12,0,100,0,0,0,1864,0,"Kobold Miner"),
-- (40,0,2,"No kill me! No kill me!",12,0,100,0,0,0,1863,0,"Kobold Miner");
-- Fix spawn position and movement for some creatures
-- UPDATE `creature` SET `position_x`=-9299.74, `position_y`=-1889.38, `position_z`=76.523 WHERE `guid`=6707; -- inside a tree
-- UPDATE `creature` SET `position_z`=77.7874 WHERE `guid`=6707;
-- UPDATE `creature` SET `position_z`=64.0717 WHERE `guid`=6261;
-- UPDATE `creature` SET `position_x`=-9286.79, `position_y`=-1926.36, `position_z`=72.0246, `spawndist`=10, `MovementType`=1 WHERE `guid`=10105;
-- Fix spawn position for some objects
-- UPDATE `gameobject` SET `position_x`=-9668.03, `position_y`=-2031.67, `position_z`=60.3287, `orientation`=4.497 WHERE `guid`=5242; -- inside a rock
-- UPDATE `gameobject` SET `position_x`=-8964.17, `position_y`=-2652.36, `position_z`=154.183, `orientation`=4.79 WHERE `guid`=5637; -- beneath the ground
-- UPDATE `gameobject` SET `position_x`=-9102.35, `position_y`=-2805.85, `position_z`=118.746, `orientation`=4.97 WHERE `guid`=5632; -- unreachable
-- UPDATE `gameobject` SET `position_x`=-9047.56, `position_y`=-3322.43, `position_z`=106.844, `orientation`=4.673 WHERE `guid`=5632; -- inside a tree
@@ -0,0 +1,61 @@
-- Quest "By Any Means Necessary"
UPDATE `quest_template_addon` SET `SpecialFlags`=2 WHERE `ID`=9978;
-- Empoor
DELETE FROM `gossip_menu` WHERE `MenuID`=7704 AND `TextID`=9406;
INSERT INTO `gossip_menu` (`MenuID`, `TextID`, `VerifiedBuild`) VALUES
(7704,9406,0);
DELETE FROM `gossip_menu_option` WHERE `MenuID`=7704 AND `OptionIndex`=1;
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionIndex`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `VerifiedBuild`) VALUES
(7704,1,0,"Tell me again what you know!",16123,1,1,0);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=14 AND `SourceGroup`=7704 AND `SourceEntry`=9406;
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=7704 AND `SourceEntry`=1;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(14,7704,9406,0,0,28,0,9978,0,0,0,0,0,"","Show gossip text 9406 if quest 'By Any Means Necessary' is complete"),
(15,7704,1,0,0,8,0,9978,0,0,0,0,0,"","Show gossip option 1 if quest 'By Any Means Necessary' is rewarded"),
(15,7704,1,0,0,14,0,9979,0,0,0,0,0,"","Show gossip option 1 if quest 'Wind Trader Lathrai' is not taken"),
(15,7704,1,0,1,28,0,9978,0,0,0,0,0,"","Show gossip option 1 if quest 'By Any Means Necessary' is complete");
DELETE FROM `smart_scripts` WHERE `entryorguid`=18482 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (1848200,1848201,1848202) 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`, `event_param5`, `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
(18482,0,0,0,11,0,100,0,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor - On Respawn - Remove Npc Flag Questgiver"),
(18482,0,1,0,11,0,100,0,0,0,0,0,0,42,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor - On Respawn - Set Invincibility at 1 HP"),
(18482,0,2,4,62,0,100,0,7704,0,0,0,0,80,1848200,2,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor - On Gossip Option 0 Selected - Run Script"),
(18482,0,3,4,62,0,100,0,7704,1,0,0,0,80,1848200,2,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor - On Gossip Option 1 Selected - Run Script"),
(18482,0,4,0,61,0,100,0,0,0,0,0,0,78,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor - On Gossip Option Selected - Reset All Scripts"),
(18482,0,5,0,2,0,100,1,0,1,0,0,0,80,1848201,2,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor - Between 0-1% Health - Run Script"),
(18482,0,6,0,0,0,100,0,3000,5000,9000,12000,0,11,12548,0,0,0,0,0,2,0,0,0,0,0,0,0,"Empoor - In Combat - Cast 'Frost Shock'"),
(18482,0,7,0,23,0,100,0,12550,0,1000,2000,0,11,12550,0,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor - On Has No Aura 'Lightning Shield' - Cast 'Lightning Shield'"),
(18482,0,8,0,7,0,100,0,0,0,0,0,0,80,1848202,2,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor - On Evade - Run Script"),
(1848200,9,0,0,0,0,100,0,0,0,0,0,0,2,1679,0,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor - On Script - Set Faction 1679"),
(1848200,9,1,0,0,0,100,0,0,0,0,0,0,45,1,1,0,0,0,0,19,18483,0,0,0,0,0,0,"Empoor - On Script - Set Data 1 to Empoor's Bodyguard"),
(1848200,9,2,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor - On Script - Say Line 0"),
(1848200,9,3,0,0,0,100,0,0,0,0,0,0,49,0,0,0,0,0,0,21,40,0,0,0,0,0,0,"Empoor - On Script - Start Attacking"),
(1848201,9,0,0,0,0,100,0,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor - On Script - Set Faction 35"),
(1848201,9,1,0,0,0,100,0,0,0,0,0,0,27,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor - On Script - Stop Combat"),
(1848201,9,2,0,0,0,100,0,0,0,0,0,0,45,2,2,0,0,0,0,19,18483,0,0,0,0,0,0,"Empoor - On Script - Set Data 2 to Empoor's Bodyguard"),
(1848201,9,3,0,0,0,100,0,0,0,0,0,0,15,9978,0,0,0,0,0,18,50,0,0,0,0,0,0,"Empoor - On Script - Complete Quest 'By Any Means Necessary'"),
(1848201,9,4,0,0,0,100,0,0,0,0,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor - On Script - Add Npc Flag Questgiver"),
(1848201,9,5,0,0,0,100,0,120000,120000,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor - On Script - Remove Npc Flag Questgiver"),
(1848201,9,6,0,0,0,100,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor - On Script - Say Line 1"),
(1848202,9,0,0,0,0,100,0,20000,20000,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor - On Script - Set Faction 35");
DELETE FROM `creature_text` WHERE `CreatureID`=18482;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(18482,0,0,"What is the meaning of this?!",12,0,100,0,0,0,15487,0,"Empoor"),
(18482,1,0,"I'm leaving now!",12,0,100,1,0,0,15491,0,"Empoor");
-- Empoor's Bodyguard
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=18483;
DELETE FROM `smart_scripts` WHERE `entryorguid`=18483 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
(18483,0,0,0,38,0,100,0,1,1,0,0,2,1679,0,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor's Bodyguard - On Data Set - Set Faction 1679"),
(18483,0,1,0,38,0,100,0,1,1,0,0,49,0,0,0,0,0,0,21,40,0,0,0,0,0,0,"Empoor's Bodyguard - On Data Set - Start Attacking"),
(18483,0,2,0,38,0,100,0,2,2,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor's Bodyguard - On Data Set - Set Faction 35"),
(18483,0,3,0,38,0,100,0,2,2,0,0,27,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor's Bodyguard - On Data Set - Stop Combat"),
(18483,0,4,0,0,0,100,0,3000,5000,10000,14000,11,11977,0,0,0,0,0,2,0,0,0,0,0,0,0,"Empoor's Bodyguard - In Combat - Cast 'Rend'"),
(18483,0,5,0,0,0,100,0,5000,7000,15000,20000,11,13730,0,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor's Bodyguard - In Combat - Cast 'Demoralizing Shout'"),
(18483,0,6,0,7,0,100,0,0,0,0,0,80,1848202,2,0,0,0,0,1,0,0,0,0,0,0,0,"Empoor's Bodyguard - On Evade - Run Script");