Sync DB with TC

Port From (https://github.com/TrinityCore/TrinityCore)
This commit is contained in:
hondacrx
2022-06-01 19:38:23 -04:00
parent 64c70a1761
commit 0af9f22d70
1156 changed files with 579649 additions and 92 deletions
@@ -0,0 +1,5 @@
--
DELETE FROM `rbac_permissions` WHERE `id`=705;
DELETE FROM `rbac_linked_permissions` WHERE `linkedId`=705;
DELETE FROM `rbac_account_permissions` WHERE `permissionId`=705;
DELETE FROM `rbac_default_permissions` WHERE `permissionId`=705;
@@ -0,0 +1,8 @@
--
UPDATE `account` SET `salt`=UNHEX(CONCAT(MD5(RAND()),MD5(RAND()))), `verifier`=UNHEX(CONCAT(MD5(RAND()),MD5(RAND()))) WHERE `salt` IS NULL OR `verifier` IS NULL;
ALTER TABLE `account`
DROP COLUMN `s`,
DROP COLUMN `v`,
DROP COLUMN `sha_pass_hash`,
MODIFY COLUMN `salt` BINARY(32) NOT NULL,
MODIFY COLUMN `verifier` BINARY(32) NOT NULL;
@@ -0,0 +1,3 @@
--
DELETE FROM `rbac_permissions` WHERE `id`= 880;
INSERT INTO `rbac_permissions` (`id`,`name`) VALUES (880, 'Command: pdump copy');
@@ -0,0 +1,3 @@
-- TDB 915.22012 auth
UPDATE `updates` SET `state`='ARCHIVED',`speed`=0;
REPLACE INTO `updates_include` (`path`, `state`) VALUES ('$/sql/old/9.x/auth', 'ARCHIVED');
@@ -0,0 +1,7 @@
DELETE FROM `build_info` WHERE `build`=42010;
INSERT INTO `build_info` (`build`,`majorVersion`,`minorVersion`,`bugfixVersion`,`hotfixVersion`,`winAuthSeed`,`win64AuthSeed`,`mac64AuthSeed`,`winChecksumSeed`,`macChecksumSeed`) VALUES
(42010,9,1,5,NULL,NULL,'302970161D16417B5BE553CC530E011A',NULL,NULL,NULL);
UPDATE `realmlist` SET `gamebuild`=42010 WHERE `gamebuild`=41793;
ALTER TABLE `realmlist` CHANGE `gamebuild` `gamebuild` int(10) unsigned NOT NULL DEFAULT '42010';
@@ -0,0 +1,7 @@
DELETE FROM `build_info` WHERE `build`=42423;
INSERT INTO `build_info` (`build`,`majorVersion`,`minorVersion`,`bugfixVersion`,`hotfixVersion`,`winAuthSeed`,`win64AuthSeed`,`mac64AuthSeed`,`winChecksumSeed`,`macChecksumSeed`) VALUES
(42423,9,2,0,NULL,NULL,'0B03614A7E94DD57548596BE420E9DC2',NULL,NULL,NULL);
UPDATE `realmlist` SET `gamebuild`=42423 WHERE `gamebuild`=42010;
ALTER TABLE `realmlist` CHANGE `gamebuild` `gamebuild` int(10) unsigned NOT NULL DEFAULT '42423';
@@ -0,0 +1,7 @@
DELETE FROM `build_info` WHERE `build`=42488;
INSERT INTO `build_info` (`build`,`majorVersion`,`minorVersion`,`bugfixVersion`,`hotfixVersion`,`winAuthSeed`,`win64AuthSeed`,`mac64AuthSeed`,`winChecksumSeed`,`macChecksumSeed`) VALUES
(42488,9,2,0,NULL,NULL,'A78755E6928D83A271C5D1EE3CDB6F15',NULL,NULL,NULL);
UPDATE `realmlist` SET `gamebuild`=42488 WHERE `gamebuild`=42423;
ALTER TABLE `realmlist` CHANGE `gamebuild` `gamebuild` int(10) unsigned NOT NULL DEFAULT '42488';
@@ -0,0 +1,7 @@
DELETE FROM `build_info` WHERE `build`=42521;
INSERT INTO `build_info` (`build`,`majorVersion`,`minorVersion`,`bugfixVersion`,`hotfixVersion`,`winAuthSeed`,`win64AuthSeed`,`mac64AuthSeed`,`winChecksumSeed`,`macChecksumSeed`) VALUES
(42521,9,2,0,NULL,NULL,'5FE6C12FC407C6B15B4A5D3B5B4A5D3B',NULL,NULL,NULL);
UPDATE `realmlist` SET `gamebuild`=42521 WHERE `gamebuild`=42488;
ALTER TABLE `realmlist` CHANGE `gamebuild` `gamebuild` int(10) unsigned NOT NULL DEFAULT '42521';
@@ -0,0 +1,7 @@
DELETE FROM `build_info` WHERE `build`=42538;
INSERT INTO `build_info` (`build`,`majorVersion`,`minorVersion`,`bugfixVersion`,`hotfixVersion`,`winAuthSeed`,`win64AuthSeed`,`mac64AuthSeed`,`winChecksumSeed`,`macChecksumSeed`) VALUES
(42538,9,2,0,NULL,NULL,'71A7504BD53F8DE518F24265D37310AE',NULL,NULL,NULL);
UPDATE `realmlist` SET `gamebuild`=42538 WHERE `gamebuild`=42521;
ALTER TABLE `realmlist` CHANGE `gamebuild` `gamebuild` int(10) unsigned NOT NULL DEFAULT '42538';
@@ -0,0 +1,7 @@
DELETE FROM `build_info` WHERE `build`=42560;
INSERT INTO `build_info` (`build`,`majorVersion`,`minorVersion`,`bugfixVersion`,`hotfixVersion`,`winAuthSeed`,`win64AuthSeed`,`mac64AuthSeed`,`winChecksumSeed`,`macChecksumSeed`) VALUES
(42560,9,2,0,NULL,NULL,'115FE8C38A8D67CA4664BB192E0F0DFE',NULL,NULL,NULL);
UPDATE `realmlist` SET `gamebuild`=42560 WHERE `gamebuild`=42538;
ALTER TABLE `realmlist` CHANGE `gamebuild` `gamebuild` int(10) unsigned NOT NULL DEFAULT '42560';
@@ -0,0 +1,3 @@
-- TDB 915.22012 characters
UPDATE `updates` SET `state`='ARCHIVED',`speed`=0;
REPLACE INTO `updates_include` (`path`, `state`) VALUES ('$/sql/old/9.x/characters', 'ARCHIVED');
@@ -0,0 +1 @@
ALTER TABLE `characters` DROP `stable_slots`;
@@ -0,0 +1,3 @@
ALTER TABLE `characters` ADD `summonedPetNumber` int unsigned NOT NULL DEFAULT '0' AFTER `extra_flags`;
UPDATE `characters` SET `summonedPetNumber` = COALESCE((SELECT `id` FROM `character_pet` WHERE `owner` = `guid` AND `slot` = 0 AND `curhealth` > 0), 0);
@@ -0,0 +1,3 @@
ALTER TABLE `character_pet` CHANGE `slot` `slot` smallint NOT NULL DEFAULT '-1';
UPDATE `character_pet` SET `slot` = -1 WHERE `slot` = 100;
@@ -0,0 +1 @@
ALTER TABLE `auctionhouse` ADD `serverFlags` tinyint unsigned NOT NULL DEFAULT '0' AFTER `endTime`;
@@ -0,0 +1,3 @@
-- TDB 915.22012 hotfixes
UPDATE `updates` SET `state`='ARCHIVED',`speed`=0;
REPLACE INTO `updates_include` (`path`, `state`) VALUES ('$/sql/old/9.x/hotfixes', 'ARCHIVED');
@@ -0,0 +1,16 @@
--
-- Table structure for table `gameobject_art_kit`
--
DROP TABLE IF EXISTS `gameobject_art_kit`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `gameobject_art_kit` (
`ID` int(10) unsigned NOT NULL DEFAULT '0',
`AttachModelFileID` int(11) NOT NULL DEFAULT '0',
`TextureVariationFileID1` int(11) NOT NULL DEFAULT '0',
`TextureVariationFileID2` int(11) NOT NULL DEFAULT '0',
`TextureVariationFileID3` int(11) NOT NULL DEFAULT '0',
`VerifiedBuild` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`,`VerifiedBuild`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
File diff suppressed because one or more lines are too long
@@ -0,0 +1,13 @@
ALTER TABLE `broadcast_text` ADD `VoiceOverPriorityID` int DEFAULT 0 NOT NULL AFTER `ChatBubbleDurationMs`;
ALTER TABLE `item_sparse` MODIFY `StartQuestID` int DEFAULT 0 NOT NULL;
ALTER TABLE `item_sparse` MODIFY `LanguageID` int DEFAULT 0 NOT NULL;
ALTER TABLE `languages` ADD `Flags` int DEFAULT 0 NOT NULL AFTER Name;
ALTER TABLE `languages` ADD `UiTextureKitID` int DEFAULT 0 NOT NULL AFTER `Flags`;
ALTER TABLE `languages` ADD `UiTextureKitElementCount` int DEFAULT 0 NOT NULL AFTER `UiTextureKitID`;
ALTER TABLE `taxi_nodes` MODIFY `Flags` smallint unsigned DEFAULT 0 NOT NULL;
-- purge blob hotfixes
DELETE hd, hb FROM `hotfix_data` hd INNER JOIN `hotfix_blob` hb ON hd.`TableHash` = hb.`TableHash` AND hd.`RecordId` = hb.`RecordId`;
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,143 @@
--
DELETE FROM `broadcast_text` WHERE `ID` IN (205207, 205211, 205206, 197340, 197339, 184159, 184144, 197697, 197696, 205208, 202246, 196816, 197703, 197702, 201411, 205984, 201420, 199403, 199402, 205985, 205979, 205977, 203180, 197763, 202776, 202463, 204159, 204158, 202656, 205564, 205565, 202459, 205121, 202458, 202455, 202456, 202454, 202453, 202652, 202446, 202448, 200585, 202443, 202445, 202651, 202737, 200125, 202442, 197871, 200030, 204829, 198032, 197828, 201415, 201414, 195389, 200023, 194411, 194276, 199944, 194280, 194268, 194295, 194313, 194298, 194340, 194344, 194342, 199935, 194379, 201398, 201397, 201403, 201399, 201404, 201402, 201400, 201401, 201309, 201313, 201312, 201310, 201311, 201306, 201307, 201308, 205740, 205749, 205744, 201315, 201316, 201318, 201314, 201317, 201319, 201320, 200089, 200088, 195169, 197790, 205986, 205980, 205773, 205723, 199607, 205718, 205739, 204156, 202464, 202777, 204157, 204555, 202461, 205120, 205562, 205563, 202715, 202716, 202718, 202719, 202717, 202723, 202724, 202726, 202722, 202721, 202720, 202708, 202707, 202705, 202704, 202712, 202702, 202713, 205081, 202714, 205080, 202703, 196006);
INSERT INTO `broadcast_text` (`Text`, `Text1`, `ID`, `LanguageID`, `ConditionID`, `EmotesID`, `Flags`, `ChatBubbleDurationMs`, `VoiceOverPriorityID`, `SoundKitID1`, `SoundKitID2`, `EmoteID1`, `EmoteID2`, `EmoteID3`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `VerifiedBuild`) VALUES
('', 'Yeah, a huge one! It crawled out of the ground right under my furniture. I guess the egg must have some sort of scent because the Gorm ignored everything else, it just grabbed the egg and swallowed it.\n\nUnless you have an extremely keen sense of smell, good luck ever finding the thing. You might as well let the Broker know that his precious bauble is gone.\n\nNow, if you will excuse me, I have to get back to wallowing in my misery.', 205207, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 37176),
('I\'ve just the item that could help. Check my inventory.', '', 205211, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37176),
('', 'I guess you\'re here to collect for that Broker, huh?\n\nYou\'re too late, a damned gorm ate it.', 205206, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37176),
('', 'We\'ll relocate the cocoons to the groves that need them. Thank you for restoring the balance.', 197340, 0, 0, 0, 0, 0, 0, 0, 162902, 0, 0, 0, 0, 0, 0, 36949),
('', 'The moth cocoons in Shimmerbough are growing out of control! Can you help collect them from the treetops?', 197339, 0, 0, 0, 0, 0, 0, 0, 162901, 0, 0, 0, 0, 0, 0, 36949),
('', 'These creatures once served as a defense against intruders. A pity that they, too, must fall.', 184159, 0, 0, 0, 0, 0, 0, 0, 167559, 0, 0, 0, 0, 0, 0, 36949),
('', 'The local fauna has grown feral and hostile since the fall of my house. Slay the beasts and aid the Eyes.', 184144, 0, 0, 0, 0, 0, 0, 0, 167558, 0, 0, 0, 0, 0, 0, 36949),
('', 'Today, you have proven that we will not give in to doubt. Bastion will never surrender!', 197697, 0, 0, 1, 0, 0, 0, 0, 164329, 0, 0, 0, 0, 0, 0, 36839),
('', 'The forsworn have fortified this area with their most adept warriors. Strike them down, courage be with you!', 197696, 0, 0, 1, 0, 0, 0, 0, 164328, 0, 0, 0, 0, 0, 0, 36839),
('', 'You were able to find it? \nWell, good for you. \n\nKnow what? You deserve something...\n\n<Tabithia makes an exaggeratedly slow, single clap.>\n\nThere, now go away! I\'m kind of busy here, you know... in the wreckage of my house.', 205208, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36753),
('', 'The power in these relics pales in comparison to the weapon that awaits us ahead.', 202246, 0, 0, 1, 0, 0, 0, 0, 161578, 0, 0, 0, 0, 0, 0, 36839),
('', 'We must not allow the cold to deter our efforts. Seek warmth among allies, champion.', 196816, 0, 0, 0, 0, 0, 0, 0, 161171, 0, 0, 0, 0, 0, 0, 36710),
('Oblivion is too kind of fate for betraying Krexus. Thank you for delivering justice.', '', 197703, 0, 0, 0, 0, 0, 0, 164942, 0, 0, 0, 0, 0, 0, 0, 36753),
('The traitors from my former house maintain a stronghold here. Bring them all to ruin.', '', 197702, 0, 0, 0, 0, 0, 0, 164941, 0, 0, 0, 0, 0, 0, 0, 36753),
('The Argent Crusade stands ready.\n\nOur enemies will fall.', 'The Argent Crusade stands ready.\n\nOur enemies will fall.', 201411, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('Suffer well, $c.\n\nAnd know that the Scourge will suffer only defeat.', 'Suffer well, $c.\n\nAnd know that the Scourge will suffer only defeat.', 205984, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('We\'ve established camps throughout the area to keep a watchful eye on the Scourge\'s movements.', '', 201420, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('This is the Ember Ward! Where is anything when you need it?\n\nLook around, I am sure there is one not too far off. Check the other cages.', '', 199403, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 36949),
('Of course, the treasure. I suppose that is why you are bothering me, yes?\n\nI shall offer you the same deal I offer all unscrupulous treasure hunters: Bring me a book, get a treasure.\n\nI warn you, however, that I am a very discerning reader.', '', 199402, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 36949),
('The Scourge will always have the upper hand against the living. Their hunger only strengthens them. They never tire, they never relent, and they never surrender.\n\nNeither does the Ebon Blade.', 'The Scourge will always have the upper hand against the living. Their hunger only strengthens them. They never tire, they never relent, and they never surrender.\n\nNeither does the Ebon Blade.', 205985, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36671),
('The Knights of the Silver Hand, the Argent Dawn, the Argent Crusade... \n\nNo matter the name of the order, our purpose is clear. We defend Azeroth against the evils that would destroy it.', 'The Knights of the Silver Hand, the Argent Dawn, the Argent Crusade... \n\nNo matter our name, our purpose is clear. We defend Azeroth against the evils that would destroy it.', 205979, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36671),
('So long as the Scourge remains a threat, the Argent Crusade will rise to vanquish them.', 'So long as the Scourge remains a threat, the Argent Crusade will rise to vanquish them.', 205977, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36671),
('', 'The matter is of a... sensitive nature. Further details will be provided when you arrive. Please, do not delay.', 203180, 0, 0, 0, 0, 0, 0, 0, 162747, 0, 0, 0, 0, 0, 0, 36671),
('', 'Champion, the Regent Lord requests your immediate presence in Orgrimmar.', 197763, 0, 0, 0, 0, 0, 0, 0, 161178, 0, 0, 0, 0, 0, 0, 36671),
('I will not rest until they are found. Work with our allies to keep the Scourge at bay. We cannot allow that menace to overrun our kingdoms.', '', 202776, 0, 0, 1, 0, 0, 0, 164710, 0, 0, 0, 0, 0, 0, 0, 36710),
('No sign of Anduin or Jaina. If they aren\'t being held in Icecrown, it can only mean that the Banshee has taken them into the realms of Death.', '', 202463, 0, 0, 1, 0, 0, 0, 164709, 0, 0, 0, 0, 0, 0, 0, 36710),
('When the hour comes, we will call upon you to face the darkness... and bring our allies home.', '', 204159, 0, 0, 1, 0, 0, 0, 164712, 0, 0, 0, 0, 0, 0, 0, 36710),
('I\'ll send word to the Knights of the Ebon Blade. If anyone can devise a strategy to rescue our friends, it\'s Bolvar Fordragon.', '', 204158, 0, 0, 1, 0, 0, 0, 164711, 0, 0, 0, 0, 0, 0, 0, 36710),
('Can I help you?', 'Can I help you?', 202656, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('', 'Well fought, $p.', 205564, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('', 'Let us return with word of this creature\'s defeat.', 205565, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('', 'The darkness comes...', 202459, 0, 0, 0, 0, 0, 0, 0, 162289, 0, 0, 0, 0, 0, 0, 36710),
('', 'In the name of the Light!', 205121, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('', 'Fate is upon you, mortal.', 202458, 0, 0, 397, 0, 0, 0, 0, 162288, 0, 0, 0, 0, 0, 0, 36710),
('', 'Tread carefully, $n. We do not fully understand the power of this being.', 202455, 0, 0, 0, 0, 0, 0, 0, 161806, 0, 0, 0, 0, 0, 0, 36710),
('', 'When the time is right, signal our allies and we shall bring this monster down together.', 202456, 0, 0, 0, 0, 0, 0, 0, 161807, 0, 0, 0, 0, 0, 0, 36710),
('', 'Yes. You will make a fitting prize.', 202454, 0, 0, 0, 0, 0, 0, 0, 162287, 0, 0, 0, 0, 0, 0, 36710),
('', 'You show promise... like the others.', 202453, 0, 0, 0, 0, 0, 0, 0, 162286, 0, 0, 0, 0, 0, 0, 36710),
('', 'Death will be the only power that remains!', 202652, 0, 0, 0, 0, 0, 0, 0, 162285, 0, 0, 0, 0, 0, 0, 36710),
('', 'Ah, another defiant soul.', 202446, 0, 0, 0, 0, 0, 0, 0, 162283, 0, 0, 0, 0, 0, 0, 36710),
('', 'In time, you too will serve the Banished One.', 202448, 0, 0, 0, 0, 0, 0, 0, 162284, 0, 0, 0, 0, 0, 0, 36710),
('', 'If we fail to prevent the spread of the Scourge this camp may be lost. Do what you can to buy us time.', 200585, 0, 0, 1, 0, 0, 0, 0, 161151, 0, 0, 0, 0, 0, 0, 36710),
('', 'His power rising... his chains broken. The remaking has begun!', 202443, 0, 0, 0, 0, 0, 0, 0, 162280, 0, 0, 0, 0, 0, 0, 36710),
('', 'The hour draws near when the Banished One shall reclaim what is his.', 202445, 0, 0, 0, 0, 0, 0, 0, 162281, 0, 0, 0, 0, 0, 0, 36710),
('', 'Make ready! Feed the lives of the unworthy to the hungering Maw!', 202651, 0, 0, 0, 0, 0, 0, 0, 162282, 0, 0, 0, 0, 0, 0, 36710),
('', 'Death comes for the soul of this world.', 202737, 0, 0, 0, 0, 0, 0, 0, 162311, 0, 0, 0, 0, 0, 0, 36710),
('', 'We stand together.', 200125, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('', 'Excellent work. Continue the investigations. We will see to this at once.', 202442, 0, 0, 0, 0, 0, 0, 0, 161805, 0, 0, 0, 0, 0, 0, 36710),
('', 'Let\'s get moving.', 197871, 0, 0, 0, 0, 0, 0, 0, 161138, 0, 0, 0, 0, 0, 0, 36710),
('', 'There is still much to be done, $n. Crusader Renn here will assist you in your next endeavors.', 200030, 0, 0, 1, 0, 0, 0, 0, 161137, 0, 0, 0, 0, 0, 0, 36710),
('You\'re lookin\' at the best, furthest reaching surveillance device this side of the snow!\n\nLook no further than the Sight-O-Matic 3000... and one!', '', 204829, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('', 'If we continue to delay our opportunity may be lost.', 198032, 0, 0, 0, 0, 0, 0, 0, 161136, 0, 0, 0, 0, 0, 0, 36710),
('', 'Forgive me, but I believe that to be antiquated thinking, Justicar. We must act now, before it is too late.', 197828, 0, 0, 0, 0, 0, 0, 0, 161135, 0, 0, 0, 0, 0, 0, 36710),
('The Cult of the Damned have always strived for immortality, and see undeath as the means to achieve it.\n\nWith the return of the Scourge, it is no surprise that these fanatics now seek to continue their twisted work and consign us all to the grim fate that befell Lordaeron.\n\nTheir actions are driven by a sense of dark purpose, one that can be wielded as a weapon by the right leader. The question we should be asking is not why the Cult has returned, but rather who is behind their efforts.', '', 201415, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('We do not yet know the reason behind the Scourge\'s return. I suspect the guidance of an unseen hand.\n\nWho that could be, I cannot say for sure... but we\'ll have our answers soon enough.', '', 201414, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('', '<The courier nods silently.>', 195389, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('...and I will reassure the justicar she has our full support. Our reinforcements will be arriving shortly.', '', 200023, 0, 0, 669, 0, 0, 0, 160910, 0, 0, 0, 0, 0, 0, 0, 36710),
('Our allies will remain here in Darkshire until the Scourge forces are no more.', '', 194411, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('If you don\'t need to be here, it\'s best you don\'t stick around.', '', 194276, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('You should check up on Vernon in Darkshire. If it\'s this bad here, I can\'t imagine what his forces must be facing.', '', 199944, 0, 0, 669, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('What? Gather the reports?\n\nOur courier should have reached Stormwind long before now!', '', 194280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('<Guard Captain Fairbanks raises his weapon, aiming it threateningly in your direction.>\n\nYou...!\n\nNever sneak up on me like that again! I could have killed you!\n\nWhat are you doing here? It\'s not safe!', '', 194268, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('', 'Our patrols are doing their best to keep the area safe.\n\nTravel with caution.', 194295, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('', 'The Scourge\'s presence continues to grow. Without proper reinforcements, Stormwind may soon be under siege.\n\nDeliver this report. Inform Gregor that the situation is more dire than we anticipated.', 194313, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('', '<Guard Captain Josephine scans the surrounding area.>\n\nSpeak quickly.', 194298, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('', 'The Scourge will be dealt with in due time.\n\nDo not hesitate to ask should you be in need of assistance.', 194340, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('', 'Our patrols report outbreaks of Scourge activity to the east. Our forces are shaken, but holding the line.\n\nI sent a scout to speak with Guard Captain Josephine in Redridge. They have yet to return.', 194344, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('', 'We must remain vigilant against the Scourge.', 194342, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('And make sure you bring Lieutenant Vernon up to speed before you return. He will be awaiting your initial reports in Darkshire.', '', 199935, 0, 0, 669, 0, 0, 0, 160911, 0, 0, 0, 0, 0, 0, 0, 36710),
('We have dispatched our forces throughout the area to watch for any signs of the Scourge.', '', 194379, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('It\'s not that simple, Taelia. Your father was presumed lost at the Wrathgate. It wasn\'t until later that we learned the truth.', '', 201398, 0, 0, 1, 0, 0, 0, 160295, 0, 0, 0, 0, 0, 0, 0, 36710),
('', 'All this time you knew my father was alive, but you didn\'t tell me?!', 201397, 0, 0, 5, 0, 0, 0, 0, 160294, 0, 0, 0, 0, 0, 0, 36710),
('Please forgive us, Taelia. We honestly believed he was a casualty of war. That Bolvar Fordragon was truly gone, to be forevermore the Lich King.', '', 201403, 0, 0, 1, 0, 0, 0, 160300, 0, 0, 0, 0, 0, 0, 0, 36710),
('Dragon\'s flame had saved his life, but scarred his flesh. And in an act of vengeance, Arthas Menethil captured and tormented him.', '', 201399, 0, 0, 1, 0, 0, 0, 160296, 0, 0, 0, 0, 0, 0, 0, 36710),
('', 'Well, you were wrong. Now I know my father is alive, free from that damned helm. And no matter what it takes, I will go to his side.', 201404, 0, 0, 1, 0, 0, 0, 0, 160301, 0, 0, 0, 0, 0, 0, 36710),
('', '\"We\"? Anduin knew too, didn\'t he? The king told me story after story about my father as if he were some long-dead hero of the past. But the whole time, Anduin hid the truth.', 201402, 0, 0, 1, 0, 0, 0, 0, 160299, 0, 0, 0, 0, 0, 0, 36710),
('When the Lich King was defeated, someone had to take up the mantle and keep the Scourge in check. Your father assumed that burden, knowing it would cost him everything.', '', 201400, 0, 0, 1, 0, 0, 0, 160297, 0, 0, 0, 0, 0, 0, 0, 36710),
('Tirion Fordring swore to keep Bolvar\'s choice a secret. He made us take the same vow. We believed that knowing his fate would only bring you pain.', '', 201401, 0, 0, 1, 0, 0, 0, 160298, 0, 0, 0, 0, 0, 0, 0, 36710),
('Still, we need you in the throne room. There are matters of state that must be overseen until the king\'s return.', '', 201309, 0, 0, 1, 0, 0, 0, 160219, 0, 0, 0, 0, 0, 0, 0, 36710),
('Yes, your majesty.', '', 201313, 0, 0, 273, 0, 0, 0, 160223, 0, 0, 0, 0, 0, 0, 0, 36710),
('You and Turalyon need to safeguard our citizens from the return of the Scourge. I need to focus on doing whatever I can to find Anduin and the others.', '', 201312, 0, 0, 1, 0, 0, 0, 160222, 0, 0, 0, 0, 0, 0, 0, 36710),
('Anduin entrusted Turalyon with command of our military forces. The Stormwind nobles support him serving as regent and protector of the realm.', '', 201310, 0, 0, 1, 0, 0, 0, 160220, 0, 0, 0, 0, 0, 0, 0, 36710),
('I don\'t question the High Exarch\'s ability to defend the Alliance. But as a king yourself, don\'t you think you should--', '', 201311, 0, 0, 0, 0, 0, 0, 160221, 0, 0, 0, 0, 0, 0, 0, 36710),
('King Greymane, you shouldn\'t remain out in the open like this. You\'re too tempting a target.', '', 201306, 0, 0, 1, 0, 0, 0, 160216, 0, 0, 0, 0, 0, 0, 0, 36710),
('If Sylvanas had wished to capture me, she would have done so along with Anduin.', '', 201307, 0, 0, 1, 0, 0, 0, 160217, 0, 0, 0, 0, 0, 0, 0, 36710),
('No. She wanted to leave me behind. To torment me with the loss of yet another... of our king.', '', 201308, 0, 0, 274, 0, 0, 0, 160218, 0, 0, 0, 0, 0, 0, 0, 36710),
('The king was taken on my watch. I should\'ve had more agents assigned to him. This is what happens when I let my guard down. When I allow my--\n\n<Shaw takes a deep breath.>\n\nNo, damn it. This was her doing. I won\'t blame myself for finding happiness. Anduin would be the first to tell me that.\n\nWe\'re going to find him. The others, too. Whatever it takes.', '', 205740, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 2000, 0, 36710),
('', 'It seems my mother was the only target who avoided capture.\n\nI should give thanks to Elune for such a blessing.\n\n<Shandris\'s brow furrows.>\n\nYes, my minn\'do laid waste to the dark manifestations the Banshee sent for her. But the power she displayed, the ferocity she unleashed, something about it was... troubling.\n\nShe knew there was a price to be paid for undertaking the ritual of the Night Warrior. With each day that passes, I fear the price will come due.', 205749, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 2000, 0, 36710),
('', 'I was at the Lord Admiral\'s side when those monsters came for her.\n\nThey struck fast. She could hardly cast a spell before their chains enveloped her. She fought all she could, but it wasn\'t enough.\n\nI... I couldn\'t stop them.\n\nBut by the tides, I swear I\'ll see this through. No matter where I have to go, or what I have to face.', 205744, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 2000, 0, 36710),
('The Ebon Blade has extracted the Lich... the Highlord from the battle in Icecrown. He is recovering in Acherus.', '', 201315, 0, 0, 1, 0, 0, 0, 160227, 0, 0, 0, 0, 0, 0, 0, 36710),
('I pray he can help us find answers. Without that cursed helm, the Scourge are running rampant.', '', 201316, 0, 0, 1, 0, 0, 0, 160228, 0, 0, 0, 0, 0, 0, 0, 36710),
('If anyone can figure out how this all fits together, it\'s Bolvar.', '', 201318, 0, 0, 273, 0, 0, 0, 160230, 0, 0, 0, 0, 0, 0, 0, 36710),
('We\'ll get them back, Taelia. I swear to you, we\'ll save them all.', '', 201314, 0, 0, 5, 0, 0, 0, 160226, 0, 0, 0, 0, 0, 0, 0, 36710),
('We\'ll need the help of the Argent Crusade to stem the tide of the undead.', '', 201317, 0, 0, 1, 0, 0, 0, 160229, 0, 0, 0, 0, 0, 0, 0, 36710),
('', 'Did you say... Bolvar? Bolvar Fordragon? That\'s my father...is he alive?!', 201319, 0, 0, 5, 0, 0, 0, 0, 160231, 0, 0, 0, 0, 0, 0, 36710),
('Taelia, I... will explain. But we can\'t afford to let our guard down. Not with so much at stake.', '', 201320, 0, 0, 1, 0, 0, 0, 160232, 0, 0, 0, 0, 0, 0, 0, 36710),
('', 'Right now, I don\'t give a damn about justice. I just want to find where she\'s taken our friends. King Greymane, what\'s the plan?', 200089, 0, 0, 6, 0, 0, 0, 0, 160225, 0, 0, 0, 0, 0, 0, 36710),
('', 'These abductions... the Scourge attacks... the Banshee will pay for what she\'s done. By Elune\'s fury, we will bring her to justice!', 200088, 0, 0, 5, 0, 0, 0, 0, 160224, 0, 0, 0, 0, 0, 0, 36710),
('The Banshee\'s accursed shadow hangs over us all.\n\nShe will pay for what she\'s done!', '', 195169, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 36710),
('How... how could I let this happen?', '', 197790, 0, 0, 0, 0, 0, 0, 161185, 0, 0, 0, 0, 0, 0, 0, 36710),
('Strange, is it not? When we first offered aid to this city, its people cursed and spat at us. They feared and reviled us.\n\nNow, we defend them against the very monsters for which they mistook us.\n\nI suspect the irony is lost on them. No matter. We do what the living cannot.', 'Strange, is it not? When we first offered aid to this city, its people cursed and spat at us. They feared and reviled us.\n\nNow, we defend them against the very monsters for which they mistook us.\n\nI suspect the irony is lost on them. No matter. We do what the living cannot.', 205986, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('Do not think I have forgotten what the Knights of the Ebon Blade attempted at Light\'s Hope Chapel.\n\nWe may not be enemies, but neither are we allies.', 'Do not think I have forgotten what the Knights of the Ebon Blade attempted at Light\'s Hope Chapel.\n\nWe may not be enemies, but neither are we allies.', 205980, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36710),
('', 'When I worked with King Wrynn to arrange a meeting between the living and the undead in Arathi, I thought I understood the Forsaken. Only too late did I realize how little I knew.\n\nBut after being raised into undeath myself, I have begun to see the depths of what they have endured. With the help of Lilian Voss, I have found ways to aid those who feel abandoned and alone.\n\nRight now, the whole world trembles beneath the specter of death. And fear, left unchecked, will consume every soul it touches.\n\nI cannot allow that to happen. Not to the people of Lordaeron, nor to any who fight for the good of Azeroth.', 205773, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 2000, 0, 36665),
('', 'The war taught me many lessons. Who I could trust... and who I could not.\n\nThrough her actions, Sylvanas has proven that she doesn\'t care about the Forsaken\'s fate. But we have endured too much to allow her betrayal to unravel what we have built.\n\n<Lilian peers at you through narrow eyes.>\n\nYou think my words harsh, $p? Did you willfully do her bidding? Turn a blind eye upon her endless atrocities?\n\nWindrunner chose her path--and her allies. We all did.\n\nOnce, I would have sought vengeance. Retribution. But now, I care only that the Forsaken have a future. And for that, we need the right leaders in place.\n\nI will lend my voice to the Horde council and speak for my people. For a time, at least.', 205723, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 2000, 0, 36665),
('', 'We had a life in Nagrand. A home. We were happy.\n\n<Aggra looks wistfully into the distance.>\n\nBut... Go\'el needed to return. We all did. For the sake of the Horde. And for Saurfang.\n\nThe Banshee\'s forces took us by surprise. We fought fiercely, but it was not enough.\n\nI know wherever they took him, Go\'el will keep on fighting.\n\nHe would want me to stay and safeguard the children. So I ask you, $n, to go in my stead.\n\nFind him. Find them all. And bring them home.', 199607, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 2000, 0, 36665),
('', 'Baine endured so much during the war. He did all he could to make the Horde strong. But more than that, he fought to reclaim its honor. Its heart.\n\nThe Banshee failed to break him, so of course she would lash out like this. A cowardly attack was all she had left.\n\nBaine means... a great deal to me. But my people--and his--are gripped by fear. Now is not the time for me to leave them, even for his sake.\n\nSo I ask you, $n, to fight to save him. As he fought to save the Horde.', 205718, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 2000, 0, 36665),
('Dis be a perilous time for da Horde. Our wounds still be fresh, and da Banshee be inflictin\' even fresher ones.\n\nDa Scourge be risin\' too. If we don\'t be careful, Death gonna take hold of dis world. We all gotta stay vigilant.\n\nQueen Talanji be back in Zuldazar, defendin\' her kingdom. Don\'t know if ya heard, but she been facin\' problems of her own.\n\nDa Horde gotta stand strong, $p. No matter what be risin\' from da shadows.', '', 205739, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 2000, 0, 36665),
('I will send word of this to the Knights of the Ebon Blade. We must devise a strategy to rescue our friends from the realms of Death.', '', 204156, 0, 0, 1, 0, 0, 0, 164697, 0, 0, 0, 0, 0, 0, 0, 36665),
('The winged creature you encountered sounds like the very fiends who abducted Thrall, Baine, and the others.', '', 202464, 0, 0, 1, 0, 0, 0, 164695, 0, 0, 0, 0, 0, 0, 0, 36665),
('I had hoped you would find them held captive in Icecrown. But it seems our worst fears are true... that Sylvanas has taken them beyond the shattered veil.', '', 202777, 0, 0, 1, 0, 0, 0, 164696, 0, 0, 0, 0, 0, 0, 0, 36665),
('Stay vigilant, $n. Fight back the Scourge wherever you see them encroaching. Once our plan is in place, you will be called upon to bring our allies home.', '', 204157, 0, 0, 1, 0, 0, 0, 164698, 0, 0, 0, 0, 0, 0, 0, 36665),
('Can I help you?', 'Can I help you?', 204555, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('', 'You cannot... stop... his victory...', 202461, 0, 0, 0, 0, 0, 0, 0, 162290, 0, 0, 0, 0, 0, 0, 36665),
('We end this together.', '', 205120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('A job well done.', '', 205562, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('Let us return with news of our success.', '', 205563, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('Please. Help us!', 'Please. Help us!', 202715, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('You must tell the others what they\'re doing here!', 'You must tell the others what they\'re doing here!', 202716, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('Do something. Please!', 'Do something. Please!', 202718, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('Light watch over us.', 'Light watch over us.', 202719, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('The things they do here...', 'The things they do here...', 202717, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('No more. I beg you!', 'No more. I beg you!', 202723, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('The Light protects us!', 'The Light protects us!', 202724, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('No... no! Not again!', 'No... no! Not again!', 202726, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('You may cause us pain, but you cannot protect yourselves from what\'s coming!', 'You may cause us pain, but you cannot protect yourselves from what\'s coming!', 202722, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('Make it stop! Please. I\'ll do anything!', 'Make it stop! Please. I\'ll do anything!', 202721, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('Please! No more!', 'Please! No more!', 202720, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('Soon our work will be complete.', 'Soon our work will be complete.', 202708, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('Mind your business.', 'Mind your business.', 202707, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('Leave me to my work.', 'Leave me to my work.', 202705, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('Stop pestering me.', 'Stop pestering me.', 202704, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('Death beckons to us all.', 'Death beckons to us all.', 202712, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('<The monstrosity acknowledges your presence with a deep, mucous-filled gargling sound.>', '', 202702, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('All who oppose us shall suffer.', 'All who oppose us shall suffer.', 202713, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('Leave me be.', 'Leave me be.', 205081, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('Let nothing stand in our way.', 'Let nothing stand in our way.', 202714, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('My life is but a small sacrifice.', 'My life is but a small sacrifice.', 205080, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('Yes? What do you want?', 'Yes? What do you want?', 202703, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665),
('', 'The Scourge need no reason to attack. They are mindless beasts, existing only to consume and destroy.\n\nBut... at times their aggression has felt focused and coordinated, as if some unseen presence is driving them.\n\nWe sent several scouts deep into hostile territory to glean more information. None have returned.\n\nOne thing is certain--our enemy is keen on seeing our watch over Icecrown come to an end.', 196006, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36665);
@@ -0,0 +1,9 @@
--
DELETE FROM `broadcast_text` WHERE `ID` IN (208083, 205358, 197340, 197339, 197697, 197696);
INSERT INTO `broadcast_text` (`Text`, `Text1`, `ID`, `LanguageID`, `ConditionID`, `EmotesID`, `Flags`, `ChatBubbleDurationMs`, `VoiceOverPriorityID`, `SoundKitID1`, `SoundKitID2`, `EmoteID1`, `EmoteID2`, `EmoteID3`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `VerifiedBuild`) VALUES
('Good luck, $p. I must say that we are quite the egg-hiding experts now!', '', 208083, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38134),
('It seems you have yet to bind yourself to a Covenant. I can bind you to one of the Covenants temporarily, for a price. Negotiated at a later date of course.', 'It seems you have yet to bind yourself to a Covenant. I can bind you to one of the Covenants temporarily, for a price. Negotiated at a later date of course.', 205358, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38556),
('', 'We\'ll relocate the cocoons to the groves that need them. Thank you for restoring the balance.', 197340, 0, 0, 0, 0, 0, 0, 0, 162902, 0, 0, 0, 0, 0, 0, 38134),
('', 'The moth cocoons in Shimmerbough are growing out of control! Can you help collect them from the treetops?', 197339, 0, 0, 0, 0, 0, 0, 0, 162901, 0, 0, 0, 0, 0, 0, 38134),
('', 'Today, you have proven that we will not give in to doubt. Bastion will never surrender!', 197697, 0, 0, 1, 0, 0, 0, 0, 164329, 0, 0, 0, 0, 0, 0, 38134),
('', 'The forsworn have fortified this area with their most adept warriors. Strike them down, courage be with you!', 197696, 0, 0, 1, 0, 0, 0, 0, 164328, 0, 0, 0, 0, 0, 0, 38134);
@@ -0,0 +1,13 @@
--
DELETE FROM `broadcast_text` WHERE `ID` IN (208597, 208607, 205358, 208091, 197697, 197696, 197340, 197339, 211381, 211382);
INSERT INTO `broadcast_text` (`Text`, `Text1`, `ID`, `LanguageID`, `ConditionID`, `EmotesID`, `Flags`, `ChatBubbleDurationMs`, `VoiceOverPriorityID`, `SoundKitID1`, `SoundKitID2`, `EmoteID1`, `EmoteID2`, `EmoteID3`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `VerifiedBuild`) VALUES
('I\'ve been bubbling up quite a collection of concoctions to assist you, Maw Walker.', '', 208597, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 40725),
('I don\'t know you, but we can still be friends.', '', 208607, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 40725),
('It seems you have yet to bind yourself to a Covenant. I can bind you to one of the Covenants temporarily, for a price. Negotiated at a later date of course.', 'It seems you have yet to bind yourself to a Covenant. I can bind you to one of the Covenants temporarily, for a price. Negotiated at a later date of course.', 205358, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39653),
('Perfect! With those parts and Heirmir\'s Runes we have been able to create not just a Centurion, but a suit of armor capable of scaling the walls of the fortress!', '', 208091, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39335),
('', 'Today, you have proven that we will not give in to doubt. Bastion will never surrender!', 197697, 0, 0, 1, 0, 0, 0, 0, 164329, 0, 0, 0, 0, 0, 0, 40443),
('', 'The forsworn have fortified this area with their most adept warriors. Strike them down, courage be with you!', 197696, 0, 0, 1, 0, 0, 0, 0, 164328, 0, 0, 0, 0, 0, 0, 40443),
('', 'We\'ll relocate the cocoons to the groves that need them. Thank you for restoring the balance.', 197340, 0, 0, 0, 0, 0, 0, 0, 162902, 0, 0, 0, 0, 0, 0, 40000),
('', 'The moth cocoons in Shimmerbough are growing out of control! Can you help collect them from the treetops?', 197339, 0, 0, 0, 0, 0, 0, 0, 162901, 0, 0, 0, 0, 0, 0, 40000),
('', 'You are a welcome sight in these uncouth lands, Tubbins and Gubbins.', 211381, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39289),
('', 'Now, if you will excuse me, I must go thank Theotar in person.', 211382, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39289);
@@ -0,0 +1,45 @@
--
DELETE FROM `broadcast_text` WHERE `ID` IN (209163, 209160, 209164, 209162, 211425, 209173, 209174, 209161, 210862, 210860, 210859, 210858, 210857, 210855, 210854, 210851, 210850, 205211, 205208, 205207, 205206, 204189, 202222, 201299, 197340, 197339, 208593, 211398, 211399, 211401, 211402, 211404, 211405, 211407, 211408, 214459, 208607, 197697, 197696, 211435);
INSERT INTO `broadcast_text` (`Text`, `Text1`, `ID`, `LanguageID`, `ConditionID`, `EmotesID`, `Flags`, `ChatBubbleDurationMs`, `VoiceOverPriorityID`, `SoundKitID1`, `SoundKitID2`, `EmoteID1`, `EmoteID2`, `EmoteID3`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `VerifiedBuild`) VALUES
('Grab a big one this time, Fangcrack!', '', 209163, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42010),
('Let\'s see who hidin\' in here...', '', 209160, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42010),
('I love you, Fangcrack!', 'I love you, Fangcrack!', 209164, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42010),
('Go get \'em Fangcrack!', '', 209162, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42010),
('<Rendle cheers at the dredger brute down below.>\n\nGet \'em Fangcrack! You\'re my hero!', '', 211425, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42010),
('I caught a big one!', '', 209173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42010),
('Yeah! Get \'em, Fangcrack! Ha ha!', '', 209174, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42010),
('Come out and play, small sneakies!', '', 209161, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41488),
('Prepare yourselves. We make our stand now.', '', 210862, 0, 0, 0, 102, 0, 0, 180988, 0, 0, 0, 0, 0, 0, 0, 41031),
('He is coming.', '', 210860, 0, 0, 0, 102, 0, 0, 180987, 0, 0, 0, 0, 0, 0, 0, 41031),
('', 'Forgive me, master. We were only--', 210859, 0, 0, 0, 102, 0, 0, 0, 180986, 0, 0, 0, 0, 0, 0, 41031),
('You brought my sigil... to Zovaal\'s lair?', '', 210858, 0, 0, 0, 102, 0, 0, 180985, 0, 0, 0, 0, 0, 0, 0, 41031),
('', 'My Primus! You\'ve been trapped here all this time?!', 210857, 0, 0, 0, 102, 0, 0, 0, 180984, 0, 0, 0, 0, 0, 0, 41031),
('...everything!', '', 210855, 0, 0, 0, 102, 0, 0, 180983, 0, 0, 0, 0, 0, 0, 0, 41031),
('I remember...', '', 210854, 0, 0, 0, 102, 0, 0, 182104, 0, 0, 0, 0, 0, 0, 0, 41031),
('...remember...', '', 210851, 0, 0, 0, 102, 0, 0, 182103, 0, 0, 0, 0, 0, 0, 0, 41031),
('I...', '', 210850, 0, 0, 0, 102, 0, 0, 182102, 0, 0, 0, 0, 0, 0, 0, 41031),
('I\'ve just the item that could help. Check my inventory.', '', 205211, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41031),
('', 'You were able to find it? \nWell, good for you. \n\nKnow what? You deserve something...\n\n<Tabithia makes an exaggeratedly slow, single clap.>\n\nThere, now go away! I\'m kind of busy here, you know... in the wreckage of my house.', 205208, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41031),
('', 'Yeah, a huge one! It crawled out of the ground right under my furniture. I guess the egg must have some sort of scent because the Gorm ignored everything else, it just grabbed the egg and swallowed it.\n\nUnless you have an extremely keen sense of smell, good luck ever finding the thing. You might as well let the Broker know that his precious bauble is gone.\n\nNow, if you will excuse me, I have to get back to wallowing in my misery.', 205207, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 41031),
('', 'I guess you\'re here to collect for that Broker, huh?\n\nYou\'re too late, a damned gorm ate it.', 205206, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41031),
('Probably my best work yet.', '', 204189, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 41031),
('Gotta say, it\'s nice havin\' dredgers wait on ME for a change.\n\n<Rendle smiles proudly and sticks out his chest.>\n\nYeah, ol\' Rendle\'s finally movin\' up in this mucky-muck world.', '', 202222, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 41031),
('We have activated the stoneborn reserves for today\'s court.\n\nRest easy. Any intrusion will be dealt with.', '', 201299, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 41031),
('', 'We\'ll relocate the cocoons to the groves that need them. Thank you for restoring the balance.', 197340, 0, 0, 0, 0, 0, 0, 0, 162902, 0, 0, 0, 0, 0, 0, 41031),
('', 'The moth cocoons in Shimmerbough are growing out of control! Can you help collect them from the treetops?', 197339, 0, 0, 0, 0, 0, 0, 0, 162901, 0, 0, 0, 0, 0, 0, 41031),
('Allow my blade to assist you. Together we shall strike unseen upon the enemy!', 'Allow my blade to assist you. Together we shall strike unseen upon the enemy!', 208593, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 41488),
('Thank you, friends.', '', 211398, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41488),
('I must hurry to rebuild the mirrors that Prince Renathal requires!', '', 211399, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41488),
('', 'Well, I suppose this is what I deserve for following Laurent through that mirror.', 211401, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41488),
('', 'I shall remain in the Ember Ward next time.', 211402, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41488),
('', 'Drank Tubbins, thank Gubbins...', 211404, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41488),
('', 'A debt repaid, twice conveyed.', 211405, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41488),
('', 'Charred shards, it\'s good to see you both.', 211407, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41488),
('', 'Tell Theotar to meet me at the parlor when this is all over. He owes me a drink!', 211408, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41488),
('Here to help! Illidari say so!', 'Here to help! Illidari say so!', 214459, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41488),
('I don\'t know you, but we can still be friends.', '', 208607, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 41079),
('', 'Today, you have proven that we will not give in to doubt. Bastion will never surrender!', 197697, 0, 0, 1, 0, 0, 0, 0, 164329, 0, 0, 0, 0, 0, 0, 40944),
('', 'The forsworn have fortified this area with their most adept warriors. Strike them down, courage be with you!', 197696, 0, 0, 1, 0, 0, 0, 0, 164328, 0, 0, 0, 0, 0, 0, 40944),
('', 'Today is a good day, for today we hunt!', 211435, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 41079);
@@ -0,0 +1,39 @@
--
DELETE FROM `broadcast_text` WHERE `ID` IN (214210, 214209, 205045, 205043, 205042, 205041, 205040, 205039, 205004, 205003, 205002, 204999, 204998, 204997, 204996, 204995, 202222, 201299);
INSERT INTO `broadcast_text` (`Text`, `Text1`, `ID`, `LanguageID`, `ConditionID`, `EmotesID`, `Flags`, `ChatBubbleDurationMs`, `VoiceOverPriorityID`, `SoundKitID1`, `SoundKitID2`, `EmoteID1`, `EmoteID2`, `EmoteID3`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `VerifiedBuild`) VALUES
('You have preserved this place for now. But, we must remain vigilant.', '', 214210, 0, 0, 669, 0, 0, 0, 188523, 0, 0, 0, 0, 0, 0, 0, 42488),
('The devourers have decimated this area. Destroy the fissures and protect its natural state.', '', 214209, 0, 0, 669, 0, 0, 0, 188522, 0, 0, 0, 0, 0, 0, 0, 42488),
('Where are the bodies buried?', 'Where are the bodies buried?', 205045, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('Let them come. I am ready to fight.', 'Let them come. I am ready to fight.', 205043, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('I grow tired of waiting. Where are the enemies?', 'I grow tired of waiting. Where are the enemies?', 205042, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('Found a cake. Ate it too. Tasted gross.', 'Found a cake. Ate it too. Tasted gross.\n\nMight\'ve been a dredger.', 205041, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('Bring me something worth fighting.', 'Bring me something worth fighting.', 205040, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('I was promised bloodshed.', 'I was promised bloodshed.', 205039, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('Good to be back in Revendreth. Always respected the venthyr and their stoneborn.', 'Good to be back in Revendreth. Always respected the venthyr and their stoneborn.', 205004, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('Bet I could take on two... maybe three of those big dredgers you got.', 'Bet I could take on two... maybe three of those big dredgers you got.', 205003, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('Where\'s the fight club? You have a fight club, right?', 'Where\'s the fight club? You have a fight club, right?', 205002, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('Too much talking here, not enough fighting.', 'Too much talking here, not enough fighting.', 204999, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('You spot any trouble, come running to me.', 'You spot any trouble, come running to me.', 204998, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('When the fighting starts, I\'ll be there.', 'When the fighting starts, I\'ll be there.', 204997, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('You need something killed?', 'You need something killed?', 204996, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('I am not accustomed to taking orders from venthyr.', 'I am not accustomed to taking orders from venthyr.', 204995, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('Gotta say, it\'s nice havin\' dredgers wait on ME for a change.\n\n<Rendle smiles proudly and sticks out his chest.>\n\nYeah, ol\' Rendle\'s finally movin\' up in this mucky-muck world.', '', 202222, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('We have activated the stoneborn reserves for today\'s court.\n\nRest easy. Any intrusion will be dealt with.', '', 201299, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488);
UPDATE `broadcast_text` SET `VerifiedBuild`=42488 WHERE `ID` IN (212565, 212553, 212382, 206713, 205797, 205360, 205028, 205027, 205026, 205025, 205024, 205023, 205022, 205021, 204703, 204701, 204698, 204695, 204694, 204673, 204672, 204588, 204587, 204349, 204346, 204163, 204152, 204113, 204111, 203881, 203199, 203198, 203197, 203196, 203193, 203192, 202632, 202380, 202379, 202378, 202377, 202236, 202233, 202227, 202224, 202209, 202202, 201777, 201564, 201563, 201562, 201561, 201560, 201559, 200909, 200773, 200701, 200700, 200699, 200698, 200697, 200696, 200373, 198811, 198224, 198203, 198202, 197734, 197733, 197676, 197675, 197674, 197673, 197487, 197366, 197139, 197138, 193455, 193293, 193292, 189194, 189181);
DELETE FROM `broadcast_text` WHERE `ID` IN (204434, 201449, 201448, 201447, 201445, 200948, 200941, 200539, 200538, 200533, 200277, 199883);
INSERT INTO `broadcast_text` (`Text`, `Text1`, `ID`, `LanguageID`, `ConditionID`, `EmotesID`, `Flags`, `ChatBubbleDurationMs`, `VoiceOverPriorityID`, `SoundKitID1`, `SoundKitID2`, `EmoteID1`, `EmoteID2`, `EmoteID3`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `VerifiedBuild`) VALUES
('What majestic creatures you have discovered in the realm of Ardenweald!\n\nIn another life, I might have enjoyed it there...', 'What majestic creatures you have discovered in the realm of Ardenweald!\n\nIn another life, I might have enjoyed it there...', 204434, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('They even collect flowers. Just like me!', '', 201449, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42488),
('Two brothers travel across worlds to save a princess.', '', 201448, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42488),
('It\'s my favorite!', '', 201447, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42488),
('Oh, I didn\'t see you there!\n\nI really like this book.', '', 201445, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('I am thoroughly enjoying your court, Maw Walker. As I expected to.\n\nPlease pass along my congratulations to the Prince.\n\nIf you would excuse me, this spectacular music has me considering a trip to the dance floor.', 'I am thoroughly enjoying your court, Maw Walker. As I expected to.\n\nPlease pass along my congratulations to the Prince.\n\nIf you would excuse me, this spectacular music has me considering a trip to the dance floor.', 200948, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('Sincerest apologies, my dear $gsir:madam;. It was far too presumptuous of me to ask.', '', 200941, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42488),
('LONGBEARD BOXTY\n\nNote from Stewart: This recipe from different aspirant. Also from Longbeard family in mortal life. She say many generations refine recipe before her. I do not change it.\n\nIngredients:\n5 Starchy potatos\n1 cup Flour, more as needed\n1 Egg\n2 tbsp Salted butter\n1 keg Dwarven stout (for drinking)\n\nPreparation:\n<The dredgers drew illegible doodles here.>', '', 200539, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42488),
('LONGBEARD STEW\n\nNote from Stewart: Recipe from aspirant in Bastion. In life, aspirant great dwarven chef. Gave me recipe when pass trials. Let go of past. His favorite recipe.\n\nIngredients:\n2 lbs Beef chuck\n6 oz Bacon, diced\n16 oz Rich, creamy dwarven stout\n1 cup Beef broth\n1/4 cup Tomato paste\n2 tbsp Worcester family sauce\n3 tbsp White flour\n2 Leeks, chopped\n3 Carrots, chopped\n1 Parsnip, chopped\n1 tsp Thyme\n1 tsp Rosemary\n1.5 tsp Salt\n1/4 tsp Black pepper\n2 Menethil Bay leaves\n\nPreparation:\n<The dredgers haven\'t transcribed this yet.>', '', 200538, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42488),
('STEWART\'S COLLECTED RECIPES\n\n(Transcribed by a series of semi-literate dredgers.)\n\nTable of Contents:', '', 200533, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42488),
('Don\'t worry, I\'m only hitting the nobles. Thems that can afford it.', '', 200277, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 42488),
('Oh, we don\'t mind. \n\nMy friends and I let ourselves in when we got here. I assumed the waiting outside plan was more for your... other guests.\n\nDon\'t worry, we\'ll stay out of the way!\n\nHey, while I have you... uh, where do you store your fireworks?', '', 199883, 0, 0, 0, 0, 0, 0, 0, 0, 35, 0, 0, 0, 0, 0, 42488);
@@ -0,0 +1,4 @@
-- TDB 915.22012 world
UPDATE `version` SET `db_version`='TDB 915.22012', `cache_id`=22012 LIMIT 1;
UPDATE `updates` SET `state`='ARCHIVED',`speed`=0;
REPLACE INTO `updates_include` (`path`, `state`) VALUES ('$/sql/old/9.x/world', 'ARCHIVED');
@@ -0,0 +1,2 @@
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_warl_immolate';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (348, 'spell_warl_immolate');
@@ -0,0 +1,2 @@
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_warl_chaos_bolt';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (116858, 'spell_warl_chaos_bolt');
@@ -0,0 +1,2 @@
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_mage_flame_on';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (205029, 'spell_mage_flame_on');
@@ -0,0 +1,6 @@
-- UPDATE `achievement_criteria_data` SET `type`=6, `value1`=4395 WHERE `criteria_id`=6937;
DELETE FROM `spell_script_names` WHERE `ScriptName` IN ("spell_midsummer_juggle_torch", "spell_midsummer_torch_catch");
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(45819, "spell_midsummer_juggle_torch"),
(45644, "spell_midsummer_torch_catch");
@@ -0,0 +1,112 @@
SET @GUID := 130968; -- Need 3 free GUIDs
DELETE FROM `creature` WHERE `guid` BETWEEN @GUID AND @GUID+2;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseId`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES
(@GUID , 23377, 530, 0, 0, 1, 170, 0, 0, -3712.531494, 3514.539551, 325.550507, 3.277899, 0, 0, 0, 1, 0, 0, 0, 0, 0, "", 0),
(@GUID+1, 23377, 530, 0, 0, 1, 170, 0, 0, -3712.062256, 3510.393799, 319.9505, 3.277899, 0, 0, 0, 1, 0, 0, 0, 0, 0, "", 0),
(@GUID+2, 23377, 530, 0, 0, 1, 170, 0, 0, -3712.901123, 3517.808594, 319.9505, 3.277899, 0, 0, 0, 1, 0, 0, 0, 0, 0, "", 0);
UPDATE `creature_template` SET `unit_flags`=256+512, `AIName`="SmartAI" WHERE `entry`=23377;
UPDATE `creature_template` SET `unit_flags`=256+512 WHERE `entry`=21838;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=23277;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (21838, 23277, -@GUID, -(@GUID+1), -(@GUID+2)) AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=185928 AND `source_type`=1;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (2183800, 2183801, 2327700, 2337700) 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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(185928, 1, 0, 1, 62, 0, 100, 0, 8687, 0, 0, 0, 0, 85, 41004, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, "Ancient Skull Pile - On Gossip Option 0 Selected - Invoker Cast Summon Terokk"),
(185928, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, "Ancient Skull Pile - On Gossip Option 0 Selected - Close Gossip"),
(185928, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 0, 900, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Ancient Skull Pile - On Gossip Option 0 Selected - Despawn for 15 minutes"),
(21838, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 80, 2183800, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Respawn - Call Script"),
(21838, 0, 1, 0, 0, 0, 100, 0, 4000, 7000, 15000, 20000, 0, 11, 40721, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - In Combat - Cast 'Shadow Bolt Volley'"),
(21838, 0, 2, 0, 0, 0, 100, 0, 6000, 9000, 7000, 9000, 0, 11, 15284, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - In Combat - Cast 'Cleave'"),
(21838, 0, 3, 0, 0, 0, 100, 0, 30000, 40000, 30000, 40000, 0, 80, 2183801, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - In Combat - Call Script"),
(21838, 0, 4, 0, 2, 0, 100, 1, 0, 50, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, @GUID, 0, 0, 0, 0, 0, 0, 0, "Terokk - Between 0-50% Health - Set Data 1 1 (Skyguard Ace) (No Repeat)"),
(21838, 0, 5, 6, 2, 0, 100, 1, 0, 25, 0, 0, 0, 11, 40733, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - Between 0-25% Health - Cast 'Divine Shield' (No Repeat)"),
(21838, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - Between 0-25% Health - Say Line 2 (No Repeat)"),
(21838, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 10, @GUID, 0, 0, 0, 0, 0, 0, 0, "Terokk - Between 0-25% Health - Set Data 1 1 (Skyguard Ace) (No Repeat)"),
(21838, 0, 8, 0, 23, 0, 100, 0, 40657, 1, 1000, 1000, 0, 28, 40733, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Has Aura 'Ancient Flames' - Remove Aura 'Divine Shield'"),
(21838, 0, 9, 10, 23, 0, 100, 1, 40657, 1, 0, 0, 0, 11, 28747, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Has Aura 'Ancient Flames' - Cast 'Frenzy' (No Repeat)"),
(21838, 0, 10, 11, 61, 0, 100, 0, 0, 0, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Has Aura 'Ancient Flames' - Say Line 3 (No Repeat)"),
(21838, 0, 11, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Has Aura 'Ancient Flames' - Set Event Phase 1"),
(21838, 0, 12, 0, 0, 1, 100, 0, 5000, 10000, 5000, 10000, 0, 11, 40733, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - In Combat - Cast 'Divine Shield' (Phase 1)"),
(21838, 0, 13, 0, 6, 0, 100, 0, 0, 0, 0, 0, 0, 45, 3, 3, 0, 0, 0, 0, 10, @GUID, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Death - Set Data 3 3 (Skyguard Ace)"),
(21838, 0, 14, 0, 7, 0, 100, 0, 0, 0, 0, 0, 0, 45, 4, 4, 0, 0, 0, 0, 10, @GUID, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Evade - Set Data 4 4 (Skyguard Ace)"),
(21838, 0, 15, 0, 21, 0, 100, 0, 0, 0, 0, 0, 0, 67, 1, 5000, 5000, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Reached Home - Start Timed Event"),
(21838, 0, 16, 0, 59, 0, 100, 0, 1, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Timed Event Triggered - Despawn"),
(21838, 0, 17, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 74, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Aggro - Remove Timed Event"),
(21838, 0, 18, 0, 31, 0, 100, 0, 40726, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Target Hit By Spell 'Chosen One' - Say Line 1"),
(2183800, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 11, 24240, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Script - Cast 'Spawn - Red Lightning'"),
(2183800, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 11, 41408, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Script - Cast 'Shadowform'"),
(2183800, 9, 2, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Script - Say Line 0"),
(2183800, 9, 3, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 0, 19, 256+512, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Script - Remove Unitflag Immune to PC+NPC"),
(2183800, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Script - Attack Summoner"),
(2183801, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 11, 40726, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Script - Cast 'Chosen One'"),
(2183801, 9, 1, 0, 0, 0, 100, 0, 500, 500, 0, 0, 0, 11, 40722, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, "Terokk - On Script - Cast 'Will of the Arakkoa God'"),
(23277, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 80, 2327700, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Target - On Spawn - Run Script"),
(2327700, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 11, 40656, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Target - On Script - Cast 'Skyguard Flare'"),
(2327700, 9, 1, 0, 0, 0, 100, 0, 30000, 30000, 0, 0, 0, 45, 5, 5, 0, 0, 0, 0, 10, @GUID, 0, 0, 0, 0, 0, 0, 0, "Skyguard Target - On Script - Set Data 5 5 (Skyguard Ace)"),
(-@GUID, 0, 0, 1, 38, 0, 100, 0, 1, 1, 0, 0, 0, 44, 170, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - On Data 1 1 Set - Set Phasemask 1"),
(-@GUID, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - On Data 1 1 Set - Say Line 0"),
(-@GUID, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 53, 1, 23377, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - On Data 1 1 Set - Start WP"),
(-@GUID, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 0, 44, 170, 0, 0, 0, 0, 0, 10, @GUID+1, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - On Data 1 1 Set - Set Phasemask 1 (Skyguard Ace)"),
(-@GUID, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 0, 44, 170, 0, 0, 0, 0, 0, 10, @GUID+2, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - On Data 1 1 Set - Set Phasemask 1 (Skyguard Ace)"),
(-@GUID, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 67, 1, 600000, 600000, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - On Data 1 1 Set - Start Timed Event"),
(-@GUID, 0, 6, 0, 59, 0, 100, 0, 1, 0, 0, 0, 0, 80, 2337700, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - On Timed Event Triggered - Run Script"),
(-@GUID, 0, 7, 8, 38, 0, 100, 0, 2, 2, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - On Data 2 2 Set - Say Line 1"),
(-@GUID, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - On Data 2 2 Set - Set Event Phase 1"),
(-@GUID, 0, 9, 10, 38, 0, 100, 0, 3, 3, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - On Data 3 3 Set - Say Line 2"),
(-@GUID, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 80, 2337700, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - On Data 3 3 Set - Run Script"),
(-@GUID, 0, 11, 0, 38, 0, 100, 0, 4, 4, 0, 0, 0, 80, 2337700, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - On Data 4 4 Set - Run Script"),
(-@GUID, 0, 12, 0, 1, 1, 100, 0, 10000, 15000, 30000, 40000, 0, 11, 40655, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - OOC - Cast Skyguard Flare (Phase 1)"),
(-@GUID, 0, 13, 0, 38, 0, 100, 0, 5, 5, 0, 0, 0, 11, 40657, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - On Data 5 5 Set - Cast 'Ancient Flames'"),
(2337700, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 10, @GUID+1, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - On Script - Despawn In 5 Seconds (Skyguard Ace)"),
(2337700, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 10, @GUID+2, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - On Script - Despawn In 5 Seconds (Skyguard Ace)"),
(2337700, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Ace - On Script - Despawn In 5 Seconds");
DELETE FROM `creature_text` WHERE `CreatureID` IN (21838, 23377);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(21838, 0, 0, "Who calls me to this world? The stars are not yet aligned... my powers fail me! You will pay for this!", 12, 0, 100, 0, 0, 0, 21639, 0, "Terokk"),
(21838, 1, 0, "Show me what you're made of, $n!", 14, 0, 100, 0, 0, 0, 21327, 0, "Terokk"),
(21838, 2, 0, "Kwa! You cannot kill me, I am immortal!", 14, 0, 100, 0, 0, 0, 24020, 0, "Terokk"),
(21838, 3, 0, "%s becomes enraged as his shield shatters.", 41, 0, 100, 0, 0, 0, 21328, 0, "Terokk"),
(23377, 0, 0, "Enemy sighted! Fall into formation and prepare for bombing maneuvers!", 14, 0, 100, 0, 0, 0, 21439, 0, "Skyguard Ace"),
(23377, 1, 0, "Quickly! Use the flames and support the ground troops. Its ancient magic should cleanse Terokk's shield.", 14, 0, 100, 0, 0, 0, 24021, 0, "Skyguard Ace"),
(23377, 2, 0, "They did it! Enemy down! Return to base!", 14, 0, 100, 0, 0, 0, 21437, 0, "Skyguard Ace");
DELETE FROM `spell_script_names` WHERE `ScriptName`="spell_skyguard_flare";
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(40655, "spell_skyguard_flare");
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=40722;
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceEntry`=21838;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(13, 3, 40722, 0, 0, 1, 0, 40726, 0, 0, 1, 0, 0, "", "Will of the Arakkoa God does not affect targets with Chosen One aura"),
(22, 13, 21838, 0, 0, 1, 1, 40657, 1, 0, 1, 0, 0, "", "SAI executes only if Terokk does not have Ancient Flames aura AND"),
(22, 13, 21838, 0, 0, 1, 1, 40733, 0, 0, 1, 0, 0, "", "SAI executes only if Terokk does not have Divine Shield aura");
DELETE FROM `creature_template_movement` WHERE `CreatureId`=23377;
INSERT INTO `creature_template_movement` (`CreatureId`, `Flight`) VALUES
(23377, 1);
DELETE FROM `creature_template_addon` WHERE `entry`=23377;
INSERT INTO `creature_template_addon` (`entry`, `mount`, `auras`) VALUES
(23377, 21152, "");
DELETE FROM `waypoints` WHERE `entry`=23377;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(23377, 1, -3774.552246, 3514.509766, 325.550507, "Skyguard Ace"),
(23377, 2, -3794.875, 3497.479004, 325.550507, "Skyguard Ace"),
(23377, 3, -3808.633789, 3515.702393, 325.550507, "Skyguard Ace"),
(23377, 4, -3783.597168, 3524.585205, 325.550507, "Skyguard Ace");
DELETE FROM `creature_formations` WHERE `leaderGUID`=@GUID;
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`) VALUES
(@GUID, @GUID, 0, 0, 515),
(@GUID, @GUID+1, 5, 45, 515),
(@GUID, @GUID+2, 5, 315, 515);
@@ -0,0 +1 @@
ALTER TABLE `quest_template` DROP COLUMN `RewardMoney`;
@@ -0,0 +1,217 @@
-- ScriptEffect for 32348 from sniffs. 32352 probably used on heroic only or not used at all
DELETE FROM `spell_scripts` WHERE `id` = 32348;
INSERT INTO `spell_scripts` (`id`,`effIndex`,`delay`,`command`,`datalong`,`datalong2`,`dataint`,`x`,`y`,`z`,`o`) VALUES
(32348,0,0,15,32349,2,0,0,0,0,0),
(32348,0,0,15,32353,2,0,0,0,0,0);
-- Ethereal Darkcaster
DELETE FROM `creature_addon` WHERE `guid` IN (83332,83335,83338,83339,83341,83345,83348,86396,91124,91186,91187);
UPDATE `creature_addon` SET `auras` = "16592" WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE `id` = 18331);
DELETE FROM `creature_template_addon` WHERE `entry` IN (18331,20256);
INSERT INTO `creature_template_addon` (`entry`,`auras`) VALUES
(18331,"16592"), -- Shadowform
(20256,"16592"); -- Shadowform
-- Ethereal Scavenger SAI (Source: ACID 4.3.4 OD - N/H)
SET @ID := 18309;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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
(@ID,0,0,0,4,0,15,0,0,0,0,0,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Ethereal Scavenger - On Aggro - Say Line 0"),
(@ID,0,1,0,0,0,100,0,2400,4800,7200,21700,11,33871,32,0,0,0,0,2,0,0,0,0,0,0,0,"Ethereal Scavenger - In Combat - Cast 'Shield Bash'"),
(@ID,0,2,0,0,0,100,0,2400,8300,12100,20500,11,33865,0,0,0,0,0,2,0,0,0,0,0,0,0,"Ethereal Scavenger - In Combat - Cast 'Singe'"),
(@ID,0,3,0,0,0,100,0,14100,28200,8100,16200,11,34920,0,0,0,0,0,2,0,0,0,0,0,0,0,"Ethereal Scavenger - In Combat - Cast 'Strike'");
DELETE FROM `creature_text` WHERE `CreatureID` = @ID;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(@ID,0,0,"What have the netherwinds brought us?",12,0,100,0,0,0,16721,0,"Ethereal Scavenger"),
(@ID,0,1,"You're far from home, stranger.",12,0,100,0,0,0,16722,0,"Ethereal Scavenger"),
(@ID,0,2,"Welcome to the Void...",12,0,100,0,0,0,16723,0,"Ethereal Scavenger"),
(@ID,0,3,"If you hear the whisper, you're dying...",12,0,100,0,0,0,16724,0,"Ethereal Scavenger");
-- Ethereal Crypt Raider SAI (Source: ACID 4.3.4 OD - N/H)
SET @ID := 18311;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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
(@ID,0,0,0,4,0,15,0,0,0,0,0,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Ethereal Crypt Raider - On Aggro - Say Line 0"),
(@ID,0,1,0,9,0,100,1,8,25,0,0,11,22911,0,0,0,0,0,2,0,0,0,0,0,0,0,"Ethereal Crypt Raider - Within 8-25 Range - Cast 'Charge' (No Repeat)"),
(@ID,0,2,0,0,0,100,0,5800,8400,60200,66200,11,31403,1,0,0,0,0,1,0,0,0,0,0,0,0,"Ethereal Crypt Raider - In Combat - Cast 'Battle Shout'"),
(@ID,0,3,0,0,0,100,0,3600,13300,12100,18300,11,32315,0,0,0,0,0,2,0,0,0,0,0,0,0,"Ethereal Crypt Raider - In Combat - Cast 'Soul Strike'"),
(@ID,0,4,5,2,0,100,1,0,25,0,0,11,8599,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ethereal Crypt Raider - Between 0-25% Health - Cast 'Enrage' (No Repeat)"),
(@ID,0,5,0,61,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ethereal Crypt Raider - On Link - Say Line 1"),
(@ID,0,6,0,54,0,100,0,0,0,0,0,49,0,0,0,0,0,0,19,19671,0,0,0,0,0,0,"Ethereal Crypt Raider - On Just Summoned - Start Attacking Closest Creature 'Cryo-Engineer Sha'heen'");
DELETE FROM `creature_text` WHERE `CreatureID` = @ID;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(@ID,0,0,"What have the netherwinds brought us?",12,0,100,0,0,0,16721,0,"Ethereal Crypt Raider"),
(@ID,0,1,"You're far from home, stranger.",12,0,100,0,0,0,16722,0,"Ethereal Crypt Raider"),
(@ID,0,2,"Welcome to the Void...",12,0,100,0,0,0,16723,0,"Ethereal Crypt Raider"),
(@ID,0,3,"If you hear the whisper, you're dying...",12,0,100,0,0,0,16724,0,"Ethereal Crypt Raider"),
(@ID,1,0,"%s goes into a frenzy!",16,0,100,0,0,0,2384,0,"Ethereal Crypt Raider");
-- Ethereal Spellbinder SAI (Source: ACID 4.3.4 OD - N/H)
SET @ID := 18312;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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
(@ID,0,0,0,4,0,15,0,0,0,0,0,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Ethereal Spellbinder - On Aggro - Say Line 0"),
(@ID,0,1,0,0,0,100,2,4800,12400,14500,28900,11,17883,0,0,0,0,0,5,0,0,0,0,0,0,0,"Ethereal Spellbinder - In Combat - Cast 'Immolate' (Normal Dungeon)"),
(@ID,0,2,0,0,0,100,4,4800,12400,14500,28900,11,37668,0,0,0,0,0,5,0,0,0,0,0,0,0,"Ethereal Spellbinder - In Combat - Cast 'Immolate' (Heroic Dungeon)"),
(@ID,0,3,0,0,0,100,0,7200,14500,6100,16900,11,37470,0,0,0,0,0,2,0,0,0,0,0,0,0,"Ethereal Spellbinder - In Combat - Cast 'Counterspell'"),
(@ID,0,4,0,0,0,100,1,15700,20900,0,0,11,32316,1,0,0,0,0,1,0,0,0,0,0,0,0,"Ethereal Spellbinder - In Combat - Cast 'Summon Ethereal Wraith' (No Repeat)"),
(@ID,0,5,0,54,0,100,0,0,0,0,0,49,0,0,0,0,0,0,19,19671,0,0,0,0,0,0,"Ethereal Spellbinder - On Just Summoned - Start Attacking Closest Creature 'Cryo-Engineer Sha'heen'");
DELETE FROM `creature_text` WHERE `CreatureID` = @ID;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(@ID,0,0,"What have the netherwinds brought us?",12,0,100,0,0,0,16721,0,"Ethereal Spellbinder"),
(@ID,0,1,"You're far from home, stranger.",12,0,100,0,0,0,16722,0,"Ethereal Spellbinder"),
(@ID,0,2,"Welcome to the Void...",12,0,100,0,0,0,16723,0,"Ethereal Spellbinder"),
(@ID,0,3,"If you hear the whisper, you're dying...",12,0,100,0,0,0,16724,0,"Ethereal Spellbinder");
-- Ethereal Sorcerer SAI (Source: ACID 4.3.4 OD - N/H)
SET @ID := 18313;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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
(@ID,0,0,0,4,0,15,0,0,0,0,0,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Ethereal Sorcerer - On Aggro - Say Line 0"),
(@ID,0,1,0,0,0,100,2,5200,15700,15200,21200,11,15790,0,0,0,0,0,2,0,0,0,0,0,0,0,"Ethereal Sorcerer - In Combat - Cast 'Arcane Missiles' (Normal Dungeon)"),
(@ID,0,2,0,0,0,100,4,5200,15700,15200,21200,11,22272,0,0,0,0,0,2,0,0,0,0,0,0,0,"Ethereal Sorcerer - In Combat - Cast 'Arcane Missiles' (Heroic Dungeon)"),
(@ID,0,3,0,0,0,100,0,5100,11600,10800,21700,11,25603,0,0,0,0,0,2,0,0,0,0,0,0,0,"Ethereal Sorcerer - In Combat - Cast 'Slow'"),
(@ID,0,4,0,0,0,100,0,14000,25600,70700,71100,11,32348,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ethereal Sorcerer - In Combat - Cast 'Summon Arcane Fiends'");
DELETE FROM `creature_text` WHERE `CreatureID` = @ID;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(@ID,0,0,"What have the netherwinds brought us?",12,0,100,0,0,0,16721,0,"Ethereal Sorcerer"),
(@ID,0,1,"You're far from home, stranger.",12,0,100,0,0,0,16722,0,"Ethereal Sorcerer"),
(@ID,0,2,"Welcome to the Void...",12,0,100,0,0,0,16723,0,"Ethereal Sorcerer"),
(@ID,0,3,"If you hear the whisper, you're dying...",12,0,100,0,0,0,16724,0,"Ethereal Sorcerer");
-- Nexus Stalker SAI (Source: ACID 4.3.4 OD - N/H)
-- Phantom Strike is used on random target
SET @ID := 18314;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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
(@ID,0,0,0,4,0,15,0,0,0,0,0,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Nexus Stalker - On Aggro - Say Line 0"),
(@ID,0,1,0,0,0,100,0,4300,12100,9700,22100,11,34940,0,0,0,0,0,2,0,0,0,0,0,0,0,"Nexus Stalker - In Combat - Cast 'Gouge'"),
(@ID,0,2,0,0,0,100,2,5900,12100,10900,21700,11,33925,0,0,0,0,0,5,0,0,0,0,0,0,0,"Nexus Stalker - In Combat - Cast 'Phantom Strike' (Normal Dungeon)"),
(@ID,0,3,0,0,0,100,4,5900,12100,10900,21700,11,39332,0,0,0,0,0,5,0,0,0,0,0,0,0,"Nexus Stalker - In Combat - Cast 'Phantom Strike' (Heroic Dungeon)");
DELETE FROM `creature_text` WHERE `CreatureID` = @ID;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(@ID,0,0,"What have the netherwinds brought us?",12,0,100,0,0,0,16721,0,"Nexus Stalker"),
(@ID,0,1,"You're far from home, stranger.",12,0,100,0,0,0,16722,0,"Nexus Stalker"),
(@ID,0,2,"Welcome to the Void...",12,0,100,0,0,0,16723,0,"Nexus Stalker"),
(@ID,0,3,"If you hear the whisper, you're dying...",12,0,100,0,0,0,16724,0,"Nexus Stalker");
-- Ethereal Theurgist SAI (Source: ACID 4.3.4 OD - N/H)
-- Original script was without initial timers for the 'Strike'
SET @ID := 18315;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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
(@ID,0,0,0,4,0,15,0,0,0,0,0,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Ethereal Theurgist - On Aggro - Say Line 0"),
(@ID,0,1,0,0,0,100,2,5300,10300,7700,14400,11,15580,0,0,0,0,0,2,0,0,0,0,0,0,0,"Ethereal Theurgist - In Combat - Cast 'Strike' (Normal Dungeon)"),
(@ID,0,2,0,0,0,100,4,5300,10300,7700,14400,11,34920,0,0,0,0,0,2,0,0,0,0,0,0,0,"Ethereal Theurgist - In Combat - Cast 'Strike' (Heroic Dungeon)"),
(@ID,0,3,0,0,0,100,2,4200,13300,18100,24100,11,17145,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ethereal Theurgist - In Combat - Cast 'Blast Wave' (Normal Dungeon)"),
(@ID,0,4,0,0,0,100,4,4200,13300,18100,24100,11,38064,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ethereal Theurgist - In Combat - Cast 'Blast Wave' (Heroic Dungeon)"),
(@ID,0,5,0,0,0,100,0,2400,7200,18000,24000,11,13323,1,0,0,0,0,6,0,0,0,0,0,0,0,"Ethereal Theurgist - In Combat - Cast 'Polymorph'"),
(@ID,0,6,0,54,0,100,0,0,0,0,0,49,0,0,0,0,0,0,19,19671,0,0,0,0,0,0,"Ethereal Theurgist - On Just Summoned - Start Attacking Closest Creature 'Cryo-Engineer Sha'heen'");
DELETE FROM `creature_text` WHERE `CreatureID` = @ID;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(@ID,0,0,"What have the netherwinds brought us?",12,0,100,0,0,0,16721,0,"Ethereal Theurgist"),
(@ID,0,1,"You're far from home, stranger.",12,0,100,0,0,0,16722,0,"Ethereal Theurgist"),
(@ID,0,2,"Welcome to the Void...",12,0,100,0,0,0,16723,0,"Ethereal Theurgist"),
(@ID,0,3,"If you hear the whisper, you're dying...",12,0,100,0,0,0,16724,0,"Ethereal Theurgist");
-- Ethereal Priest SAI (Source: ACID 4.3.4 OD - N/H)
SET @ID := 18317;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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
(@ID,0,0,0,4,0,15,0,0,0,0,0,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Ethereal Priest - On Aggro - Say Line 0"),
(@ID,0,1,0,0,0,100,2,3400,9600,10800,18100,11,17139,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ethereal Priest - In Combat - Cast 'Power Word: Shield' (Normal Dungeon)"),
(@ID,0,2,0,0,0,100,4,3400,9600,10800,18100,11,35944,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ethereal Priest - In Combat - Cast 'Power Word: Shield' (Heroic Dungeon)"),
(@ID,0,3,0,0,0,100,2,4800,7700,10800,20500,11,34944,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ethereal Priest - In Combat - Cast 'Holy Nova' (Normal Dungeon)"),
(@ID,0,4,0,0,0,100,4,4800,7700,10800,20500,11,37669,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ethereal Priest - In Combat - Cast 'Holy Nova' (Heroic Dungeon)"),
(@ID,0,5,0,74,0,100,2,0,70,25000,35000,11,22883,1,0,0,0,0,9,0,0,40,0,0,0,0,"Ethereal Priest - On Friendly Between 0-70% Health - Cast 'Heal' (Normal Dungeon)"),
(@ID,0,6,0,74,0,100,4,0,70,25000,35000,11,34945,1,0,0,0,0,9,0,0,40,0,0,0,0,"Ethereal Priest - On Friendly Between 0-70% Health - Cast 'Heal' (Heroic Dungeon)");
DELETE FROM `creature_text` WHERE `CreatureID` = @ID;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(@ID,0,0,"What have the netherwinds brought us?",12,0,100,0,0,0,16721,0,"Ethereal Priest"),
(@ID,0,1,"You're far from home, stranger.",12,0,100,0,0,0,16722,0,"Ethereal Priest"),
(@ID,0,2,"Welcome to the Void...",12,0,100,0,0,0,16723,0,"Ethereal Priest"),
(@ID,0,3,"If you hear the whisper, you're dying...",12,0,100,0,0,0,16724,0,"Ethereal Priest");
-- Ethereal Darkcaster SAI (Source: ACID 4.3.4 OD - N/H & sniffs)
SET @ID := 18331;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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
(@ID,0,0,0,11,0,100,2,0,0,0,0,11,34928,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ethereal Darkcaster - On Respawn - Cast 'Vampiric Aura' (Normal Dungeon)"),
(@ID,0,1,0,11,0,100,4,0,0,0,0,11,38060,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ethereal Darkcaster - On Respawn - Cast 'Vampiric Aura' (Heroic Dungeon)"),
(@ID,0,2,0,4,0,15,0,0,0,0,0,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Ethereal Darkcaster - On Aggro - Say Line 0"),
(@ID,0,3,0,0,0,100,0,4300,8400,8400,18100,11,34942,0,0,0,0,0,2,0,0,0,0,0,0,0,"Ethereal Darkcaster - In Combat - Cast 'Shadow Word: Pain'"),
(@ID,0,4,0,0,0,100,2,5600,10800,15600,25300,11,34930,0,0,0,0,0,5,0,0,0,0,0,0,0,"Ethereal Darkcaster - In Combat - Cast 'Mana Burn' (Normal Dungeon)"),
(@ID,0,5,0,0,0,100,4,5600,10800,15600,25300,11,34931,0,0,0,0,0,5,0,0,0,0,0,0,0,"Ethereal Darkcaster - In Combat - Cast 'Mana Burn' (Heroic Dungeon)");
DELETE FROM `creature_text` WHERE `CreatureID` = @ID;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(@ID,0,0,"What have the netherwinds brought us?",12,0,100,0,0,0,16721,0,"Ethereal Darkcaster"),
(@ID,0,1,"You're far from home, stranger.",12,0,100,0,0,0,16722,0,"Ethereal Darkcaster"),
(@ID,0,2,"Welcome to the Void...",12,0,100,0,0,0,16723,0,"Ethereal Darkcaster"),
(@ID,0,3,"If you hear the whisper, you're dying...",12,0,100,0,0,0,16724,0,"Ethereal Darkcaster");
-- Tavarok SAI (Source: ACID 4.3.4 OD - N/H)
SET @ID := 18343;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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
(@ID,0,0,0,0,0,100,2,7400,16800,7200,15500,11,8374,0,0,0,0,0,2,0,0,0,0,0,0,0,"Tavarok - In Combat - Cast 'Arcing Smash' (Normal Dungeon)"),
(@ID,0,1,0,0,0,100,4,5400,12300,7200,15500,11,38761,0,0,0,0,0,2,0,0,0,0,0,0,0,"Tavarok - In Combat - Cast 'Arcing Smash' (Heroic Dungeon)"),
(@ID,0,2,0,0,0,100,0,8500,17400,21700,27700,11,33919,1,0,0,0,0,1,0,0,0,0,0,0,0,"Tavarok - In Combat - Cast 'Earthquake'"),
(@ID,0,3,0,0,0,100,0,16900,37400,13300,25300,11,32361,1,0,0,0,0,5,0,0,0,0,0,0,0,"Tavarok - In Combat - Cast 'Crystal Prison'");
-- Ethereal Wraith SAI (Source: ACID 4.3.4 OD - N/H)
-- Original script was without initial timers for 'Shadowbolt Volley'
SET @ID := 18394;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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
(@ID,0,0,0,0,0,100,0,3000,7000,7800,13300,11,34934,0,0,0,0,0,2,0,0,0,0,0,0,0,"Ethereal Wraith - In Combat - Cast 'Shadowbolt Volley'"),
(@ID,0,1,0,7,0,100,0,0,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ethereal Wraith - On Evade - Despawn (0)");
-- Arcane Fiend SAI (Source: ACID 4.3.4 OD - N/H)
-- Original script was without initial timers for 'Arcane Explosion'
SET @ID := 18429;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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
(@ID,0,0,0,0,0,100,2,3400,5300,8400,10200,11,15253,0,0,0,0,0,1,0,0,0,0,0,0,0,"Arcane Fiend - In Combat - Cast 'Arcane Explosion' (Normal Dungeon)"),
(@ID,0,1,0,0,0,100,4,1300,5300,6600,10200,11,33860,0,0,0,0,0,1,0,0,0,0,0,0,0,"Arcane Fiend - In Combat - Cast 'Arcane Explosion' (Heroic Dungeon)"),
(@ID,0,2,0,0,0,100,0,8400,13700,10800,13300,11,15122,0,0,0,0,0,2,0,0,0,0,0,0,0,"Arcane Fiend - In Combat - Cast 'Counterspell'"),
(@ID,0,3,0,7,0,100,0,0,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Arcane Fiend - On Evade - Despawn (0)");
-- Mana Leech SAI (Source: ACID 4.3.4 OD - N/H)
SET @ID := 19306;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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
(@ID,0,0,0,0,0,100,0,8200,14500,13300,20500,11,15785,1,0,0,0,0,5,0,0,0,0,0,0,0,"Mana Leech - In Combat - Cast 'Mana Burn'"),
(@ID,0,1,0,0,0,100,0,5800,10800,14600,18100,11,25602,0,0,0,0,0,5,0,0,0,0,0,0,0,"Mana Leech - In Combat - Cast 'Faerie Fire'"),
(@ID,0,2,0,6,0,100,0,0,0,0,0,11,34933,7,0,0,0,0,1,0,0,0,0,0,0,0,"Mana Leech - On Death - Cast 'Arcane Explosion'");
-- Nexus Terror SAI (Source: ACID 4.3.4 OD - N/H)
-- Death Coil used only in heroic
SET @ID := 19307;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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
(@ID,0,0,0,0,0,100,0,4800,19700,10800,21700,11,34322,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nexus Terror - In Combat - Cast 'Psychic Scream'"),
(@ID,0,1,0,0,0,100,0,3600,16900,15700,24100,11,34922,0,0,0,0,0,2,0,0,0,0,0,0,0,"Nexus Terror - In Combat - Cast 'Shadows Embrace'"),
(@ID,0,2,0,0,0,100,0,7100,20900,26500,37400,11,34925,0,0,0,0,0,5,0,0,0,0,0,0,0,"Nexus Terror - In Combat - Cast 'Curse of Impotence'"),
(@ID,0,3,0,0,0,100,4,8400,17100,15700,25300,11,38065,1,0,0,0,0,2,0,0,0,0,0,0,0,"Nexus Terror - In Combat - Cast 'Death Coil' (Heroic Dungeon)"),
(@ID,0,4,0,54,0,100,0,0,0,0,0,49,0,0,0,0,0,0,19,19671,0,0,0,0,0,0,"Nexus Terror - On Just Summoned - Start Attacking Closest Creature 'Cryo-Engineer Sha'heen'");
@@ -0,0 +1,384 @@
--
SET @GUID := 150145; -- 3
-- Spell 34444 is used by player after 34445
UPDATE `quest_template_addon` SET `SourceSpellID` = 0 WHERE `ID` = 10211;
-- A'dal SAI (rewrite and re-order actions)
UPDATE `smart_scripts` SET `target_type` = 7, `target_param1` = 0 WHERE `entryorguid` = 1848100 AND `source_type` = 9 AND `id` IN (0,1,2,3);
-- Removed the spell 'Blessing of A'dal' since is used only after turning in quest
-- https://www.wowhead.com/spell=35076/blessing-of-adal#comments
-- Confirmed by https://youtu.be/gvEYGFP4Kfc?t=42
SET @ID := 18481;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID*100+1 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
(@ID,0,0,0,20,0,100,0,11007,0,0,0,80,@ID*100+0,2,0,0,0,0,1,0,0,0,0,0,0,0,"A'dal - On Quest 'Kael'thas and the Verdant Sphere' Finished - Run Script"),
(@ID,0,1,0,20,0,100,0,10210,0,0,0,80,@ID*100+1,2,0,0,0,0,1,0,0,0,0,0,0,0,"A'dal - On Quest 'A'dal' Finished - Run Script"),
(@ID,0,2,0,19,0,100,0,13082,0,0,0,11,53141,0,0,0,0,0,7,0,0,0,0,0,0,0,"A'dal - On Quest 'The Boon of A'dal' Taken - Cast 'Portal Effect: Dalaran'"),
(@ID*100+1,9,0,0,0,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"A'dal - On Script - Store Targetlist"),
(@ID*100+1,9,1,0,0,0,100,0,0,0,0,0,100,1,0,0,0,0,0,19,18166,0,0,0,0,0,0,"A'dal - On Script - Send Target 1 (Khadgar)"),
(@ID*100+1,9,2,0,0,0,100,0,0,0,0,0,45,0,1,0,0,0,0,19,18166,0,0,0,0,0,0,"A'dal - On Script - Set Data 0 1 (Khadgar)");
-- Khadgar SAI
SET @ID := 18166;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID*100+0 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
(@ID,0,0,0,38,0,100,0,0,1,0,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,"Khadgar - On Data Set 0 1 - Say Line 0"),
(@ID,0,1,0,19,0,100,0,10211,0,0,0,80,@ID*100+0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Khadgar - On Quest 'City of Light' Taken - Run Script"),
(@ID*100+0,9,0,0,0,0,100,0,0,0,0,0,11,34445,0,0,0,0,0,7,0,0,0,0,0,0,0,"Khadgar - On Script - Cast 'Trigger Khadgar's Servant'"),
-- Hack, it must be done in spell script (spell 34445)
(@ID*100+0,9,1,0,0,0,100,0,0,0,0,0,86,34444,0,7,0,0,0,7,0,0,0,0,0,0,0,"Khadgar - On Script - Cross Cast 'Summon Khadgar's Servant'"),
(@ID*100+0,9,2,0,0,0,100,0,4000,4000,0,0,1,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"Khadgar - On Script - Say Line 1");
-- Khadgar's Servant SAI
SET @ID := 19685;
UPDATE `creature_template` SET `AIName` = "SmartAI", `ScriptName` = "" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` BETWEEN @ID*100+0 AND @ID*100+6 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID,0,0,0,54,0,100,0,0,0,0,0,80,@ID*100+0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Just Summoned - Run Script"),
(@ID,0,1,0,40,0,100,0,9,0,0,0,80,@ID*100+1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Waypoint 9 Reached - Run Script"),
(@ID,0,2,0,40,0,100,0,24,0,0,0,80,@ID*100+2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Waypoint 24 Reached - Run Script"),
(@ID,0,3,0,40,0,100,0,52,0,0,0,80,@ID*100+3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Waypoint 52 Reached - Run Script"),
(@ID,0,4,0,40,0,100,0,63,0,0,0,80,@ID*100+4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Waypoint 63 Reached - Run Script"),
(@ID,0,5,0,40,0,100,0,75,0,0,0,80,@ID*100+5,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Waypoint 75 Reached - Run Script"),
(@ID,0,6,0,40,0,100,0,79,0,0,0,80,@ID*100+6,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Waypoint 79 Reached - Run Script"),
-- Stop follow owner, he's guardian now
(@ID*100+0,9,0,0,0,0,100,0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Stop Follow"),
-- Hack, seems like the only way to really stop follow for guardians is
-- to stop it by action above and then move creature to some point
(@ID*100+0,9,1,0,0,0,100,0,0,0,0,0,69,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Move To Self"),
(@ID*100+0,9,2,0,0,0,100,0,8000,8000,0,0,1,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 0"),
(@ID*100+0,9,3,0,0,0,100,0,5000,5000,0,0,53,0,19685,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Start Waypoint"),
(@ID*100+1,9,0,0,0,0,100,0,0,0,0,0,54,25000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Pause Waypoint"),
(@ID*100+1,9,1,0,0,0,100,0,0,0,0,0,1,1,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 1"),
(@ID*100+1,9,2,0,0,0,100,0,6000,6000,0,0,1,2,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 2"),
(@ID*100+1,9,3,0,0,0,100,0,8000,8000,0,0,1,3,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 3"),
(@ID*100+1,9,4,0,0,0,100,0,6000,6000,0,0,1,4,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 4"),
(@ID*100+2,9,0,0,0,0,100,0,0,0,0,0,54,20000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Pause Waypoint"),
(@ID*100+2,9,1,0,0,0,100,0,0,0,0,0,1,5,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 5"),
(@ID*100+2,9,2,0,0,0,100,0,5000,5000,0,0,1,6,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 6"),
(@ID*100+2,9,3,0,0,0,100,0,8000,8000,0,0,1,7,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 7"),
(@ID*100+3,9,0,0,0,0,100,0,0,0,0,0,54,33000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Pause Waypoint"),
(@ID*100+3,9,1,0,0,0,100,0,0,0,0,0,1,8,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 8"),
(@ID*100+3,9,2,0,0,0,100,0,8000,8000,0,0,1,9,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 9"),
(@ID*100+3,9,3,0,0,0,100,0,8000,8000,0,0,1,10,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 10"),
(@ID*100+3,9,4,0,0,0,100,0,8000,8000,0,0,1,11,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 11"),
(@ID*100+4,9,0,0,0,0,100,0,0,0,0,0,54,20000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Pause Waypoint"),
(@ID*100+4,9,1,0,0,0,100,0,0,0,0,0,1,12,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 12"),
(@ID*100+4,9,2,0,0,0,100,0,12000,12000,0,0,1,13,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 13"),
(@ID*100+5,9,0,0,0,0,100,0,0,0,0,0,54,22000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Pause Waypoint"),
(@ID*100+5,9,1,0,0,0,100,0,0,0,0,0,1,14,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 14"),
(@ID*100+5,9,2,0,0,0,100,0,7000,7000,0,0,1,15,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 15"),
(@ID*100+5,9,3,0,0,0,100,0,8000,8000,0,0,1,16,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 16"),
(@ID*100+5,9,4,0,0,0,100,0,7000,7000,0,0,1,17,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 17"),
(@ID*100+6,9,0,0,0,0,100,0,0,0,0,0,54,23000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Pause Waypoint"),
(@ID*100+6,9,1,0,0,0,100,0,7000,7000,0,0,1,18,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 18"),
(@ID*100+6,9,2,0,0,0,100,0,9000,9000,0,0,1,19,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 19"),
(@ID*100+6,9,3,0,0,0,100,0,12000,12000,0,0,1,20,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 20"),
(@ID*100+6,9,4,0,0,0,100,0,10000,10000,0,0,1,21,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Say Line 21"),
(@ID*100+6,9,5,0,0,0,100,0,6000,6000,0,0,11,34443,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Cast 'Tour Complete'"),
(@ID*100+6,9,6,0,0,0,100,0,4000,4000,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Khadgar's Servant - On Script - Despawn");
DELETE FROM `script_waypoint` WHERE `entry` = 19685;
DELETE FROM `waypoints` WHERE `entry` = 19685;
INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`,`point_comment`) VALUES
(19685,1,-1856.7291,5412.545,-12.428734,"Khadgar's Servant"),
(19685,2,-1851.104,5399.949,-12.428146,"Khadgar's Servant"),
(19685,3,-1847.482,5389.796,-12.428139,"Khadgar's Servant"),
(19685,4,-1827.3976,5348.053,-12.42815,"Khadgar's Servant"),
(19685,5,-1821.0642,5335.8955,-12.42815,"Khadgar's Servant"),
(19685,6,-1802.9408,5316.994,-12.42815,"Khadgar's Servant"),
(19685,7,-1798.6168,5309.4126,-14.128704,"Khadgar's Servant"),
(19685,8,-1788.5541,5293.4414,-24.505981,"Khadgar's Servant"),
(19685,9,-1779.5438,5277.361,-34.690746,"Khadgar's Servant"),
(19685,10,-1771.0858,5261.3037,-38.817463,"Khadgar's Servant"),
(19685,11,-1759.6964,5259.905,-40.20918,"Khadgar's Servant"),
(19685,12,-1753.8544,5260.21,-40.20918,"Khadgar's Servant"),
(19685,13,-1747.248,5259.636,-40.20918,"Khadgar's Servant"),
(19685,14,-1746.0751,5253.2456,-42.85606,"Khadgar's Servant"),
(19685,15,-1742.3296,5243.56,-46.769466,"Khadgar's Servant"),
(19685,16,-1730.8258,5236.6045,-49.55395,"Khadgar's Servant"),
(19685,17,-1683.7133,5220.5083,-49.08398,"Khadgar's Servant"),
(19685,18,-1670.9059,5217.952,-46.45898,"Khadgar's Servant"),
(19685,19,-1652.6665,5226.6304,-44.08592,"Khadgar's Servant"),
(19685,20,-1634.3944,5250.019,-40.897358,"Khadgar's Servant"),
(19685,21,-1630.9922,5271.961,-41.013546,"Khadgar's Servant"),
(19685,22,-1626.7494,5289.8457,-40.59592,"Khadgar's Servant"),
(19685,23,-1621.2554,5297.61,-40.20918,"Khadgar's Servant"),
(19685,24,-1614.4084,5298.0903,-40.20918,"Khadgar's Servant"),
(19685,25,-1632.7439,5300.1255,-40.20918,"Khadgar's Servant"),
(19685,26,-1643.0891,5308.961,-40.20918,"Khadgar's Servant"),
(19685,27,-1653.7859,5315.9053,-40.20918,"Khadgar's Servant"),
(19685,28,-1659.5901,5336.533,-45.95236,"Khadgar's Servant"),
(19685,29,-1662.5231,5352.865,-45.892548,"Khadgar's Servant"),
(19685,30,-1648.3981,5373.665,-45.754517,"Khadgar's Servant"),
(19685,31,-1642.712,5388.85,-45.504517,"Khadgar's Servant"),
(19685,32,-1644.5186,5403.5293,-44.493343,"Khadgar's Servant"),
(19685,33,-1646.4899,5413.0654,-45.243343,"Khadgar's Servant"),
(19685,34,-1653.3834,5421.3716,-43.112034,"Khadgar's Servant"),
(19685,35,-1666.6986,5426.2163,-38.837574,"Khadgar's Servant"),
(19685,36,-1688.5514,5425.893,-35.175846,"Khadgar's Servant"),
(19685,37,-1713.5116,5426.5933,-21.384369,"Khadgar's Servant"),
(19685,38,-1736.4636,5427.166,-12.428154,"Khadgar's Servant"),
(19685,39,-1740.6917,5401.8325,-12.428154,"Khadgar's Servant"),
(19685,40,-1745.5271,5378.9697,-12.428154,"Khadgar's Servant"),
(19685,41,-1762.5303,5368.7065,-12.428154,"Khadgar's Servant"),
(19685,42,-1775.9219,5363.033,-12.42815,"Khadgar's Servant"),
(19685,43,-1796.6299,5352.968,-12.42815,"Khadgar's Servant"),
(19685,44,-1819.3346,5335.0957,-12.42815,"Khadgar's Servant"),
(19685,45,-1846.719,5328.497,-12.428154,"Khadgar's Servant"),
(19685,46,-1860.551,5321.537,-12.428154,"Khadgar's Servant"),
(19685,47,-1879.4563,5312.3325,-12.428154,"Khadgar's Servant"),
(19685,48,-1887.5878,5318.0654,-10.759747,"Khadgar's Servant"),
(19685,49,-1891.0618,5339.536,0.9520931,"Khadgar's Servant"),
(19685,50,-1897.5068,5326.246,1.2132931,"Khadgar's Servant"),
(19685,51,-1912.0924,5287.3804,1.5652809,"Khadgar's Servant"),
(19685,52,-1916.7811,5270.458,3.3536053,"Khadgar's Servant"),
(19685,53,-1923.3287,5270.8525,3.6359081,"Khadgar's Servant"),
(19685,54,-1927.7502,5278.948,-0.23987198,"Khadgar's Servant"),
(19685,55,-1928.264,5297.987,-11.442955,"Khadgar's Servant"),
(19685,56,-1922.1162,5313.118,-12.428154,"Khadgar's Servant"),
(19685,57,-1923.5797,5337.27,-12.428158,"Khadgar's Servant"),
(19685,58,-1927.2803,5350.631,-12.428154,"Khadgar's Servant"),
(19685,59,-1956.068,5388.3394,-12.428158,"Khadgar's Servant"),
(19685,60,-1969.9077,5433.6436,-12.428154,"Khadgar's Servant"),
(19685,61,-1977.7777,5448.807,-12.428154,"Khadgar's Servant"),
(19685,62,-1951.7997,5458.225,0.9233341,"Khadgar's Servant"),
(19685,63,-1966.2068,5463.945,1.1968708,"Khadgar's Servant"),
(19685,64,-1957.9502,5462.5312,1.0414124,"Khadgar's Servant"),
(19685,65,-1953.9803,5461.978,0.9717388,"Khadgar's Servant"),
(19685,66,-1951.378,5464.6187,0.7884636,"Khadgar's Servant"),
(19685,67,-1970.6925,5486.3354,-12.428154,"Khadgar's Servant"),
(19685,68,-1960.5685,5504.846,-12.428158,"Khadgar's Servant"),
(19685,69,-1922.1747,5535.598,-12.428154,"Khadgar's Servant"),
(19685,70,-1885.1937,5545.7783,-12.428154,"Khadgar's Servant"),
(19685,71,-1857.5562,5548.6274,-12.428154,"Khadgar's Servant"),
(19685,72,-1840.5497,5540.975,-10.218967,"Khadgar's Servant"),
(19685,73,-1836.9247,5522.585,0.94164085,"Khadgar's Servant"),
(19685,74,-1834.1553,5524.043,1.0545769,"Khadgar's Servant"),
(19685,75,-1830.9613,5531.5635,1.2079754,"Khadgar's Servant"),
(19685,76,-1831.6431,5526.3687,1.111126,"Khadgar's Servant"),
(19685,77,-1838.75,5505.8076,0.85694885,"Khadgar's Servant"),
(19685,78,-1845.4235,5485.2446,0.8564892,"Khadgar's Servant"),
(19685,79,-1847.9873,5477.499,0.85691833,"Khadgar's Servant");
UPDATE `creature_text` SET `comment` = "Khadgar's Servant" WHERE `CreatureID` = 19685;
-- Haggard War Veteran
-- Missing spawns
DELETE FROM `creature` WHERE `guid` IN (@GUID+0,@GUID+1,@GUID+2);
INSERT INTO `creature` (`guid`, `id`, `map`, `spawnDifficulties`, `phaseId`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`) VALUES
(@GUID+0, 19684, 530, '0', 0, 0, -1853.81, 5129.783, -38.854, 2.015334, 300, 0, 2), --
(@GUID+1, 19684, 530, '0', 0, 0, -1834.7545, 5355.983, -12.344798, 5.65486, 300, 0, 2), --
(@GUID+2, 19684, 530, '0', 0, 0, -1568.29, 5139.5, -23.9051, 2.54298, 300, 0, 2); -- 170028
DELETE FROM `creature_addon` WHERE `guid` IN (@GUID+0,@GUID+1,@GUID+2);
INSERT INTO `creature_addon` (`guid`,`path_id`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES
(@GUID+0,(@GUID+0)*10,0,1,0,''),
(@GUID+1,(@GUID+1)*10,0,1,0,''),
(@GUID+2,(@GUID+2)*10,0,1,0,'');
DELETE FROM `waypoint_data` WHERE `id` IN ((@GUID+0)*10,(@GUID+1)*10,(@GUID+2)*10);
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
((@GUID+0)*10, 1, -1853.810, 5129.783, -38.854, 1.794635, 180000,0,0,100,0),
((@GUID+0)*10, 2, -1852.098, 5112.867, -38.875, 4.614215, 0,0,0,100,0),
((@GUID+0)*10, 3, -1854.521, 5075.556, -33.129, 4.629922, 0,0,0,100,0),
((@GUID+0)*10, 4, -1858.051, 5038.752, -27.035, 4.602435, 0,0,0,100,0),
((@GUID+0)*10, 5, -1861.358, 5013.369, -22.824, 4.574946, 0,0,0,100,0),
((@GUID+0)*10, 6, -1858.051, 5038.752, -27.035, 4.602435, 0,0,0,100,0),
((@GUID+0)*10, 7, -1854.521, 5075.556, -33.129, 4.629922, 0,0,0,100,0),
((@GUID+0)*10, 8, -1852.098, 5112.867, -38.875, 4.614215, 0,0,0,100,0),
((@GUID+1)*10, 1, -1834.7545, 5355.983, -12.344798, 5.651, 180000,0,0,100,0),
((@GUID+1)*10, 2, -1856.9169, 5330.034, -12.427, 4.005531, 0,0,0,100,0),
((@GUID+1)*10, 3, -1871.6191, 5312.819, -12.427, 4.005531, 0,0,0,100,0),
((@GUID+1)*10, 4, -1890.5996, 5288.959, -12.427, 4.076217, 0,0,0,100,0),
((@GUID+1)*10, 5, -1903.5646, 5270.025, 0.35275, 4.072291, 0,0,0,100,0),
((@GUID+1)*10, 6, -1920.8806, 5255.520, 6.69293, 4.358962, 0,0,0,100,0),
((@GUID+1)*10, 7, -1933.0880, 5221.805, 14.4307, 4.370744, 0,0,0,100,0),
((@GUID+1)*10, 8, -1944.6090, 5187.949, 16.8348, 4.386452, 0,0,0,100,0),
((@GUID+1)*10, 9, -1955.4442, 5154.369, 17.2905, 4.366816, 0,0,0,100,0),
((@GUID+1)*10, 10, -1944.6090, 5187.949, 16.8348, 4.386452, 0,0,0,100,0),
((@GUID+1)*10, 11, -1933.0880, 5221.805, 14.4307, 4.370744, 0,0,0,100,0),
((@GUID+1)*10, 12, -1920.8806, 5255.520, 6.69293, 4.358962, 0,0,0,100,0),
((@GUID+1)*10, 13, -1903.5646, 5270.025, 0.35275, 4.072291, 0,0,0,100,0),
((@GUID+1)*10, 14, -1890.5996, 5288.959, -12.427, 4.076217, 0,0,0,100,0),
((@GUID+1)*10, 15, -1871.6191, 5312.819, -12.427, 4.005531, 0,0,0,100,0),
((@GUID+1)*10, 16, -1856.9169, 5330.034, -12.427, 4.005531, 0,0,0,100,0),
((@GUID+2)*10, 1, -1568.29, 5139.5, -23.9051, 0, 0, 0,0,100,0),
((@GUID+2)*10, 2, -1628.91, 5181.64, -36.080, 0, 0, 0,0,100,0),
((@GUID+2)*10, 3, -1634.13, 5185.49, -37.146, 0, 0, 0,0,100,0),
((@GUID+2)*10, 4, -1660.66, 5198.37, -38.855, 3.173009, 180000, 0, 0,100,0),
((@GUID+2)*10, 5, -1634.13, 5185.49, -37.146, 0, 0, 0,0,100,0),
((@GUID+2)*10, 6, -1628.91, 5181.64, -36.080, 0, 0, 0,0,100,0);
DELETE FROM `smart_scripts` WHERE `entryorguid` = 4426 AND `source_type` = 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(4426,2,0,1,46,0,100,0,4426,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Areatrigger (Terrace of Light) - On Trigger - Store Targetlist"),
(4426,2,1,2,61,0,100,0,0,0,0,0,0,100,1,0,0,0,0,0,19,19684,30,0,0,0,0,0,0,"Areatrigger (Terrace of Light) - On Link - Send Target 1 (Haggard War Veteran)"),
(4426,2,2,0,61,0,100,0,0,0,0,0,0,45,0,1,0,0,0,0,19,19684,30,0,0,0,0,0,0,"Areatrigger (Terrace of Light) - On Link - Set Data 0 1 (Haggard War Veteran)");
DELETE FROM `areatrigger_scripts` WHERE `entry` = 4426;
INSERT INTO `areatrigger_scripts` (`entry`,`ScriptName`) VALUES
(4426,"SmartTrigger");
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 4426 AND `SourceId` = 2;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(22,1,4426,2,0,9,0,10211,0,0,0,0,0,"","Group 0: Execute SAI (Action 0) if player has taken quest 'City of Light'");
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = 19684;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 19684 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(19684,0,0,0,38,0,100,0,0,1,60000,60000,0,1,1,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Haggard War Veteran - On Data Set 0 1 - Say Line 1");
DELETE FROM `creature_text` WHERE `CreatureID` = 19684;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
-- 0 probably used in waypoint script by creature in -1955.3021 5184.2227 16.977425
(19684,0,0,"The market sure looks busy today.",12,0,100,0,0,0,17235,0,"Haggard War Veteran"),
(19684,0,1,"Look at those crazy kids running around. Not a care in the world.",12,0,100,0,0,0,17236,0,"Haggard War Veteran"),
(19684,0,2,"What manner of creature is that? Looks like a purple goblin.",12,0,100,0,0,0,17237,0,"Haggard War Veteran"),
(19684,1,0,"Khadgar himself is showing you around? You must have made a good impression, $n.",12,0,100,0,0,0,17283,0,"Haggard War Veteran");
-- Sha'nir
DELETE FROM `smart_scripts` WHERE `entryorguid` = 4425 AND `source_type` = 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(4425,2,0,0,46,0,100,0,4425,0,0,0,0,45,0,1,0,0,0,0,19,18597,0,0,0,0,0,0,0,"Areatrigger (Lower City) - On Trigger - Set Data 0 1 (Sha'nir)");
DELETE FROM `areatrigger_scripts` WHERE `entry` = 4425;
INSERT INTO `areatrigger_scripts` (`entry`,`ScriptName`) VALUES
(4425,"SmartTrigger");
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 4425 AND `SourceId` = 2;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(22,1,4425,2,0,9,0,10211,0,0,0,0,0,"","Group 0: Execute SAI (Action 0) if player has taken quest 'City of Light'");
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = 18597;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 18597 AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 1859700 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(18597,0,0,0,38,0,100,0,0,1,60000,60000,0,80,1859700,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Sha'nir - On Data Set 0 1 - Run Script"), -- 02:53:29.000
(1859700,9,0,0,0,0,100,0,6000,6000,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Sha'nir - On Script - Say Line 0"); -- 02:53:35.000
DELETE FROM `creature_text` WHERE `CreatureID` = 18597;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(18597,0,0,"A newcomer to Shattrath! Make sure to drop by later. We can always use a hand with the injured.",12,0,100,0,0,0,17282,0,"Sha'nir");
-- Iz'zard & Arcanist Adyria
DELETE FROM `smart_scripts` WHERE `entryorguid` = 4428 AND `source_type` = 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(4428,2,0,0,46,0,100,0,4428,0,0,0,0,45,0,1,0,0,0,0,19,18622,0,0,0,0,0,0,0,"Areatrigger (Lower City) - On Trigger - Set Data 0 1 (Iz'zard)");
DELETE FROM `areatrigger_scripts` WHERE `entry` = 4428;
INSERT INTO `areatrigger_scripts` (`entry`,`ScriptName`) VALUES
(4428,"SmartTrigger");
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 4428 AND `SourceId` = 2;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(22,1,4428,2,0,9,0,10211,0,0,0,0,0,"","Group 0: Execute SAI (Action 0) if player has taken quest 'City of Light'");
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = 18622;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 18622 AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 1862200 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(18622,0,0,0,38,0,100,0,0,1,60000,60000,0,80,1862200,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Iz'zard - On Data Set 0 1 - Run Script"), -- 02:54:32.000
(1862200,9,0,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,0,"Iz'zard - On Script - Say Line 0"), -- 02:54:32.000
(1862200,9,1,0,0,0,100,0,6000,6000,0,0,0,1,0,0,0,0,0,0,19,18596,0,0,0,0,0,0,0,"Iz'zard - On Script - Say Line 0 (Arcanist Adyria)"); -- 02:54:38.000
DELETE FROM `creature_text` WHERE `CreatureID` IN (18622,18596);
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(18622,0,0,"Be mindful of what you say, this one's being shown around by Khadgar's pet.",12,0,100,0,0,0,17284,0,"Iz'zard"),
(18596,0,0,"Are you joking? I'm a Scryer, I always watch what I say. More enemies than allies in this city, it seems.",12,0,100,0,0,0,17285,0,"Arcanist Adyria");
-- Aldor Anchorite
DELETE FROM `smart_scripts` WHERE `entryorguid` = 4429 AND `source_type` = 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(4429,2,0,1,46,0,100,0,4429,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Areatrigger (Terrace of Light) - On Trigger - Store Targetlist"),
(4429,2,1,2,61,0,100,0,0,0,0,0,0,12,19142,8,0,0,0,0,8,0,0,0,0,-1890.9529,5338.5063,1.0447,4.939281,"Areatrigger (Terrace of Light) - On Link - Summon Creature 'Aldor Anchorite'"),
(4429,2,2,0,61,0,100,0,0,0,0,0,0,100,1,0,0,0,0,0,19,19142,100,0,0,0,0,0,0,"Areatrigger (Terrace of Light) - On Link - Send Target 1 (Aldor Anchorite)");
DELETE FROM `areatrigger_scripts` WHERE `entry` = 4429;
INSERT INTO `areatrigger_scripts` (`entry`,`ScriptName`) VALUES
(4429,"SmartTrigger");
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 4429 AND `SourceId` = 2;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(22,1,4429,2,0,9,0,10211,0,0,0,0,0,"","Group 0: Execute SAI (Action 0) if player has taken quest 'City of Light'"),
(22,1,4429,2,0,29,0,19142,100,0,1,0,0,"","Group 0: Execute SAI (Action 0) if creature 'Aldor Anchorite' is not near");
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = 19142;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 19142 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(19142,0,0,0,54,0,100,0,0,0,0,0,0,53,0,19142,0,0,0,2,1,0,0,0,0,0,0,0,0,"Aldor Anchorite - On Just Summoned - Start Waypoint"),
(19142,0,1,0,40,0,100,0,1,0,0,0,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Aldor Anchorite - On Waypoint 1 Reached - Say Line 0"),
(19142,0,2,0,40,0,100,0,7,0,0,0,0,41,1000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Aldor Anchorite - On Waypoint 7 Reached - Despawn (1000)");
DELETE FROM `creature_text` WHERE `CreatureID` = 19142;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(19142,0,0,"Light be with you, $n. And welcome to Shattrath.",12,0,100,0,0,0,17286,0,"Aldor Anchorite");
DELETE FROM `waypoints` WHERE `entry` = 19142;
INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`,`point_comment`) VALUES
(19142,1,-1888.4237,5326.354,-3.825138,"Aldor Anchorite"),
(19142,2,-1887.8665,5322.0596,-7.4228554,"Aldor Anchorite"),
(19142,3,-1885.7524,5312.7925,-12.428154,"Aldor Anchorite"),
(19142,4,-1880.2937,5306.304,-12.428154,"Aldor Anchorite"),
(19142,5,-1871.0533,5302.632,-12.428154,"Aldor Anchorite"),
(19142,6,-1846.2037,5304.3022,-12.428154,"Aldor Anchorite"),
(19142,7,-1834.7722,5303.1914,-12.428154,"Aldor Anchorite");
-- Scryer Arcanist
DELETE FROM `smart_scripts` WHERE `entryorguid` = 4430 AND `source_type` = 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(4430,2,0,1,46,0,100,0,4430,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Areatrigger (Terrace of Light) - On Trigger - Store Targetlist"),
(4430,2,1,2,61,0,100,0,0,0,0,0,0,12,18547,8,0,0,0,0,8,0,0,0,0,-2011.0538,5479.285,3.8012,0.104719,"Areatrigger (Terrace of Light) - On Link - Summon Creature 'Scryer Arcanist'"),
(4430,2,2,0,61,0,100,0,0,0,0,0,0,100,1,0,0,0,0,0,19,18547,100,0,0,0,0,0,0,"Areatrigger (Terrace of Light) - On Link - Send Target 1 (Scryer Arcanist)");
DELETE FROM `areatrigger_scripts` WHERE `entry` = 4430;
INSERT INTO `areatrigger_scripts` (`entry`,`ScriptName`) VALUES
(4430,"SmartTrigger");
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 4430 AND `SourceId` = 2;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(22,1,4430,2,0,9,0,10211,0,0,0,0,0,"","Group 0: Execute SAI (Action 0) if player has taken quest 'City of Light'"),
(22,1,4430,2,0,29,0,18547,100,0,1,0,0,"","Group 0: Execute SAI (Action 0) if creature 'Scryer Arcanist' is not near");
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = 18547;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 18547 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(18547,0,0,0,54,0,100,0,0,0,0,0,0,53,0,18547,0,0,0,2,1,0,0,0,0,0,0,0,0,"Scryer Arcanist - On Just Summoned - Start Waypoint"),
(18547,0,1,0,40,0,100,0,2,0,0,0,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Scryer Arcanist - On Waypoint 2 Reached - Say Line 0"),
(18547,0,2,0,40,0,100,0,11,0,0,0,0,41,1000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Scryer Arcanist - On Waypoint 11 Reached - Despawn (1000)");
DELETE FROM `creature_text` WHERE `CreatureID` = 18547;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(18547,0,0,"We're rather selective of who we befriend, $n. You think you have what it takes?",12,0,100,0,0,0,17287,0,"Scryer Arcanist");
DELETE FROM `waypoints` WHERE `entry` = 18547;
INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`,`point_comment`) VALUES
(18547,1,-1984.6294,5469.5337,0.9833431,"Scryer Arcanist"),
(18547,2,-1969.3099,5464.869,1.2419147,"Scryer Arcanist"),
(18547,3,-1957.1414,5460.9097,1.0112228,"Scryer Arcanist"),
(18547,4,-1935.9397,5453.796,0.85699654,"Scryer Arcanist"),
(18547,5,-1919.1415,5447.9434,0.85645866,"Scryer Arcanist"),
(18547,6,-1914.0087,5445.4805,0.85712814,"Scryer Arcanist"),
(18547,7,-1910.4358,5435.6807,1.0386486,"Scryer Arcanist"),
(18547,8,-1915.1366,5424.12,1.7555523,"Scryer Arcanist"),
(18547,9,-1916.685,5417.044,2.154705,"Scryer Arcanist"),
(18547,10,-1908.1824,5399.165,2.3604717,"Scryer Arcanist"),
(18547,11,-1910.6818,5390.2026,2.254301,"Scryer Arcanist"); -- probably incomplete, no despawn packet
@@ -0,0 +1,65 @@
-- Goblin Land Mine SAI (based on a video but I haven't saved the url)
SET @ID := 7527;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID,0,0,0,54,0,100,0,0,0,0,0,0,80,@ID*100+0,2,0,0,0,0,1,0,0,0,0,0,0,0,0,"Goblin Land Mine - On Just Summoned - Run Script"),
-- Probably 4043 is used only when the mine is summoned by player and 11815 is used if summoned by NPCs
-- Used also by NPC Weegli Blastfuse (7607), Spell 21688
(@ID,0,1,3,10,1,100,1,0,10,0,0,0,11,4043,2,0,0,0,0,1,0,0,0,0,0,0,0,0,"Goblin Land Mine - OOC Los - Cast 'Detonation' (Phase 1) (No Repeat)"),
(@ID,0,2,3,26,1,100,1,0,10,0,0,0,11,4043,2,0,0,0,0,1,0,0,0,0,0,0,0,0,"Goblin Land Mine - IC Los - Cast 'Detonation' (Phase 1) (No Repeat)"),
(@ID,0,3,0,61,0,100,0,0,0,0,0,0,37,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Goblin Land Mine - On Link - Kill Self");
-- Actionlist SAI
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID*100+0 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID*100+0,9,0,0,0,0,100,0,0,0,0,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Goblin Land Mine - On Script - Set Event Phase 2"),
(@ID*100+0,9,1,0,0,0,100,0,0,0,0,0,0,116,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Goblin Land Mine - On Script - Set Corpse Delay"),
(@ID*100+0,9,2,0,0,0,100,0,0,0,0,0,0,8,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Goblin Land Mine - On Script - Set Reactstate Passive"),
(@ID*100+0,9,3,0,0,0,100,0,0,0,0,0,0,11,11816,2,0,0,0,0,1,0,0,0,0,0,0,0,0,"Goblin Land Mine - On Script - Cast 'Land Mine Arming'"),
-- It appears that the first emote is not used immediately after spawn
(@ID*100+0,9,4,0,0,0,100,0,1000,1000,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Goblin Land Mine - On Script - Say Line 0"),
(@ID*100+0,9,5,0,0,0,100,0,5000,5000,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Goblin Land Mine - On Script - Say Line 1"),
(@ID*100+0,9,6,0,0,0,100,0,5000,5000,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Goblin Land Mine - On Script - Say Line 2"),
-- Now the mine becomes active
(@ID*100+0,9,7,0,0,0,100,0,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Goblin Land Mine - On Script - Set Event Phase 1"),
(@ID*100+0,9,8,0,0,0,100,0,0,0,0,0,0,28,11816,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Goblin Land Mine - On Script - Remove Aura 'Land Mine Arming'");
DELETE FROM `creature_text` WHERE `CreatureID` = @ID;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextID`,`TextRange`,`comment`) VALUES
(@ID,0,0,"%s will be armed in 10 seconds!",16,0,100,0,0,0,3541,0,"Goblin Land Mine"),
(@ID,1,0,"%s will be armed in 5 seconds!",16,0,100,0,0,0,3542,0,"Goblin Land Mine"),
(@ID,2,0,"%s is now armed!",16,0,100,0,0,0,3543,0,"Goblin Land Mine");
DELETE FROM `creature_template_movement` WHERE `CreatureId` = 7527;
INSERT INTO `creature_template_movement` (`CreatureId`, `Ground`, `Swim`, `Flight`, `Rooted`, `Chase`, `Random`) VALUES
(7527,1,1,0,1,0,0);
-- Dark Iron Land Mine SAI (based on a video but I haven't saved the url)
SET @ID := 8035;
UPDATE `creature_template` SET `AIName` = "SmartAI", `unit_flags` = 0 WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID,0,0,0,54,0,100,0,0,0,0,0,0,80,@ID*100+0,2,0,0,0,0,1,0,0,0,0,0,0,0,0,"Dark Iron Land Mine - On Just Summoned - Run Script"),
-- Probably 11815 is used
(@ID,0,1,3,10,1,100,1,0,10,0,0,0,11,4043,2,0,0,0,0,1,0,0,0,0,0,0,0,0,"Dark Iron Land Mine - OOC Los - Cast 'Detonation' (Phase 1) (No Repeat)"),
(@ID,0,2,3,26,1,100,1,0,10,0,0,0,11,4043,2,0,0,0,0,1,0,0,0,0,0,0,0,0,"Dark Iron Land Mine - IC Los - Cast 'Detonation' (Phase 1) (No Repeat)"),
(@ID,0,3,0,61,0,100,0,0,0,0,0,0,37,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Dark Iron Land Mine - On Link - Kill Self");
-- Actionlist SAI
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID*100+0 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID*100+0,9,0,0,0,0,100,0,0,0,0,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Dark Iron Land Mine - On Script - Set Event Phase 2"),
(@ID*100+0,9,1,0,0,0,100,0,0,0,0,0,0,116,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Dark Iron Land Mine - On Script - Set Corpse Delay"),
(@ID*100+0,9,2,0,0,0,100,0,0,0,0,0,0,8,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Dark Iron Land Mine - On Script - Set Reactstate Passive"),
(@ID*100+0,9,3,0,0,0,100,0,0,0,0,0,0,11,11816,2,0,0,0,0,1,0,0,0,0,0,0,0,0,"Dark Iron Land Mine - On Script - Cast 'Land Mine Arming'"),
-- It appears that the first emote is not used immediately after spawn
(@ID*100+0,9,4,0,0,0,100,0,1000,1000,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Dark Iron Land Mine - On Script - Say Line 0"),
(@ID*100+0,9,5,0,0,0,100,0,5000,5000,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Dark Iron Land Mine - On Script - Say Line 1"),
(@ID*100+0,9,6,0,0,0,100,0,5000,5000,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Dark Iron Land Mine - On Script - Say Line 2"),
-- Now the mine becomes active
(@ID*100+0,9,7,0,0,0,100,0,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Dark Iron Land Mine - On Script - Set Event Phase 1"),
(@ID*100+0,9,8,0,0,0,100,0,0,0,0,0,0,28,11816,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Dark Iron Land Mine - On Script - Remove Aura 'Land Mine Arming'");
UPDATE `creature_text` SET `Sound` = 0 WHERE `CreatureID` = @ID;
UPDATE `smart_scripts` SET `event_type` = 0 WHERE `entryorguid` = 6212 AND `source_type` = 0 AND `id` = 0;
@@ -0,0 +1,80 @@
-- Galen Goodward SAI (Source: https://www.youtube.com/watch?v=57_CgmmO-hI & https://www.youtube.com/watch?v=Uxvm_uQvQhQ)
SET @ID := 5391;
UPDATE `creature_template` SET `AIName` = "SmartAI", `ScriptName` = "" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID,0,0,0,11,0,100,0,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Respawn - Set Event Phase 1"),
(@ID,0,1,0,4,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Aggro - Say Line 0"),
(@ID,0,2,0,19,0,100,0,1393,0,0,0,0,80,@ID*100+0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Quest 'Galen's Escape' Taken - Run Script"),
(@ID,0,3,0,40,0,100,0,1,0,0,0,0,54,3000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Waypoint 1 Reached - Pause Waypoint"),
(@ID,0,4,5,40,0,100,0,21,0,0,0,0,59,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Waypoint 21 Reached - Set Run On"),
(@ID,0,5,6,61,0,100,0,0,0,0,0,0,66,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Galen Goodward - On Link - Set Orientation Stored Target"),
(@ID,0,6,7,61,0,100,0,0,0,0,0,0,1,3,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Galen Goodward - On Link - Say Line 3"),
(@ID,0,7,8,61,0,100,0,0,0,0,0,0,1,4,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Galen Goodward - On Link - Say Line 4"),
(@ID,0,8,9,61,0,100,0,0,0,0,0,0,1,5,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Galen Goodward - On Link - Say Line 5"),
(@ID,0,9,0,61,0,100,0,0,0,0,0,0,15,1393,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Galen Goodward - On Link - Quest Credit 'Galen's Escape'"),
(@ID,0,10,0,40,0,100,0,22,0,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Waypoint 22 Reached - Despawn (0)"),
(@ID,0,11,0,38,1,100,0,0,1,60000,60000,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Data Set 0 1 - Say Line 1 (Phase 1)"),
(@ID,0,12,0,6,0,100,0,0,0,0,0,0,6,1393,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Galen Goodward - On Death - Fail Quest 'Galen's Escape'");
-- Actionlist SAI
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID*100+0 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID*100+0,9,0,0,0,0,100,0,0,0,0,0,0,64,1,0,0,0,0,0,16,0,0,0,0,0,0,0,0,"Galen Goodward - On Script - Store Targetlist"),
(@ID*100+0,9,1,0,0,0,100,0,0,0,0,0,0,22,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Script - Set Event Phase 0"),
(@ID*100+0,9,2,0,0,0,100,0,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Script - Remove NPC Flag Questgiver"),
(@ID*100+0,9,3,0,0,0,100,0,0,0,0,0,0,2,250,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Script - Set Faction 250"),
(@ID*100+0,9,4,0,0,0,100,0,0,0,0,0,0,19,256,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Script - Remove Flags Immune To Players"),
(@ID*100+0,9,5,0,0,0,100,0,0,0,0,0,0,1,2,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Galen Goodward - On Script - Say Line 2"),
(@ID*100+0,9,6,0,0,0,100,0,3000,3000,0,0,0,9,0,0,0,0,0,0,20,37118,0,0,0,0,0,0,0,"Galen Goodward - On Script - Activate Closest Gameobject 'Galen's Cage'"),
(@ID*100+0,9,7,0,0,0,100,0,0,0,0,0,0,53,0,5391,0,0,0,2,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Script - Start Waypoint");
DELETE FROM `smart_scripts` WHERE `entryorguid` = 2387 AND `source_type` = 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(2387,2,0,0,46,0,100,0,2387,0,0,0,0,45,0,1,0,0,0,0,19,5391,20,0,0,0,0,0,0,"Areatrigger (Swamp of Sorrows) - On Trigger - Set Data 0 1 (Galen Goodward)");
DELETE FROM `areatrigger_scripts` WHERE `entry` = 2387;
INSERT INTO `areatrigger_scripts` (`entry`,`ScriptName`) VALUES
(2387,"SmartTrigger");
DELETE FROM `creature_text` WHERE `CreatureID` = @ID;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(@ID,0,0,"Look out! The $n attacks!",12,0,100,0,0,0,1628,0,"Galen Goodward"),
(@ID,0,1,"Help! I'm under attack!",12,0,100,0,0,0,1629,0,"Galen Goodward"),
(@ID,0,2,"Help! The beast is on me!",12,0,100,0,0,0,1630,0,"Galen Goodward"),
(@ID,1,0,"I'm glad you're here! Because I need your help!!",12,0,100,0,0,0,1631,0,"Galen Goodward"),
(@ID,1,1,"Help! Please, you must help me!",12,0,100,0,0,0,7124,0,"Galen Goodward"),
(@ID,2,0,"Let us leave this place.",12,0,100,0,0,0,1854,0,"Galen Goodward"),
(@ID,3,0,"Thank you, $n. I will remember you always. You can find my strongbox in my camp, north of Stonard.",12,0,100,0,0,0,1855,0,"Galen Goodward"),
(@ID,4,0,"%s whispers to $n the secret to opening his strongbox.",16,0,100,0,0,0,2076,0,"Galen Goodward"),
(@ID,5,0,"%s disappears into the swamp.",16,0,100,0,0,0,1856,0,"Galen Goodward");
DELETE FROM `script_waypoint` WHERE `entry` = 5391;
DELETE FROM `waypoints` WHERE `entry` = 5391;
INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`,`point_comment`) VALUES
(5391,1,-9901.12,-3727.29,22.11,"Galen Goodward"),
(5391,2,-9909.27,-3727.81,23.25,"Galen Goodward"),
(5391,3,-9935.25,-3729.02,22.11,"Galen Goodward"),
(5391,4,-9945.83,-3719.34,21.68,"Galen Goodward"),
(5391,5,-9963.41,-3710.18,21.71,"Galen Goodward"),
(5391,6,-9972.75,-3690.13,21.68,"Galen Goodward"),
(5391,7,-9989.7,-3669.67,21.67,"Galen Goodward"),
(5391,8,-9989.21,-3647.76,23,"Galen Goodward"),
(5391,9,-9992.27,-3633.74,21.67,"Galen Goodward"),
(5391,10,-10002.3,-3611.67,22.26,"Galen Goodward"),
(5391,11,-9999.25,-3586.33,21.85,"Galen Goodward"),
(5391,12,-10006.5,-3571.99,21.67,"Galen Goodward"),
(5391,13,-10014.3,-3545.24,21.67,"Galen Goodward"),
(5391,14,-10018.9,-3525.03,21.68,"Galen Goodward"),
(5391,15,-10030.2,-3514.77,21.67,"Galen Goodward"),
(5391,16,-10045.1,-3501.49,21.67,"Galen Goodward"),
(5391,17,-10052.9,-3479.13,21.67,"Galen Goodward"),
(5391,18,-10060.7,-3460.31,21.67,"Galen Goodward"),
(5391,19,-10074.7,-3436.85,20.97,"Galen Goodward"),
(5391,20,-10074.7,-3436.85,20.97,"Galen Goodward"),
(5391,21,-10072.9,-3408.92,20.43,"Galen Goodward"),
(5391,22,-10108,-3406.05,22.06,"Galen Goodward");
@@ -0,0 +1,155 @@
--
UPDATE `creature_template` SET `speed_walk` = 6.5/2.5, `speed_run` = 10/7, `unit_flags` = 33536, `BaseAttackTime` = 2000, RangeAttackTime = 2000 WHERE `entry` = 23365;
UPDATE `creature_template` SET `speed_run` = 9.7/7 WHERE `entry` = 23380;
UPDATE `creature_model_info` SET `BoundingRadius` = 0.938, `CombatReach` = 1.4 WHERE `DisplayID` = 21433;
UPDATE `creature_model_info` SET `BoundingRadius` = 2.260511 WHERE `DisplayID` = 21444;
UPDATE `spell_target_position` SET `PositionX` = 2330.46, `PositionY` = 7303.28, `PositionZ` = 365.7003/*, `Orientation` = 3.54216*/ WHERE `ID` = 41108 AND `EffectIndex` = 0;
-- Torkus SAI
SET @ENTRY := 23316;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ENTRY AND `source_type` = 0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,20,0,100,0,11061,0,0,0,0,11,41109,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Torkus - On Quest 'A Father's Duty' Finished - Cast 'Periodic - Summon Torkus Jr.'");
-- Torkus Jr. SAI
SET @ENTRY := 23365;
UPDATE `creature_template` SET `AIName` = "SmartAI", `flags_extra` = `flags_extra`|512 WHERE `entry` = @ENTRY;
UPDATE `creature_template` SET `flags_extra` = `flags_extra`|512 WHERE `entry` = 30813;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ENTRY AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` BETWEEN @ENTRY*100+0 AND @ENTRY*100+3 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,54,0,100,0,0,0,0,0,0,80,@ENTRY*100+0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Just Summoned - Run Script"),
(@ENTRY,0,1,0,40,0,100,0,12,0,0,0,0,80,@ENTRY*100+1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Waypoint 12 Reached - Run Script"),
(@ENTRY,0,2,0,40,0,100,0,17,0,0,0,0,80,@ENTRY*100+2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Waypoint 17 Reached - Run Script"),
(@ENTRY,0,3,0,40,0,100,0,43,0,0,0,0,80,@ENTRY*100+3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Waypoint 43 Reached - Run Script"),
(@ENTRY,0,4,0,40,0,100,0,48,0,0,0,0,41,1000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Waypoint 9 Reached - Despawn (1000)"),
(@ENTRY*100+0,9,0,0,0,0,100,0,3000,3000,0,0,0,66,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Set Orientation Owner"),
(@ENTRY*100+0,9,1,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Say Line 0"),
(@ENTRY*100+0,9,2,0,0,0,100,0,4000,4000,0,0,0,1,1,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Say Line 1"),
(@ENTRY*100+0,9,3,0,0,0,100,0,2000,2000,0,0,0,5,92,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Play Emote 92"),
(@ENTRY*100+0,9,4,0,0,0,100,0,0,0,0,0,0,71,0,0,3699,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Change Equipment"),
(@ENTRY*100+0,9,5,0,0,0,100,0,4000,4000,0,0,0,5,92,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Play Emote 92"),
(@ENTRY*100+0,9,6,0,0,0,100,0,0,0,0,0,0,71,0,0,2198,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Change Equipment"),
(@ENTRY*100+0,9,7,0,0,0,100,0,4000,4000,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Say Line 2"),
(@ENTRY*100+0,9,8,0,0,0,100,0,0,0,0,0,0,71,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Change Equipment"),
(@ENTRY*100+0,9,9,0,0,0,100,0,2000,2000,0,0,0,53,0,23365,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Start Waypoint"),
(@ENTRY*100+1,9,0,0,0,0,100,0,0,0,0,0,0,54,28000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Pause Waypoint"),
(@ENTRY*100+1,9,1,0,0,0,100,0,2000,2000,0,0,0,90,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Set Flag Standstate Kneel"),
(@ENTRY*100+1,9,2,0,0,0,100,0,0,0,0,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Say Line 3"),
(@ENTRY*100+1,9,3,0,0,0,100,0,3000,3000,0,0,0,1,1,0,0,0,0,0,19,23334,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Say Line 1 (Sky Commander Keller)"),
(@ENTRY*100+1,9,4,0,0,0,100,0,2000,2000,0,0,0,91,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Remove Flag Standstate Kneel"),
(@ENTRY*100+1,9,5,0,0,0,100,0,1000,1000,0,0,0,5,1,0,0,0,0,0,19,23334,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Play Emote 1 (Sky Commander Keller)"),
(@ENTRY*100+1,9,6,0,0,0,100,0,6000,6000,0,0,0,1,4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Say Line 4"),
(@ENTRY*100+1,9,7,0,0,0,100,0,8000,8000,0,0,0,1,2,0,0,0,0,0,19,23334,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Say Line 2 (Sky Commander Keller)"),
(@ENTRY*100+1,9,8,0,0,0,100,0,4000,4000,0,0,0,1,5,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Say Line 5"),
(@ENTRY*100+1,9,9,0,0,0,100,0,0,0,0,0,0,1,6,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Say Line 6"),
(@ENTRY*100+2,9,0,0,0,0,100,0,0,0,0,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Pause Waypoint"),
(@ENTRY*100+2,9,1,0,0,0,100,0,1000,1000,0,0,0,1,7,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Say Line 7"),
(@ENTRY*100+2,9,2,0,0,0,100,0,2000,2000,0,0,0,1,0,0,0,0,0,0,19,22987,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Say Line 0 (Skyguard Nether Ray)"),
(@ENTRY*100+2,9,3,0,0,0,100,0,1000,1000,0,0,0,43,0,21444,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Mount"),
(@ENTRY*100+2,9,4,0,0,0,100,0,0,0,0,0,0,60,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Set Fly On"),
(@ENTRY*100+2,9,5,0,0,0,100,0,1000,1000,0,0,0,1,3,0,0,0,0,0,19,23334,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Say Line 3 (Sky Commander Keller)"),
(@ENTRY*100+3,9,0,0,0,0,100,0,0,0,0,0,0,54,9500,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Pause Waypoint"),
(@ENTRY*100+3,9,1,0,0,0,100,0,0,0,0,0,0,43,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Dismount"),
(@ENTRY*100+3,9,2,0,0,0,100,0,0,0,0,0,0,60,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Set Fly Off"),
(@ENTRY*100+3,9,3,0,0,0,100,0,0,0,0,0,0,59,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Set Run On"),
(@ENTRY*100+3,9,4,0,0,0,100,0,0,0,0,0,0,1,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Say Line 8"),
(@ENTRY*100+3,9,5,0,0,0,100,0,1000,1000,0,0,0,11,41123,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Cast 'Summon Bronco'"),
(@ENTRY*100+3,9,6,0,0,0,100,0,0,0,0,0,0,66,0,0,0,0,0,0,19,23380,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Set Orientation Closest Creature 'Bronco'"),
(@ENTRY*100+3,9,7,0,0,0,100,0,0,0,0,0,0,90,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Set Flag Standstate Sit"),
(@ENTRY*100+3,9,8,0,0,0,100,0,3000,3000,0,0,0,1,0,0,0,0,0,0,19,23380,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Say Line 0 (Bronco)"),
(@ENTRY*100+3,9,9,0,0,0,100,0,0,0,0,0,0,45,0,1,0,0,0,0,19,23380,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Set Data 0 1 (Bronco)"),
(@ENTRY*100+3,9,10,0,0,0,100,0,2000,2000,0,0,0,1,9,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Say Line 9"),
(@ENTRY*100+3,9,11,0,0,0,100,0,3000,3000,0,0,0,91,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Torkus Jr. - On Script - Remove Flag Standstate Sit");
-- Bronco SAI
SET @ENTRY := 23380;
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ENTRY AND `source_type` = 0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,38,0,100,0,0,1,0,0,0,53,1,23380,0,0,0,0,1,0,0,0,0,0,0,0,0,"Bronco - On Data Set 0 1 - Start Waypoint"),
(@ENTRY,0,1,0,40,0,100,0,9,0,0,0,0,41,1000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Bronco - On Waypoint 9 Reached - Despawn (1000)");
DELETE FROM `waypoints` WHERE `entry` IN (23365,23380);
INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`,`point_comment`) VALUES
(23365,1,2388.48,7323.022,366.0821,"Torkus Jr."),
(23365,2,2403.956,7326.238,365.3166,"Torkus Jr."),
(23365,3,2425.602,7328.778,366.0603,"Torkus Jr."),
(23365,4,2456.905,7328.807,364.9909,"Torkus Jr."),
(23365,5,2478.453,7318.382,365.0911,"Torkus Jr."),
(23365,6,2489.64,7319.959,367.9602,"Torkus Jr."),
(23365,7,2499.269,7322.674,371.8641,"Torkus Jr."),
(23365,8,2507.406,7322.218,374.0491,"Torkus Jr."),
(23365,9,2513.396,7324.969,374.6715,"Torkus Jr."),
(23365,10,2506.65,7334.407,376.5914,"Torkus Jr."),
(23365,11,2501.301,7339.496,378.507,"Torkus Jr."),
(23365,12,2502.115,7354.8,380.4968,"Torkus Jr."), --
(23365,13,2501.762,7340.44,378.7509,"Torkus Jr."),
(23365,14,2504.961,7335.365,376.9442,"Torkus Jr."),
(23365,15,2514.731,7329.022,375.3513,"Torkus Jr."),
(23365,16,2523.857,7323.703,373.4666,"Torkus Jr."),
(23365,17,2530.638,7314.663,373.4666,"Torkus Jr."), --
(23365,18,2533.652,7313.149,374.7746,"Torkus Jr."),
(23365,19,2533.447,7316.091,376.6632,"Torkus Jr."),
(23365,20,2533.632,7318.173,374.5524,"Torkus Jr."),
(23365,21,2535.23,7315.936,375.0524,"Torkus Jr."),
(23365,22,2537.44,7314.543,375.5802,"Torkus Jr."),
(23365,23,2537.963,7317.232,375.3579,"Torkus Jr."),
(23365,24,2536.23,7319.043,376.0521,"Torkus Jr."),
(23365,25,2533.874,7320.764,375.08,"Torkus Jr."),
(23365,26,2530.911,7318.042,374.4968,"Torkus Jr."),
(23365,27,2530.487,7316.014,376.4689,"Torkus Jr."),
(23365,28,2528.512,7319.185,375.4412,"Torkus Jr."),
(23365,29,2529.733,7322.888,376.1076,"Torkus Jr."),
(23365,30,2531.962,7323.523,376.4968,"Torkus Jr."),
(23365,31,2537.023,7322.074,376.2847,"Torkus Jr."),
(23365,32,2541.908,7319.018,375.09,"Torkus Jr."),
(23365,33,2547.636,7318.503,375.2287,"Torkus Jr."),
(23365,34,2558.549,7312.783,375.2287,"Torkus Jr."),
(23365,35,2567.508,7306.688,375.2287,"Torkus Jr."),
(23365,36,2575.549,7305.697,378.951,"Torkus Jr."),
(23365,37,2571.671,7308.094,383.7288,"Torkus Jr."),
(23365,38,2561.646,7313.308,387.7843,"Torkus Jr."),
(23365,39,2555.156,7311.284,383.8676,"Torkus Jr."),
(23365,40,2560.29,7306.233,378.8124,"Torkus Jr."),
(23365,41,2563.351,7296.057,378.8124,"Torkus Jr."),
(23365,42,2567.216,7299.937,378.8124,"Torkus Jr."),
(23365,43,2573.686,7298.948,365.813,"Torkus Jr."), --
(23365,44,2593.253,7268.279,364.9899,"Torkus Jr."),
(23365,45,2591.54,7239.053,364.9277,"Torkus Jr."),
(23365,46,2578.906,7225.053,364.9814,"Torkus Jr."),
(23365,47,2574.136,7205.383,364.1418,"Torkus Jr."),
(23365,48,2583.654,7164.126,364.8251,"Torkus Jr."),
(23380,1,2573.233,7295.982,365.5504,"Bronco"),
(23380,2,2591.895,7269.491,364.827,"Bronco"),
(23380,3,2595.734,7247.869,364.185,"Bronco"),
(23380,4,2583.377,7237.241,364.5394,"Bronco"),
(23380,5,2569.756,7223.433,363.8503,"Bronco"),
(23380,6,2575.606,7193.863,363.8637,"Bronco"),
(23380,7,2587.886,7161.841,364.5957,"Bronco"),
(23380,8,2603.697,7122.514,365.4023,"Bronco"),
(23380,9,2607.468,7087.224,365.3389,"Bronco");
DELETE FROM `creature_text` WHERE `CreatureID` IN (23365,22987,23380);
DELETE FROM `creature_text` WHERE `CreatureID` = 23334 AND `GroupID` IN (1,2,3);
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(23365,0,0,"Thank you for helping us with the flasks.",12,0,100,1,0,0,21479,0,"Torkus Jr."),
(23365,1,0,"Now that the flasks are ready, we can show the Skyguard our moves!",12,0,100,1,0,0,21445,0,"Torkus Jr."),
(23365,2,0,"Watch out, Skyguard. Here comes Torkus Jr.!",12,0,100,15,0,0,21446,0,"Torkus Jr."),
(23365,3,0,"Commander, sir! Cadet Torkus Jr. reporting for duty, sir!",12,0,100,0,0,0,21447,0,"Torkus Jr."),
(23365,4,0,"Yes, sir. An ogre, sir. But give us a chance, sir! We've been preparing for this since the first time the Skyguard flew over Ogri'la, sir!",12,0,100,1,0,0,21449,0,"Torkus Jr."),
(23365,5,0,"Nonsense!",12,0,100,11,0,0,21488,0,"Torkus Jr."),
(23365,6,0,"%s makes a gesture of dismissal and heads for the launch pad.",16,0,100,0,0,0,21450,0,"Torkus Jr."),
(23365,7,0,"Bronco? That sounds like a good one!",12,0,100,1,0,0,21472,0,"Torkus Jr."),
(23365,8,0,"Bronco bucks %s from its back and escapes into the wild!",16,0,100,0,0,0,21468,0,"Torkus Jr."),
(23365,9,0,"Come back, Mr. Bronco! We're gonna be in the Skyguard together!",14,0,100,15,0,0,21476,0,"Torkus Jr."),
(23334,1,0,"Look here, lad. I admire your dedication, but I'm not sure how to tell you this... You're an ogre, son.",12,0,100,5,0,0,21448,0,"Sky Commander Keller"),
(23334,2,0,"I don't think yer hearin' me. Nether rays just aren't made for --",12,0,100,1,0,0,21473,0,"Sky Commander Keller"),
(23334,3,0,"No, lad, not Bronco! He's not been broken yet! You'll get yerself killed up there!",14,0,100,5,0,0,21467,0,"Sky Commander Keller"),
(22987,0,0,"%s cowers in fear as it realizies what the ogre has in mind.",16,0,100,0,0,0,21451,0,"Skyguard Nether Ray"),
(23380,0,0,"%s hisses loudly at Torkus Jr.",16,0,100,35,0,0,21482,0,"Bronco");
@@ -0,0 +1,137 @@
--
UPDATE `creature` SET `position_x` = -1890.8405, `position_y` = 5364.6646, `position_z` = -12.344814, `orientation` = 0.855211 WHERE `id` = 17076;
UPDATE `creature` SET `position_x` = -1892.8138, `position_y` = 5358.005, `position_z` = -12.344588, `orientation` = 1.41371 WHERE `id` = 23131 AND `guid` = 121269;
UPDATE `creature` SET `position_x` = -1891.7179, `position_y` = 5361.508, `position_z` = -12.344777, `orientation` = 1.27409 WHERE `id` = 23131 AND `guid` = 121277;
-- I found only info about her respawn timer when she was attackable(as boss in Silvermoon)
UPDATE `creature` SET `spawntimesecs` = 600 WHERE `id` = 17076;
UPDATE `creature` SET `spawntimesecs` = 600 WHERE `id` = 23131 AND `guid` = 121269;
UPDATE `creature` SET `spawntimesecs` = 600 WHERE `id` = 23131 AND `guid` = 121277;
DELETE FROM `creature_formations` WHERE `leaderGUID` = 68464;
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES
(68464,68464,0,0,512,0,0),
(68464,121277,5,310,512,0,0),
(68464,121269,5,50,512,0,0);
UPDATE `creature_template_addon` SET `mount` = 19085 WHERE `entry` = 17076;
DELETE FROM `creature_addon` WHERE `guid` IN (121277,121269);
INSERT INTO `creature_addon` (`guid`,`mount`) VALUES
(121277,19296),
(121269,19296);
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` IN (17076,25167);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (17076,25167) AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` BETWEEN 1707600 AND 1707603 AND `source_type` = 9;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 2516700 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(17076,0,0,0,63,0,100,0,0,0,0,0,0,80,1707600,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Just Created - Run Script"),
(17076,0,1,0,40,0,100,0,9,0,0,0,0,80,1707601,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Waypoint 9 Reached - Run Script"),
(17076,0,2,0,40,0,100,0,10,0,0,0,0,80,1707602,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Waypoint 10 Reached - Run Script"),
(17076,0,3,0,40,0,100,0,22,0,0,0,0,80,1707603,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Waypoint 22 Reached - Run Script"),
(17076,0,4,0,38,0,100,0,1,1,0,0,0,65,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Data Set 1 1 - Resume Waypoint"),
(1707600,9,0,0,0,0,100,0,0,0,0,0,0,83,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Remove NPC Flag Gossip"),
(1707600,9,1,0,0,0,100,0,4000,4000,0,0,0,53,0,17076,0,0,0,2,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Start Waypoint"),
(1707601,9,0,0,0,0,100,0,0,0,0,0,0,54,3000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Pause Waypoint"),
(1707601,9,1,0,0,0,100,0,0,0,0,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0.436332,"Lady Liadrin - On Script - Set Orientation"),
(1707601,9,2,0,0,0,100,0,0,0,0,0,0,43,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Dismount"),
(1707601,9,3,0,0,0,100,0,0,0,0,0,0,43,0,0,0,0,0,0,11,23131,30,0,0,0,0,0,0,"Lady Liadrin - On Script - Dismount (Blood Knight Honor Guard)"),
(1707602,9,0,0,0,0,100,0,0,0,0,0,0,54,300000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Pause Waypoint"),
(1707602,9,1,0,0,0,100,0,1000,1000,0,0,0,5,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Play Emote 2"),
(1707602,9,2,0,0,0,100,0,0,0,0,0,0,5,25,0,0,0,0,0,19,25167,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Play Emote 25 (General Tiras'alan)"),
(1707602,9,3,0,0,0,100,0,2000,2000,0,0,0,1,0,0,0,0,0,0,19,25167,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 0 (General Tiras'alan)"), -- 03:08:21.000
(1707602,9,4,0,0,0,100,0,7000,7000,0,0,0,1,4,0,0,0,0,0,19,18481,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 4 (A'dal)"),
(1707602,9,5,0,0,0,100,0,7000,7000,0,0,0,1,5,0,0,0,0,0,19,18481,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 5 (A'dal)"),
(1707602,9,6,0,0,0,100,0,6000,6000,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 0"), -- 03:08:41.000
(1707602,9,7,0,0,0,100,0,7000,7000,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 1"), -- 03:08:48.000
(1707602,9,8,0,0,0,100,0,7000,7000,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 2"), -- 03:08:55.000
(1707602,9,9,0,0,0,100,0,12000,12000,0,0,0,1,6,0,0,0,0,0,19,18481,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 6 (A'dal)"),
(1707602,9,10,0,0,0,100,0,9000,9000,0,0,0,1,7,0,0,0,0,0,19,18481,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 7 (A'dal)"),
(1707602,9,11,0,0,0,100,0,3000,3000,0,0,0,5,6,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Play Emote 6"), -- 03:09:19.000
(1707602,9,12,0,0,0,100,0,3000,3000,0,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 3"), -- 03:09:22.000
(1707602,9,13,0,0,0,100,0,7000,7000,0,0,0,1,8,0,0,0,0,0,19,18481,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 8 (A'dal)"),
(1707602,9,14,0,0,0,100,0,7000,7000,0,0,0,1,9,0,0,0,0,0,19,18481,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 9 (A'dal)"),
(1707602,9,15,0,0,0,100,0,7000,7000,0,0,0,1,10,0,0,0,0,0,19,18481,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 10 (A'dal)"),
(1707602,9,16,0,0,0,100,0,7000,7000,0,0,0,1,11,0,0,0,0,0,19,18481,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 11 (A'dal)"),
(1707602,9,17,0,0,0,100,0,7000,7000,0,0,0,1,12,0,0,0,0,0,19,18481,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 12 (A'dal)"),
(1707602,9,18,0,0,0,100,0,7000,7000,0,0,0,1,4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 4"), -- 03:10:04.000
(1707602,9,19,0,0,0,100,0,7000,7000,0,0,0,1,5,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 5"), -- 03:10:11.000
(1707602,9,20,0,0,0,100,0,5000,5000,0,0,0,1,6,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 6"), -- 03:10:16.000
(1707602,9,21,0,0,0,100,0,4000,4000,0,0,0,1,13,0,0,0,0,0,19,18481,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Say Line 13 (A'dal)"),
(1707602,9,22,0,0,0,100,0,2000,2000,0,0,0,45,1,1,0,0,0,0,19,25167,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Set Data 1 1 (General Tiras'alan)"),
(25167,0,0,0,38,0,100,0,1,1,0,0,0,53,0,25167,0,0,0,2,1,0,0,0,0,0,0,0,0,"General Tiras'alan - On Data Set 1 1 - Start Waypoint"),
(25167,0,1,0,40,0,100,0,6,0,0,0,0,80,2516700,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"General Tiras'alan - On Waypoint 6 Reached - Run Script"),
(25167,0,2,0,40,0,100,0,12,0,0,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,0,3.75246,"General Tiras'alan - On Waypoint 12 Reached - Set Orientation"),
(2516700,9,0,0,0,0,100,0,0,0,0,0,0,54,17000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"General Tiras'alan - On Script - Pause Waypoint"),
(2516700,9,1,0,0,0,100,0,3000,3000,0,0,0,5,2,0,0,0,0,0,19,17076,0,0,0,0,0,0,0,"General Tiras'alan - On Script - Play Emote 2 (Lady Liadrin)"), -- 03:10:46.000
(2516700,9,2,0,0,0,100,0,3000,3000,0,0,0,86,45372,0,19,17076,0,0,19,17076,0,0,0,0,0,0,0,"General Tiras'alan - On Script - Cross Cast 'Lady Liadrin Transform' (Lady Liadrin)"), -- 03:10:49.000
(2516700,9,3,0,0,0,100,0,5000,5000,0,0,0,1,14,0,0,0,0,0,19,18481,0,0,0,0,0,0,0,"General Tiras'alan - On Script - Say Line 14 (A'dal)"),
(2516700,9,4,0,0,0,100,0,6000,6000,0,0,0,45,1,1,0,0,0,0,19,17076,0,0,0,0,0,0,0,"General Tiras'alan - On Script - Set Data 1 1 (Lady Liadrin)"), -- 03:11:00.000
(1707603,9,0,0,0,0,100,0,0,0,0,0,0,41,1000,0,0,0,0,0,11,23131,30,0,0,0,0,0,0,"Lady Liadrin - On Script - Despawn (1000) (Blood Knight Honor Guard)"),
(1707603,9,1,0,0,0,100,0,0,0,0,0,0,41,1000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lady Liadrin - On Script - Despawn (1000)");
DELETE FROM `waypoints` WHERE `entry` IN (17076,25167);
INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`,`point_comment`) VALUES
(17076,1,-1889.4803,5367.829,-12.428146,"Lady Liadrin"),
(17076,2,-1886.6562,5374.237,-12.428158,"Lady Liadrin"),
(17076,3,-1884.9547,5379.1855,-12.428162,"Lady Liadrin"),
(17076,4,-1882.9539,5389.4424,-12.428177,"Lady Liadrin"),
(17076,5,-1887.939,5393.2563,-12.428234,"Lady Liadrin"),
(17076,6,-1895.2999,5398.5,-12.428314,"Lady Liadrin"),
(17076,7,-1901.1967,5407.4243,-12.428253,"Lady Liadrin"),
(17076,8,-1898.3171,5413.7007,-12.428177,"Lady Liadrin"),
(17076,9,-1891.4534,5417.7334,-12.428192,"Lady Liadrin"), --
(17076,10,-1884.4406,5419.7715,-12.428157,"Lady Liadrin"), --
(17076,11,-1890.5408,5416.6855,-12.428154,"Lady Liadrin"),
(17076,12,-1898.2704,5412.5674,-12.428158,"Lady Liadrin"),
(17076,13,-1908.1675,5407.589,-12.428158,"Lady Liadrin"),
(17076,14,-1922.0374,5400.8384,-12.428452,"Lady Liadrin"),
(17076,15,-1930.2853,5396.7983,-12.428349,"Lady Liadrin"),
(17076,16,-1938.9174,5392.78,-12.428242,"Lady Liadrin"),
(17076,17,-1944.8556,5383.025,-12.428135,"Lady Liadrin"),
(17076,18,-1941.9391,5387.816,-12.428187,"Lady Liadrin"),
(17076,19,-1945.7522,5373.704,-12.428147,"Lady Liadrin"),
(17076,20,-1943.0194,5349.0454,-12.428154,"Lady Liadrin"),
(17076,21,-1915.2404,5312.3843,-12.428154,"Lady Liadrin"),
(17076,22,-1905.5239,5302.4785,-12.428154,"Lady Liadrin"),
(25167,1,-1856.5751,5438.3955,-10.463867,"General Tiras'alan"),
(25167,2,-1863.747559,5440.479492,-10.463867,"General Tiras'alan"),
(25167,3,-1871.633667,5436.593262,-10.463867,"General Tiras'alan"),
(25167,4,-1874.043823,5430.138672,-10.463867,"General Tiras'alan"),
(25167,5,-1873.248291,5425.577148,-10.463867,"General Tiras'alan"),
(25167,6,-1883.137329,5420.372070,-12.428157,"General Tiras'alan"), --
(25167,7,-1873.248291,5425.577148,-10.463867,"General Tiras'alan"),
(25167,8,-1874.043823,5430.138672,-10.463867,"General Tiras'alan"),
(25167,9,-1871.633667,5436.593262,-10.463867,"General Tiras'alan"),
(25167,10,-1863.747559,5440.479492,-10.463867,"General Tiras'alan"),
(25167,11,-1856.5751,5438.3955,-10.463867,"General Tiras'alan"), -- sniffed
(25167,12,-1854.0193,5435.058,-10.4803505,"General Tiras'alan"); -- sniffed
DELETE FROM `creature_text` WHERE `CreatureID` IN (17076,25167);
DELETE FROM `creature_text` WHERE `CreatureID` = 18481 AND `GroupID` BETWEEN 4 AND 14;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(25167,0,0,"Why do you suffer the presence of this despicable Lady Liadrin? She and her followers distort the Light and make a mockery of all we stand for!",12,0,100,5,0,0,24461,0,"General Tiras'alan"),
(18481,4,0,"Patience, general. The Light embraces all who enter Shattrath in good faith.",12,0,100,0,0,0,24462,0,"A'dal"),
(18481,5,0,"You are welcome in Shattrath, Lady Liadrin. We have long awaited your arrival.",12,0,100,0,0,0,24463,0,"A'dal"),
(17076,0,0,"Thank you for allowing me to speak, A'dal. I know many of your allies despise me and my knights for our treatment of M'uru.",12,0,100,1,0,0,24464,0,"Lady Liadrin"),
(17076,1,0,"When he was given to us by 'Prince' Kael'thas, we believed his power would help us lead our people into a new age.",12,0,100,1,0,0,24485,0,"Lady Liadrin"),
(17076,2,0,"I've come to realize our path was a false one. We were betrayed by the man we called our prince. In his lust for power, he sent the felblood to attack us, and to spirit M'uru away to the Sunwell.",12,0,100,1,0,0,24465,0,"Lady Liadrin"),
(18481,6,0,"Both our peoples have suffered greatly at the hands of Kael'thas and his agents, Lady Liadrin. Your people were not the authors of their own fate, but they will die if they do not change.",12,0,100,0,0,0,24466,0,"A'dal"),
(18481,7,0,"M'uru accepted his role in this long ago, knowing full well what would happen to him. Will you accept your own?",12,0,100,0,0,0,24467,0,"A'dal"),
(17076,3,0,"I... I don't understand. You -- and M'uru -- knew all along that this would occur?",12,0,100,1,0,0,24468,0,"Lady Liadrin"),
(18481,8,0,"It wasn't I who foretold it, but Velen of the Draenei:",12,0,100,0,0,0,24469,0,"A'dal"),
(18481,9,0,"'Silvery moon, washed in blood,'",12,0,100,0,0,0,24470,0,"A'dal"),
(18481,10,0,"'Led astray into the night, armed with sword of broken Light.'",12,0,100,0,0,0,24471,0,"A'dal"),
(18481,11,0,"'Broken, then betrayed by one, standing there bestride the sun.'",12,0,100,0,0,0,24472,0,"A'dal"),
(18481,12,0,"'At darkest hour, redemption comes, in knightly lady sworn to blood.'",12,0,100,0,0,0,24473,0,"A'dal"),
(17076,4,0,"I see it clearly now. I renounce my loyalties to House Sunstrider and its false prince.",12,0,100,1,0,0,24474,0,"Lady Liadrin"),
(17076,5,0,"I pledge the blades of my Blood Knights to the defeat of Kil'jaeden and the restoration of Silvermoon.",12,0,100,1,0,0,24484,0,"Lady Liadrin"),
(17076,6,0,"We will fight beside you, A'dal.",12,0,100,66,0,0,24477,0,"Lady Liadrin"),
(18481,13,0,"The Shattered Sun Offensive will surely benefit from the addition of your knights, Lady Liadrin.",12,0,100,0,0,0,24480,0,"A'dal"),
(18481,14,0,"The battle for the Sunwell is but the first step on your new path, Lady Liadrin. Shattrath is open to you and all who follow you.",12,0,100,0,0,0,24481,0,"A'dal");
@@ -0,0 +1,25 @@
--
-- set creature.modelid to 0 if creature only has a single model defined in creature_template_model and that model matches value in creature table
CREATE TEMPORARY TABLE creature_guids_with_unique_model SELECT
c.guid
FROM
`creature` c
INNER JOIN (
SELECT
SUM(ctm.CreatureDisplayID) AS CreatureDisplayID, -- SUM works around GROUP BY requirementof sql_mode=ONLY_FULL_GROUP_BY, we can do this because we are selecting only 1 row
ctm.CreatureID AS CreatureID
FROM
creature_template_model ctm
GROUP BY
ctm.CreatureID
HAVING
COUNT(ctm.CreatureDisplayID) = 1
) uniq_models ON c.id = uniq_models.CreatureID
AND c.modelid = uniq_models.CreatureDisplayID;
UPDATE `creature` SET `modelid`=0 WHERE `guid` IN (SELECT * FROM creature_guids_with_unique_model);
-- UPDATE `creature` a LEFT JOIN `creature_template` b ON a.`id` = b.`entry` SET `modelid` = 0 WHERE a.`id` IN (SELECT b.`entry` FROM `creature_template` WHERE b.`modelid1` != 0 AND b.`modelid2` = 0 AND b.`modelid3` = 0 AND b.`modelid4` = 0) AND a.`modelid` = b.`modelid1`;
-- UPDATE `creature` a LEFT JOIN `creature_template` b ON a.`id` = b.`entry` SET `modelid` = 0 WHERE a.`id` IN (SELECT b.`entry` FROM `creature_template` WHERE b.`modelid1` = 0 AND b.`modelid2` != 0 AND b.`modelid3` = 0 AND b.`modelid4` = 0) AND a.`modelid` = b.`modelid2`;
-- UPDATE `creature` a LEFT JOIN `creature_template` b ON a.`id` = b.`entry` SET `modelid` = 0 WHERE a.`id` IN (SELECT b.`entry` FROM `creature_template` WHERE b.`modelid1` != 0 AND b.`modelid2` != 0 AND b.`modelid3` != 0 AND b.`modelid4` != 0) AND (a.`modelid` = b.`modelid1` OR a.`modelid` = b.`modelid2` OR a.`modelid` = b.`modelid3` OR a.`modelid` = b.`modelid4`);
UPDATE `creature` SET `modelid` = 0 WHERE `id`=1505;
@@ -0,0 +1,8 @@
--
UPDATE `creature` SET `modelid` = 0 WHERE `modelid`=11686;
UPDATE `creature_template` SET `flags_extra`=`flags_extra`|128 WHERE entry IN (30090,17459,23398);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (-119105) AND `source_type`=0 AND `id`=4;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (-119104) 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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(-119104, 0, 6, 0, 25, 0, 100, 0, 0, 0, 0, 0, 0, 3, 0, 11686, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mistwhisper Lightning Cloud - On reset - Morph invisible'),
(-119105, 0, 4, 0, 25, 0, 100, 0, 0, 0, 0, 0, 0, 3, 0, 11686, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mistwhisper Lightning Cloud - On reset - Morph invisible');
@@ -0,0 +1,34 @@
--
DELETE FROM `smart_scripts` WHERE `entryorguid` = 4546 AND `source_type` = 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(4546,2,0,1,46,0,100,0,4546,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Areatrigger (Sylvanaar) - On Trigger - Store Targetlist"),
(4546,2,1,2,61,0,100,0,0,0,0,0,0,100,1,0,0,0,0,0,19,21469,0,0,0,0,0,0,0,"Areatrigger (Sylvanaar) - On Link - Send Target 1 (Daranelle)"),
(4546,2,2,0,61,0,100,0,0,0,0,0,0,45,0,1,0,0,0,0,19,21469,0,0,0,0,0,0,0,"Areatrigger (Sylvanaar) - On Link - Set Data 0 1 (Daranelle)");
DELETE FROM `areatrigger_scripts` WHERE `entry` = 4546;
INSERT INTO `areatrigger_scripts` (`entry`,`ScriptName`) VALUES
(4546,"SmartTrigger");
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 4546 AND `SourceId` = 2;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(22,1,4546,2,0,1,0,36904,0,0,0,0,0,"","Group 0: Execute SAI (Action 0) if player does have aura 'Lashh'an Channeling'"),
-- Nothing will happen without the guardian https://youtu.be/ckevGJXt-sk?t=45
(22,1,4546,2,0,29,0,21468,20,0,0,0,0,"","Group 0: Execute SAI (Action 0) if creature 'Kaliri Totem' is near");
UPDATE `creature_template` SET `AIName` = "SmartAI", `ScriptName` = "" WHERE `entry` = 21469;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 21469 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(21469,0,0,1,38,0,100,0,0,1,0,0,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Daranelle - On Data Set 0 1 - Say Line 0"),
(21469,0,1,2,61,0,100,0,0,0,0,0,0,11,37028,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Daranelle - On Link - Cast 'Dispelling Analysis'"),
(21469,0,2,0,61,0,100,0,0,0,0,0,0,11,37013,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Daranelle - On Link - Cast 'Despawn Kaliri Totem'");
-- Spawned only by Effect 2 (Spell 36904)
DELETE FROM `event_scripts` WHERE `id` = 12890;
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 13 AND `SourceEntry` = 37013;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(13,1,37013,0,0,31,0,3,21468,0,0,0,0,"","Group 0: Spell 'Despawn Kaliri Totem' targets creature 'Kaliri Totem'");
DELETE FROM `spell_scripts` WHERE `id` = 37013;
INSERT INTO `spell_scripts` (`id`,`effIndex`,`delay`,`command`,`datalong`,`datalong2`,`dataint`,`x`,`y`,`z`,`o`) VALUES
(37013,0,0,18,1000,0,0,0,0,0,0);
@@ -0,0 +1,5 @@
--
DELETE FROM `creature_addon` WHERE `guid` IN (129727, 129769);
INSERT INTO `creature_addon` (`guid`, `auras`) VALUES
(129727, "29266"),
(129769, "29266");
@@ -0,0 +1,2 @@
--
UPDATE `creature_template_movement` SET `Flight`=1 WHERE `CreatureId` IN (23969, 23051);
@@ -0,0 +1,9 @@
--
DELETE FROM `smart_scripts` WHERE `entryorguid`=23941 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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(23941, 0, 0, 0, 11, 0, 100, 0, 0, 15, 0, 0, 0, 42, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Gavis Greyshield - On Respawn - Set Invincible (1 HP)"),
(23941, 0, 1, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 11, 42660, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Gavis Greyshield - Between 0-15% Health - Cast 'Gavis Greyshield Credit' (No Repeat)"),
(23941, 0, 2, 3, 2, 0, 100, 1, 0, 15, 0, 0, 0, 80, 2394100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Gavis Greyshield - Between 0-15% Health - Run Script (No Repeat)"),
(23941, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 0, 102, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Gavis Greyshield - Between 0-15% Health - Disable Health Regen"),
(23941, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 0, 2, 35, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Gavis Greyshield - Between 0-15% Health - Set Faction 35"),
(23941, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 103, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Gavis Greyshield - Between 0-15% Health - Set Root On");
@@ -0,0 +1,2 @@
--
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=9832 AND `SourceEntry` IN (4, 5) AND `ConditionTypeOrReference`=2 AND `ConditionValue1`=31408;
@@ -0,0 +1,2 @@
--
UPDATE `creature_template_movement` SET `Flight`=0, `Rooted`=0 WHERE `CreatureId`=37690;
@@ -0,0 +1,66 @@
--
DELETE FROM `creature_text` WHERE `CreatureID`=17109;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(17109, 0, 0, 'Hahaha! That fool will never find out what I\'m up to! Or, if he does, it\'ll be too late for the draenei!', 12, 0, 100, 11, 0, 0, 14094, 0, 'Cersei Dusksinger'),
(17109, 0, 1, 'These orcs are fools! So much power nearby just waiting to be taken, and all they do is sit on their hands and watch while others plunder the riches!', 12, 0, 100, 5, 0, 0, 14095, 0, 'Cersei Dusksinger'),
(17109, 0, 2, 'I cannot wait to see the results of this latest batch!', 12, 0, 100, 1, 0, 0, 14096, 0, 'Cersei Dusksinger'),
(17109, 0, 3, 'Avuun dares to oppose me?! I will crush him! When I am done with the draenei, they\'ll wish that they were Lost Ones!', 12, 0, 100, 15, 0, 0, 14097, 0, 'Cersei Dusksinger'),
(17109, 0, 4, 'Oh, would you please stop checking your nails and spanking yourself, for one moment? Really, no one cares!', 12, 0, 100, 6, 0, 0, 14098, 0, 'Cersei Dusksinger'),
(17109, 0, 5, 'Are you hungry? I\'m hungry. I just can\'t stand the thought of cured ham steak from Thultash again. If only we could get some of that succulent roasted quail!', 12, 0, 100, 6, 0, 0, 14099, 0, 'Cersei Dusksinger'),
(17109, 1, 0, 'You have something to say to my face?', 12, 0, 100, 6, 0, 0, 14106, 0, 'Cersei Dusksinger'),
(17109, 2, 0, 'I thought not!', 12, 0, 100, 11, 0, 0, 14107, 0, 'Cersei Dusksinger'),
(17109, 3, 0, 'I need some fresh air, not that there\'s any to be had in this swamp! I\'m going out for a bit. Tidy up a bit while I\'m gone, would you?', 12, 0, 100, 1, 0, 0, 14101, 0, 'Cersei Dusksinger'),
(17109, 4, 0, 'Must you follow me everywhere? <sigh>', 12, 0, 100, 6, 0, 0, 14102, 0, 'Cersei Dusksinger');
DELETE FROM `smart_scripts` WHERE `entryorguid`=17109 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid` BETWEEN 1710900 AND 1710907 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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(17109, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Spawn - Set Event Phase 1"),
(17109, 0, 1, 0, 25, 0, 100, 0, 0, 0, 0, 0, 0, 11, 8722, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Reset - Cast Summon Succubus"),
(17109, 0, 2, 0, 1, 1, 100, 0, 5000, 5000, 100000, 100000, 0, 80, 1710900, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - Out of Combat - Run Script 1 (Phase 1)"),
(17109, 0, 3, 0, 1, 2, 100, 0, 100000, 100000, 100000, 100000, 0, 80, 1710901, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - Out of Combat - Run Script 2 (Phase 2)"),
(17109, 0, 4, 0, 40, 0, 100, 0, 2, 1710900, 0, 0, 0, 80, 1710902, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Waypoint 2 Reached (Path 1) - Run Script 3"),
(17109, 0, 5, 0, 40, 0, 100, 0, 4, 1710900, 0, 0, 0, 80, 1710903, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Waypoint 4 Reached (Path 1) - Run Script 4"),
(17109, 0, 6, 0, 1, 4, 100, 0, 100000, 100000, 100000, 100000, 0, 80, 1710904, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - Out of Combat - Run Script 5 (Phase 3)"),
(17109, 0, 7, 0, 1, 8, 100, 0, 100000, 100000, 100000, 100000, 0, 80, 1710905, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - Out of Combat - Run Script 6 (Phase 4)"),
(17109, 0, 8, 0, 40, 0, 100, 0, 4, 1710901, 0, 0, 0, 80, 1710906, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Waypoint 4 Reached (Path 2) - Run Script 7"),
(17109, 0, 9, 0, 40, 0, 100, 0, 8, 1710901, 0, 0, 0, 80, 1710907, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Waypoint 8 Reached (Path 2) - Run Script 8"),
(1710900, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 1 - Set Event Phase 0"),
(1710900, 9, 1, 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, 0, "Cersei Dusksinger - On Script 1 - Say Line 0"),
(1710900, 9, 2, 0, 0, 0, 100, 0, 15000, 15000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 27705, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 1 - Say Line 0 (Lorrin Foxfire)"),
(1710900, 9, 3, 0, 0, 0, 100, 0, 15000, 15000, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 19, 1386, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 1 - Say Line 1 (Rogvar)"),
(1710900, 9, 4, 0, 0, 0, 100, 0, 55000, 55000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 1 - Say Line 0"),
(1710900, 9, 5, 0, 0, 0, 100, 0, 15000, 15000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 27705, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 1 - Say Line 0 (Lorrin Foxfire)"),
(1710900, 9, 6, 0, 0, 0, 100, 0, 15000, 15000, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 19, 1386, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 1 - Say Line 1 (Rogvar)"),
(1710900, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 1 - Set Event Phase 2"),
(1710901, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 2 - Set Event Phase 0"),
(1710901, 9, 1, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 12807, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 2 - Say Line 0 (Greshka)"),
(1710901, 9, 2, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 988, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 2 - Say Line 0 (Kartosh)"),
(1710901, 9, 3, 0, 0, 0, 100, 0, 9000, 9000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 1386, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 2 - Say Line 0 (Rogvar)"),
(1710901, 9, 4, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 53, 0, 1710900, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 2 - Start Waypoint 1"),
(1710902, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 54, 18000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 3 - Pause Waypoint"),
(1710902, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 3 - Say Line 1"),
(1710902, 9, 2, 0, 0, 0, 100, 0, 14000, 14000, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 3 - Say Line 2"),
(1710902, 9, 3, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 0, 5, 14, 0, 0, 0, 0, 0, 19, 12807, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 3 - Play Emote Rude (Greshka)"),
(1710902, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 5, 14, 0, 0, 0, 0, 0, 19, 988, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 3 - Play Emote Rude (Kartosh)"),
(1710902, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 5, 14, 0, 0, 0, 0, 0, 19, 1386, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 3 - Play Emote Rude (Rogvar)"),
(1710903, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0.952855, "Cersei Dusksinger - On Script 4 - Set Orientation"),
(1710903, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 4 - Set Event Phase 3"),
(1710904, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 5 - Set Event Phase 0"),
(1710904, 9, 1, 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, 0, "Cersei Dusksinger - On Script 5 - Say Line 0"),
(1710904, 9, 2, 0, 0, 0, 100, 0, 15000, 15000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 27705, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 5 - Say Line 0 (Lorrin Foxfire)"),
(1710904, 9, 3, 0, 0, 0, 100, 0, 15000, 15000, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 19, 1386, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 5 - Say Line 1 (Rogvar)"),
(1710904, 9, 4, 0, 0, 0, 100, 0, 55000, 55000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 5 - Say Line 0"),
(1710904, 9, 5, 0, 0, 0, 100, 0, 15000, 15000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 27705, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 5 - Say Line 0 (Lorrin Foxfire)"),
(1710904, 9, 6, 0, 0, 0, 100, 0, 15000, 15000, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 19, 1386, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 5 - Say Line 1 (Rogvar)"),
(1710904, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 5 - Set Event Phase 4"),
(1710905, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 6 - Set Event Phase 0"),
(1710905, 9, 1, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 27705, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 6 - Set Orientation"),
(1710905, 9, 2, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 6 - Say Line 3"),
(1710905, 9, 3, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 19, 27705, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 6 - Say Line 1 (Lorrin Foxfire)"),
(1710905, 9, 4, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 53, 0, 1710901, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 6 - Start Waypoint 2"),
(1710906, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 54, 8000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 7 - Pause Waypoint"),
(1710906, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 10928, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 7 - Set Orientation"),
(1710906, 9, 2, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 7 - Say Line 4"),
(1710907, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0.952855, "Cersei Dusksinger - On Script 8 - Set Orientation"),
(1710907, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cersei Dusksinger - On Script 8 - Set Event Phase 1");
@@ -0,0 +1,53 @@
-- Source: CMaNGOS & http://youtube.com/watch?v=1eREORqoCr4 no longer available but some parts are based on it
-- Classic https://www.youtube.com/watch?v=4Mj5tH2goIc
-- Deathstalker Faerleia SAI
SET @ID := 2058;
UPDATE `creature_template` SET `AIName` = "SmartAI", `ScriptName` = "" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` BETWEEN @ID*100+0 AND @ID*100+4 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID,0,0,0,19,0,100,0,452,0,0,0,0,80,@ID*100+0,2,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Quest 'Pyrewood Ambush' Taken - Run Script"),
(@ID*100+0,9,0,0,0,0,100,0,0,0,0,0,0,64,1,0,0,0,0,0,16,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Script - Store Targetlist"),
(@ID*100+0,9,1,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Script - Say Line 0"),
(@ID*100+0,9,2,0,0,0,100,0,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Script - Remove Npc Flag Questgiver"),
(@ID*100+0,9,3,0,0,0,100,0,0,0,0,0,0,2,232,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Script - Set Faction 232"),
(@ID*100+0,9,4,0,0,0,100,0,10000,10000,0,0,0,107,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Script - Summon Group 0"),
(@ID,0,1,0,82,0,100,0,0,0,0,0,0,63,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Summoned Unit Dies - Set Counter 1 1"),
(@ID,0,2,0,77,0,100,0,1,1,0,0,0,80,@ID*100+1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Counter Set 1 1 - Run Script"),
(@ID,0,3,0,77,0,100,0,1,3,0,0,0,80,@ID*100+2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Counter Set 1 3 - Run Script"),
(@ID,0,4,0,77,0,100,0,1,6,0,0,0,80,@ID*100+3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Counter Set 1 6 - Run Script"),
(@ID,0,5,0,77,0,100,0,1,9,0,0,0,80,@ID*100+4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Counter Set 1 9 - Run Script"),
(@ID*100+1,9,1,0,0,0,100,0,10000,10000,0,0,0,107,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Script - Summon Group 1"),
(@ID*100+2,9,1,0,0,0,100,0,10000,10000,0,0,0,107,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Script - Summon Group 2"),
(@ID*100+3,9,1,0,0,0,100,0,8000,8000,0,0,0,107,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Script - Summon Group 3"),
(@ID*100+4,9,0,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,0,"Deathstalker Faerleia - On Script - Say Line 1"),
(@ID*100+4,9,1,0,0,0,100,0,0,0,0,0,0,15,452,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Script - Quest Credit 'Pyrewood Ambush'"),
(@ID*100+4,9,2,0,0,0,100,0,0,0,0,0,0,2,68,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Script - Set Faction 68"),
(@ID*100+4,9,3,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,0,"Deathstalker Faerleia - On Script - Add Npc Flag Questgiver"),
(@ID*100+4,9,5,0,0,0,100,0,0,0,0,0,0,63,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Script - Reset Counter"),
(@ID*100+4,9,6,0,0,0,100,0,0,0,0,0,0,78,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Script - Reset All Scripts"),
(@ID,0,6,0,2,0,100,0,0,20,10000,15000,0,11,3359,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Health pct - Cast 'Drink Potion'"),
(@ID,0,7,0,6,0,100,0,0,0,0,0,0,6,452,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Deathstalker Faerleia - On Death - Fail Quest 'Pyrewood Ambush'");
UPDATE `creature_text` SET `comment` = "Deathstalker Faerleia" WHERE `CreatureID` = @ID;
-- 548 "All is lost!" - probably used on death
DELETE FROM `creature_summon_groups` WHERE `summonerId` = 2058 AND `summonerType` = 0;
INSERT INTO `creature_summon_groups` (`summonerId`,`summonerType`,`groupId`,`entry`,`position_x`,`position_y`,`position_z`,`orientation`,`summonType`,`summonTime`,`Comment`) VALUES
(2058,0,0,2060,-398.35,1510.75,18.87,4.76,4,60000,"Deathstalker Faerleia - Group 0 - Councilman Smithers"),
(2058,0,1,2061,-396.41,1511.06,18.87,4.74,4,60000,"Deathstalker Faerleia - Group 1 - Councilman Thatcher"),
(2058,0,1,2062,-398.35,1510.75,18.87,4.76,4,60000,"Deathstalker Faerleia - Group 1 - Councilman Hendricks"),
-- Not ordered by entry
(2058,0,2,2063,-398.35,1510.75,18.87,4.76,4,60000,"Deathstalker Faerleia - Group 2 - Councilman Wilhelm"),
(2058,0,2,2064,-397.45,1509.56,18.87,4.73,4,60000,"Deathstalker Faerleia - Group 2 - Councilman Hartin"),
(2058,0,2,2066,-396.41,1511.06,18.87,4.74,4,60000,"Deathstalker Faerleia - Group 2 - Councilman Higarth"),
(2058,0,3,2065,-398.35,1510.75,18.87,4.76,4,60000,"Deathstalker Faerleia - Group 3 - Councilman Cooper"),
(2058,0,3,2067,-396.41,1511.06,18.87,4.74,4,60000,"Deathstalker Faerleia - Group 3 - Councilman Brunswick"),
(2058,0,3,2068,-397.45,1509.56,18.87,4.73,4,60000,"Deathstalker Faerleia - Group 3 - Councilman Morrison");
@@ -0,0 +1,89 @@
-- The video from 3.x.x or TBC is no longer available, I used it as source for some parts of this script
-- Videos from classic sometimes looks like they're from private servers
-- Deathstalker Erland SAI
SET @ID := 1978;
UPDATE `creature_template` SET `AIName` = "SmartAI", `ScriptName` = "" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` BETWEEN @ID*100+0 AND @ID*100+5 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID,0,0,0,4,0,50,0,0,0,0,0,0,1,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Aggro - Say Line 8"),
(@ID,0,1,0,19,0,100,0,435,0,0,0,0,80,@ID*100+0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Quest 'Escorting Erland' Taken - Run Script"),
(@ID,0,2,0,40,0,100,0,2,0,0,0,0,80,@ID*100+1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Waypoint 2 Reached - Run Script"),
(@ID,0,3,0,40,0,100,0,14,0,0,0,0,80,@ID*100+2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Waypoint 14 Reached - Run Script"),
(@ID,0,4,0,40,0,100,0,15,0,0,0,0,80,@ID*100+3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Waypoint 15 Reached - Run Script"),
(@ID,0,5,0,40,0,100,0,22,0,0,0,0,80,@ID*100+4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Waypoint 22 Reached - Run Script"),
(@ID,0,6,0,40,0,100,0,23,0,0,0,0,80,@ID*100+5,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Waypoint 23 Reached - Run Script"),
(@ID,0,7,0,6,0,100,0,0,0,0,0,0,6,435,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Deathstalker Erland - On Death - Fail Quest 'Escorting Erland'"),
(@ID*100+0,9,0,0,0,0,100,0,0,0,0,0,0,64,1,0,0,0,0,0,16,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Store Targetlist"),
(@ID*100+0,9,1,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Say Line 0"),
(@ID*100+0,9,2,0,0,0,100,0,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Remove NPC Flag Questgiver"),
-- Aggressive reactstate https://www.wowhead.com/quest=435/escorting-erland#comments:id=140653
(@ID*100+0,9,3,0,0,0,100,0,0,0,0,0,0,53,0,1978,0,0,0,2,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Start Waypoint"),
(@ID*100+1,9,0,0,0,0,100,0,0,0,0,0,0,54,1000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Pause Waypoint"),
(@ID*100+1,9,1,0,0,0,100,0,1000,1000,0,0,0,1,1,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Say Line 1"),
(@ID*100+2,9,0,0,0,0,100,0,0,0,0,0,0,54,1000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Pause Waypoint"),
(@ID*100+2,9,1,0,0,0,100,0,0,0,0,0,0,26,435,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Quest Credit 'Escorting Erland'"),
(@ID*100+2,9,2,0,0,0,100,0,0,0,0,0,0,1,2,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Say Line 2"),
(@ID*100+2,9,3,0,0,0,100,0,0,0,0,0,0,59,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Set Run On"),
(@ID*100+3,9,0,0,0,0,100,0,0,0,0,0,0,54,15000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Pause Waypoint"),
(@ID*100+3,9,1,0,0,0,100,0,0,0,0,0,0,59,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Set Run Off"),
(@ID*100+3,9,2,0,0,0,100,0,0,0,0,0,0,1,3,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Say Line 3"),
(@ID*100+3,9,3,0,0,0,100,0,3000,3000,0,0,0,1,0,0,0,0,0,0,19,1950,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Say Line 0 (Rane Yorick)"),
(@ID*100+3,9,4,0,0,0,100,0,5000,5000,0,0,0,1,4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Say Line 4"),
(@ID*100+3,9,5,0,0,0,100,0,5000,5000,0,0,0,1,5,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Say Line 5"),
(@ID*100+4,9,0,0,0,0,100,0,0,0,0,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Pause Waypoint"),
(@ID*100+4,9,1,0,0,0,100,0,0,0,0,0,0,1,6,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Say Line 6"),
(@ID*100+5,9,0,0,0,0,100,0,0,0,0,0,0,54,35000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Pause Waypoint"),
(@ID*100+5,9,1,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,19,1951,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Say Line 0 (Quinn Yorick)"),
(@ID*100+5,9,2,0,0,0,100,0,5000,5000,0,0,0,1,7,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Say Line 7"),
(@ID*100+5,9,3,0,0,0,100,0,0,0,0,0,0,41,30000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Deathstalker Erland - On Script - Despawn (30000)");
DELETE FROM `creature_text` WHERE `CreatureID` = @ID;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(@ID,0,0,"Let's get to the others, and keep an eye open for those wolves outside...",12,0,100,0,0,0,481,0,"Deathstalker Erland"),
(@ID,1,0,"Be careful, $n. Those wolves like to hide among the trees.",12,0,100,0,0,0,482,0,"Deathstalker Erland"),
(@ID,2,0,"We're almost there!",12,0,100,0,0,0,483,0,"Deathstalker Erland"),
(@ID,3,0,"We made it! Thanks, $n. I couldn't have gotten here without you.",12,0,100,0,0,0,484,0,"Deathstalker Erland"),
(@ID,4,0,"Masses of wolves are to the east, and whoever lived at Malden's Orchard is gone.",12,0,100,0,0,0,535,0,"Deathstalker Erland"),
(@ID,5,0,"If I am excused, then I'd like to check on Quinn...",12,0,100,0,0,0,536,0,"Deathstalker Erland"),
(@ID,6,0,"Hello, Quinn. How are you faring?",12,0,100,0,0,0,537,0,"Deathstalker Erland"),
(@ID,7,0,"Try to take better care of yourself, Quinn. You were lucky this time.",12,0,100,0,0,0,538,0,"Deathstalker Erland"),
(@ID,8,0,"Beware! A $n is upon us!",12,0,100,0,0,0,541,0,"Deathstalker Erland"),
(@ID,8,1,"A $n attacks!",12,0,100,0,0,0,543,0,"Deathstalker Erland"),
(@ID,8,2,"Beware! I am under attack!",12,0,100,0,0,0,544,0,"Deathstalker Erland");
UPDATE `creature_text` SET `comment` = "Rane Yorick" WHERE `CreatureID` = 1950;
UPDATE `creature_text` SET `comment` = "Quinn Yorick" WHERE `CreatureID` = 1951;
DELETE FROM `script_waypoint` WHERE `entry` = 1978;
DELETE FROM `waypoints` WHERE `entry` = 1978;
INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`,`point_comment`) VALUES
(1978,1,1406.32,1083.10,52.55,"Deathstalker Erland"),
(1978,2,1400.49,1080.42,52.50,"Deathstalker Erland"), --
(1978,3,1388.48,1083.10,52.52,"Deathstalker Erland"),
(1978,4,1370.16,1084.02,52.30,"Deathstalker Erland"),
(1978,5,1359.02,1080.85,52.46,"Deathstalker Erland"),
(1978,6,1341.43,1087.39,52.69,"Deathstalker Erland"),
(1978,7,1321.93,1090.51,50.66,"Deathstalker Erland"),
(1978,8,1312.98,1095.91,47.49,"Deathstalker Erland"),
(1978,9,1301.09,1102.94,47.76,"Deathstalker Erland"),
(1978,10,1297.73,1106.35,50.18,"Deathstalker Erland"),
(1978,11,1295.49,1124.32,50.49,"Deathstalker Erland"),
(1978,12,1294.84,1137.25,51.75,"Deathstalker Erland"),
(1978,13,1292.89,1158.99,52.65,"Deathstalker Erland"),
(1978,14,1290.75,1168.67,52.56,"Deathstalker Erland"), --
(1978,15,1287.12,1203.49,52.66,"Deathstalker Erland"), --
(1978,16,1290.72,1207.44,52.69,"Deathstalker Erland"),
(1978,17,1297.50,1207.18,53.74,"Deathstalker Erland"),
(1978,18,1301.32,1220.90,53.74,"Deathstalker Erland"),
(1978,19,1298.55,1220.43,53.74,"Deathstalker Erland"),
(1978,20,1297.38,1212.87,58.51,"Deathstalker Erland"),
(1978,21,1297.80,1210.04,58.51,"Deathstalker Erland"),
(1978,22,1305.01,1206.10,58.51,"Deathstalker Erland"), --
(1978,23,1310.51,1207.36,58.51,"Deathstalker Erland"); --
@@ -0,0 +1,24 @@
-- Tanaris
-- [Q] Rumors for Kravel -- http://wotlk.openwow.com/quest=1117
-- https://www.youtube.com/watch?reload=9&v=9bW2cscKMc8
-- (c) Toxic/ICC
-- Kravel Koalbeard SAI
SET @ID := 4452;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ID;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ID AND `source_type`=0 and `id` =3;
INSERT INTO `smart_scripts`(`entryorguid`, `id`, `event_type`, `event_chance`, `event_param1`, `action_type`, `action_param1`, `target_type`, `comment`) VALUES
(@ID, 3, 20, 100, 1117, 80, @ID*100+2, 1, 'Kravel Koalbeard - On Quest \'Rumors for Kravel\' Finished - Run Script');
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ID*100+2 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
(@ID*100+2,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,"Kravel Koalbeard - On Script - Remove Npc Flag Questgiver"),
(@ID*100+2,9,1,0,0,0,100,0,1000,1000,0,0,1,6,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kravel Koalbeard - On Script - Say Line 6"),
(@ID*100+2,9,2,0,0,0,100,0,1000,1000,0,0,5,94,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kravel Koalbeard - On Script - Emote Dance"),
(@ID*100+2,9,3,0,0,0,100,0,5000,5000,0,0,5,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kravel Koalbeard - On Script - Emote None"),
(@ID*100+2,9,4,0,0,0,100,0,1000,1000,0,0,1,7,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kravel Koalbeard - On Script - Say Line 7"),
(@ID*100+2,9,5,0,0,0,100,0,2000,2000,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kravel Koalbeard - On Script - Add Npc Flag Questgiver");
DELETE FROM `creature_text` WHERE `CreatureID`=@ID AND `GroupID` IN (6,7);
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(@ID,6,0,"%s begins to dance.",16,0,100,0,0,0,1480,0,"Kravel Koalbeard"),
(@ID,7,0,"Hahah! $n, you make quite a partner!",12,0,100,11,0,0,1481,0,"Kravel Koalbeard");
@@ -0,0 +1,8 @@
--
DELETE FROM `creature_template_addon` WHERE `entry` IN (32149,32255);
INSERT INTO `creature_template_addon` (`entry`, `bytes1`, `bytes2`, `auras`) VALUES
(32149, 0, 1, "54262"),
(32255, 0, 1, "54262 60231");
UPDATE `creature` SET `modelid`=27774 WHERE `id`=32257;
UPDATE `creature` SET `modelid`=25796 WHERE `guid`IN (123325,123293,123294,123295,123296,123297,123298,123299,123300,123301,123302,123303,123323,123321,123320,123307,123324,123315,123310,123311,123312);
UPDATE `creature` SET `modelid`=27775 WHERE `guid`IN (123313,123314,123309,123316,123317,123318,123319,123306,123305,123322,123304,123308,123292);
@@ -0,0 +1,148 @@
UPDATE `creature_template` SET `faction`=104, `unit_flags`=`unit_flags`&~512 WHERE `entry`=10600;
UPDATE `creature_template` SET `type_flags`=8, `flags_extra`=`flags_extra`|0x40000000 WHERE `entry` IN (10599, 10600);
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry` IN (3063, 10599, 10600, 10721);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (3063, 10599, 10600, 10721) AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (306300, 306301, 1059900, 1059901, 1059902, 1059903, 1059904, 1060000, 1060001, 1060002, 1060003, 1060004, 1072100, 1072101, 1072102, 1072103, 1072104, 1072105) 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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(3063, 0, 0, 0, 1, 0, 100, 0, 5000, 5000, 780000, 900000, 0, 80, 306300, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - OOC - Run Script"),
(3063, 0, 1, 0, 1, 1, 100, 0, 0, 0, 8000, 8000, 0, 45, 3, 3, 0, 0, 0, 0, 9, 10721, 0, 100, 0, 0, 0, 0, 0, "Krang Stonehoof - OOC - Set Data 3 3 (Novice Warrior)"),
(3063, 0, 2, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - On Data 1 1 Set - Say Line 3"),
(3063, 0, 3, 0, 38, 0, 100, 0, 2, 2, 0, 0, 0, 80, 306301, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - On Data 2 2 Set - Run Script"),
(306300, 9, 0, 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, 0, "Krang Stonehoof - On Script - Say Line 0"),
(306300, 9, 1, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 10599, 100, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Set Data 1 1 (Hulfnar Stonetotem)"),
(306300, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 10600, 100, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Set Data 1 1 (Thontek Rumblehoof)"),
(306300, 9, 3, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Say Line 1"),
(306300, 9, 4, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 9, 10721, 0, 100, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Set Data 1 1 (Novice Warrior)"),
(306300, 9, 5, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 19, 10599, 100, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Set Data 2 2 (Hulfnar Stonetotem)"),
(306300, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 19, 10600, 100, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Set Data 2 2 (Thontek Rumblehoof)"),
(306300, 9, 7, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Say Line 2"),
(306300, 9, 8, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 9, 10721, 0, 100, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Set Data 2 2 (Novice Warrior)"),
(306300, 9, 9, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Set Event Phase 1"),
(306301, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Set Event Phase 0"),
(306301, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Say Line 4"),
(306301, 9, 2, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Say Line 5"),
(306301, 9, 3, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Say Line 6"),
(306301, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 4, 4, 0, 0, 0, 0, 9, 10721, 0, 100, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Set Data 4 4 (Novice Warrior)"),
(306301, 9, 5, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 1, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Say Line 7"),
(306301, 9, 6, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 5, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Play Emote Bow"),
(306301, 9, 7, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 0, 1, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Krang Stonehoof - On Script - Say Line 8"),
(10721, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 91, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Novice Warrior - On Data 1 1 Set - Remove Standstate Sit"),
(10721, 0, 1, 0, 38, 0, 100, 0, 2, 2, 0, 0, 0, 5, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Novice Warrior - On Data 2 2 Set - Play Emote Cheer"),
(10721, 0, 2, 0, 38, 0, 100, 0, 3, 3, 0, 0, 0, 88, 1072100, 1072104, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Novice Warrior - On Data 3 3 Set - Play Emote Cheer"),
(10721, 0, 3, 0, 38, 0, 100, 0, 4, 4, 0, 0, 0, 80, 1072105, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Novice Warrior - On Data 4 4 Set - Run Script"),
(1072100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 5, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Novice Warrior - On Script - Play Emote Cheer"),
(1072101, 9, 0, 0, 0, 0, 100, 0, 1500, 1500, 0, 0, 0, 5, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Novice Warrior - On Script - Play Emote Cheer"),
(1072102, 9, 0, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 5, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Novice Warrior - On Script - Play Emote Cheer"),
(1072103, 9, 0, 0, 0, 0, 100, 0, 4500, 4500, 0, 0, 0, 5, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Novice Warrior - On Script - Play Emote Cheer"),
(1072104, 9, 0, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 0, 5, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Novice Warrior - On Script - Play Emote Cheer"),
(1072105, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 90, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Novice Warrior - On Script - Set Standstate Sit"),
(10599, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 80, 1059900, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Data 1 1 Set - Run Script"),
(10599, 0, 1, 0, 38, 0, 100, 0, 2, 2, 0, 0, 0, 80, 1059901, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Data 2 2 Set - Run Script"),
(10599, 0, 2, 0, 0, 1, 100, 0, 8000, 20000, 8000, 20000, 0, 80, 1059902, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - In Combat - Run Script (Phase 1)"),
(10599, 0, 3, 0, 2, 1, 100, 1, 0, 15, 0, 0, 0, 11, 17648, 0, 0, 0, 0, 0, 19, 10600, 100, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Health Below 15% - Cast 'Surrender' (Thontek Rumblehoof) (Phase 1)"),
(10599, 0, 4, 5, 8, 0, 100, 0, 17648, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On SpellHit 'Surrender' - Set ReactState Passive"),
(10599, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 0, 46, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On SpellHit 'Surrender' - Stop Attack"),
(10599, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 0, 11, 17649, 0, 0, 0, 0, 0, 19, 10600, 100, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On SpellHit 'Surrender' - Cast 'Accept Surrender' (Thontek Rumblehoof)"),
(10599, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 80, 1059903, 2, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On SpellHit 'Surrender' - Run Script"),
(10599, 0, 8, 9, 8, 0, 100, 0, 17649, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On SpellHit 'Accept Surrender' - Set ReactState Passive"),
(10599, 0, 9, 10, 61, 0, 100, 0, 0, 0, 0, 0, 0, 46, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On SpellHit 'Accept Surrender' - Stop Attack"),
(10599, 0, 10, 11, 61, 0, 100, 0, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 19, 3063, 100, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On SpellHit 'Accept Surrender' - Set Data 2 2 (Krang Stonehoof)"),
(10599, 0, 11, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 80, 1059903, 2, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On SpellHit 'Accept Surrender' - Run Script"),
(10599, 0, 12, 0, 34, 0, 100, 0, 0, 1, 0, 0, 0, 80, 1059904, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On MovePoint 1 Reached - Run Script"),
(1059900, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 91, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Data 1 1 Set - Remove Standstate Sit"),
(1059900, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Set Run Off"),
(1059900, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 114, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 3, 0, 0, "Hulfnar Stonetotem - On Data 1 1 Set - Move Forward"),
(1059900, 9, 3, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 3063, 100, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Face Krang Stonehoof"),
(1059900, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Set Run On"),
(1059900, 9, 5, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 5, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Play Emote Bow"),
(1059901, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 10600, 100, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Face Thontek Rumblehoof"),
(1059901, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Say Line 0"),
(1059901, 9, 2, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Say Line 1"),
(1059901, 9, 3, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 5, 15, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Play Emote Roar"),
(1059901, 9, 4, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 2, 1606, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Set Faction"),
(1059901, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Set Event Phase 1"),
(1059901, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 10600, 100, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Attack Thontek Rumblehoof"),
(1059902, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 11, 16740, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Cast 'War Stomp'"),
(1059902, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 3063, 100, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Set Data 1 1 (Krang Stonehoof)"),
(1059903, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Set Event Phase 0"),
(1059903, 9, 1, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 5, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Play Emote Bow"),
(1059903, 9, 2, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 3063, 100, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Face Krang Stonehoof"),
(1059903, 9, 3, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 5, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Play Emote Bow"),
(1059903, 9, 4, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Set Run Off"),
(1059903, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, -2360.290039, -519.245972, -9.299930, 0, "Hulfnar Stonetotem - On Script - Move To Pos"),
(1059904, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 117, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Disable Evade Mode"),
(1059904, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Reset Orienation"),
(1059904, 9, 2, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 117, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Enable Evade Mode"),
(1059904, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Set Run On"),
(1059904, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 2, 104, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Set Faction"),
(1059904, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Set ReactState Aggressive"),
(1059904, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Hulfnar Stonetotem - On Script - Enter Evade Mode"),
(10600, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 80, 1060000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Data 1 1 Set - Run Script"),
(10600, 0, 1, 0, 38, 0, 100, 0, 2, 2, 0, 0, 0, 80, 1060001, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Data 2 2 Set - Run Script"),
(10600, 0, 2, 0, 0, 1, 100, 0, 8000, 20000, 8000, 20000, 0, 80, 1060002, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - In Combat - Run Script (Phase 1)"),
(10600, 0, 3, 0, 2, 1, 100, 1, 0, 15, 0, 0, 0, 11, 17648, 0, 0, 0, 0, 0, 19, 10599, 100, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Health Below 15% - Cast 'Surrender' (Hulfnar Stonetotem) (Phase 1)"),
(10600, 0, 4, 5, 8, 0, 100, 0, 17648, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On SpellHit 'Surrender' - Set ReactState Passive"),
(10600, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 0, 46, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On SpellHit 'Surrender' - Stop Attack"),
(10600, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 0, 11, 17649, 0, 0, 0, 0, 0, 19, 10599, 100, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On SpellHit 'Surrender' - Cast 'Accept Surrender' (Hulfnar Stonetotem)"),
(10600, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 80, 1060003, 2, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On SpellHit 'Surrender' - Run Script"),
(10600, 0, 8, 9, 8, 0, 100, 0, 17649, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On SpellHit 'Accept Surrender' - Set ReactState Passive"),
(10600, 0, 9, 10, 61, 0, 100, 0, 0, 0, 0, 0, 0, 46, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On SpellHit 'Accept Surrender' - Stop Attack"),
(10600, 0, 10, 11, 61, 0, 100, 0, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 19, 3063, 100, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On SpellHit 'Accept Surrender' - Set Data 2 2 (Krang Stonehoof)"),
(10600, 0, 11, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 80, 1060003, 2, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On SpellHit 'Accept Surrender' - Run Script"),
(10600, 0, 12, 0, 34, 0, 100, 0, 0, 1, 0, 0, 0, 80, 1060004, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On MovePoint 1 Reached - Run Script"),
(1060000, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 91, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Remove Standstate Sit"),
(1060000, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Set Run Off"),
(1060000, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 114, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 3, 0, 0, "Thontek Rumblehoof - On Script - Move Forward"),
(1060000, 9, 3, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 3063, 100, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Face Krang Stonehoof"),
(1060000, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Set Run On"),
(1060000, 9, 5, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 5, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Play Emote Bow"),
(1060001, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 10599, 100, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Face Hulfnar Stonetotem"),
(1060001, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Say Line 0"),
(1060001, 9, 2, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 5, 25, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Play Emote Point"),
(1060001, 9, 3, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 0, 4, 6278, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Play Sound"),
(1060001, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 5, 15, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Play Emote Roar"),
(1060001, 9, 5, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 2, 1606, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Set Faction"),
(1060001, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Set Event Phase 1"),
(1060001, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 10599, 100, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Attack Hulfnar Stonetotem"),
(1060002, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 11, 16740, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Cast 'War Stomp'"),
(1060002, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 3063, 100, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Set Data 1 1 (Krang Stonehoof)"),
(1060003, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Set Event Phase 0"),
(1060003, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 5, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Play Emote Bow"),
(1060003, 9, 2, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 3063, 100, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Face Krang Stonehoof"),
(1060003, 9, 3, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 5, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Play Emote Bow"),
(1060003, 9, 4, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Set Run Off"),
(1060003, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, -2333.959961, -512.051025, -9.299930, 0, "Thontek Rumblehoof - On Script - Move To Pos"),
(1060004, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 117, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Disable Evade Mode"),
(1060004, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Reset Orienation"),
(1060004, 9, 2, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 117, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Enable Evade Mode"),
(1060004, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Set Run On"),
(1060004, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 2, 104, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Set Faction"),
(1060004, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Set ReactState Aggressive"),
(1060004, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Thontek Rumblehoof - On Script - Enter Evade Mode");
DELETE FROM `creature_text` WHERE `CreatureID` IN (3063, 10599, 10600);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(3063, 0, 0, "Hulfnar! Thontek! Stand and address me.", 12, 3, 100, 1, 0, 0, 6005, 0, "Krang Stonehoof"),
(3063, 1, 0, "I want you both to demonstrate the techniques I have taught you for the benefit of the younger students here. Ready... begin!", 12, 3, 100, 1, 0, 0, 6020, 0, "Krang Stonehoof"),
(3063, 2, 0, "Enough talk you two! Commence fighting!", 12, 3, 100, 22, 0, 0, 6025, 0, "Krang Stonehoof"),
(3063, 3, 0, "Now that's a War Stomp! Good job!", 12, 3, 100, 21, 0, 0, 6072, 0, "Krang Stonehoof"),
(3063, 3, 1, "That's how it's done class! You better be paying attention!", 12, 3, 100, 21, 0, 0, 6073, 0, "Krang Stonehoof"),
(3063, 3, 2, "Now that's putting your hoof down!", 12, 3, 100, 21, 0, 0, 6074, 0, "Krang Stonehoof"),
(3063, 4, 0, "Ish nu! That's enough!", 12, 3, 100, 1, 0, 0, 6091, 0, "Krang Stonehoof"),
(3063, 5, 0, "Well Done!", 12, 3, 100, 1, 0, 6575, 6038, 0, "Krang Stonehoof"),
(3063, 6, 0, "Good, good. Now bow to each other.", 12, 3, 100, 1, 0, 0, 6098, 0, "Krang Stonehoof"),
(3063, 7, 0, "Now bow to me.", 12, 3, 100, 1, 0, 0, 6099, 0, "Krang Stonehoof"),
(3063, 8, 0, "Good job you two. Now go have a seat.", 12, 3, 100, 1, 0, 0, 6100, 0, "Krang Stonehoof"),
(10599, 0, 0, "Start running!", 12, 3, 100, 25, 0, 6280, 5966, 0, "Hulfnar Stonetotem"),
(10599, 1, 0, "Bring it on!", 12, 3, 100, 22, 0, 6281, 5967, 0, "Hulfnar Stonetotem"),
(10600, 0, 0, "Do not push me, or I will impale you on my horns!", 12, 3, 100, 22, 0, 6277, 5968, 0, "Thontek Rumblehoof");
UPDATE `creature` SET `modelid`=0 WHERE id=10721;
@@ -0,0 +1,24 @@
--
UPDATE `creature_addon` SET `emote`=0 WHERE `guid`=6460;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=3191;
DELETE FROM `smart_scripts` WHERE `entryorguid`=3191 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (319100, 319101, 319102) 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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(3191, 0, 0, 0, 1, 0, 100, 0, 5000, 5000, 80000, 120000, 0, 80, 319100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cook Torka - OOC - Run Script"),
(3191, 0, 1, 0, 40, 0, 100, 0, 1, 3191, 0, 0, 0, 80, 319101, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cook Torka - On WP 1 Reached - Run Script"),
(3191, 0, 2, 0, 40, 0, 100, 0, 2, 3191, 0, 0, 0, 80, 319102, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cook Torka - On WP 2 Reached - Run Script"),
(319100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 20, 18075, 20, 0, 0, 0, 0, 0, 0, "Cook Torka - On Script - Face Cooking Table"),
(319100, 9, 1, 0, 0, 0, 100, 0, 200, 200, 0, 0, 0, 5, 25, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cook Torka - On Script - Play Emote Point"),
(319100, 9, 2, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 20, 18079, 20, 0, 0, 0, 0, 0, 0, "Cook Torka - On Script - Face Bubbling Cauldron"),
(319100, 9, 3, 0, 0, 0, 100, 0, 200, 200, 0, 0, 0, 5, 25, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cook Torka - On Script - Play Emote Point"),
(319100, 9, 4, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 53, 0, 3191, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cook Torka - On Script - Start WP"),
(319101, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 54, 60000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cook Torka - On Script - Pause WP"),
(319101, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cook Torka - On Script - Set Emote State STATE_USESTANDING"),
(319101, 9, 2, 0, 0, 0, 100, 0, 20000, 50000, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cook Torka - On Script - Remove Emote State"),
(319101, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 65, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Cook Torka - On Script - Resume WP"),
(319102, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 4.171340, "Cook Torka - On Script - Reset Orientation");
DELETE FROM `waypoints` WHERE `entry`=3191;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(3191, 1, 310.098022, -4663.778809, 16.389601, "Cook Torka"),
(3191, 2, 312.098999, -4664.950195, 16.4254, "Cook Torka");
@@ -0,0 +1,24 @@
--
UPDATE `areatrigger_scripts` SET `ScriptName` = "SmartTrigger" WHERE `entry` = 4960;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 4960 AND `source_type` = 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(4960,2,0,1,46,0,100,0,4960,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Areatrigger (Agmar's Hammer) - On Trigger - Store Targetlist"),
(4960,2,1,2,61,0,100,0,0,0,0,0,0,100,1,0,0,0,0,0,19,26649,0,0,0,0,0,0,0,"Areatrigger (Agmar's Hammer) - On Link - Send Target 1 (Messenger Torvus)"),
(4960,2,2,0,61,0,100,0,0,0,0,0,0,45,0,1,0,0,0,0,19,26649,0,0,0,0,0,0,0,"Areatrigger (Agmar's Hammer) - On Link - Set Data 0 1 (Messenger Torvus)");
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 4960 AND `SourceId` = 2;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
-- CanTakeQuest (level checks) are not included because https://www.wowhead.com/npc=26649/messenger-torvus#comments:id=441648
(22,1,4960,2,0,8,0,11916,0,0,0,0,0,"","Group 0: Execute SAI (Action 0) if quest 'Hellscream's Champion' is rewarded"),
(22,1,4960,2,0,9,0,12033,0,0,1,0,0,"","Group 0: Execute SAI (Action 0) if player has not taken quest 'Message from the West'"),
(22,1,4960,2,0,28,0,12033,0,0,1,0,0,"","Group 0: Execute SAI (Action 0) if quest 'Message from the West' is not completed");
-- Handled in core
-- (22,1,4960,2,0,36,0,0,0,0,0,0,0,"","Group 0: Execute SAI (Action 0) if player is alive");
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = 26649;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 26649 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
-- No timer?
(26649,0,0,0,38,0,100,0,0,1,30000,30000,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Messenger Torvus - On Data Set 0 1 - Say Line 0");
UPDATE `creature_text` SET `comment` = "Messenger Torvus" WHERE `CreatureID` = 26649;
@@ -0,0 +1,9 @@
--
UPDATE `smart_scripts` SET `target_type` = 19, `target_param1` = 11152, `target_param2` = 0 WHERE `entryorguid` IN (2246,2248,2250,2252,2626,2627,2628,2629,2630,2631,2632,2633,2634,2635,2636,2637) AND `source_type` = 2 AND `id` = 0;
UPDATE `smart_scripts` SET `target_type` = 19, `target_param1` = 7917, `target_param2` = 0 WHERE `entryorguid` = 1125 AND `source_type` = 2 AND `id` IN (1,2);
UPDATE `smart_scripts` SET `target_type` = 19, `target_param1` = 20242, `target_param2` = 0 WHERE `entryorguid` = 4495 AND `source_type` = 2 AND `id` IN (1,2);
UPDATE `smart_scripts` SET `target_type` = 19, `target_param1` = 19227, `target_param2` = 0 WHERE `entryorguid` = 4389 AND `source_type` = 2 AND `id` IN (1,2);
UPDATE `smart_scripts` SET `comment` = "Areatrigger (Lower City) - On Trigger - Store Targetlist" WHERE `entryorguid` = 4389 AND `source_type` = 2 AND `id` = 0;
UPDATE `smart_scripts` SET `comment` = "Areatrigger (Lower City) - On Link - Send Target 1 (Griftah)" WHERE `entryorguid` = 4389 AND `source_type` = 2 AND `id` = 1;
UPDATE `smart_scripts` SET `comment` = "Areatrigger (Lower City) - On Link - Set Data 0 1 (Griftah)" WHERE `entryorguid` = 4389 AND `source_type` = 2 AND `id` = 2;
@@ -0,0 +1,20 @@
--
DELETE FROM `smart_scripts` WHERE `entryorguid`=15420 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=1542000 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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(15420, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Prospector Anvilward - On Respawn - Set Event Phase 1"),
(15420, 0, 1, 0, 1, 1, 100, 0, 10000, 10000, 270000, 330000, 0, 80, 1542000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Prospector Anvilward - Out of Combat - Run Script (Phase 1)"),
(15420, 0, 2, 3, 62, 0, 100, 0, 21311, 0, 0, 0, 0, 53, 0, 15420, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Prospector Anvilward - On Gossip Option 0 Selected - Start Waypoint"),
(15420, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, "Prospector Anvilward - On Gossip Option 0 Selected - Close Gossip"),
(15420, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Prospector Anvilward - On Gossip Option 0 Selected - Remove Npc Flag Gossip"),
(15420, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Prospector Anvilward - On Gossip Option 0 Selected - Set Event Phase 0"),
(15420, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, "Prospector Anvilward - On Gossip Option 0 Selected - Say Line 0"),
(15420, 0, 7, 8, 40, 0, 100, 0, 8, 15420, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Prospector Anvilward - On Waypoint 8 Reached - Say Line 1"),
(15420, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 2, 24, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Prospector Anvilward - On Waypoint 8 Reached - Set Faction 24"),
(1542000, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Prospector Anvilward - Out Of Combat - Say Line 2"),
(1542000, 9, 1, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 15405, 50, 0, 0, 0, 0, 0, 0, "Prospector Anvilward - Out Of Combat - Say Line 0 (Ley-Keeper Caidanis)");
DELETE FROM `waypoints` WHERE `entry`=15420 AND `pointid` IN (7, 8);
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(15420, 7, 9289.319336, -6657.801270, 31.828445, "Prospector Anvilward"),
(15420, 8, 9289.892578, -6657.924316, 31.827124, "Prospector Anvilward");
@@ -0,0 +1,15 @@
DELETE FROM `gossip_menu` WHERE `MenuID`=5747 AND `TextID`=6926;
INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES
(5747, 6926);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=14 AND `SourceGroup`=5747 AND `SourceEntry` IN (6926, 6925);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=19 AND `SourceEntry` IN (7483, 7484, 7485);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(14, 5747, 6926, 0, 0, 8, 0, 7481, 0, 0, 0, 0, 0, "", "Gossip Text 6926 requires quest 'Elven Legends' (Horde) rewarded OR"),
(14, 5747, 6926, 0, 1, 8, 0, 7482, 0, 0, 0, 0, 0, "", "Gossip Text 6926 requires quest 'Elven Legends' (Alliance) rewarded "),
(19, 0, 7483, 0, 0, 8, 0, 7481, 0, 0, 0, 0, 0, "", "Quest 'Libram of Rapidity' is available if player has quest 'Elven Legends' (Horde) rewarded OR"),
(19, 0, 7483, 0, 1, 8, 0, 7482, 0, 0, 0, 0, 0, "", "Quest 'Libram of Rapidity' is available if player has quest 'Elven Legends' (Alliance) rewarded"),
(19, 0, 7484, 0, 0, 8, 0, 7481, 0, 0, 0, 0, 0, "", "Quest 'Libram of Focus' is available if player has quest 'Elven Legends' (Horde) rewarded OR"),
(19, 0, 7484, 0, 1, 8, 0, 7482, 0, 0, 0, 0, 0, "", "Quest 'Libram of Focus' is available if player has quest 'Elven Legends' (Alliance) rewarded"),
(19, 0, 7485, 0, 0, 8, 0, 7481, 0, 0, 0, 0, 0, "", "Quest 'Libram of Protection' is available if player has quest 'Elven Legends' (Horde) rewarded OR"),
(19, 0, 7485, 0, 1, 8, 0, 7482, 0, 0, 0, 0, 0, "", "Quest 'Libram of Protection' is available if player has quest 'Elven Legends' (Alliance) rewarded");
@@ -0,0 +1,6 @@
--
DELETE FROM `areatrigger_scripts` WHERE `entry`=4071;
DELETE FROM `smart_scripts` WHERE `entryorguid`=4071 AND `source_type`=2;
DELETE FROM `smart_scripts` WHERE `entryorguid`=16295 AND `source_type`=0 AND `id`=8;
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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(16295, 0, 8, 0, 1, 1, 100, 0, 20000, 40000, 60000, 180000, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Ranger Lilatha - OOC - Say Line 6 (Phase 1)");
@@ -0,0 +1,84 @@
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=23038;
UPDATE `creature` SET `orientation`=0.049211 WHERE `id`=23038;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (23038, 23042) AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (2303800, 2304200, 2304201, 2304202, 2304203) 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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(23042, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Spawn - Set Event Phase 1"),
(23042, 0, 1, 0, 19, 1, 100, 0, 11004, 0, 0, 0, 0, 80, 2304200, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Quest 'World of Shadows' Taken - Run Script (Event Phase 1)"),
(23042, 0, 2, 0, 20, 1, 100, 0, 11004, 0, 0, 0, 0, 80, 2304201, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Quest 'World of Shadows' Rewarded - Run Script (Event Phase 1)"),
(23042, 0, 3, 4, 38, 0, 100, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Data 1 1 Set - Say Line 1"),
(23042, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 53, 1, 2304200, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Data 1 1 Set - Start WP"),
(23042, 0, 5, 0, 40, 0, 100, 0, 1, 2304200, 0, 0, 0, 80, 2304202, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On WP 1 Reached - Run Script"),
(23042, 0, 6, 0, 40, 0, 100, 0, 1, 2304201, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 4.555310, "Severin - On WP 1 Reached - Reset Orientation"),
(23042, 0, 7, 0, 38, 0, 100, 0, 2, 2, 0, 0, 0, 80, 2304203, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Data 2 2 Set - Run Script"),
(23038, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Spawn - Set Event Phase 1"),
(23038, 0, 1, 2, 38, 0, 100, 0, 1, 1, 0, 0, 0, 91, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Data 1 1 Set - Remove StandState Sit"),
(23038, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Data 1 1 Set - Set StandState Kneel"),
(23038, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Data 1 1 Set - Say Line 1"),
(23038, 0, 4, 5, 38, 0, 100, 0, 2, 2, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 5.794490, "Sky Commander Adaris - On Data 2 2 Set - Set Orientation"),
(23038, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Data 2 2 Set - Say Line 2"),
(23038, 0, 6, 7, 38, 0, 100, 0, 3, 3, 0, 0, 0, 40, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Data 3 3 Set - Unsheathe Melee Weapon"),
(23038, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 53, 1, 2303800, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Data 3 3 Set - Start WP"),
(23038, 0, 8, 0, 40, 0, 100, 0, 1, 2303800, 0, 0, 0, 80, 2303800, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On WP 1 Reached - Run Script"),
(23038, 0, 9, 10, 40, 0, 100, 0, 1, 2303801, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0.049211, "Sky Commander Adaris - On WP 1 Reached - Reset Orientation"),
(23038, 0, 10, 11, 61, 0, 100, 0, 0, 0, 0, 0, 0, 40, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On WP 1 Reached - Sheathe Melee Weapon"),
(23038, 0, 11, 12, 61, 0, 100, 0, 0, 0, 0, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On WP 1 Reached - Set StandState Kneel"),
(23038, 0, 12, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 19, 23042, 10, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On WP 1 Reached - Set Data 2 2 (Severin)"),
(2303800, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 23042, 50, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Set Data 1 1 (Severin)"),
(2303800, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 5.168708, "Sky Commander Adaris - On Script - Set Orientation"),
(2303800, 9, 2, 0, 0, 0, 100, 0, 400, 400, 0, 0, 0, 5, 54, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Play Emote ONESHOT_ATTACK1H"),
(2303800, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 12, 23207, 3, 18000, 0, 0, 0, 8, 0, 0, 0, 0, -3399.783447, 3614.886719, 276.369293, 2.089945, "Sky Commander Adaris - On Script - Summon Creature 'Skettis Assassin'"),
(2303800, 9, 4, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 6.268262, "Sky Commander Adaris - On Script - Set Orientation"),
(2303800, 9, 5, 0, 0, 0, 100, 0, 400, 400, 0, 0, 0, 5, 54, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Play Emote ONESHOT_ATTACK1H"),
(2303800, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 12, 23207, 3, 18000, 0, 0, 0, 8, 0, 0, 0, 0, -3397.512207, 3617.134766, 276.865234, 3.028496, "Sky Commander Adaris - On Script - Summon Creature 'Skettis Assassin'"),
(2303800, 9, 7, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Say Line 3"),
(2303800, 9, 8, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 53, 0, 2303801, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Start WP"),
(2304200, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Script - Set Event Phase 0"),
(2304200, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 23038, 10, 0, 0, 0, 0, 0, 0, "Severin - On Script - Say Line 0 (Sky Commander Adaris)"),
(2304200, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Script - Set StandState Kneel"),
(2304200, 9, 3, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Script - Say Line 0"),
(2304200, 9, 4, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 0, 91, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Script - Remove StandState Kneel"),
(2304200, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Script - Set Event Phase 1"),
(2304201, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Script - Set Event Phase 0"),
(2304201, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 83, 3, 0, 0, 0, 0, 0, 19, 23038, 10, 0, 0, 0, 0, 0, 0, "Severin - On Script - Remove Gossip+Questgiver Npcflag (Sky Commander Adaris)"),
(2304201, 9, 2, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 23038, 10, 0, 0, 0, 0, 0, 0, "Severin - On Script - Set Data 1 1 (Sky Commander Adaris)"),
(2304201, 9, 3, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 0, 91, 8, 0, 0, 0, 0, 0, 19, 23038, 10, 0, 0, 0, 0, 0, 0, "Severin - On Script - Remove StandState Kneel (Sky Commander Adaris)"),
(2304201, 9, 4, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 19, 23038, 10, 0, 0, 0, 0, 0, 0, "Severin - On Script - Set Data 2 2 (Sky Commander Adaris)"),
(2304201, 9, 5, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 0, 45, 3, 3, 0, 0, 0, 0, 19, 23038, 10, 0, 0, 0, 0, 0, 0, "Severin - On Script - Set Data 3 3 (Sky Commander Adaris)"),
(2304202, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 5.01555, "Severin - On Script - Set Orientation"),
(2304202, 9, 1, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 0, 53, 0, 2304201, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Script - Start WP"),
(2304203, 9, 0, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 19, 23038, 10, 0, 0, 0, 0, 0, 0, "Severin - On Script - Say Line 4 (Sky Commander Adaris)"),
(2304203, 9, 1, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Script - Say Line 2"),
(2304203, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Script - Set StandState Kneel"),
(2304203, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 91, 8, 0, 0, 0, 0, 0, 19, 23038, 10, 0, 0, 0, 0, 0, 0, "Severin - On Script - Remove StandState Kneel (Sky Commander Adaris)"),
(2304203, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 90, 1, 0, 0, 0, 0, 0, 19, 23038, 10, 0, 0, 0, 0, 0, 0, "Severin - On Script - Set StandState Sit (Sky Commander Adaris)"),
(2304203, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 82, 3, 0, 0, 0, 0, 0, 19, 23038, 10, 0, 0, 0, 0, 0, 0, "Severin - On Script - Set Gossip+Questgiver Npcflag (Sky Commander Adaris)"),
(2304203, 9, 6, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 0, 91, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Script - Remove StandState Kneel"),
(2304203, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Script - Set Event Phase 1");
DELETE FROM `creature_text` WHERE `CreatureID` IN (23042, 23038) AND `GroupID`!=0;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(23038, 1, 0, "The elixir... give it to me, Severin!", 12, 0, 100, 0, 0, 0, 21083, 0, "Sky Commander Adaris"),
(23038, 2, 0, "I see them now... assassins from Skettis!", 12, 0, 100, 25, 0, 0, 21084, 0, "Sky Commander Adaris"),
(23038, 3, 0, "The arakkoa can send all the assassins they have... they will meet the same fate as these!", 12, 0, 100, 0, 0, 0, 21086, 0, "Sky Commander Adaris"),
(23038, 4, 0, "Is this... blood in my lungs? If I don't die to an assassin's blade, it'll be my old injuries that get me.", 12, 0, 100, 0, 0, 0, 21094, 0, "Sky Commander Adaris"),
(23042, 1, 0, "Adaris!", 14, 0, 100, 0, 0, 0, 21132, 0, "Severin"),
(23042, 2, 0, "Rest now, friend. You need your strength.", 12, 0, 100, 0, 0, 0, 21133, 0, "Severin");
DELETE FROM `waypoints` WHERE `entry` IN (2303800, 2303801, 2304200, 2304201);
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(2303800, 1, -3401.270020, 3617.288330, 276.939697, "Sky Commander Adaris"),
(2303801, 1, -3408.260010, 3622.709961, 278.075012, "Sky Commander Adaris"),
(2304200, 1, -3402.066650, 3619.804688, 277.965363, "Severin"),
(2304201, 1, -3407.590088, 3624.570068, 278.075012, "Severin");
DELETE FROM `creature_template_addon` WHERE `entry`=23207;
INSERT INTO `creature_template_addon` (`entry`, `bytes1`, `auras`) VALUES
(23207, 0, "29266");
@@ -0,0 +1,25 @@
--
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=23306;
DELETE FROM `smart_scripts` WHERE `entryorguid`=23306 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=23038 AND `source_type`=0 AND `id`=13;
DELETE FROM `smart_scripts` WHERE `entryorguid`=23042 AND `source_type`=0 AND `id` IN (8, 9);
DELETE FROM `smart_scripts` WHERE `entryorguid`=2303801 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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(23306, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, "Hazzik - On Data 1 1 Set - Say Line 0 (Stored Target)"),
(23038, 0, 13, 0, 20, 1, 100, 0, 11028, 0, 0, 0, 0, 80, 2303801, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Quest 'Countdown to Doom' Rewarded - Run Script (Phase 1)"),
(23042, 0, 8, 0, 38, 0, 100, 0, 3, 3, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Data 3 3 Set - Set Event Phase 0"),
(23042, 0, 9, 0, 38, 0, 100, 0, 4, 4, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Severin - On Data 4 4 Set - Set Event Phase 1"),
(2303801, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Set Event Phase 0"),
(2303801, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 3, 3, 0, 0, 0, 0, 19, 23042, 50, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Set Data 3 3 (Severin)"),
(2303801, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Store Invoker"),
(2303801, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 23306, 50, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Send Stored Target (Hazzik)"),
(2303801, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 23306, 50, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Set Data 1 1 (Hazzik)"),
(2303801, 9, 5, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Say Line 5"),
(2303801, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 4, 4, 0, 0, 0, 0, 19, 23042, 50, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Set Data 4 4 (Severin)"),
(2303801, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Set Event Phase 1");
DELETE FROM `creature_text` WHERE `CreatureID`=23306;
DELETE FROM `creature_text` WHERE `CreatureID`=23038 AND `GroupID`=5;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(23306, 0, 0, "You over there! I must speak with you!", 15, 0, 100, 0, 0, 0, 21339, 0, "Hazzik"),
(23038, 5, 0, "Do not... bring Terokk into our world, $n... That would be... madness...", 12, 0, 100, 0, 0, 0, 21907, 0, "Sky Commander Adaris");
@@ -0,0 +1,16 @@
--
DELETE FROM `smart_scripts` WHERE `entryorguid`=23038 AND `source_type`=0 AND `id`=14;
DELETE FROM `smart_scripts` WHERE `entryorguid`=2303802 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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(23038, 0, 14, 0, 20, 1, 100, 0, 11073, 0, 0, 0, 0, 80, 2303802, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Quest 'Terokk's Downfall' Rewarded - Run Script (Phase 1)"),
(2303802, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Set Event Phase 0"),
(2303802, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 3, 3, 0, 0, 0, 0, 19, 23042, 50, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Set Data 3 3 (Severin)"),
(2303802, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 91, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Remove StandState Sit"),
(2303802, 9, 3, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Say Line 6"),
(2303802, 9, 4, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 0, 90, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Set StandState Sit"),
(2303802, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 4, 4, 0, 0, 0, 0, 19, 23042, 50, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Set Data 4 4 (Severin)"),
(2303802, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Sky Commander Adaris - On Script - Set Event Phase 1");
DELETE FROM `creature_text` WHERE `CreatureID`=23038 AND `GroupID`=6;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(23038, 6, 0, "You're one of our bravest, $n. All of the Skyguard is in your debt.", 12, 0, 100, 66, 0, 0, 21906, 0, "Sky Commander Adaris");
@@ -0,0 +1,120 @@
--
DELETE FROM `gameobject` WHERE `id`=185952;
UPDATE `quest_template_addon` SET `SpecialFlags`=`SpecialFlags`|2 WHERE `ID`=11085;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=23383;
DELETE FROM `smart_scripts` WHERE `entryorguid`=23383 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=21644 AND `source_type`=0 AND `id` IN (5, 6, 7);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (2338300, 2338301, 2338302, 2338303, 2338304) 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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(23383, 0, 0, 1, 11, 0, 100, 0, 0, 0, 0, 0, 0, 18, 512, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Spawn - Set Immune To NPC"),
(23383, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 48, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Spawn - Set Active"),
(23383, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 88, 2338300, 2338302, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Spawn - Run Random Script"),
(23383, 0, 3, 4, 19, 0, 100, 0, 11085, 0, 0, 0, 0, 19, 512, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Quest 'Escape from Skettis' Accepted - Remove Immune To NPC"),
(23383, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Quest 'Escape from Skettis' Accepted - Remove Questgiver Npcflag"),
(23383, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 15, 185952, 10, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Quest 'Escape from Skettis' Accepted - Activate Gameobject 'Cage'"),
(23383, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Quest 'Escape from Skettis' Accepted - Store Invoker"),
(23383, 0, 7, 0, 19, 0, 100, 0, 11085, 0, 0, 0, 0, 113, 2338300, 2338301, 2338302, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Quest 'Escape from Skettis' Accepted - Start Closest WP"),
(23383, 0, 8, 9, 40, 0, 100, 0, 1, 0, 0, 0, 0, 54, 10000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On WP 1 Reached - Pause WP (10 Seconds)"),
(23383, 0, 9, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On WP 1 Reached - Say Line 0"),
(23383, 0, 10, 11, 40, 0, 100, 0, 13, 2338300, 0, 0, 0, 54, 10000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On WP 13 Reached (Path 2338300) - Pause WP (10 Seconds)"),
(23383, 0, 11, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 107, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On WP 13 Reached (Path 2338300) - Summon Creature Group 0"),
(23383, 0, 12, 13, 40, 0, 100, 0, 8, 2338301, 0, 0, 0, 54, 10000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On WP 8 Reached (Path 2338301) - Pause WP (10 Seconds)"),
(23383, 0, 13, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 107, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On WP 8 Reached (Path 2338301) - Summon Creature Group 1"),
(23383, 0, 14, 15, 40, 0, 100, 0, 5, 2338302, 0, 0, 0, 54, 10000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On WP 5 Reached (Path 2338302) - Pause WP (10 Seconds)"),
(23383, 0, 15, 16, 61, 0, 100, 0, 0, 0, 0, 0, 0, 107, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On WP 5 Reached (Path 2338302) - Summon Creature Group 2"),
(23383, 0, 16, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On WP 5 Reached (Path 2338302) - Set Run On"),
(23383, 0, 17, 0, 82, 0, 100, 0, 21644, 0, 0, 0, 0, 63, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Summoned Creature Died - Increase Counter"),
(23383, 0, 18, 0, 77, 0, 100, 0, 1, 2, 0, 0, 0, 80, 2338303, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Counter Reached 2 - Run Script"),
(23383, 0, 19, 0, 40, 0, 100, 0, 18, 2338300, 0, 0, 0, 80, 2338304, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On WP 18 Reached (Path 2338300) - Run Script"),
(23383, 0, 20, 0, 40, 0, 100, 0, 13, 2338301, 0, 0, 0, 80, 2338304, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On WP 13 Reached (Path 2338301) - Run Script"),
(23383, 0, 21, 0, 40, 0, 100, 0, 12, 2338302, 0, 0, 0, 80, 2338304, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On WP 12 Reached (Path 2338302) - Run Script"),
(23383, 0, 22, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 3, 0, 21184, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Spawn - Morph to model"),
(2338300, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 11, 41136, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Script - Cast 'Quest - Port Skettis Prisoner - Location 01'"),
(2338300, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 11, 41147, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Script - Cast 'Quest - Skettis Prisoner Cage Summon'"),
(2338300, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Script - Set Inactive"),
(2338301, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 11, 41138, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Script - Cast 'Quest - Port Skettis Prisoner - Location 02'"),
(2338301, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 11, 41147, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Script - Cast 'Quest - Skettis Prisoner Cage Summon'"),
(2338301, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Script - Set Inactive"),
(2338302, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 11, 41141, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Script - Cast 'Quest - Port Skettis Prisoner - Location 03'"),
(2338302, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 11, 41147, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Script - Cast 'Quest - Skettis Prisoner Cage Summon'"),
(2338302, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Script - Set Inactive"),
(2338303, 9, 0, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Script - Say Line 1"),
(2338304, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 54, 20000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Script - Pause WP"),
(2338304, 9, 1, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 15, 11085, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Script - Give Quest Credit (Stored Target)"),
(2338304, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Script - Say Line 2"),
(2338304, 9, 3, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skyguard Prisoner - On Script - Despawn"),
(21644, 0, 5, 0, 54, 0, 100, 0, 0, 0, 0, 0, 0, 67, 1, 1000, 1000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skettis Wing Guard - On Just Summoned - Start Timed Event"),
(21644, 0, 6, 0, 59, 0, 100, 0, 1, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, "Skettis Wing Guard - On Timed Event Triggered - Attack Summoner"),
(21644, 0, 7, 0, 59, 0, 20, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Skettis Wing Guard - On Timed Event Triggered - Say Line 1");
DELETE FROM `creature_text` WHERE `CreatureID`=23383;
DELETE FROM `creature_text` WHERE `CreatureID`=21644 AND `GroupID`=1;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(23383, 0, 0, "Thanks for your help. Let's get out of here!", 12, 0, 100, 0, 0, 0, 21481, 0, "Skyguard Prisoner"),
(23383, 1, 0, "Let's keep moving. I don't like this place.", 12, 0, 100, 0, 0, 0, 21484, 0, "Skyguard Prisoner"),
(23383, 2, 0, "Thanks again. Sergeant Doryn will be glad to hear he has one less scout to replace this week.", 12, 0, 100, 0, 0, 0, 21485, 0, "Skyguard Prisoner"),
(21644, 1, 0, "You'll go nowhere, Skyguard scum!", 12, 0, 100, 0, 0, 0, 21490, 0, "Skettis Wing Guard"),
(21644, 1, 1, "Skettis prevails!", 12, 0, 100, 0, 0, 0, 21491, 0, "Skettis Wing Guard"),
(21644, 1, 2, "No one escapes Skettis!", 12, 0, 100, 0, 0, 0, 21492, 0, "Skettis Wing Guard"),
(21644, 1, 3, "Death to our enemies!", 12, 0, 100, 0, 0, 0, 21493, 0, "Skettis Wing Guard");
DELETE FROM `waypoints` WHERE `entry` IN (2338300, 2338301, 2338302);
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(2338300, 1, -4109.42, 3034.16, 344.168, "Skyguard Prisoner"),
(2338300, 2, -4113.27, 3035.99, 344.071, "Skyguard Prisoner"),
(2338300, 3, -4120.02, 3032.22, 344.074, "Skyguard Prisoner"),
(2338300, 4, -4124.41, 3026.33, 344.151, "Skyguard Prisoner"),
(2338300, 5, -4128.82, 3026.65, 344.035, "Skyguard Prisoner"),
(2338300, 6, -4138.91, 3028.95, 338.92, "Skyguard Prisoner"),
(2338300, 7, -4152.59, 3031.23, 336.913, "Skyguard Prisoner"),
(2338300, 8, -4169.81, 3034.3, 342.047, "Skyguard Prisoner"),
(2338300, 9, -4174.63, 3036.04, 343.457, "Skyguard Prisoner"),
(2338300, 10, -4174.4, 3044.98, 343.862, "Skyguard Prisoner"),
(2338300, 11, -4176.63, 3052.01, 344.077, "Skyguard Prisoner"),
(2338300, 12, -4183.66, 3058.9, 344.15, "Skyguard Prisoner"),
(2338300, 13, -4182.92, 3065.41, 342.574, "Skyguard Prisoner"),
(2338300, 14, -4182.06, 3070.56, 337.644, "Skyguard Prisoner"),
(2338300, 15, -4181.26, 3077.13, 331.59, "Skyguard Prisoner"),
(2338300, 16, -4179.99, 3086.1, 325.571, "Skyguard Prisoner"),
(2338300, 17, -4178.77, 3090.1, 323.955, "Skyguard Prisoner"),
(2338300, 18, -4177.96, 3093.87, 323.839, "Skyguard Prisoner"),
(2338301, 1, -3716.813, 3784.913, 302.7957, "Skyguard Prisoner"),
(2338301, 2, -3713.891, 3785.578, 302.9066, "Skyguard Prisoner"),
(2338301, 3, -3701.317, 3788.437, 302.1635, "Skyguard Prisoner"),
(2338301, 4, -3691.435, 3784.761, 298.6149, "Skyguard Prisoner"),
(2338301, 5, -3679.718, 3780.137, 295.1252, "Skyguard Prisoner"),
(2338301, 6, -3678.255, 3779.54, 294.927, "Skyguard Prisoner"),
(2338301, 7, -3665.416, 3774.3, 296.5848, "Skyguard Prisoner"),
(2338301, 8, -3652.483, 3769.122, 301.5699, "Skyguard Prisoner"),
(2338301, 9, -3655.307, 3758.888, 301.9366, "Skyguard Prisoner"),
(2338301, 10, -3647.862, 3745.505, 302.1535, "Skyguard Prisoner"),
(2338301, 11, -3653.096, 3731.482, 293.2672, "Skyguard Prisoner"),
(2338301, 12, -3658.584, 3718.315, 283.3129, "Skyguard Prisoner"),
(2338301, 13, -3660.324, 3713.304, 281.269, "Skyguard Prisoner"),
(2338302, 1, -3669.901, 3388.204, 312.9493, "Skyguard Prisoner"),
(2338302, 2, -3672.78, 3371.396, 312.1327, "Skyguard Prisoner"),
(2338302, 3, -3666.887, 3367.723, 312.2306, "Skyguard Prisoner"),
(2338302, 4, -3670.773, 3352.389, 306.7109, "Skyguard Prisoner"),
(2338302, 5, -3673.615, 3342.424, 304.9935, "Skyguard Prisoner"),
(2338302, 6, -3679.221, 3318.798, 311.436, "Skyguard Prisoner"),
(2338302, 7, -3687.093, 3318.624, 311.8744, "Skyguard Prisoner"),
(2338302, 8, -3697.118, 3315.984, 312.1466, "Skyguard Prisoner"),
(2338302, 9, -3703.314, 3309.11, 312.2234, "Skyguard Prisoner"),
(2338302, 10, -3713.242, 3311.646, 307.328, "Skyguard Prisoner"),
(2338302, 11, -3724.522, 3313.627, 297.02, "Skyguard Prisoner"),
(2338302, 12, -3734.422, 3315.625, 292.3213, "Skyguard Prisoner");
DELETE FROM `creature_summon_groups` WHERE `summonerId`=23383;
INSERT INTO `creature_summon_groups` (`summonerId`, `summonerType`, `groupId`, `entry`, `position_x`, `position_y`, `position_z`, `orientation`, `summonType`, `summonTime`, `Comment`) VALUES
(23383, 0, 0, 21644, -4179.043, 3081.007, 328.28, 4.51, 4, 60000, "Skyguard Prisoner - Group 0 - Skettis Wing Guard"),
(23383, 0, 0, 21644, -4181.610, 3081.289, 328.32, 4.52, 4, 60000, "Skyguard Prisoner - Group 0 - Skettis Wing Guard"),
(23383, 0, 1, 21644, -3653.75, 3750.8, 302.101, 2.11185, 4, 60000, "Skyguard Prisoner - Group 1 - Skettis Wing Guard"),
(23383, 0, 1, 21644, -3649.91, 3754.08, 303.007, 2.3911, 4, 60000, "Skyguard Prisoner - Group 1 - Skettis Wing Guard"),
(23383, 0, 2, 21644, -3680.32, 3318.81, 311.501, 1.55334, 4, 60000, "Skyguard Prisoner - Group 2 - Skettis Wing Guard"),
(23383, 0, 2, 21644, -3677.91, 3317.93, 311.573, 1.48353, 4, 60000, "Skyguard Prisoner - Group 2 - Skettis Wing Guard");
DELETE FROM `spell_target_position` WHERE `ID` IN (41136, 41138, 41141);
INSERT INTO `spell_target_position` (`ID`, `EffectIndex`, `MapID`, `PositionX`, `PositionY`, `PositionZ`, `VerifiedBuild`) VALUES
(41136, 0, 530, -4106.64, 3029.76, 344.877, 0),
(41138, 0, 530, -3720.35, 3789.91, 302.888, 0),
(41141, 0, 530, -3664.54, 3389.79, 312.952, 0);
@@ -0,0 +1,20 @@
--
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `spawntimesecs` IN (190,200,360,400,425,430,444,450,490,498,500,534,543,570,588,700,720,1250,1272,1290,1416,1434,3540,5400);
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `id` IN (22024,20552,10204,10942);
-- Won't touch 8 min respawn time of Son of Hodir and Frostworg, at least for now
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `spawntimesecs` = 480 AND `map` != 571;
-- Won't touch 4 (and 2) min respawn time of Risen Zombie, at least for now
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `spawntimesecs` = 240 AND `map` != 595;
-- Bosses
UPDATE `creature` SET `spawntimesecs` = 604800 WHERE `spawntimesecs` = 6380;
-- Loque'nahak, one of most-wanted rare tamable creature in whole game respawns in 8 min, really?
UPDATE `creature` SET `spawntimesecs` = 21600 WHERE `id` = 32517; -- From wiki
-- Okrek, Outland rare
UPDATE `creature` SET `spawntimesecs` = 28800 WHERE `id` = 18685; -- From 18684
-- High Tinker Mekkatorque
UPDATE `creature` SET `spawntimesecs` = 600 WHERE `id` = 7937; -- From Wowhead
-- Wrong spawns, summoned or spawns only after specific events
DELETE FROM `creature` WHERE `id` IN (14350,18381,20436,20792,18297);
@@ -0,0 +1,36 @@
-- 469 Blackwing Lair
UPDATE `creature` SET `spawntimesecs` = 604800 WHERE `spawntimesecs` = 3520 AND `id` = 13996 AND `map` = 469;
-- 509 Ruins of Ahn'Qiraj
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `id` IN (4076,15384,15426,15475,15476) AND `map` = 509;
UPDATE `creature` SET `spawntimesecs` = 604800 WHERE `id` IN (15339,15340,15341,15348,15369,15370) AND `map` = 509;
-- 531 Ahn'Qiraj Temple
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `id` IN (4076,15378,15379,15380,15384,15426,15475,15476,15502,15503,15504,15896) AND `map` = 531;
UPDATE `creature` SET `spawntimesecs` = 604800 WHERE `id` IN (15263,15275,15276,15511,15543,15589,15727,15957,15963) AND `map` = 531;
-- Skipped 532 - 559
-- 560 The Escape From Durnholde
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `id` IN (385,2350,2354,2385,2408,8883,17213,18598,18644,18646,18649,18650,18651,18655,18656,18657,18664,18666,18672,18723,18725,19433,20155,20156,20342,20344,20345,20346,20347,20348,20349,20350,20351,20352,20353,20354,20355,20357,20358,20359,20360,20361,20363,20365,20368,20370,20372,20373,20376,20377,20378,20379,20380,20391,20391,20400,20401,20419,20420,20422,20424,20426,20428,20429,20430,20432,20433,20434,20441,21341,21342,21343,21344,21345) AND `map` = 560;
-- 564 Black Temple
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `id` IN (1420,2914,14881,22515,22517,22886,22984,23033,23084,23086,23087,23157,23158,23159,23210,23288,23410,23411,23412,23417,23426,23448,23472,23499,23502) AND `map` = 564;
-- 565 Gruul's Lair
UPDATE `creature` SET `spawntimesecs` = 604800 WHERE `id` IN (18832,18834,18835,18836) AND `map` = 565;
-- 568 Zul'Aman
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `id` IN (1412,14881,21252,22515,22517,23746,23807,23813,23814,23815,23897,24223,24325,24363,24551,25173) AND `map` = 568;
-- 572 Ruins of Lordaeron
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `id` IN (23193) AND `map` = 572;
-- 574 Utgarde Keep
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `id` IN (2110,14881,15475,22515,23746) AND `map` = 574;
-- 575 Utgarde Pinnacle
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `id` IN (2110,14881,15475,19871,22515,23472,27327,28351,30871) AND `map` = 575;
UPDATE `creature` SET `spawntimesecs` = 86400 WHERE `id` IN (27303,27307,27308,27309) AND `map` = 575;
-- 576 The Nexus
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `id` IN (22515,22517,27048,27837) AND `map` = 576;
UPDATE `creature` SET `spawntimesecs` = 86400 WHERE `id` IN (26796) AND `map` = 576;
-- 578 The Oculus
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `id` IN (22517,27657,27658,27659) AND `map` = 578;
-- 580 The Sunwell
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `id` IN (2110,19871,22515,23472,24928,25357,25358,25632,25638,25639,25644,25661,25770,25795,25796,25953,36991,37000,37746,37763,37764,37765,37781,38047,38048,38049,38052,38056) AND `map` = 580 AND `spawntimesecs` != 5;
-- 585 Magisters Terrace
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `id` IN (1412,22515,24808,24822,25042,25954,25955,25956,25957,25958,25959,25960,26057,26579) AND `map` = 585;
UPDATE `creature` SET `spawntimesecs` = 86400 WHERE `id` IN (24560,24664,24723,24744) AND `map` = 585;
@@ -0,0 +1,13 @@
--
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `spawntimesecs` = 540 AND `id` NOT IN (1061,5186);
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `spawntimesecs` = 550 AND `id` NOT IN (5760,4686,4687);
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `spawntimesecs` = 644;
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `spawntimesecs` = 180 AND `id` NOT IN (18558,23188) AND `id` < 23689;
-- Grik'nir the Cold
UPDATE `creature` SET `spawntimesecs` = 100 WHERE `id` = 808; -- https://www.wowhead.com/npc=808/griknir-the-cold#comments:id=148734
-- Old Icebeard
UPDATE `creature` SET `spawntimesecs` = 90 WHERE `id` = 1271; -- https://www.wowhead.com/npc=1271/old-icebeard#comments:id=551613
-- Mangeclaw
UPDATE `creature` SET `spawntimesecs` = 60 WHERE `id` = 1961; -- Wowhead
-- Lakka
UPDATE `creature` SET `spawntimesecs` = 86400 WHERE `id` = 18956;
@@ -0,0 +1,6 @@
--
DELETE FROM `creature_text` WHERE `CreatureID` = 24981;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(24981,0,0,"Objective acquired. Initiating security routines.",12,0,100,0,0,0,24014,0,"Converted Sentry"),
(24981,0,1,"Commence location defense.",12,0,100,0,0,0,24015,0,"Converted Sentry"),
(24981,0,2,"Deployment successful. Trespassers will be neutralized.",12,0,100,0,0,0,24016,0,"Converted Sentry");
@@ -0,0 +1,41 @@
-- https://www.wowhead.com/npc=21277/vindicator-vuuleen#comments:id=172687:reply=39786
-- https://youtu.be/EiXYromDsfc?t=112
UPDATE `gameobject_template` SET `AIName` = "SmartGameObjectAI" WHERE `entry` = 184702;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 184702 AND `source_type` = 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(184702,1,0,1,70,0,100,0,2,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Cage - On Gameobject State Changed - Store Targetlist"),
(184702,1,1,2,61,0,100,0,0,0,0,0,0,100,1,0,0,0,0,0,19,21277,0,0,0,0,0,0,0,"Cage - On Link - Send Target 1 (Vindicator Vuuleen)"),
(184702,1,2,0,61,0,100,0,0,0,0,0,0,45,0,1,0,0,0,0,19,21277,0,0,0,0,0,0,0,"Cage - On Link - Set Data 0 1 (Vindicator Vuuleen)");
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 184702 AND `SourceId` = 1;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(22,1,184702,1,0,8,0,10518,0,0,1,0,0,"","Group 0: Execute SAI (Action 0) if quest 'Planting the Banner' is not rewarded");
DELETE FROM `smart_scripts` WHERE `entryorguid` = 4542 AND `source_type` = 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(4542,2,0,1,46,0,100,0,4542,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Areatrigger (Bladespire Hold) - On Trigger - Store Targetlist"),
(4542,2,1,2,61,0,100,0,0,0,0,0,0,100,1,0,0,0,0,0,19,21277,0,0,0,0,0,0,0,"Areatrigger (Bladespire Hold) - On Link - Send Target 1 (Vindicator Vuuleen)"),
(4542,2,2,0,61,0,100,0,0,0,0,0,0,45,0,2,0,0,0,0,19,21277,0,0,0,0,0,0,0,"Areatrigger (Bladespire Hold) - On Link - Set Data 0 2 (Vindicator Vuuleen)");
DELETE FROM `areatrigger_scripts` WHERE `entry` = 4542;
INSERT INTO `areatrigger_scripts` (`entry`,`ScriptName`) VALUES
(4542,"SmartTrigger");
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 4542 AND `SourceId` = 2;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(22,1,4542,2,0,8,0,10516,0,0,1,0,0,"","Group 0: Execute SAI (Action 0) if quest 'The Trappings of a Vindicator' is not rewarded"),
(22,1,4542,2,0,9,0,10516,0,0,1,0,0,"","Group 0: Execute SAI (Action 0) if player has not taken quest 'The Trappings of a Vindicator'");
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = 21277;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 21277 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(21277,0,0,0,38,0,100,0,0,1,10000,10000,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Vindicator Vuuleen - On Data Set 0 1 - Say Line 0"),
(21277,0,1,0,38,0,100,0,0,2,30000,30000,0,1,1,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Vindicator Vuuleen - On Data Set 0 2 - Say Line 1");
DELETE FROM `creature_text` WHERE `CreatureID` = 21277;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(21277,0,0,"Hi. Thanks for the help. But please don't open the cage.",15,0,100,0,0,0,18918,0,"Vindicator Vuuleen"),
(21277,0,1,"Yes, the ogres are so stupid that they forgot to lock my cage. But that's exactly how I like it, so please don't open it again.",15,0,100,0,0,0,18919,0,"Vindicator Vuuleen"),
(21277,0,2,"No. Don't open the cage. One of them might notice!",15,0,100,0,0,0,18920,0,"Vindicator Vuuleen"),
(21277,0,3,"Please leave the cage door closed. Thanks.",15,0,100,0,0,0,18921,0,"Vindicator Vuuleen"),
(21277,1,0,"Psst, $r, up here near the entrance. I'm in the cage. Hurry!",15,0,100,0,0,0,18922,0,"Vindicator Vuuleen");
@@ -0,0 +1,116 @@
-- Nat Pagle SAI
SET @ID := 20344;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` BETWEEN @ID*100+0 AND @ID*100+6 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
(@ID,0,0,0,1,0,100,0,30000,30000,300000,300000,88,@ID*100+0,@ID*100+6,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - Out of Combat - Run Random Script"),
(@ID*100+0,9,0,0,0,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 0"),
(@ID*100+0,9,1,0,0,0,100,0,3000,3000,0,0,1,0,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 0 (Hal McAllister)"),
(@ID*100+0,9,2,0,0,0,100,0,4000,4000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 1"),
(@ID*100+0,9,3,0,0,0,100,0,5000,5000,0,0,1,1,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 1 (Hal McAllister)"),
(@ID*100+0,9,4,0,0,0,100,0,5000,5000,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 2"),
(@ID*100+0,9,5,0,0,0,100,0,10000,10000,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 3"),
(@ID*100+0,9,6,0,0,0,100,0,10000,10000,0,0,1,4,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 4"),
(@ID*100+0,9,7,0,0,0,100,0,8000,8000,0,0,1,2,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 2 (Hal McAllister)"),
(@ID*100+1,9,0,0,0,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 0"),
(@ID*100+1,9,1,0,0,0,100,0,3000,3000,0,0,1,0,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 0 (Hal McAllister)"),
(@ID*100+1,9,2,0,0,0,100,0,4000,4000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 1"),
(@ID*100+1,9,3,0,0,0,100,0,5000,5000,0,0,1,1,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 1 (Hal McAllister)"),
(@ID*100+1,9,4,0,0,0,100,0,5000,5000,0,0,1,5,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 5"),
(@ID*100+1,9,5,0,0,0,100,0,10000,10000,0,0,1,6,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 6"),
(@ID*100+1,9,6,0,0,0,100,0,10000,10000,0,0,1,7,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 7"),
(@ID*100+1,9,7,0,0,0,100,0,8000,8000,0,0,1,2,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 2 (Hal McAllister)"),
(@ID*100+2,9,0,0,0,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 0"),
(@ID*100+2,9,1,0,0,0,100,0,3000,3000,0,0,1,0,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 0 (Hal McAllister)"),
(@ID*100+2,9,2,0,0,0,100,0,4000,4000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 1"),
(@ID*100+2,9,3,0,0,0,100,0,5000,5000,0,0,1,1,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 1 (Hal McAllister)"),
(@ID*100+2,9,4,0,0,0,100,0,5000,5000,0,0,1,8,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 8"),
(@ID*100+2,9,5,0,0,0,100,0,10000,10000,0,0,1,9,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 9"),
(@ID*100+2,9,6,0,0,0,100,0,10000,10000,0,0,1,10,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 10"),
(@ID*100+2,9,7,0,0,0,100,0,8000,8000,0,0,1,2,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 2 (Hal McAllister)"),
(@ID*100+3,9,0,0,0,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 0"),
(@ID*100+3,9,1,0,0,0,100,0,3000,3000,0,0,1,0,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 0 (Hal McAllister)"),
(@ID*100+3,9,2,0,0,0,100,0,4000,4000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 1"),
(@ID*100+3,9,3,0,0,0,100,0,5000,5000,0,0,1,1,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 1 (Hal McAllister)"),
(@ID*100+3,9,4,0,0,0,100,0,5000,5000,0,0,1,11,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 11"),
(@ID*100+3,9,5,0,0,0,100,0,10000,10000,0,0,1,12,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 12"),
(@ID*100+3,9,6,0,0,0,100,0,10000,10000,0,0,1,13,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 13"),
(@ID*100+3,9,7,0,0,0,100,0,8000,8000,0,0,1,2,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 2 (Hal McAllister)"),
(@ID*100+4,9,0,0,0,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 0"),
(@ID*100+4,9,1,0,0,0,100,0,3000,3000,0,0,1,0,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 0 (Hal McAllister)"),
(@ID*100+4,9,2,0,0,0,100,0,4000,4000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 1"),
(@ID*100+4,9,3,0,0,0,100,0,5000,5000,0,0,1,1,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 1 (Hal McAllister)"),
(@ID*100+4,9,4,0,0,0,100,0,5000,5000,0,0,1,14,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 14"),
(@ID*100+4,9,5,0,0,0,100,0,10000,10000,0,0,1,15,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 15"),
(@ID*100+4,9,6,0,0,0,100,0,10000,10000,0,0,1,16,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 16"),
(@ID*100+4,9,7,0,0,0,100,0,8000,8000,0,0,1,2,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 2 (Hal McAllister)"),
(@ID*100+5,9,0,0,0,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 0"),
(@ID*100+5,9,1,0,0,0,100,0,3000,3000,0,0,1,0,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 0 (Hal McAllister)"),
(@ID*100+5,9,2,0,0,0,100,0,4000,4000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 1"),
(@ID*100+5,9,3,0,0,0,100,0,5000,5000,0,0,1,1,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 1 (Hal McAllister)"),
(@ID*100+5,9,4,0,0,0,100,0,5000,5000,0,0,1,17,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 17"),
(@ID*100+5,9,5,0,0,0,100,0,10000,10000,0,0,1,18,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 18"),
(@ID*100+5,9,6,0,0,0,100,0,10000,10000,0,0,1,19,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 19"),
(@ID*100+5,9,7,0,0,0,100,0,8000,8000,0,0,1,2,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 2 (Hal McAllister)"),
(@ID*100+6,9,0,0,0,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 0"),
(@ID*100+6,9,1,0,0,0,100,0,3000,3000,0,0,1,0,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 0 (Hal McAllister)"),
(@ID*100+6,9,2,0,0,0,100,0,4000,4000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 1"),
(@ID*100+6,9,3,0,0,0,100,0,5000,5000,0,0,1,1,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 1 (Hal McAllister)"),
(@ID*100+6,9,4,0,0,0,100,0,5000,5000,0,0,1,20,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 20"),
(@ID*100+6,9,5,0,0,0,100,0,10000,10000,0,0,1,21,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 21"),
(@ID*100+6,9,6,0,0,0,100,0,10000,10000,0,0,1,22,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 22"),
(@ID*100+6,9,7,0,0,0,100,0,8000,8000,0,0,1,2,0,0,0,0,0,19,20342,0,0,0,0,0,0,"Nat Pagle - On Script - Say Line 2 (Hal McAllister)");
DELETE FROM `creature_text` WHERE `CreatureID` = @ID;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(@ID,0,0,"Hal...",12,0,100,0,0,0,17966,0,"Nat Pagle"),
(@ID,1,0,"Had that dream again last night...",12,0,100,0,0,0,17968,0,"Nat Pagle"),
(@ID,2,0,"That one dream... The crazy one. Remember?",12,0,100,0,0,0,17970,0,"Nat Pagle"),
(@ID,3,0,"Tarren Mill is destroyed by some crazy force of undead and forever more becomes an enemy to Southshore.",12,0,100,0,0,0,17971,0,"Nat Pagle"),
(@ID,4,0,"Could ya imagine such a thing, Hal? Could ya?",12,0,100,0,0,0,17972,0,"Nat Pagle"),
(@ID,5,0,"That one where I'm in Durnholde and that one orc that Blackmoore keeps as his personal slave breaks out...",12,0,100,0,0,0,17973,0,"Nat Pagle"),
(@ID,6,0,"He ends up destroying the whole keep, freeing all the orcs we're keeping in the camps, and rising to power as the king of orcs... Warchief or somethin'.",12,0,100,0,0,0,17974,0,"Nat Pagle"),
(@ID,7,0,"Crazy, isn't it?",12,0,100,0,0,0,17975,0,"Nat Pagle"),
(@ID,8,0,"So I'm on some mountain with some big ol' tree. Bunch of elves runnin' around all over...",12,0,100,0,0,0,17976,0,"Nat Pagle"),
(@ID,9,0,"Out of nowhere, some 300 foot tall demon or somethin' walks up and starts climbin' the tree...",12,0,100,0,0,0,17977,0,"Nat Pagle"),
(@ID,10,0,"And if that weren't crazy enough, that big demon gets killed by a bunch of little floating light things... Oh, I was also a female elf in that one... Yep...",12,0,100,0,0,0,17978,0,"Nat Pagle"),
(@ID,11,0,"In this dream, I was fishin' master of the world. I moved to some place called Kalimdor...",12,0,100,0,0,0,17979,0,"Nat Pagle"),
(@ID,12,0,"And people from all over the world come to me to pay homage... and learn to fish.",12,0,100,0,0,0,17980,0,"Nat Pagle"),
(@ID,13,0,"I'm like some kind of fishing god...",12,0,100,0,0,0,17981,0,"Nat Pagle"),
(@ID,14,0,"I can't even believe this one... You know those two loud-mouthed ruffians, Foror and Tigule?",12,0,100,0,0,0,17982,0,"Nat Pagle"),
(@ID,15,0,"Well in this dream, they somehow end up inventing something called ice-cream and flavoring it with strawberries... Well, long story short, they end up striking it rich!",12,0,100,0,0,0,17983,0,"Nat Pagle"),
(@ID,16,0,"If that weren't crazy enough, they decide to quit the ice-cream business and become adventurers... They travel all over the place and finally disappear into some portal. I woke up in a cold sweat after that one...",12,0,100,0,0,0,17984,0,"Nat Pagle"),
(@ID,17,0,"This one's real grim... So the king's kid, Arthas... Well he goes out to battle evil, along with Uther... *Nat pats his brow dry*",12,0,100,0,0,0,17985,0,"Nat Pagle"),
(@ID,18,0,"But tragically, Arthas is consumed by the evil and becomes evil himself...",12,0,100,0,0,0,17986,0,"Nat Pagle"),
(@ID,19,0,"Well, he comes back to the king all pretendin' to be nice, draws his sword, and runs the king through, elbow to ... well you know... kills him on the spot.",12,0,100,0,0,0,17987,0,"Nat Pagle"),
(@ID,20,0,"That one where thousands of people are all watching us from up in the sky...",12,0,100,0,0,0,18060,0,"Nat Pagle"),
(@ID,21,0,"We're like their puppets - we dance and cry and fight and say silly things for their amusement.",12,0,100,0,0,0,18061,0,"Nat Pagle"),
(@ID,22,0,"Sometimes, even when I'm awake, I think they're watching us. Maybe they're watching us right now...",12,0,100,0,0,0,18062,0,"Nat Pagle");
SET @ID := 20342;
UPDATE `creature_template` SET `AIName` = "" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID AND `source_type` = 0;
DELETE FROM `creature_text` WHERE `CreatureID` = @ID AND `GroupID` = 2;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(@ID,2,0,"It'll never happen, Nat.",12,0,100,0,0,0,17988,0,"Hal McAllister"),
(@ID,2,1,"Impossible!",12,0,100,0,0,0,17989,0,"Hal McAllister"),
(@ID,2,2,"I worry about you sometimes, Nat.",12,0,100,0,0,0,17990,0,"Hal McAllister"),
(@ID,2,3,"No way.",12,0,100,0,0,0,17991,0,"Hal McAllister"),
(@ID,2,4,"Nat, I've heard a whopper or two in my day but that one takes the cake.",12,0,100,0,0,0,17992,0,"Hal McAllister"),
(@ID,2,5,"What you got in that pipe, Nat?",12,0,100,0,0,0,17993,0,"Hal McAllister"),
(@ID,2,6,"*Hal shakes his head* Nat, Nat, Nat...",12,0,100,0,0,0,17994,0,"Hal McAllister"),
(@ID,2,7,"Shut up and fish, Nat.",12,0,100,0,0,0,17995,0,"Hal McAllister");
@@ -0,0 +1,2 @@
--
UPDATE `conditions` SET `ConditionValue1`=6, `ConditionValue2`=3 , `ConditionValue3`=2 WHERE `SourceGroup`=7139 AND `SourceTypeOrReferenceId`=15 AND `SourceEntry`=3;
@@ -0,0 +1,15 @@
--
DELETE FROM `quest_template_addon` WHERE `id` = 4321;
SET @ID := 9117;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ID AND `source_type`=0 AND `id` =0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ID*100 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID,0,0,0,20,0,100,0,4321,0,0,0,0,80,@ID*100+0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"J.D. Collie - On Quest \Making Sense of It\ Rewarded - Run Script"),
(@ID*100+0,9,0,0,0,0,100,0,0,0,0,0,0,83,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"J.D. Collie - On Script - Remove Npc Flag Questgiver+Gossip"),
(@ID*100+0,9,1,0,0,0,100,0,1000,1000,0,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,0,3.08,"J.D. Collie - Set Orientation 3.08"),
(@ID*100+0,9,2,0,0,0,100,0,2000,2000,0,0,0,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"J.D. Collie - On Script - Say Line 0"),
(@ID*100+0,9,3,0,0,0,100,0,1000,1000,0,0,0,50,174683,15,0,0,0,0,8,0,0,0,0,-6037.161,-1016.886,-216.920,5.958,"J.D. Collie - Summon Gameobject Book"),
(@ID*100+0,9,4,0,0,0,100,0,2000,2000,0,0,0,1,1,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"J.D. Collie - On Script - Say Line 1"),
(@ID*100+0,9,5,0,0,0,100,0,3000,3000,0,0,0,1,2,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"J.D. Collie - On Script - Say Line 2"),
(@ID*100+0,9,6,0,0,0,100,0,0,0,0,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0.87,"J.D. Collie - Set Orientation 0.87"),
(@ID*100+0,9,7,0,0,0,100,0,0,0,0,0,0,82,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"J.D. Collie - On Script - Add Npc Flag Questgiver+Gossip");
@@ -0,0 +1,40 @@
-- https://www.youtube.com/watch?v=NHHkFiHvxWA https://youtu.be/NHHkFiHvxWA?t=349
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (4501,4502,4503) AND `source_type` = 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(4501,2,0,1,46,0,100,0,4501,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Areatrigger (Southshore) - On Trigger - Store Targetlist"),
(4501,2,1,2,61,0,100,0,0,0,0,0,0,100,1,0,0,0,0,0,19,20365,0,0,0,0,0,0,0,"Areatrigger (Southshore) - On Link - Send Target 1 (Bartolo Ginsetti)"),
(4501,2,2,0,61,0,100,0,0,0,0,0,0,45,0,1,0,0,0,0,19,20365,0,0,0,0,0,0,0,"Areatrigger (Southshore) - On Link - Set Data 0 1 (Bartolo Ginsetti)"),
(4502,2,0,1,46,0,100,0,4502,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Areatrigger (Southshore) - On Trigger - Store Targetlist"),
(4502,2,1,2,61,0,100,0,0,0,0,0,0,100,1,0,0,0,0,0,19,20432,0,0,0,0,0,0,0,"Areatrigger (Southshore) - On Link - Send Target 1 (Beggar)"),
(4502,2,2,0,61,0,100,0,0,0,0,0,0,45,0,1,0,0,0,0,19,20432,0,0,0,0,0,0,0,"Areatrigger (Southshore) - On Link - Set Data 0 1 (Beggar)"),
(4503,2,0,1,46,0,100,0,4503,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Areatrigger (Southshore) - On Trigger - Store Targetlist"),
(4503,2,1,2,61,0,100,0,0,0,0,0,0,100,1,0,0,0,0,0,19,20432,0,0,0,0,0,0,0,"Areatrigger (Southshore) - On Link - Send Target 1 (Beggar)"),
(4503,2,2,0,61,0,100,0,0,0,0,0,0,45,0,1,0,0,0,0,19,20432,0,0,0,0,0,0,0,"Areatrigger (Southshore) - On Link - Set Data 0 1 (Beggar)");
DELETE FROM `areatrigger_scripts` WHERE `entry` IN (4501,4502,4503);
INSERT INTO `areatrigger_scripts` (`entry`,`ScriptName`) VALUES
(4501,"SmartTrigger"),
(4502,"SmartTrigger"),
(4503,"SmartTrigger");
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` IN (20365,20432);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (20365,20432) AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 2036500 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(20365,0,0,0,38,0,100,0,0,1,60000,60000,0,80,2036500,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Bartolo Ginsetti - On Data Set 0 1 - Run Script"),
(2036500,9,0,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Bartolo Ginsetti - On Script - Say Line 0"),
(2036500,9,1,0,0,0,100,0,4000,4000,0,0,0,5,23,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Bartolo Ginsetti - On Script - Play Emote 23"),
(2036500,9,2,0,0,0,100,0,2000,2000,0,0,0,1,1,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Bartolo Ginsetti - On Script - Say Line 1"),
(20432,0,0,0,38,0,100,0,0,1,60000,60000,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Beggar - On Data Set 0 1 - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID` IN (20365,20432);
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(20365,0,0,"You there! Yes, you, peasant $g boy:girl;. Come quickly, I must tell you something... I must tell you about my greatness, lest such things are lost in the void!",12,0,100,25,0,0,18137,0,"Bartolo Ginsetti"),
(20365,1,0,"Ooooh, YAH! Gaze upon my rippling musculature. Bask in the glow of my physique.",12,0,100,0,0,0,18138,0,"Bartolo Ginsetti"),
(20432,0,0,"Spare a silver, friend?",12,0,100,20,0,0,18148,0,"Beggar"),
(20432,0,1,"Spare a copper? You won't need it soon. The end of days nears...",12,0,100,20,0,0,18149,0,"Beggar"),
(20432,0,2,"Got any food?",12,0,100,20,0,0,18150,0,"Beggar"),
(20432,0,3,"Please, $g sir:madam;, I have three hungry children! Did I say three? TEN HUNGRY CHILDREN!",12,0,100,20,0,0,18151,0,"Beggar"),
(20432,0,4,"Psst... Spare a copper for some grog?",12,0,100,20,0,0,18152,0,"Beggar"),
(20432,0,5,"Will work for food...",12,0,100,20,0,0,18153,0,"Beggar"),
(20432,0,6,"Allow me to shine your shoes! Only one copper for the service!",12,0,100,20,0,0,18154,0,"Beggar");
@@ -0,0 +1,22 @@
-- https://www.youtube.com/watch?v=JCNeC9Re4go
DELETE FROM `smart_scripts` WHERE `entryorguid` = 4485 AND `source_type` = 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(4485,2,0,1,46,0,100,0,4485,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Areatrigger (Caverns of Time) - On Trigger - Store Targetlist"),
(4485,2,1,2,61,0,100,0,0,0,0,0,0,100,1,0,0,0,0,0,19,20201,0,0,0,0,0,0,0,"Areatrigger (Caverns of Time) - On Link - Send Target 1 (Sa'at)"),
(4485,2,2,0,61,0,100,0,0,0,0,0,0,45,0,1,0,0,0,0,19,20201,0,0,0,0,0,0,0,"Areatrigger (Caverns of Time) - On Link - Set Data 0 1 (Sa'at)");
DELETE FROM `areatrigger_scripts` WHERE `entry` = 4485;
INSERT INTO `areatrigger_scripts` (`entry`,`ScriptName`) VALUES
(4485,"SmartTrigger");
DELETE FROM `smart_scripts` WHERE `entryorguid` = 20201 AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 2020100 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(20201,0,0,0,38,0,100,1,0,1,0,0,0,80,2020100,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Sa'at - On Data Set 0 1 - Run Script (No Repeat)"),
(20201,0,1,3,62,0,100,0,8088,0,0,0,0,11,34975,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Sa'at - On Gossip Option 0 Selected - Cast 'Conjure Chrono-Beacon'"),
(20201,0,2,3,62,0,100,0,8088,1,0,0,0,11,34975,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Sa'at - On Gossip Option 1 Selected - Cast 'Conjure Chrono-Beacon'"),
(20201,0,3,0,61,0,100,0,0,0,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Sa'at - On Link - Close Gossip"),
(2020100,9,0,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Sa'at - On Script - Say Line 0"),
(2020100,9,1,0,0,0,100,0,0,0,0,0,0,66,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Sa'at - On Script - Set Orientation Stored Target"),
(2020100,9,2,0,0,0,100,0,10000,10000,0,0,0,66,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Sa'at - On Script - Set Orientation Home Position");
@@ -0,0 +1,22 @@
--
UPDATE `creature_template_addon` SET `auras` = "31482" WHERE `entry` IN (17918,20746);
-- Time Keeper SAI (Source: Movies(Spawn & Despawn parts))
SET @ID := 17918;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID,0,0,0,54,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Time Keeper - On Just Summoned - Say Line 0"),
(@ID,0,1,0,0,0,100,0,6000,10000,18000,26000,0,11,31478,0,0,0,0,0,2,0,0,0,0,0,0,0,0,"Time Keeper - In Combat - Cast 'Sand Breath'"),
(@ID,0,2,0,5,0,100,0,20000,20000,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Time Keeper - On Killed Unit - Say Line 1"),
(@ID,0,3,4,8,0,100,0,31483,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Time Keeper - On Spellhit 'Dragon Helper Effect' - Say Line 2"),
(@ID,0,4,0,61,0,100,0,0,0,0,0,0,41,3000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Time Keeper - On Link - Despawn (3000)");
DELETE FROM `creature_text` WHERE `CreatureID` = @ID;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(@ID,0,0,"There is no time to waste!",12,0,100,0,0,0,15190,0,"Time Keeper"),
(@ID,0,1,"We must hurry!",12,0,100,0,0,0,15191,0,"Time Keeper"),
(@ID,0,2,"We must use this time wisely!",12,0,100,0,0,0,15192,0,"Time Keeper"),
(@ID,1,0,"One less threat to the timeways!",12,0,100,0,0,0,15193,0,"Time Keeper"),
(@ID,2,0,"Victory will be ours!",14,0,100,0,0,0,15194,0,"Time Keeper"),
(@ID,2,1,"Carry on! Victory at all costs!",14,0,100,0,0,0,15195,0,"Time Keeper"),
(@ID,2,2,"Continue the fight! Do not falter!",14,0,100,0,0,0,15196,0,"Time Keeper");
@@ -0,0 +1,82 @@
--
UPDATE `creature_template` SET `AIName` = "" WHERE `entry` IN (15549,15556,15557,15558,15559,15560,15561,15562,15563,15564,15565,15566,15567,15568,15569,15570,15572,15573,15574,15575,15576,15577,15578,15579,15580,15581,15582,15583,15584,15585,15586,15587,15588,15592,15593,15594,15595,15596,15597,15598,15599,15600,15601,15602,15603,15604,15605,15606,15607,15871,30348,30357,30358,30359,30360,30362,30363,30364,30365,30367,30368,30369,30370,30371,30372,30373,30374,30375,30531,30533,30534,30535,30536,30537,30538);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (15549,15556,15557,15558,15559,15560,15561,15562,15563,15564,15565,15566,15567,15568,15569,15570,15572,15573,15574,15575,15576,15577,15578,15579,15580,15581,15582,15583,15584,15585,15586,15587,15588,15592,15593,15594,15595,15596,15597,15598,15599,15600,15601,15602,15603,15604,15605,15606,15607,15871,30348,30357,30358,30359,30360,30362,30363,30364,30365,30367,30368,30369,30370,30371,30372,30373,30374,30375,30531,30533,30534,30535,30536,30537,30538) AND `source_type` = 0;
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `id` IN (15549,15556,15557,15558,15559,15560,15561,15562,15563,15564,15565,15566,15567,15568,15569,15570,15572,15573,15574,15575,15576,15577,15578,15579,15580,15581,15582,15583,15584,15585,15586,15587,15588,15592,15593,15594,15595,15596,15597,15598,15599,15600,15601,15602,15603,15604,15605,15606,15607,15871,30348,30357,30358,30359,30360,30362,30363,30364,30365,30367,30368,30369,30370,30371,30372,30373,30374,30375,30531,30533,30534,30535,30536,30537,30538);
DELETE FROM `creature_addon` WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE `id` IN (15549,15556,15557,15558,15559,15560,15561,15562,15563,15564,15565,15566,15567,15568,15569,15570,15572,15573,15574,15575,15576,15577,15578,15579,15580,15581,15582,15583,15584,15585,15586,15587,15588,15592,15593,15594,15595,15596,15597,15598,15599,15600,15601,15602,15603,15604,15605,15606,15607,15871,30348,30357,30358,30359,30360,30362,30363,30364,30365,30367,30368,30369,30370,30371,30372,30373,30374,30375,30531,30533,30534,30535,30536,30537,30538));
DELETE FROM `creature_template_addon` WHERE `entry` IN (15549,15556,15557,15558,15559,15560,15561,15562,15563,15564,15565,15566,15567,15568,15569,15570,15572,15573,15574,15575,15576,15577,15578,15579,15580,15581,15582,15583,15584,15585,15586,15587,15588,15592,15593,15594,15595,15596,15597,15598,15599,15600,15601,15602,15603,15604,15605,15606,15607,15871,30348,30357,30358,30359,30360,30362,30363,30364,30365,30367,30368,30369,30370,30371,30372,30373,30374,30375,30531,30533,30534,30535,30536,30537,30538);
INSERT INTO `creature_template_addon` (`entry`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`visibilityDistanceType`,`auras`) VALUES
(15549,0,0,0,4097,0,0,"25824"),
(15556,0,0,0,4097,0,0,"25824"),
(15557,0,0,0,4097,0,0,"25824"),
(15558,0,0,0,4097,0,0,"25824"),
(15559,0,0,0,4097,0,0,"25824"),
(15560,0,0,0,4097,0,0,"25824"),
(15561,0,0,0,4097,0,0,"25824"),
(15562,0,0,0,4097,0,0,"25824"),
(15563,0,0,0,4097,0,0,"25824"),
(15564,0,0,0,4097,0,0,"25824"),
(15565,0,0,0,4097,0,0,"25824"),
(15566,0,0,0,4097,0,0,"25824"),
(15567,0,0,0,4097,0,0,"25824"),
(15568,0,0,0,4097,0,0,"25824"),
(15569,0,0,0,4097,0,0,"25824"),
(15570,0,0,0,4097,0,0,"25824"),
(15572,0,0,0,4097,0,0,"25824"),
(15573,0,0,0,4097,0,0,"25824"),
(15574,0,0,0,4097,0,0,"25824"),
(15575,0,0,0,4097,0,0,"25824"),
(15576,0,0,0,4097,0,0,"25824"),
(15577,0,0,0,4097,0,0,"25824"),
(15578,0,0,0,4097,0,0,"25824"),
(15579,0,0,0,4097,0,0,"25824"),
(15580,0,0,0,4097,0,0,"25824"),
(15581,0,0,0,4097,0,0,"25824"),
(15582,0,0,0,4097,0,0,"25824"),
(15583,0,0,0,4097,0,0,"25824"),
(15584,0,0,0,4097,0,0,"25824"),
(15585,0,0,0,4097,0,0,"25824"),
(15586,0,0,0,4097,0,0,"25824"),
(15587,0,0,0,4097,0,0,"25824"),
(15588,0,0,0,4097,0,0,"25824"),
(15592,0,0,0,4097,0,0,"25824"),
(15593,0,0,0,4097,0,0,"25824"),
(15594,0,0,0,4097,0,0,"25824"),
(15595,0,0,0,4097,0,0,"25824"),
(15596,0,0,0,4097,0,0,"25824"),
(15597,0,0,0,4097,0,0,"25824"),
(15598,0,0,0,4097,0,0,"25824"),
(15599,0,0,0,4097,0,0,"25824"),
(15600,0,0,0,4097,0,0,"25824"),
(15601,0,0,0,4097,0,0,"25824"),
(15602,0,0,0,4097,0,0,"25824"),
(15603,0,0,0,4097,0,0,"25824"),
(15604,0,0,0,4097,0,0,"25824"),
(15605,0,0,0,4097,0,0,"25824"),
(15606,0,0,0,4097,0,0,"25824"),
(15607,0,0,0,4097,0,0,"25824"),
(15871,0,0,0,4097,0,0,"25824"),
(30348,0,0,0,4097,0,0,"25824"),
(30357,0,0,0,4097,0,0,"25824"),
(30358,0,0,0,4097,0,0,"25824"),
(30359,0,0,0,4097,0,0,"25824"),
(30360,0,0,0,4097,0,0,"25824"),
(30362,0,0,0,4097,0,0,"25824"),
(30363,0,0,0,4097,0,0,"25824"),
(30364,0,0,0,4097,0,0,"25824"),
(30365,0,0,0,4097,0,0,"25824"),
(30367,0,0,0,4097,0,0,"25824"),
(30368,0,0,0,4097,0,0,"25824"),
(30369,0,0,0,4097,0,0,"25824"),
(30370,0,0,0,4097,0,0,"25824"),
(30371,0,0,0,4097,0,0,"25824"),
(30372,0,0,0,4097,0,0,"25824"),
(30373,0,0,0,4097,0,0,"25824"),
(30374,0,0,0,4097,0,0,"25824"),
(30375,0,0,0,4097,0,0,"25824"),
(30531,0,0,0,4097,0,0,"25824"),
(30533,0,0,0,4097,0,0,"25824"),
(30534,0,0,0,4097,0,0,"25824"),
(30535,0,0,0,4097,0,0,"25824"),
(30536,0,0,0,4097,0,0,"25824"),
(30537,0,0,0,4097,0,0,"25824"),
(30538,0,0,0,4097,0,0,"25824");
@@ -0,0 +1,2 @@
--
UPDATE `smart_scripts` SET `action_param2` = 0 WHERE `entryorguid` = 19847 AND `source_type` = 0 AND `id` = 4;
@@ -0,0 +1,3 @@
--
UPDATE `smart_scripts` SET `event_param2` = 0 WHERE `entryorguid` = 24137 AND `source_type` = 0 AND `event_type` = 61;
UPDATE `smart_scripts` SET `event_flags` = `event_flags` &~ 1 WHERE `event_type` = 11;
@@ -0,0 +1,73 @@
--
-- DELETE FROM `spelldifficulty_dbc` WHERE `id` = 64793;
-- INSERT INTO `spelldifficulty_dbc` (`id`,`spellid0`,`spellid1`,`spellid2`,`spellid3`) VALUES
-- (64793,64793,64941,0,0);
-- Boomer XP-500
UPDATE `creature_addon` SET `auras` = "63767" WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE `id` = 34192); -- Bomb Bot
-- Superheated Winds
UPDATE `creature_template_addon` SET `auras` = "64724" WHERE `entry` = 34194; -- Superheated Winds
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` IN (34190,34193,34194,34196,34197,34198,34199,34203,34223);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (34190,34193,34194,34196,34197,34198,34199,34203,34223) 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
-- Hardened Iron Golem
-- 1 17:45:18.000
-- 1 17:45:21.000 17:45:39.000 17:46:04.000 17:46:21.000 17:46:32.000
(34190,0,0,0,0,0,100,2,3000,3000,11000,25000,0,11,64874,0,0,0,0,0,5,0,0,0,0,0,0,0,0,"Hardened Iron Golem - In Combat - Cast 'Rune Punch' (Normal Dungeon)"),
(34190,0,1,0,0,0,100,4,3000,3000,11000,25000,0,11,64967,0,0,0,0,0,5,0,0,0,0,0,0,0,0,"Hardened Iron Golem - In Combat - Cast 'Rune Punch' (Heroic Dungeon)"),
-- 1 17:45:27.000 17:45:52.000 17:46:17.000 17:46:44.000
(34190,0,2,0,0,0,100,0,9000,9000,25000,25000,0,11,64877,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Hardened Iron Golem - In Combat - Cast 'Harden Fists'"),
-- Clockwork Sapper
(34193,0,0,0,0,0,100,0,5000,9000,10000,15000,0,11,64740,0,0,0,0,0,5,0,0,0,0,0,0,0,0,"Clockwork Sapper - In Combat - Cast 'Energy Sap'"),
(34193,0,1,0,0,0,100,0,15000,20000,25000,30000,0,11,64873,1,0,0,0,0,1,0,0,0,0,0,0,0,0,"Clockwork Sapper - In Combat - Cast 'Sapper Explosion'"),
-- Superheated Winds
(34194,0,0,0,54,0,100,0,0,0,0,0,0,20,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Superheated Winds - On Just Summoned - Stop Attacking"),
-- Rune Etched Sentry
(34196,0,0,0,0,0,100,2,10000,13000,20000,25000,0,11,64847,0,0,0,0,0,2,0,0,0,0,0,0,0,0,"Rune Etched Sentry - In Combat - Cast 'Runed Flame Jets' (Normal Dungeon)"),
(34196,0,1,0,0,0,100,4,10000,13000,20000,25000,0,11,64988,0,0,0,0,0,2,0,0,0,0,0,0,0,0,"Rune Etched Sentry - In Combat - Cast 'Runed Flame Jets' (Heroic Dungeon)"),
(34196,0,2,0,0,0,100,2,5000,8000,8000,11000,0,11,64870,0,0,0,0,0,5,0,0,0,0,0,0,0,0,"Rune Etched Sentry - In Combat - Cast 'Lava Burst' (Normal Dungeon)"),
(34196,0,3,0,0,0,100,4,5000,8000,8000,11000,0,11,64991,0,0,0,0,0,5,0,0,0,0,0,0,0,0,"Rune Etched Sentry - In Combat - Cast 'Lava Burst' (Heroic Dungeon)"),
(34196,0,4,0,0,0,100,0,4000,7000,10000,13000,0,11,64852,0,0,0,0,0,5,0,0,0,0,0,0,0,0,"Rune Etched Sentry - In Combat - Cast 'Flaming Rune'"),
-- Chamber Overseer
-- 1 17:51:10.000
-- 1 17:51:21.000 17:51:40.000 17:51:57.000 17:52:13.000 17:52:32.000
(34197,0,0,0,0,0,100,2,10000,10000,16000,19000,0,11,64820,0,0,0,0,0,5,0,0,0,0,0,0,0,0,"Chamber Overseer - In Combat - Cast 'Devastating Leap' (Normal Dungeon)"),
(34197,0,1,0,0,0,100,4,10000,10000,16000,19000,0,11,64943,0,0,0,0,0,5,0,0,0,0,0,0,0,0,"Chamber Overseer - In Combat - Cast 'Devastating Leap' (Heroic Dungeon)"),
-- 1 17:51:19.000 17:51:34.000 17:51:52.000 17:52:10.000 17:52:28.000
(34197,0,2,0,0,0,100,2,9000,9000,15000,22000,0,11,64825,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Chamber Overseer - In Combat - Cast 'Stagering Roar' (Normal Dungeon)"),
(34197,0,3,0,0,0,100,4,9000,9000,15000,22000,0,11,64944,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Chamber Overseer - In Combat - Cast 'Stagering Roar' (Heroic Dungeon)"),
-- 1 17:51:25.000 17:51:41.000 17:52:02.000 17:52:22.000
(34197,0,4,0,0,0,100,0,15000,15000,16000,21000,0,11,64783,0,0,0,0,0,5,0,0,0,0,0,0,0,0,"Chamber Overseer - In Combat - Cast 'Displacement Device'"),
-- Iron Mender
(34198,0,0,0,1,0,100,2,10000,20000,34000,34000,0,11,64768,0,0,0,0,0,19,34190,20,0,0,0,0,0,0,"Iron Mender - Out of Combat - Cast 'Lightning Channel' (Normal Dungeon)"),
(34198,0,1,0,0,0,100,2,5000,8000,8000,12000,0,11,64918,0,0,0,0,0,5,0,0,0,0,0,0,0,0,"Iron Mender - In Combat - Cast 'Electro Shock' (Normal Dungeon)"),
(34198,0,2,0,0,0,100,4,5000,8000,8000,12000,0,11,64971,0,0,0,0,0,5,0,0,0,0,0,0,0,0,"Iron Mender - In Combat - Cast 'Electro Shock' (Heroic Dungeon)"),
(34198,0,3,0,0,0,100,2,7000,12000,15000,20000,0,11,64903,0,0,0,0,0,5,0,0,0,0,0,0,0,0,"Iron Mender - In Combat - Cast 'Fuse Lightning' (Normal Dungeon)"),
(34198,0,4,0,0,0,100,4,7000,12000,15000,20000,0,11,64970,0,0,0,0,0,5,0,0,0,0,0,0,0,0,"Iron Mender - In Combat - Cast 'Fuse Lightning' (Heroic Dungeon)"),
-- Probably used on friends with low HP
(34198,0,5,0,0,0,100,2,10000,15000,20000,30000,0,11,64897,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Iron Mender - In Combat - Cast 'Fuse Metal' (Normal Dungeon)"),
(34198,0,6,0,0,0,100,4,10000,15000,20000,30000,0,11,64968,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Iron Mender - In Combat - Cast 'Fuse Metal' (Heroic Dungeon)"),
-- Lightning Charged Iron Dwarf
(34199,0,0,0,0,0,100,2,8000,12000,60000,65000,0,11,64889,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lightning Charged Iron Dwarf - In Combat - Cast 'Lightning Charged' (Normal Dungeon)"),
(34199,0,1,0,0,0,100,4,8000,12000,30000,35000,0,11,64975,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lightning Charged Iron Dwarf - In Combat - Cast 'Lightning Charged' (Heroic Dungeon)"),
-- Displacement Device
-- Seems like they're supposed to add threat to random targets but in sniffs every time they adds threat to one target
-- More info https://www.youtube.com/watch?v=5lqHdMwXHKM&feature=youtu.be&t=97
(34203,0,0,0,54,0,100,0,0,0,0,0,0,11,64785,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Displacement Device - On Just Summoned - Cast 'Random Lightning Visual'"),
(34203,0,1,0,54,0,100,2,0,0,0,0,0,11,64793,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Displacement Device - On Just Summoned - Cast 'Displacement' (Normal Dungeon)"),
(34203,0,3,0,54,0,100,4,0,0,0,0,0,11,64941,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Displacement Device - On Just Summoned - Cast 'Displacement' (Heroic Dungeon)"),
(34203,0,2,0,54,0,100,0,0,0,0,0,0,20,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Displacement Device - On Just Summoned - Stop Attacking"),
-- Sapper Explosion
(34223,0,0,0,54,0,100,0,0,0,0,0,0,11,64875,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Sapper Explosion - On Just Summoned - Cast 'Sapper Explosion'"),
(34223,0,1,0,54,0,100,0,0,0,0,0,0,8,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Sapper Explosion - On Just Summoned - Set Reactstate Passive"),
(34223,0,2,0,60,0,100,1,5500,5500,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Sapper Explosion - On Update - Despawn (5500)");
@@ -0,0 +1,68 @@
-- Kaya Flathoof SAI (https://www.youtube.com/watch?v=axY4vXGm7Q4)
SET @ID := 11856;
UPDATE `creature_template` SET `AIName` = "SmartAI", `ScriptName` = "" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` BETWEEN @ID*100+0 AND @ID*100+2 AND `source_type` = 9;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 11910 AND `source_type` = 0 AND `id` = 1;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 11912 AND `source_type` = 0 AND `id` = 2;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 11913 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID,0,0,0,19,0,100,0,6523,0,0,0,0,80,@ID*100+0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Kaya Flathoof - On Quest 'Protect Kaya' Taken - Run Script"),
(@ID,0,1,0,40,0,100,0,17,0,0,0,0,80,@ID*100+1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Kaya Flathoof - On Waypoint 17 Reached - Run Script"),
(@ID,0,2,0,40,0,100,0,19,0,0,0,0,80,@ID*100+2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Kaya Flathoof - On Waypoint 19 Reached - Run Script"),
(@ID,0,3,0,6,0,100,0,0,0,0,0,0,6,6523,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Kaya Flathoof - On Death - Fail Quest 'Protect Kaya'"),
(@ID*100+0,9,0,0,0,0,100,0,0,0,0,0,0,64,1,0,0,0,0,0,16,0,0,0,0,0,0,0,0,"Kaya Flathoof - On Script - Store Targetlist"),
(@ID*100+0,9,1,0,0,0,100,0,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Kaya Flathoof - On Script - Remove NPC Flag Questgiver"),
(@ID*100+0,9,2,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Kaya Flathoof - On Script - Say Line 0"),
(@ID*100+0,9,3,0,0,0,100,0,5000,5000,0,0,0,53,0,11856,0,0,0,2,1,0,0,0,0,0,0,0,0,"Kaya Flathoof - On Script - Start Waypoint"),
(@ID*100+0,9,4,0,0,0,100,0,0,0,0,0,0,19,512,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Kaya Flathoof - On Script - Remove Flag Immune To NPC's"),
(@ID*100+0,9,5,0,0,0,100,0,0,0,0,0,0,2,113,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Kaya Flathoof - On Script - Set Faction 113"),
(@ID*100+1,9,0,0,0,0,100,0,0,0,0,0,0,54,7000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Kaya Flathoof - On Script - Pause Waypoint"),
-- She should not be attacked instantly, probably it's done by another way
(@ID*100+1,9,1,0,0,0,100,0,0,0,0,0,0,18,512,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Kaya Flathoof - On Script - Add Flag Immune To NPC's"),
(@ID*100+1,9,2,0,0,0,100,0,2000,2000,0,0,0,107,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Kaya Flathoof - On Script - Summon Group 0"),
(@ID*100+1,9,3,0,0,0,100,0,2000,2000,0,0,0,1,1,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Kaya Flathoof - On Script - Say Line 1"),
(@ID*100+1,9,4,0,0,0,100,0,3000,3000,0,0,0,19,512,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Kaya Flathoof - On Script - Remove Flag Immune To NPC's"),
(@ID*100+2,9,0,0,0,0,100,0,0,0,0,0,0,54,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Kaya Flathoof - On Script - Pause Waypoint"),
(@ID*100+2,9,1,0,0,0,100,0,1000,1000,0,0,0,66,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Kaya Flathoof - On Script - Set Orientation Stored Target 1"),
(@ID*100+2,9,2,0,0,0,100,0,0,0,0,0,0,1,2,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Kaya Flathoof - On Script - Say Line 2"),
(@ID*100+2,9,3,0,0,0,100,0,5000,5000,0,0,0,26,6523,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Kaya Flathoof - On Script - Quest Credit 'Protect Kaya'"),
(@ID*100+2,9,4,0,0,0,100,0,0,0,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Kaya Flathoof - On Script - Despawn (0)"),
(11910,0,1,0,54,0,100,0,0,0,0,0,0,49,0,0,0,0,0,0,21,30,0,0,0,0,0,0,0,"Grimtotem Ruffian - On Just Summoned - Start Attacking Closest Player"),
(11912,0,2,0,54,0,100,0,0,0,0,0,0,49,0,0,0,0,0,0,21,30,0,0,0,0,0,0,0,"Grimtotem Brute - On Just Summoned - Start Attacking Closest Player"),
(11913,0,3,0,54,0,100,0,0,0,0,0,0,49,0,0,0,0,0,0,21,30,0,0,0,0,0,0,0,"Grimtotem Sorcerer - On Just Summoned - Start Attacking Closest Player");
UPDATE `creature_text` SET `comment` = "Kaya Flathoof" WHERE `CreatureID` = @ID;
DELETE FROM `creature_summon_groups` WHERE `summonerId` = @ID;
INSERT INTO `creature_summon_groups` (`summonerId`,`summonerType`,`groupId`,`entry`,`position_x`,`position_y`,`position_z`,`orientation`,`summonType`,`summonTime`,`Comment`) VALUES
(@ID,0,0,11910,-50.75,-500.77,-46.13,0.4,4,60000,"Kaya Flathoof - Group 0 - Grimtotem Ruffian"),
(@ID,0,0,11912,-40.05,-510.89,-46.05,1.7,4,60000,"Kaya Flathoof - Group 0 - Grimtotem Brute"),
(@ID,0,0,11913,-32.21,-499.20,-45.35,2.8,4,60000,"Kaya Flathoof - Group 0 - Grimtotem Sorcerer");
DELETE FROM `script_waypoint` WHERE `entry` = 11856;
DELETE FROM `waypoints` WHERE `entry` = 11856;
INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`,`point_comment`) VALUES
(11856,1,113.91,-350.13,4.55,"Kaya Flathoof"),
(11856,2,109.54,-350.08,3.74,"Kaya Flathoof"),
(11856,3,106.95,-353.4,3.6,"Kaya Flathoof"),
(11856,4,100.28,-338.89,2.97,"Kaya Flathoof"),
(11856,5,110.11,-320.26,3.47,"Kaya Flathoof"),
(11856,6,109.78,-287.8,5.3,"Kaya Flathoof"),
(11856,7,105.02,-269.71,4.71,"Kaya Flathoof"),
(11856,8,86.71,-251.81,5.34,"Kaya Flathoof"),
(11856,9,64.1,-246.38,5.91,"Kaya Flathoof"),
(11856,10,-2.55,-243.58,6.3,"Kaya Flathoof"),
(11856,11,-27.78,-267.53,-1.08,"Kaya Flathoof"),
(11856,12,-31.27,-283.54,-4.36,"Kaya Flathoof"),
(11856,13,-28.96,-322.44,-9.19,"Kaya Flathoof"),
(11856,14,-35.63,-360.03,-16.59,"Kaya Flathoof"),
(11856,15,-58.3,-412.26,-30.6,"Kaya Flathoof"),
(11856,16,-58.88,-474.17,-44.54,"Kaya Flathoof"),
(11856,17,-45.92,-496.57,-46.26,"Kaya Flathoof"),
(11856,18,-40.25,-510.07,-46.05,"Kaya Flathoof"),
(11856,19,-38.88,-520.72,-46.06,"Kaya Flathoof");
@@ -0,0 +1,181 @@
-- Lakota Windsong SAI (https://www.youtube.com/watch?v=WY1mdBgs9iE)
SET @ID := 10646;
UPDATE `creature_template` SET `AIName` = "SmartAI", `ScriptName` = "" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` BETWEEN @ID*100+0 AND @ID*100+4 AND `source_type` = 9;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 10758 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID,0,0,0,19,0,100,0,4904,0,0,0,0,80,@ID*100+0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Quest 'Free at Last' Taken - Run Script"),
(@ID,0,1,0,40,0,100,0,9,0,0,0,0,80,@ID*100+1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Waypoint 9 Reached - Run Script"),
(@ID,0,2,0,40,0,100,0,15,0,0,0,0,80,@ID*100+2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Waypoint 15 Reached - Run Script"),
(@ID,0,3,0,40,0,100,0,22,0,0,0,0,80,@ID*100+3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Waypoint 22 Reached - Run Script"),
(@ID,0,4,0,40,0,100,0,46,0,0,0,0,80,@ID*100+4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Waypoint 46 Reached - Run Script"),
(@ID,0,5,0,6,0,100,0,0,0,0,0,0,6,4904,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Lakota Windsong - On Death - Fail Quest 'Protect Kaya'"),
(@ID*100+0,9,0,0,0,0,100,0,0,0,0,0,0,64,1,0,0,0,0,0,16,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Store Targetlist"),
(@ID*100+0,9,1,0,0,0,100,0,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Remove NPC Flag Questgiver"),
(@ID*100+0,9,2,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Say Line 0"),
(@ID*100+0,9,3,0,0,0,100,0,3000,3000,0,0,0,53,0,10646,0,0,0,2,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Start Waypoint"),
(@ID*100+0,9,4,0,0,0,100,0,0,0,0,0,0,19,512,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Remove Flag Immune To NPC's"),
-- Was 232 but 232 makes her agressive and in video she's passive
(@ID*100+0,9,5,0,0,0,100,0,0,0,0,0,0,2,113,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Set Faction 113"),
(@ID*100+1,9,0,0,0,0,100,0,0,0,0,0,0,54,3000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Pause Waypoint"),
-- She should not be attacked instantly, probably it's done by another way
(@ID*100+1,9,1,0,0,0,100,0,0,0,0,0,0,18,512,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Add Flag Immune To NPC's"),
(@ID*100+1,9,2,0,0,0,100,0,1000,1000,0,0,0,1,1,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Say Line 1"),
(@ID*100+1,9,3,0,0,0,100,0,1000,1000,0,0,0,107,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Summon Group 0"),
(@ID*100+1,9,4,0,0,0,100,0,1000,1000,0,0,0,19,512,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Remove Flag Immune To NPC's"),
(@ID*100+2,9,0,0,0,0,100,0,0,0,0,0,0,54,3000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Pause Waypoint"),
(@ID*100+2,9,1,0,0,0,100,0,0,0,0,0,0,18,512,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Add Flag Immune To NPC's"),
(@ID*100+2,9,2,0,0,0,100,0,1000,1000,0,0,0,1,2,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Say Line 2"),
(@ID*100+2,9,3,0,0,0,100,0,1000,1000,0,0,0,107,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Summon Group 1"),
(@ID*100+2,9,4,0,0,0,100,0,1000,1000,0,0,0,19,512,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Remove Flag Immune To NPC's"),
(@ID*100+3,9,0,0,0,0,100,0,0,0,0,0,0,54,3000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Pause Waypoint"),
(@ID*100+3,9,1,0,0,0,100,0,0,0,0,0,0,18,512,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Add Flag Immune To NPC's"),
(@ID*100+3,9,2,0,0,0,100,0,1000,1000,0,0,0,1,3,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Say Line 3"),
(@ID*100+3,9,3,0,0,0,100,0,1000,1000,0,0,0,107,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Summon Group 2"),
(@ID*100+3,9,4,0,0,0,100,0,1000,1000,0,0,0,19,512,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Remove Flag Immune To NPC's"),
(@ID*100+4,9,0,0,0,0,100,0,0,0,0,0,0,54,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Pause Waypoint"),
(@ID*100+4,9,1,0,0,0,100,0,1000,1000,0,0,0,66,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Set Orientation Stored Target 1"),
(@ID*100+4,9,2,0,0,0,100,0,0,0,0,0,0,1,4,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Say Line 4"),
(@ID*100+4,9,3,0,0,0,100,0,0,0,0,0,0,15,4904,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Quest Credit 'Free at Last'"),
(@ID*100+4,9,4,0,0,0,100,0,0,0,0,0,0,41,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Lakota Windsong - On Script - Despawn (5000)"),
(10758,0,2,0,54,0,100,0,0,0,0,0,0,49,0,0,0,0,0,0,21,30,0,0,0,0,0,0,0,"Grimtotem Bandit - On Just Summoned - Start Attacking Closest Player");
UPDATE `creature_text` SET `comment` = "Lakota Windsong" WHERE `CreatureID` = @ID;
UPDATE `creature_text` SET `Emote` = 1 WHERE `CreatureID` = @ID AND `GroupID` IN (0,1,2);
UPDATE `creature_text` SET `Emote` = 22 WHERE `CreatureID` = @ID AND `GroupID` = 3;
UPDATE `creature_text` SET `Emote` = 3 WHERE `CreatureID` = @ID AND `GroupID` = 4;
DELETE FROM `creature_summon_groups` WHERE `summonerId` = @ID;
INSERT INTO `creature_summon_groups` (`summonerId`,`summonerType`,`groupId`,`entry`,`position_x`,`position_y`,`position_z`,`orientation`,`summonType`,`summonTime`,`Comment`) VALUES
(@ID,0,0,10758,-4905.479492,-2062.732666,84.352,0,4,60000,"Lakota Windsong - Group 0 - Grimtotem Bandit"),
(@ID,0,0,10758,-4915.201172,-2073.528320,84.733,0,4,60000,"Lakota Windsong - Group 0 - Grimtotem Bandit"),
(@ID,0,1,10758,-4878.883301,-1986.947876,91.966,0,4,60000,"Lakota Windsong - Group 1 - Grimtotem Bandit"),
(@ID,0,1,10758,-4877.503906,-1966.113403,91.859,0,4,60000,"Lakota Windsong - Group 1 - Grimtotem Bandit"),
(@ID,0,2,10758,-4767.985352,-1873.169189,90.192,0,4,60000,"Lakota Windsong - Group 2 - Grimtotem Bandit"),
(@ID,0,2,10758,-4788.861328,-1888.007813,89.888,0,4,60000,"Lakota Windsong - Group 2 - Grimtotem Bandit");
DELETE FROM `script_waypoint` WHERE `entry` = 10646;
DELETE FROM `waypoints` WHERE `entry` = 10646;
INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`,`point_comment`) VALUES
(10646,1,-4792.4,-2137.78,82.423,"Lakota Windsong"),
(10646,2,-4813.51,-2141.54,80.774,"Lakota Windsong"),
(10646,3,-4828.63,-2154.31,82.074,"Lakota Windsong"),
(10646,4,-4833.77,-2149.18,81.676,"Lakota Windsong"),
(10646,5,-4846.42,-2136.05,77.871,"Lakota Windsong"),
(10646,6,-4865.08,-2116.55,76.483,"Lakota Windsong"),
(10646,7,-4888.43,-2090.73,80.907,"Lakota Windsong"),
(10646,8,-4893.07,-2085.47,82.094,"Lakota Windsong"),
(10646,9,-4907.26,-2074.93,84.437,"Lakota Windsong"),
(10646,10,-4899.9,-2062.14,83.78,"Lakota Windsong"),
(10646,11,-4897.76,-2056.52,84.184,"Lakota Windsong"),
(10646,12,-4888.33,-2033.18,83.654,"Lakota Windsong"),
(10646,13,-4876.34,-2003.92,90.887,"Lakota Windsong"),
(10646,14,-4872.23,-1994.17,91.513,"Lakota Windsong"),
(10646,15,-4879.57,-1976.99,92.185,"Lakota Windsong"),
(10646,16,-4879.05,-1964.35,92.001,"Lakota Windsong"),
(10646,17,-4874.72,-1956.94,90.737,"Lakota Windsong"),
(10646,18,-4869.47,-1952.61,89.206,"Lakota Windsong"),
(10646,19,-4842.47,-1929,84.147,"Lakota Windsong"),
(10646,20,-4804.44,-1897.3,89.362,"Lakota Windsong"),
(10646,21,-4798.07,-1892.38,89.368,"Lakota Windsong"),
(10646,22,-4779.45,-1882.76,90.169,"Lakota Windsong"),
(10646,23,-4762.08,-1866.53,89.481,"Lakota Windsong"),
(10646,24,-4766.27,-1861.87,87.847,"Lakota Windsong"),
(10646,25,-4782.93,-1852.17,78.354,"Lakota Windsong"),
(10646,26,-4793.61,-1850.96,77.658,"Lakota Windsong"),
(10646,27,-4803.32,-1855.1,78.958,"Lakota Windsong"),
(10646,28,-4807.97,-1854.5,77.743,"Lakota Windsong"),
(10646,29,-4837.21,-1848.49,64.488,"Lakota Windsong"),
(10646,30,-4884.62,-1840.4,56.219,"Lakota Windsong"),
(10646,31,-4889.71,-1839.62,54.417,"Lakota Windsong"),
(10646,32,-4893.9,-1843.69,53.012,"Lakota Windsong"),
(10646,33,-4903.14,-1872.38,32.266,"Lakota Windsong"),
(10646,34,-4910.94,-1879.86,29.94,"Lakota Windsong"),
(10646,35,-4920.05,-1880.94,30.597,"Lakota Windsong"),
(10646,36,-4924.46,-1881.45,29.292,"Lakota Windsong"),
(10646,37,-4966.12,-1886.03,10.977,"Lakota Windsong"),
(10646,38,-4999.37,-1890.85,4.43,"Lakota Windsong"),
(10646,39,-5007.27,-1891.67,2.771,"Lakota Windsong"),
(10646,40,-5013.33,-1879.59,-1.947,"Lakota Windsong"),
(10646,41,-5023.33,-1855.96,-17.103,"Lakota Windsong"),
(10646,42,-5038.51,-1825.99,-35.821,"Lakota Windsong"),
(10646,43,-5048.73,-1809.8,-46.457,"Lakota Windsong"),
(10646,44,-5053.19,-1791.68,-57.186,"Lakota Windsong"),
(10646,45,-5062.09,-1794.4,-56.515,"Lakota Windsong"),
(10646,46,-5052.66,-1797.04,-54.734,"Lakota Windsong");
-- Pao'ka Swiftmountain SAI (https://www.youtube.com/watch?v=u_Lr-cbBmKU)
SET @ID := 10427;
UPDATE `creature_template` SET `AIName` = "SmartAI", `ScriptName` = "" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` BETWEEN @ID*100+0 AND @ID*100+2 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID,0,0,0,19,0,100,0,4770,0,0,0,0,80,@ID*100+0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Quest 'Homeward Bound' Taken - Run Script"),
(@ID,0,1,0,40,0,100,0,16,0,0,0,0,80,@ID*100+1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Waypoint 16 Reached - Run Script"),
(@ID,0,2,0,40,0,100,0,27,0,0,0,0,80,@ID*100+2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Waypoint 27 Reached - Run Script"),
(@ID,0,3,0,6,0,100,0,0,0,0,0,0,6,4770,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Death - Fail Quest 'Homeward Bound'"),
(@ID*100+0,9,0,0,0,0,100,0,0,0,0,0,0,64,1,0,0,0,0,0,16,0,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Script - Store Targetlist"),
(@ID*100+0,9,1,0,0,0,100,0,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Script - Remove NPC Flag Questgiver"),
(@ID*100+0,9,2,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Script - Say Line 0"),
(@ID*100+0,9,3,0,0,0,100,0,6000,6000,0,0,0,53,0,10427,0,0,0,2,1,0,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Script - Start Waypoint"),
(@ID*100+0,9,4,0,0,0,100,0,0,0,0,0,0,19,512,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Script - Remove Flag Immune To NPC's"),
-- Was 232 but 232 makes him agressive and in video he's passive
(@ID*100+0,9,5,0,0,0,100,0,0,0,0,0,0,2,113,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Script - Set Faction 113"),
(@ID*100+1,9,0,0,0,0,100,0,0,0,0,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Script - Pause Waypoint"),
(@ID*100+1,9,1,0,0,0,100,0,0,0,0,0,0,1,1,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Script - Say Line 1"),
(@ID*100+1,9,2,0,0,0,100,0,5000,5000,0,0,0,107,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Script - Summon Group 0"),
(@ID*100+2,9,0,0,0,0,100,0,0,0,0,0,0,54,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Script - Pause Waypoint"),
(@ID*100+2,9,1,0,0,0,100,0,1000,1000,0,0,0,1,2,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Script - Say Line 2"),
(@ID*100+2,9,2,0,0,0,100,0,5000,5000,0,0,0,15,4770,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Script - Quest Credit 'Homeward Bound'"),
(@ID*100+2,9,3,0,0,0,100,0,0,0,0,0,0,5,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Script - Play Emote 1"),
(@ID*100+2,9,4,0,0,0,100,0,1000,1000,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Pao'ka Swiftmountain - On Script - Despawn (0)");
UPDATE `creature_text` SET `comment` = "Pao'ka Swiftmountain" WHERE `CreatureID` = @ID;
UPDATE `creature_text` SET `Emote` = 1 WHERE `CreatureID` = @ID AND `GroupID` IN (0,1);
DELETE FROM `creature_summon_groups` WHERE `summonerId` = @ID;
INSERT INTO `creature_summon_groups` (`summonerId`,`summonerType`,`groupId`,`entry`,`position_x`,`position_y`,`position_z`,`orientation`,`summonType`,`summonTime`,`Comment`) VALUES
(@ID,0,0,4107,-4990.606,-906.057,-5.343,0,4,60000,"Pao'ka Swiftmountain - Group 0 - Highperch Wyvern"),
(@ID,0,0,4107,-4970.241,-927.378,-4.951,0,4,60000,"Pao'ka Swiftmountain - Group 0 - Highperch Wyvern"),
(@ID,0,0,4107,-4985.364,-952.528,-5.199,0,4,60000,"Pao'ka Swiftmountain - Group 0 - Highperch Wyvern");
DELETE FROM `script_waypoint` WHERE `entry` = 10427;
DELETE FROM `waypoints` WHERE `entry` = 10427;
INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`,`point_comment`) VALUES
(10427,1,-5185.46,-1185.93,45.951,"Pao'ka Swiftmountain"),
(10427,2,-5184.88,-1154.21,45.035,"Pao'ka Swiftmountain"),
(10427,3,-5175.88,-1126.53,43.701,"Pao'ka Swiftmountain"),
(10427,4,-5138.65,-1111.87,44.024,"Pao'ka Swiftmountain"),
(10427,5,-5134.73,-1104.8,47.365,"Pao'ka Swiftmountain"),
(10427,6,-5129.68,-1097.88,49.449,"Pao'ka Swiftmountain"),
(10427,7,-5125.3,-1080.57,47.033,"Pao'ka Swiftmountain"),
(10427,8,-5146.67,-1053.69,28.415,"Pao'ka Swiftmountain"),
(10427,9,-5147.46,-1027.54,13.818,"Pao'ka Swiftmountain"),
(10427,10,-5139.24,-1018.89,8.22,"Pao'ka Swiftmountain"),
(10427,11,-5121.17,-1013.13,-0.619,"Pao'ka Swiftmountain"),
(10427,12,-5091.92,-1014.21,-4.902,"Pao'ka Swiftmountain"),
(10427,13,-5069.24,-994.299,-4.631,"Pao'ka Swiftmountain"),
(10427,14,-5059.98,-944.112,-5.377,"Pao'ka Swiftmountain"),
(10427,15,-5013.55,-906.184,-5.49,"Pao'ka Swiftmountain"),
(10427,16,-4992.46,-920.983,-4.98,"Pao'ka Swiftmountain"),
(10427,17,-4976.35,-1003,-5.38,"Pao'ka Swiftmountain"),
(10427,18,-4958.48,-1033.19,-5.433,"Pao'ka Swiftmountain"),
(10427,19,-4953.35,-1052.21,-10.836,"Pao'ka Swiftmountain"),
(10427,20,-4937.45,-1056.35,-22.139,"Pao'ka Swiftmountain"),
(10427,21,-4908.46,-1050.43,-33.458,"Pao'ka Swiftmountain"),
(10427,22,-4905.53,-1056.89,-33.722,"Pao'ka Swiftmountain"),
(10427,23,-4920.83,-1073.28,-45.515,"Pao'ka Swiftmountain"),
(10427,24,-4933.37,-1082.7,-50.186,"Pao'ka Swiftmountain"),
(10427,25,-4935.31,-1092.35,-52.785,"Pao'ka Swiftmountain"),
(10427,26,-4929.55,-1101.27,-50.637,"Pao'ka Swiftmountain"),
(10427,27,-4920.68,-1100.03,-51.944,"Pao'ka Swiftmountain");
@@ -0,0 +1,97 @@
--
ALTER TABLE `creature_text_locale` DROP PRIMARY KEY, ADD PRIMARY KEY (`CreatureID`,`GroupID`,`ID`,`Locale`);
-- A-Me 01 SAI (https://www.youtube.com/watch?v=or8qY6uId0w)
-- No summons here
SET @ID := 9623;
DELETE FROM `creature_addon` WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE `id` = 9623);
UPDATE `creature_template` SET `AIName` = "SmartAI", `ScriptName` = "" WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` BETWEEN @ID*100+0 AND @ID*100+3 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID,0,0,0,11,0,100,0,0,0,0,0,0,90,7,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"A-Me 01 - On Respawn - Set Flag Standstate Dead"),
(@ID,0,1,0,4,0,50,0,0,0,0,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"A-Me 01 - On Aggro - Say Line 3"),
(@ID,0,2,0,0,0,100,256,5800,11800,14500,35600,0,11,13730,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"A-Me 01 - In Combat - Cast 'Demoralizing Shout' (No Reset)"),
(@ID,0,3,0,19,0,100,0,4245,0,0,0,0,80,@ID*100+0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"A-Me 01 - On Quest 'Chasing A-Me 01' Taken - Run Script"),
(@ID,0,4,0,40,0,100,0,20,0,0,0,0,80,@ID*100+2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"A-Me 01 - On Waypoint 20 Reached - Run Script"),
(@ID,0,5,0,40,0,100,0,38,0,0,0,0,80,@ID*100+3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"A-Me 01 - On Waypoint 38 Reached - Run Script"),
(@ID,0,6,0,40,0,100,0,40,0,0,0,0,41,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"A-Me 01 - On Waypoint 40 Reached - Despawn (5000)"),
(@ID,0,7,0,6,0,100,0,0,0,0,0,0,6,4245,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"A-Me 01 - On Death - Fail Quest 'Chasing A-Me 01'"),
(@ID*100+0,9,0,0,0,0,100,0,0,0,0,0,0,64,1,0,0,0,0,0,16,0,0,0,0,0,0,0,0,"A-Me 01 - On Script - Store Targetlist"),
(@ID*100+0,9,1,0,0,0,100,0,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"A-Me 01 - On Script - Remove NPC Flag Questgiver"),
-- Guessed timers, I didn't found video with this part
(@ID*100+0,9,2,0,0,0,100,0,0,0,0,0,0,91,7,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"A-Me 01 - On Script - Remove Flag Standstate Dead"),
(@ID*100+0,9,3,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"A-Me 01 - On Script - Say Line 0"),
(@ID*100+0,9,4,0,0,0,100,0,2000,2000,0,0,0,53,0,9623,0,0,0,1,1,0,0,0,0,0,0,0,0,"A-Me 01 - On Script - Start Waypoint"),
(@ID*100+0,9,5,0,0,0,100,0,0,0,0,0,0,19,512,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"A-Me 01 - On Script - Remove Flag Immune To NPC's"),
(@ID*100+0,9,6,0,0,0,100,0,0,0,0,0,0,2,250,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"A-Me 01 - On Script - Set Faction 250"),
(@ID*100+2,9,0,0,0,0,100,0,0,0,0,0,0,54,4000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"A-Me 01 - On Script - Pause Waypoint"),
(@ID*100+2,9,1,0,0,0,100,0,1000,1000,0,0,0,1,1,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"A-Me 01 - On Script - Say Line 1"),
(@ID*100+3,9,0,0,0,0,100,0,0,0,0,0,0,54,1000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"A-Me 01 - On Script - Pause Waypoint"),
(@ID*100+3,9,1,0,0,0,100,0,1000,1000,0,0,0,1,2,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"A-Me 01 - On Script - Say Line 2"),
(@ID*100+3,9,2,0,0,0,100,0,0,0,0,0,0,15,4245,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"A-Me 01 - On Script - Quest Credit 'Chasing A-Me 01'");
DELETE FROM `creature_text` WHERE `CreatureID` = @ID;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(@ID,0,0,"A-Me operational. A-Me go home. You speak to A-Me to change locomotion settings.",12,0,100,0,0,0,5062,0,"A-Me 01"),
(@ID,1,0,"Good... good, A-Me. A-Me good. Home. Find home.",12,0,100,0,0,0,5063,0,"A-Me 01"),
(@ID,2,0,"A-Me home! A-Me, good! Good A-Me. Home. Home. Home.",12,0,100,0,0,0,5156,0,"A-Me 01"),
(@ID,3,0,"Bad, $n. $n, bad!",12,0,100,0,0,0,5157,0,"A-Me 01"),
(@ID,3,1,"$n, no hurt A-Me. A-Me, good.",12,0,100,0,0,0,5158,0,"A-Me 01"),
(@ID,3,2,"Danger. Danger! $n try hurt A-Me.",12,0,100,0,0,0,5159,0,"A-Me 01"),
(@ID,3,3,"A-Me, home. A-Me go home! $n, no stop A-Me.",12,0,100,0,0,0,5160,0,"A-Me 01");
-- "ptBR", "A-Me boa. Boa, A-Me. Seguir... seguir A-Me. Casa. A-Me, minha casa."
DELETE FROM `creature_text_locale` WHERE `CreatureID` = @ID AND `GroupID` = 0;
INSERT INTO `creature_text_locale` (`CreatureID`,`GroupID`,`ID`,`Locale`,`Text`) VALUES
(@ID,0,0,"deDE","A-Me gut. Gut, A-Me. Folgen... A-Me folgen. Heim. A-Me geht heim."), -- 5062
(@ID,0,0,"esES","Memo bueno. Bueno, Memo. Seguir... seguir a Memo. Casa. Memo ir a casa."), -- 5062
(@ID,0,0,"esMX","Memo bueno. Bueno, Memo. Seguir... seguir a Memo. Casa. Memo ir a casa."), -- 5062
(@ID,0,0,"frFR","A-mi bonne. Bonne, A-mi. Suivre... Suivre A-mi. Maison. A-mi va maison."), -- 5062
(@ID,0,0,"ruRU","Чи-Та хорошо. Все хорошо, Чи-Та. Идти… Идти за Чи-Та. Домой. Чи-Та идти домой."); -- 5062
DELETE FROM `script_waypoint` WHERE `entry` = 9623;
DELETE FROM `waypoints` WHERE `entry` = 9623;
INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`,`point_comment`) VALUES
(9623,1,-6383.07,-1964.37,-258.709,"A-Me 01"),
(9623,2,-6393.65,-1949.57,-261.449,"A-Me 01"),
(9623,3,-6397.85,-1931.1,-263.366,"A-Me 01"),
(9623,4,-6397.5,-1921.47,-263.876,"A-Me 01"),
(9623,5,-6389.63,-1910,-259.601,"A-Me 01"),
(9623,6,-6380.07,-1905.45,-255.858,"A-Me 01"),
(9623,7,-6373.44,-1900.28,-254.774,"A-Me 01"),
(9623,8,-6372.87,-1893.5,-255.678,"A-Me 01"),
(9623,9,-6379.73,-1877.63,-259.654,"A-Me 01"),
(9623,10,-6380.26,-1871.14,-260.617,"A-Me 01"),
(9623,11,-6373.83,-1855.62,-259.566,"A-Me 01"),
(9623,12,-6368.82,-1847.77,-259.246,"A-Me 01"),
(9623,13,-6370.9,-1835.04,-260.212,"A-Me 01"),
(9623,14,-6376.59,-1821.59,-260.856,"A-Me 01"),
(9623,15,-6381.93,-1810.43,-266.18,"A-Me 01"),
(9623,16,-6396.71,-1807.12,-269.329,"A-Me 01"),
(9623,17,-6400.27,-1795.05,-269.744,"A-Me 01"),
(9623,18,-6402.68,-1747.51,-272.961,"A-Me 01"),
(9623,19,-6397,-1710.05,-273.719,"A-Me 01"),
(9623,20,-6388.11,-1676.33,-272.133,"A-Me 01"),
(9623,21,-6370.71,-1638.64,-272.031,"A-Me 01"),
(9623,22,-6366.71,-1592.65,-272.201,"A-Me 01"),
(9623,23,-6333.87,-1534.6,-270.493,"A-Me 01"),
(9623,24,-6305.36,-1477.91,-269.518,"A-Me 01"),
(9623,25,-6311.59,-1419.02,-267.622,"A-Me 01"),
(9623,26,-6330.01,-1400.06,-266.425,"A-Me 01"),
(9623,27,-6356.02,-1392.61,-267.123,"A-Me 01"),
(9623,28,-6370.86,-1386.18,-270.218,"A-Me 01"),
(9623,29,-6381.53,-1369.78,-272.11,"A-Me 01"),
(9623,30,-6405.38,-1321.52,-271.699,"A-Me 01"),
(9623,31,-6406.58,-1307.57,-271.802,"A-Me 01"),
(9623,32,-6386.33,-1286.85,-272.074,"A-Me 01"),
(9623,33,-6364.25,-1264.71,-269.075,"A-Me 01"),
(9623,34,-6343.64,-1239.84,-268.364,"A-Me 01"),
(9623,35,-6335.57,-1202.45,-271.515,"A-Me 01"),
(9623,36,-6325.62,-1184.46,-270.461,"A-Me 01"),
(9623,37,-6317.8,-1177.67,-269.792,"A-Me 01"),
(9623,38,-6303.02,-1180.25,-269.332,"A-Me 01"),
(9623,39,-6301.98,-1184.79,-269.371,"A-Me 01"),
(9623,40,-6297.58,-1186.41,-268.962,"A-Me 01");
@@ -0,0 +1,2 @@
--
DELETE FROM `smart_scripts` WHERE `event_type`=36 AND `action_type`=48;
@@ -0,0 +1,2 @@
--
DELETE FROM `gameobject_addon` WHERE `guid`=28367;
@@ -0,0 +1,12 @@
ALTER TABLE `game_event_battleground_holiday`
CHANGE `eventEntry` `EventEntry` TINYINT(3) UNSIGNED NOT NULL COMMENT 'game_event EventEntry identifier',
CHANGE `bgflag` `BattlegroundID` INT(3) UNSIGNED DEFAULT 0 NOT NULL;
DELETE FROM `game_event_battleground_holiday`;
-- INSERT INTO `game_event_battleground_holiday` (`EventEntry`, `BattlegroundID`) VALUES
-- (18, 1),
-- (19, 2),
-- (20, 3),
-- (21, 7),
-- (53, 9),
-- (54, 30);
@@ -0,0 +1,4 @@
-- Path and formation added but aren't used
UPDATE `creature` SET `MovementType` = 2 WHERE `id` = 1437;
-- Creatures will never use dist and angle without movement(these shouldn't move)
UPDATE `creature_formations` SET `dist` = 0, `angle` = 0 WHERE `leaderGUID` IN (54579,138249,138252);
@@ -0,0 +1,4 @@
--
ALTER TABLE `spell_scripts` ADD COLUMN `Comment` varchar(255) NOT NULL DEFAULT '';
ALTER TABLE `event_scripts` ADD COLUMN `Comment` varchar(255) NOT NULL DEFAULT '';
ALTER TABLE `waypoint_scripts` ADD COLUMN `Comment` varchar(255) NOT NULL DEFAULT '';
@@ -0,0 +1,30 @@
-- Source: Sniffs & https://www.youtube.com/watch?v=F-oYzmB7-84
UPDATE `creature_template` SET `ScriptName` = "" WHERE `entry` = 25862;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 4894 AND `source_type` = 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(4894,2,0,1,46,0,100,0,4894,0,0,0,0,86,46231,0,19,25862,0,0,7,0,0,0,0,0,0,0,0,"Areatrigger (Borean Tundra) - On Trigger - Cross Cast 'Mammoth Calf Escort Credit' (Khu'nok the Behemoth)"),
-- Will not work because is called instantly after spell cast with another emote
(4894,2,1,2,61,0,100,0,0,0,0,0,0,5,377,0,0,0,0,0,19,25862,0,0,0,0,0,0,0,"Areatrigger (Borean Tundra) - On Link - Play Emote 377 (Khu'nok the Behemoth)"),
(4894,2,2,0,61,0,100,0,0,0,0,0,0,4,9917,0,1,0,0,0,19,25862,0,0,0,0,0,0,0,"Areatrigger (Borean Tundra) - On Link - Play Sound 9917 (Khu'nok the Behemoth)");
DELETE FROM `areatrigger_scripts` WHERE `entry` = 4894;
INSERT INTO `areatrigger_scripts` (`entry`,`ScriptName`) VALUES
(4894,"SmartTrigger");
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 4894 AND `SourceId` = 2;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
-- We don't need to check if Calf is nearby https://www.wowhead.com/quest=11878/khunok-will-know#comments:id=1053786
(22,1,4894,2,0,9,0,11878,0,0,0,0,0,"","Group 0: Execute SAI (Action 0) if player has taken quest 'Khu'nok Will Know'"),
(22,1,4894,2,0,28,0,11878,0,0,1,0,0,"","Group 0: Execute SAI (Action 0) if quest 'Khu'nok Will Know' is not completed");
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 13 AND `SourceEntry` = 46237;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(13,1,46237,0,0,31,0,3,25861,0,0,0,0,"","Group 0: Spell 'Dismiss Orphaned Mammoth' targets creature 'Orphaned Mammoth Calf'"),
-- I don't know if it's needed
(13,1,46237,0,0,33,0,1,3,0,0,0,0,"","Group 0: Spell 'Dismiss Orphaned Mammoth' targets creature 'Orphaned Mammoth Calf' if owned by spell caster");
DELETE FROM `spell_scripts` WHERE `id` = 46237;
INSERT INTO `spell_scripts` (`id`,`effIndex`,`delay`,`command`,`datalong`,`datalong2`,`dataint`,`x`,`y`,`z`,`o`,`Comment`) VALUES
(46237,0,0,18,3000,0,0,0,0,0,0,"Dismiss Orphaned Mammoth - On Effect Hit (Dummy) - Despawn (3000) (Orphaned Mammoth Calf)"),
-- Probably must be better syncronized by calling only when Calf despawns
(46237,0,3,14,46233,1,0,0,0,0,0,"Dismiss Orphaned Mammoth - On Effect Hit (Dummy) - Remove Aura 'Call Mammoth Orphan'");
@@ -0,0 +1,35 @@
--
SET @ID := 5391;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID*100+0 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID*100+0,9,0,0,0,0,100,0,0,0,0,0,0,64,1,0,0,0,0,0,16,0,0,0,0,0,0,0,0,"Galen Goodward - On Script - Store Targetlist"),
(@ID*100+0,9,1,0,0,0,100,0,0,0,0,0,0,22,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Script - Set Event Phase 0"),
(@ID*100+0,9,2,0,0,0,100,0,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Script - Remove NPC Flag Questgiver"),
(@ID*100+0,9,3,0,0,0,100,0,0,0,0,0,0,1,2,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Galen Goodward - On Script - Say Line 2"),
(@ID*100+0,9,4,0,0,0,100,0,3000,3000,0,0,0,9,0,0,0,0,0,0,20,37118,0,0,0,0,0,0,0,"Galen Goodward - On Script - Activate Closest Gameobject 'Galen's Cage'"),
(@ID*100+0,9,5,0,0,0,100,0,0,0,0,0,0,53,0,5391,0,0,0,2,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Script - Start Waypoint"),
(@ID*100+0,9,6,0,0,0,100,0,0,0,0,0,0,19,256,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Script - Remove Flags Immune To Players"),
(@ID*100+0,9,7,0,0,0,100,0,0,0,0,0,0,2,250,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Galen Goodward - On Script - Set Faction 250");
SET @ID := 16295;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID*100+0 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID*100+0,9,0,0,0,0,100,0,0,0,0,0,0,64,1,0,0,0,0,0,16,0,0,0,0,0,0,0,0,"Ranger Lilatha - On Script - Store Targetlist"),
(@ID*100+0,9,1,0,0,0,100,0,0,0,0,0,0,22,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Ranger Lilatha - On Script - Set Event Phase 0"),
(@ID*100+0,9,2,0,0,0,100,0,0,0,0,0,0,83,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Ranger Lilatha - On Script - Remove NPC Flags Gossip & Questgiver"),
(@ID*100+0,9,3,0,0,0,100,0,2000,2000,0,0,0,91,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Ranger Lilatha - On Script - Remove Flag Standstate Kneel"),
(@ID*100+0,9,4,0,0,0,100,0,0,0,0,0,0,9,0,0,0,0,0,0,20,181152,0,0,0,0,0,0,0,"Ranger Lilatha - On Script - Activate Closest Gameobject (Cage)"),
(@ID*100+0,9,5,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Ranger Lilatha - On Script - Say Line 0"),
(@ID*100+0,9,6,0,0,0,100,0,2000,2000,0,0,0,53,0,16295,0,0,0,2,1,0,0,0,0,0,0,0,0,"Ranger Lilatha - On Script - Start Waypoint"),
(@ID*100+0,9,7,0,0,0,100,0,0,0,0,0,0,19,768,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Ranger Lilatha - On Script - Remove Flags Immune To Players & Immune To NPC's"),
(@ID*100+0,9,8,0,0,0,100,0,0,0,0,0,0,2,1603,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Ranger Lilatha - On Script - Set Faction 1603");
SET @ID := 17969;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID*100+0 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ID*100+0,9,0,0,0,0,100,0,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Kayra Longmane - On Script - Store Targetlist"),
(@ID*100+0,9,1,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,0,"Kayra Longmane - On Script - Say Line 0"),
(@ID*100+0,9,2,0,0,0,100,0,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Kayra Longmane - On Script - Remove NPC Flag Questgiver"),
(@ID*100+0,9,3,0,0,0,100,0,3000,3000,0,0,0,91,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Kayra Longmane - On Script - Remove Flag Standstate Kneel"),
(@ID*100+0,9,4,0,0,0,100,0,0,0,0,0,0,53,0,17969,0,0,0,2,1,0,0,0,0,0,0,0,0,"Kayra Longmane - On Script - Start Waypoint"),
(@ID*100+0,9,5,0,0,0,100,0,0,0,0,0,0,2,495,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Kayra Longmane - On Script - Set Faction 495");
@@ -0,0 +1,3 @@
--
UPDATE `creature_summon_groups` SET `Comment` = "Ranger Lilatha - Group 0 - Shadowpine Oracle" WHERE `summonerId` = 16295 AND `entry` = 16343;
UPDATE `creature_summon_groups` SET `Comment` = "Ranger Lilatha - Group 0 - Mummified Headhunter" WHERE `summonerId` = 16295 AND `entry` = 16342;
@@ -0,0 +1,11 @@
--
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `spawntimesecs` = 180 AND `id` IN (25882,25885,25981,26007,26012,26075,26307,26309,26324,26325,26326,26327,26328,26329,26330,26331,26332,26426,26451,26483,26496,26521,26546,26547,26548,26606,26607,26724,26738,26739,26740,26741,26742,26743,26744,26745,26747,26748,26749,26751,26752,26753,26754,26755,26756,26757,26758,26759,26760,26765);
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `spawntimesecs` = 120 AND `id` IN (347,349,620,721,857,907,1231,1293,1379,1420,2302,2804,2914,3287,3300,3890,4049,4075,5118,5403,5406,5674,5890,5891,5951,6073,6115,6145,6271,6368,6491,7395,11697,11942,12197,12198,12341,12342,12343,12346,12349,12350,12372,12373,12374,12864,13321,14543,14544,14545,14546,14547,14548,14558,14822,14823,14827,14828,14829,14832,14833,14841,14844,14845,14846,14847,14849,14860,14864,14865,14866,14867,14868,14869,14871,14881,14942,14981,14982,14990,14991,15006,15007,15008,15102,15103,15105,15106,15186,15214,15218,15241,15303,15350,15351,15353,15724,15730,15732,15891,15892,15893,15894,15895,15897,15898,16030,16069,16183,16192,16196,16204,16221,16226,16232,16239,16240,16253,16291,16348,16349,16352,16354,16355,16358,16404,16405,16465,16466,16480,16499,16500,16503,16509,16541,16553,16592,16626,16632,16657,16693,16694,16695,16696,16705,16707,16709,16710,16724,16725,16726,16727,16728,16731,16733,16735,16736,16739,16743,16745,16746,16747,16751,16755,16756,16763,16765,16766,16771,16773,16774,16781,16817,16818,16852,16904,16906,16920,16977,17002,17004,17008,17039,17060,17062,17071,17101,17117,17120,17146,17147,17222,17242,17404,17405,17417,17418,17425,17436,17483,17485,17488,17510,17511,17530,17538,17600,7584,10360,10445,11156,17714,17773,17794,17795,17849,17929,17930,18034,18183,18204,18209,18230,18233,18237,18240,18348,18349,18350,18729,18733,18800,18815,18896,18915,18927,19028,19029,19032,19076,19163,19164,19169,19171,19443,19672,19673,19674,19677,19687,19698,19757,19760,19778,20114,20118,20119,20120,20158,20227,20269,20271,20272,20273,20274,20276,20339,20362,20374,20381,20382,20383,20384,20385,20386,20388,20390,20395,20604,20677,20678,20679,20847,20850,20872,21008,21173,21235,21292,21307,21347,21501,21699,21788,21795,21879,21971,22013,22015,22829,22831,22838,22839,22842,22843,22866,22934,23033,23040,23081,23101,23102,23106,23107,23108,23131,23143,23286,23291,23308,23311,23340,23342,23344,23345,23346,23348,23370,23376,23381,23427,23433,23437,23461,23462,23463,23464,23465,23466,23482,23488,23489,23507,23510,23511,23527,23528,23529,23530,23531,23537,23619,23623,23624,23625,23626,23699,23700,23702,23703,23706,23730,23740,23745,23746,23747,23749,23755,23766,23771,23784,23785,23808,23830,23837,23839,23840,23842,23845,23850,23852,23853,23854,23855,23888,24014,24018,24021,24029,24038,24042,24048,24050,24052,24053,24054,24055,24056,24057,24058,24066,24076,24109,24110,24174,24177,24186,24195,24209,24226,24228,24229,24250,24253,24254,24255,24270,24277,24282,24328,24364,24369,24370,24372,24373,24437,24439,24456,24484,24495,24501);
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `spawntimesecs` != 300 AND `id` IN (68,332,525,678,679,680,709,710,721,822,871,873,875,877,879,883,1095,1412,1976,2110,2330,2331,2635,2914,3504,4075,4076);
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `spawntimesecs` != 300 AND `id` IN (27666,27703,27705,27707,27711,27806,27810,27811,27812,27813,27814,27815,27816,27817,27818,27819,27820,28049,28050,28051,28052,28058,28060,28126,28329,28347,28355,28481,28486,28573,29093,29095,29141,29142,29143,29144,29145,29152,29154,29203,29205,29207,29208,29212,29239,29287,29288,29289,29290,29291,29292,29293,29294,29295,29296,29297,29298,29299,29300,29588,29589,29712,29865,29866,29868,29873,30217,30566,30567,30611,30627,30706,30709,30710,30711,30713,30715,30716,30717,30723,30724,30727,30729,30730,30731,30732,30733,30734,31144,32380,32381,32383,32405,32407,32542,32543,32545,32546,32666,32667,32832,32834,33068,33608,33609,33610,33611,33612,33613,33614,33615,33616,33617,33618,33619,33621,33623,33631,33633,33634,33635,33636,33637,33640,33641,33674,33675,33676,33677,33678,33680,33681,33682,33683,33684,33712,33713,33915,33916,33917,33918,33919,33920,33924,33928,33929,33930,33931,33932,33933,33934,33935,33939,33940,33941,33996,34038,34043,34063,34075,34078,34081,34088,34089,34090,34091,34093,34094,34158,34238,34281,34382,34383,34476,34477,34478,34479,34480,34481,34482,34483,34484,34526,34766,34948,34949,34950,34951,35068,35093,35100,35168,35169,35243,35244,35246,35247,35248,35250,35251,35252,35253,35258,35259,35260,35261,35281,35364,35365,35477,36208,36213,36217,36479,36481,36817,37512,37523,37543,37574,37707,37915,37964,37981,40184,40187,40204,40218,40222,40253,40256,40257,40301,40352,40356,40392,40405,40441,40607);
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `spawntimesecs` != 300 AND `id` IN (23233,23253,23256,23263,23268,23272,23280,23300,23310,23316,23334,23335,23347,23362,23363,23373,23392,23413,23428,23473,23724,23761,23830,23858,23948,23988,24393,24416,24436,24437,24545,24728,24851,24866,24881,24885,24905,24920,24921,24922,24925,24928,24936,24974,24980,24991,25034,25035,25036,25037,25045,25046,25063,25088,25108,25133,25134,25135,25136,25137,25138,25140,25141,25142,25143,25153,25155,25192,25195,25196,25200,25202,25207,25223,25225,25580,25931,25933,25953,25975,25991,25994,26113,26123);
UPDATE `creature` SET `spawntimesecs` = 300 WHERE `spawntimesecs` != 300 AND `id` IN (6491,15351,19227,19169,20086,20431,21180,21505,21725,21727,21743,22014,22026,22097,22098,22101,22237,22266,22270,22271,22819,22823,22836,22922,22940,22995,23110,23112,23120,23560);
-- Wrong spawns, summoned or spawns only after specific events
DELETE FROM `creature` WHERE `id` IN (15241,17039);
DELETE FROM `spawn_group` WHERE `spawnId` = 86010 AND `spawnType`=0;

Some files were not shown because too many files have changed in this diff Show More