This commit is contained in:
hondacrx
2019-06-19 15:26:56 -04:00
parent 695930fb6d
commit ad627c3fa2
51 changed files with 535438 additions and 81 deletions
@@ -241,6 +241,9 @@ namespace Game
return;
Guild guild = Global.GuildMgr.GetGuildById(player.GetGuildId());
if (guild == null)
return;
if (guild.GetLeaderGUID() != player.GetGUID())
return;
+10 -72
View File
@@ -336,6 +336,7 @@ CREATE TABLE `battlenet_account_toys` (
`accountId` int(10) unsigned NOT NULL,
`itemId` int(11) NOT NULL DEFAULT '0',
`isFavourite` tinyint(1) DEFAULT '0',
`hasFanfare` tinyint(1) DEFAULT '0',
PRIMARY KEY (`accountId`,`itemId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -434,58 +435,6 @@ LOCK TABLES `battlenet_item_favorite_appearances` WRITE;
/*!40000 ALTER TABLE `battlenet_item_favorite_appearances` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ip2nation`
--
DROP TABLE IF EXISTS `ip2nation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ip2nation` (
`ip` int(11) unsigned NOT NULL DEFAULT '0',
`country` char(2) NOT NULL DEFAULT '',
KEY `ip` (`ip`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ip2nation`
--
LOCK TABLES `ip2nation` WRITE;
/*!40000 ALTER TABLE `ip2nation` DISABLE KEYS */;
/*!40000 ALTER TABLE `ip2nation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ip2nationCountries`
--
DROP TABLE IF EXISTS `ip2nationCountries`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ip2nationCountries` (
`code` varchar(4) NOT NULL DEFAULT '',
`iso_code_2` varchar(2) NOT NULL DEFAULT '',
`iso_code_3` varchar(3) DEFAULT '',
`iso_country` varchar(255) NOT NULL DEFAULT '',
`country` varchar(255) NOT NULL DEFAULT '',
`lat` float NOT NULL DEFAULT '0',
`lon` float NOT NULL DEFAULT '0',
PRIMARY KEY (`code`),
KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ip2nationCountries`
--
LOCK TABLES `ip2nationCountries` WRITE;
/*!40000 ALTER TABLE `ip2nationCountries` DISABLE KEYS */;
/*!40000 ALTER TABLE `ip2nationCountries` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ip_banned`
--
@@ -805,11 +754,8 @@ INSERT INTO `rbac_linked_permissions` VALUES
(196,304),
(196,305),
(196,306),
(196,307),
(196,308),
(196,309),
(196,310),
(196,313),
(196,314),
(196,319),
(196,320),
@@ -824,13 +770,9 @@ INSERT INTO `rbac_linked_permissions` VALUES
(196,329),
(196,330),
(196,331),
(196,332),
(196,333),
(196,334),
(196,335),
(196,336),
(196,337),
(196,338),
(196,339),
(196,340),
(196,341),
@@ -1250,7 +1192,6 @@ INSERT INTO `rbac_linked_permissions` VALUES
(198,532),
(198,544),
(198,545),
(198,546),
(198,547),
(198,548),
(198,549),
@@ -1503,13 +1444,10 @@ INSERT INTO `rbac_permissions` VALUES
(304,'Command: debug bg'),
(305,'Command: debug entervehicle'),
(306,'Command: debug getitemstate'),
(307,'Command: debug getitemvalue'),
(308,'Command: debug getvalue'),
(309,'Command: debug hostil'),
(310,'Command: debug itemexpire'),
(311,'Command: debug lootrecipient'),
(312,'Command: debug los'),
(313,'Command: debug mod32value'),
(314,'Command: debug moveflags'),
(315,'Command: debug play'),
(316,'Command: debug play cinematics'),
@@ -1528,13 +1466,9 @@ INSERT INTO `rbac_permissions` VALUES
(329,'Command: debug send setphaseshift'),
(330,'Command: debug send spellfail'),
(331,'Command: debug setaurastate'),
(332,'Command: debug setbit'),
(333,'Command: debug setitemvalue'),
(334,'Command: debug setvalue'),
(335,'Command: debug setvid'),
(336,'Command: debug spawnvehicle'),
(337,'Command: debug threat'),
(338,'Command: debug update'),
(339,'Command: debug uws'),
(340,'Command: wpgps'),
(341,'Command: deserter'),
@@ -1741,7 +1675,6 @@ INSERT INTO `rbac_permissions` VALUES
(543,'Command: demorph'),
(544,'Command: modify'),
(545,'Command: modify arenapoints'),
(546,'Command: modify bit'),
(547,'Command: modify drunk'),
(548,'Command: modify energy'),
(549,'Command: modify faction'),
@@ -1846,7 +1779,7 @@ INSERT INTO `rbac_permissions` VALUES
(650,'Command: reload support'),
(651,'Command: reload gossip_menu'),
(652,'Command: reload gossip_menu_option'),
(653,'Command: reload item_enchantment_template'),
(653,'Command: reload item_random_bonus_list_template'),
(654,'Command: reload item_loot_template'),
(655,'Command: reload item_set_names'),
(656,'Command: reload lfg_dungeon_rewards'),
@@ -2076,7 +2009,7 @@ CREATE TABLE `realmlist` (
`timezone` tinyint(3) unsigned NOT NULL DEFAULT '0',
`allowedSecurityLevel` tinyint(3) unsigned NOT NULL DEFAULT '0',
`population` float unsigned NOT NULL DEFAULT '0',
`gamebuild` int(10) unsigned NOT NULL DEFAULT '28153',
`gamebuild` int(10) unsigned NOT NULL DEFAULT '30706',
`Region` tinyint(3) unsigned NOT NULL DEFAULT '1',
`Battlegroup` tinyint(3) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
@@ -2091,7 +2024,7 @@ CREATE TABLE `realmlist` (
LOCK TABLES `realmlist` WRITE;
/*!40000 ALTER TABLE `realmlist` DISABLE KEYS */;
INSERT INTO `realmlist` VALUES
(1,'Trinity','127.0.0.1','127.0.0.1','255.255.255.0',8085,0,0,1,0,0,28153,1,1);
(1,'Trinity','127.0.0.1','127.0.0.1','255.255.255.0',8085,0,0,1,0,0,30706,1,1);
/*!40000 ALTER TABLE `realmlist` ENABLE KEYS */;
UNLOCK TABLES;
@@ -2242,9 +2175,14 @@ INSERT INTO `updates` VALUES
('2018_05_24_00_auth.sql','B98FD71AAA13810856729E034E6B8C9F8D5D4F6B','RELEASED','2018-05-24 22:32:49',0),
('2018_06_14_00_auth.sql','67EAB915BF0C7F2D410BE45F885A1A39D42C8C14','RELEASED','2018-06-14 23:06:59',0),
('2018_06_22_00_auth.sql','9DA24F70B8A365AFDEF58A9B578255CDEDFCA47C','RELEASED','2018-06-22 17:45:45',0),
('2018_06_23_00_auth.sql','BE35312C386A127D047E5A7CE0D14DB41D905F8E','RELEASED','2018-05-23 10:14:39',0),
('2018_06_29_00_auth.sql','03AAEA7E52848FA5522C3F0C6D9C38B988407480','RELEASED','2018-06-29 22:34:04',0),
('2018_12_09_00_auth_2017_01_06_00_auth.sql','6CCFE6A9774EC733C9863D36A0F15F3534189BBD','RELEASED','2018-11-22 22:21:26',0),
('2018_12_09_01_auth.sql','576C2A11BE671D8420FA3EB705E594E381ECCC56','RELEASED','2018-12-09 14:49:17',0);
('2018_12_09_01_auth.sql','576C2A11BE671D8420FA3EB705E594E381ECCC56','RELEASED','2018-12-09 14:49:17',0),
('2019_06_08_00_auth.sql','EA5A78F5A26C17BC790481EA9B3772D3A6912459','RELEASED','2019-05-20 17:21:20',0),
('2019_06_08_01_auth.sql','8165B1B787E3ECF0C8C0AD2D641513270977ABB4','RELEASED','2019-06-04 16:51:31',0),
('2019_06_08_02_auth.sql','B39DCBD902290700A81C9D028F54B58601C19A99','RELEASED','2019-06-05 16:26:31',0),
('2019_06_08_03_auth.sql','F483B657015D39D4F63E3905C27C3AA48241AB03','RELEASED','2019-06-08 17:14:21',0);
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
UNLOCK TABLES;
+6 -9
View File
@@ -1623,9 +1623,7 @@ CREATE TABLE `character_void_storage` (
`itemEntry` mediumint(8) unsigned NOT NULL,
`slot` tinyint(3) unsigned NOT NULL,
`creatorGuid` bigint(20) unsigned NOT NULL DEFAULT '0',
`randomPropertyType` tinyint(3) unsigned NOT NULL DEFAULT '0',
`randomProperty` int(10) unsigned NOT NULL DEFAULT '0',
`suffixFactor` int(10) unsigned NOT NULL DEFAULT '0',
`randomBonusListId` int(10) unsigned NOT NULL DEFAULT '0',
`upgradeId` int(10) unsigned NOT NULL DEFAULT '0',
`fixedScalingLevel` int(10) unsigned DEFAULT '0',
`artifactKnowledgeLevel` int(10) unsigned DEFAULT '0',
@@ -2784,8 +2782,7 @@ CREATE TABLE `item_instance` (
`charges` tinytext,
`flags` mediumint(8) unsigned NOT NULL DEFAULT '0',
`enchantments` text NOT NULL,
`randomPropertyType` tinyint(3) unsigned NOT NULL DEFAULT '0',
`randomPropertyId` int(10) unsigned NOT NULL DEFAULT '0',
`randomBonusListId` int(10) unsigned NOT NULL DEFAULT '0',
`durability` smallint(5) unsigned NOT NULL DEFAULT '0',
`playedTime` int(10) unsigned NOT NULL DEFAULT '0',
`text` text,
@@ -2968,9 +2965,7 @@ CREATE TABLE `item_loot_items` (
`counted` tinyint(1) NOT NULL DEFAULT '0',
`under_threshold` tinyint(1) NOT NULL DEFAULT '0',
`needs_quest` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'quest drop',
`rnd_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'random enchantment type',
`rnd_prop` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'random enchantment added when originally rolled',
`rnd_suffix` int(10) NOT NULL DEFAULT '0' COMMENT 'random suffix added when originally rolled',
`rnd_bonus` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'random bonus list added when originally rolled',
`context` tinyint(3) unsigned NOT NULL DEFAULT '0',
`bonus_list_ids` text COMMENT 'Space separated list of bonus list ids',
PRIMARY KEY (`container_id`,`item_id`)
@@ -3571,7 +3566,9 @@ INSERT INTO `updates` VALUES
('2018_07_31_00_characters.sql','7DA8D4A4534520B23E6F5BBD5B8EE205B799C798','RELEASED','2018-07-31 20:54:39',0),
('2018_12_09_00_characters.sql','7FE9641C93ED762597C08F1E9B6649C9EC2F0E47','RELEASED','2018-09-18 23:34:29',0),
('2018_12_09_01_characters.sql','C80B936AAD94C58A0F33382CED08CFB4E0B6AC34','RELEASED','2018-10-10 22:05:28',0),
('2018_12_09_02_characters.sql','DBBA0C06985CE8AC4E6E7E94BD6B2673E9ADFAE2','RELEASED','2018-12-02 17:32:31',0);
('2018_12_09_02_characters.sql','DBBA0C06985CE8AC4E6E7E94BD6B2673E9ADFAE2','RELEASED','2018-12-02 17:32:31',0),
('2019_06_08_00_characters.sql','6C5AF52AEF03BC019B96E7A07592C22660F9327B','RELEASED','2019-06-03 20:04:47',0),
('2019_06_08_01_characters.sql','55076AFAF4B55DB4E34029C269EE0C84315C31BA','RELEASED','2019-06-04 22:11:47',0);
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
UNLOCK TABLES;
@@ -0,0 +1,3 @@
--
DROP TABLE IF EXISTS `ip2nation`;
DROP TABLE IF EXISTS `ip2nationCountries`;
@@ -0,0 +1 @@
ALTER TABLE `battlenet_account_toys` ADD `hasFanfare` tinyint(1) DEFAULT '0' AFTER `isFavourite`;
@@ -0,0 +1,2 @@
DELETE FROM `rbac_linked_permissions` WHERE `linkedId` IN (307,308,313,332,333,334,338,546);
DELETE FROM `rbac_permissions` WHERE `id` IN (307,308,313,332,333,334,338,546);
@@ -0,0 +1 @@
UPDATE `rbac_permissions` SET `name`='Command: reload item_random_bonus_list_template' WHERE `id`=653;
@@ -0,0 +1,3 @@
UPDATE `realmlist` SET `gamebuild`=30706 WHERE `gamebuild`=28153;
ALTER TABLE `realmlist` CHANGE `gamebuild` `gamebuild` int(10) unsigned NOT NULL DEFAULT '30706';
@@ -0,0 +1,2 @@
ALTER TABLE `character_void_storage` DROP `suffixFactor`;
ALTER TABLE `item_loot_items` DROP `rnd_suffix`;
@@ -0,0 +1,13 @@
UPDATE `character_void_storage` SET `randomProperty`=0 WHERE `randomPropertyType`!=2;
UPDATE `item_instance` SET `randomPropertyId`=0 WHERE `randomPropertyType`!=2;
UPDATE `item_loot_items` SET `rnd_prop`=0 WHERE `rnd_type`!=2;
ALTER TABLE `character_void_storage`
DROP `randomPropertyType`,
CHANGE `randomProperty` `randomBonusListId` int(10) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `item_instance`
DROP `randomPropertyType`,
CHANGE `randomPropertyId` `randomBonusListId` int(10) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `item_loot_items`
DROP `rnd_type`,
CHANGE `rnd_prop` `rnd_bonus` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'random bonus list added when originally rolled';
File diff suppressed because one or more lines are too long
@@ -0,0 +1,6 @@
DELETE FROM `tact_key` WHERE `ID` IN (229, 230, 231, 232);
INSERT INTO `tact_key` (`ID`, `Key1`, `Key2`, `Key3`, `Key4`, `Key5`, `Key6`, `Key7`, `Key8`, `Key9`, `Key10`, `Key11`, `Key12`, `Key13`, `Key14`, `Key15`, `Key16`, `VerifiedBuild`) VALUES
(229, 184, 115, 25, 38, 56, 148, 153, 203, 212, 173, 191, 80, 6, 202, 3, 145, 28153),
(230, 37, 167, 124, 216, 0, 25, 126, 230, 163, 45, 214, 63, 4, 225, 21, 250, 28153),
(231, 88, 174, 62, 6, 66, 16, 227, 237, 249, 193, 37, 156, 222, 145, 76, 93, 28153),
(232, 52, 164, 50, 4, 32, 115, 205, 11, 81, 98, 112, 104, 210, 224, 189, 62, 28153);
@@ -0,0 +1,120 @@
ALTER TABLE `achievement` ADD COLUMN `RewardItemID` int(11) NOT NULL DEFAULT 0 AFTER `IconFileID`;
ALTER TABLE `artifact_appearance` ADD COLUMN `UsablePlayerConditionID` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `UiCameraID`;
ALTER TABLE `battle_pet_species_state` MODIFY COLUMN `BattlePetStateID` smallint(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;
ALTER TABLE `broadcast_text` MODIFY COLUMN `ChatBubbleDurationMs` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `Flags`;
ALTER TABLE `broadcast_text` MODIFY COLUMN `SoundEntriesID1` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `ChatBubbleDurationMs`;
ALTER TABLE `broadcast_text` MODIFY COLUMN `SoundEntriesID2` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `SoundEntriesID1`;
ALTER TABLE `broadcast_text` MODIFY COLUMN `EmoteID1` smallint(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `SoundEntriesID2`;
ALTER TABLE `cfg_regions` ADD COLUMN `ChallengeTimeOffset1` int(11) NOT NULL DEFAULT 0 AFTER `ChallengeOrigin`;
ALTER TABLE `cfg_regions` ADD COLUMN `ChallengeTimeOffset2` int(11) NOT NULL DEFAULT 0 AFTER `ChallengeTimeOffset1`;
ALTER TABLE `chr_classes` ADD COLUMN `SpellTextureBlobFileDataID` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `StartingLevel`;
ALTER TABLE `chr_races` MODIFY COLUMN `HelmVisFallbackRaceID` int(11) NOT NULL DEFAULT 0 AFTER `MaleSkeletonFileDataID`;
ALTER TABLE `chr_races` MODIFY COLUMN `FactionID` smallint(6) NOT NULL DEFAULT 0 AFTER `HelmVisFallbackRaceID`;
ALTER TABLE `chr_races` MODIFY COLUMN `CinematicSequenceID` smallint(6) NOT NULL DEFAULT 0 AFTER `FactionID`;
ALTER TABLE `creature_display_info` MODIFY COLUMN `DissolveOutEffectID` int(11) NOT NULL DEFAULT 0 AFTER `Gender`;
ALTER TABLE `creature_display_info` MODIFY COLUMN `CreatureModelMinLod` tinyint(4) NOT NULL DEFAULT 0 AFTER `DissolveOutEffectID`;
ALTER TABLE `currency_types` ADD COLUMN `ItemGroupSoundsID` int(11) NOT NULL DEFAULT 0 AFTER `FactionID`;
ALTER TABLE `difficulty` MODIFY COLUMN `Flags` smallint(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `MaxPlayers`;
ALTER TABLE `dungeon_encounter` ADD COLUMN `CompleteWorldStateID` int(11) NOT NULL DEFAULT 0 AFTER `OrderIndex`;
ALTER TABLE `dungeon_encounter` ADD COLUMN `Faction` int(11) NOT NULL DEFAULT 0 AFTER `SpellIconFileID`;
ALTER TABLE `faction` MODIFY COLUMN `FriendshipRepID` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `Expansion`;
ALTER TABLE `heirloom` ADD COLUMN `UpgradeItemID4` int(11) NOT NULL DEFAULT 0 AFTER `UpgradeItemID3`;
ALTER TABLE `heirloom` ADD COLUMN `UpgradeItemBonusListID4` smallint(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `UpgradeItemBonusListID3`;
ALTER TABLE `holidays` ADD COLUMN `Date17` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `Date16`;
ALTER TABLE `holidays` ADD COLUMN `Date18` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `Date17`;
ALTER TABLE `holidays` ADD COLUMN `Date19` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `Date18`;
ALTER TABLE `holidays` ADD COLUMN `Date20` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `Date19`;
ALTER TABLE `holidays` ADD COLUMN `Date21` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `Date20`;
ALTER TABLE `holidays` ADD COLUMN `Date22` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `Date21`;
ALTER TABLE `holidays` ADD COLUMN `Date23` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `Date22`;
ALTER TABLE `holidays` ADD COLUMN `Date24` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `Date23`;
ALTER TABLE `holidays` ADD COLUMN `Date25` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `Date24`;
ALTER TABLE `holidays` ADD COLUMN `Date26` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `Date25`;
ALTER TABLE `item_child_equipment` MODIFY COLUMN `ParentItemID` int(11) NOT NULL DEFAULT 0 AFTER `ID`;
ALTER TABLE `item_level_selector` ADD COLUMN `AzeriteUnlockMappingSet` smallint(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `ItemLevelSelectorQualitySetID`;
DROP TABLE `item_random_properties`;
DROP TABLE `item_random_properties_locale`;
DROP TABLE `item_random_suffix`;
DROP TABLE `item_random_suffix_locale`;
ALTER TABLE `item_search_name` MODIFY COLUMN `Flags4` int(11) NOT NULL DEFAULT 0 AFTER `Flags3`;
ALTER TABLE `item_sparse` MODIFY COLUMN `Flags2` int(11) NOT NULL DEFAULT 0 AFTER `Flags1`;
ALTER TABLE `item_sparse` MODIFY COLUMN `Flags3` int(11) NOT NULL DEFAULT 0 AFTER `Flags2`;
ALTER TABLE `item_sparse` MODIFY COLUMN `Flags4` int(11) NOT NULL DEFAULT 0 AFTER `Flags3`;
ALTER TABLE `item_sparse` MODIFY COLUMN `FactionRelated` int(11) NOT NULL DEFAULT 0 AFTER `Flags4`;
ALTER TABLE `item_sparse` MODIFY COLUMN `ItemNameDescriptionID` smallint(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `FactionRelated`;
ALTER TABLE `item_sparse` MODIFY COLUMN `RequiredTransmogHoliday` smallint(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `ItemNameDescriptionID`;
ALTER TABLE `item_sparse` MODIFY COLUMN `RequiredHoliday` smallint(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `RequiredTransmogHoliday`;
ALTER TABLE `item_sparse` MODIFY COLUMN `LimitCategory` smallint(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `RequiredHoliday`;
ALTER TABLE `item_sparse` MODIFY COLUMN `GemProperties` smallint(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `LimitCategory`;
ALTER TABLE `item_sparse` MODIFY COLUMN `SocketMatchEnchantmentId` smallint(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `GemProperties`;
ALTER TABLE `item_sparse` MODIFY COLUMN `TotemCategoryID` smallint(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `SocketMatchEnchantmentId`;
ALTER TABLE `item_sparse` MODIFY COLUMN `InstanceBound` smallint(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `TotemCategoryID`;
ALTER TABLE `item_sparse` DROP COLUMN `ItemRandomSuffixGroupID`;
ALTER TABLE `item_sparse` DROP COLUMN `RandomSelect`;
ALTER TABLE `liquid_type` MODIFY COLUMN `MinimapStaticCol` int(11) NOT NULL DEFAULT 0 AFTER `MaterialID`;
ALTER TABLE `liquid_type` MODIFY COLUMN `FrameCountTexture1` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 AFTER `MinimapStaticCol`;
ALTER TABLE `liquid_type` MODIFY COLUMN `FrameCountTexture2` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 AFTER `FrameCountTexture1`;
ALTER TABLE `liquid_type` MODIFY COLUMN `FrameCountTexture3` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 AFTER `FrameCountTexture2`;
ALTER TABLE `liquid_type` MODIFY COLUMN `FrameCountTexture4` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 AFTER `FrameCountTexture3`;
ALTER TABLE `liquid_type` MODIFY COLUMN `FrameCountTexture5` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 AFTER `FrameCountTexture4`;
ALTER TABLE `liquid_type` MODIFY COLUMN `FrameCountTexture6` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 AFTER `FrameCountTexture5`;
ALTER TABLE `liquid_type` MODIFY COLUMN `Color1` int(11) NOT NULL DEFAULT 0 AFTER `FrameCountTexture6`;
ALTER TABLE `liquid_type` MODIFY COLUMN `Color2` int(11) NOT NULL DEFAULT 0 AFTER `Color1`;
ALTER TABLE `liquid_type` MODIFY COLUMN `Float1` float NOT NULL DEFAULT 0 AFTER `Color2`;
ALTER TABLE `map` ADD COLUMN `WdtFileDataID` int(11) NOT NULL DEFAULT 0 AFTER `ZmpFileDataID`;
ALTER TABLE `map` MODIFY COLUMN `MaxPlayers` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 AFTER `CorpseMapID`;
ALTER TABLE `map` MODIFY COLUMN `WindSettingsID` smallint(6) NOT NULL DEFAULT 0 AFTER `MaxPlayers`;
ALTER TABLE `map_difficulty` MODIFY COLUMN `DifficultyID` int(11) NOT NULL DEFAULT 0 AFTER `Message`;
ALTER TABLE `map_difficulty` MODIFY COLUMN `LockID` int(11) NOT NULL DEFAULT 0 AFTER `DifficultyID`;
ALTER TABLE `map_difficulty` MODIFY COLUMN `ResetInterval` tinyint(4) NOT NULL DEFAULT 0 AFTER `LockID`;
ALTER TABLE `map_difficulty` MODIFY COLUMN `MaxPlayers` int(11) NOT NULL DEFAULT 0 AFTER `ResetInterval`;
ALTER TABLE `map_difficulty` MODIFY COLUMN `ItemContext` int(11) NOT NULL DEFAULT 0 AFTER `MaxPlayers`;
ALTER TABLE `map_difficulty` MODIFY COLUMN `ItemContextPickerID` int(11) NOT NULL DEFAULT 0 AFTER `ItemContext`;
ALTER TABLE `map_difficulty` MODIFY COLUMN `Flags` int(11) NOT NULL DEFAULT 0 AFTER `ItemContextPickerID`;
ALTER TABLE `map_difficulty` MODIFY COLUMN `MapID` int(11) NOT NULL DEFAULT 0 AFTER `ContentTuningID`;
ALTER TABLE `pvp_talent` MODIFY COLUMN `Flags` int(11) NOT NULL DEFAULT 0 AFTER `OverridesSpellID`;
ALTER TABLE `pvp_talent` MODIFY COLUMN `ActionBarSpellID` int(11) NOT NULL DEFAULT 0 AFTER `Flags`;
ALTER TABLE `scenario` MODIFY COLUMN `UiTextureKitID` int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `Flags`;
ALTER TABLE `skill_line` MODIFY COLUMN `SpellBookSpellID` int(11) NOT NULL DEFAULT 0 AFTER `Flags`;
ALTER TABLE `sound_kit` MODIFY COLUMN `SoundType` int(11) NOT NULL DEFAULT 0 AFTER `ID`;
ALTER TABLE `spell_misc` MODIFY COLUMN `MinDuration` float NOT NULL DEFAULT 0 AFTER `LaunchDelay`;
ALTER TABLE `taxi_nodes` ADD COLUMN `MinimapAtlasMemberID` int(11) NOT NULL DEFAULT 0 AFTER `UiTextureKitID`;
ALTER TABLE `taxi_nodes` MODIFY COLUMN `ConditionID` int(11) NOT NULL DEFAULT 0 AFTER `ContinentID`;
ALTER TABLE `taxi_path_node` MODIFY COLUMN `ArrivalEventID` int(11) NOT NULL DEFAULT 0 AFTER `Delay`;
ALTER TABLE `taxi_path_node` MODIFY COLUMN `DepartureEventID` int(11) NOT NULL DEFAULT 0 AFTER `ArrivalEventID`;
ALTER TABLE `transmog_set` ADD COLUMN `Unknown810` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 AFTER `ParentTransmogSetID`;
ALTER TABLE `transmog_set` ADD COLUMN `PatchID` int(11) NOT NULL DEFAULT 0 AFTER `ExpansionID`;
ALTER TABLE `world_effect` MODIFY COLUMN `TargetType` tinyint(4) NOT NULL DEFAULT 0 AFTER `WhenToDisplay`;
@@ -0,0 +1,2 @@
--
UPDATE `creature` SET `phaseUseFlags`=0, `PhaseId`=169 WHERE `guid` IN (252354,252359,252364,252369,252373,252378,252392,252400,252402,252404,252406,252407,252408,252409,252420,252423,252424);
@@ -0,0 +1,4 @@
--
UPDATE `creature_addon` SET `visibilityDistanceType`=3 WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE `id` IN (SELECT `entry` FROM `creature_template_addon` WHERE `visibilityDistanceType`=3));
UPDATE `creature_addon` SET `visibilityDistanceType`=4 WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE `id` IN (SELECT `entry` FROM `creature_template_addon` WHERE `visibilityDistanceType`=4));
UPDATE `creature_addon` SET `visibilityDistanceType`=5 WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE `id` IN (SELECT `entry` FROM `creature_template_addon` WHERE `visibilityDistanceType`=5));
@@ -0,0 +1,30 @@
--
DELETE FROM `spell_target_position` WHERE (`ID`=130702 AND `EffectIndex`=0);
INSERT INTO `spell_target_position` (`ID`, `EffectIndex`, `MapID`, `PositionX`, `PositionY`, `PositionZ`, `VerifiedBuild`) VALUES
(130702, 0, 870, -307.16, -1772.89, 62.32, 28153);
UPDATE `trainer_spell` SET `MoneyCost`=425, `VerifiedBuild`=28153 WHERE (`TrainerId`=580 AND `SpellId`=35907);
UPDATE `trainer_spell` SET `MoneyCost`=850 WHERE (`TrainerId`=580 AND `SpellId`=125610);
DELETE FROM `npc_vendor` WHERE (`entry`=63596 AND `item`=98715 AND `ExtendedCost`=4301 AND `type`=1) OR (`entry`=63596 AND `item`=98715 AND `ExtendedCost`=4300 AND `type`=1) OR (`entry`=63596 AND `item`=98715 AND `ExtendedCost`=4299 AND `type`=1) OR (`entry`=63596 AND `item`=98715 AND `ExtendedCost`=4298 AND `type`=1) OR (`entry`=63596 AND `item`=98715 AND `ExtendedCost`=4297 AND `type`=1) OR (`entry`=63596 AND `item`=98715 AND `ExtendedCost`=4296 AND `type`=1) OR (`entry`=63596 AND `item`=98715 AND `ExtendedCost`=4295 AND `type`=1) OR (`entry`=63596 AND `item`=98715 AND `ExtendedCost`=4294 AND `type`=1) OR (`entry`=63596 AND `item`=98715 AND `ExtendedCost`=4293 AND `type`=1) OR (`entry`=63596 AND `item`=98715 AND `ExtendedCost`=4292 AND `type`=1);
INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `ExtendedCost`, `type`, `PlayerConditionID`, `IgnoreFiltering`, `VerifiedBuild`) VALUES
(63596, 10, 98715, 0, 4301, 1, 0, 0, 28153),
(63596, 9, 98715, 0, 4300, 1, 0, 0, 28153),
(63596, 8, 98715, 0, 4299, 1, 0, 0, 28153),
(63596, 7, 98715, 0, 4298, 1, 0, 0, 28153),
(63596, 6, 98715, 0, 4297, 1, 0, 0, 28153),
(63596, 5, 98715, 0, 4296, 1, 0, 0, 28153),
(63596, 4, 98715, 0, 4295, 1, 0, 0, 28153),
(63596, 3, 98715, 0, 4294, 1, 0, 0, 28153),
(63596, 2, 98715, 0, 4293, 1, 0, 0, 28153),
(63596, 1, 98715, 0, 4292, 1, 0, 0, 28153);
DELETE FROM `gossip_menu_option` WHERE (`MenuId`=22082 AND `OptionIndex`=0) OR (`MenuId`=22201 AND `OptionIndex`=3) OR (`MenuId`=22081 AND `OptionIndex`=0);
INSERT INTO `gossip_menu_option` (`MenuId`, `OptionIndex`, `OptionIcon`, `OptionText`, `OptionBroadcastTextId`, `VerifiedBuild`) VALUES
(22082, 0, 0, 'What do we know about the void elves?', 0, 28153),
(22201, 3, 0, 'What can you tell me about the Dark Iron dwarves?', 0, 28153),
(22081, 0, 0, 'What can you tell me about the Lightforged draenei?', 0, 28153);
DELETE FROM `npc_spellclick_spells` WHERE `npc_entry`=112694;
INSERT INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `user_type`) VALUES
(112694, 224326, 1, 0);
@@ -0,0 +1,3 @@
--
ALTER TABLE `creature_template_addon` ALTER COLUMN `visibilityDistanceType` SET DEFAULT 0;
ALTER TABLE `creature_addon` ALTER COLUMN `visibilityDistanceType` SET DEFAULT 0;
@@ -0,0 +1,37 @@
SET @CGUID := 259501;
DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+20;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `VerifiedBuild`) VALUES
(@CGUID+0, 55014, 585, 4131, 0, "1,2", 169, 0, 0, 0, 46.6875, -8.72743, -2.745695, 0.4537856, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 15595), -- Shattered Sun Marksman (Area: 0 - Difficulty: 0) (Auras: 58506 - Stealth)
(@CGUID+1, 55012, 585, 4131, 0, "1,2", 169, 0, 0, 0, 13.47049, 6.173611, -2.709095, 4.694936, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 15595), -- Shattered Sun Warrior (Area: 0 - Difficulty: 0) (Auras: )
(@CGUID+2, 55012, 585, 4131, 0, "1,2", 169, 0, 0, 0, 0.2725694, -5.894097, -2.72833, 1.623156, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 15595), -- Shattered Sun Warrior (Area: 0 - Difficulty: 0) (Auras: )
(@CGUID+3, 55013, 585, 4131, 0, "1,2", 169, 0, 0, 0, 43.15278, -5.890625, -2.740964, 0.2792527, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 15595), -- Shattered Sun Marksman (Area: 0 - Difficulty: 0) (Auras: 58506 - Stealth)
(@CGUID+4, 55011, 585, 4131, 0, "1,2", 169, 0, 0, 0, 50.57986, -2.822917, -2.732662, 6.213372, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 15595), -- Shattered Sun Warrior (Area: 0 - Difficulty: 0) (Auras: 58506 - Stealth)
(@CGUID+5, 55014, 585, 4131, 0, "1,2", 169, 0, 0, 0, 46.77951, 8.99132, -2.738889, 5.72468, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 15595), -- Shattered Sun Marksman (Area: 0 - Difficulty: 0) (Auras: 58506 - Stealth)
(@CGUID+6, 55013, 585, 4131, 0, "1,2", 169, 0, 0, 0, 42.99479, 6.149306, -2.729624, 5.951573, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 15595), -- Shattered Sun Marksman (Area: 0 - Difficulty: 0) (Auras: 58506 - Stealth)
(@CGUID+7, 55011, 585, 4131, 0, "1,2", 169, 0, 0, 0, 0.08506945, 6.458333, -2.715962, 4.660029, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 15595), -- Shattered Sun Warrior (Area: 0 - Difficulty: 0) (Auras: )
(@CGUID+8, 55012, 585, 4131, 0, "1,2", 169, 0, 0, 0, 50.30729, 3.039931, -2.726843, 0.03490658, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 15595), -- Shattered Sun Warrior (Area: 0 - Difficulty: 0) (Auras: 58506 - Stealth)
(@CGUID+9, 55014, 585, 4131, 0, "1,2", 169, 0, 0, 0, 14.04688, -5.9375, -2.72026, 1.58825, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 15595), -- Shattered Sun Marksman (Area: 0 - Difficulty: 0) (Auras: )
(@CGUID+10, 55011, 585, 4131, 0, "1,2", 169, 0, 0, 0, 5.130208, -5.951389, -2.725587, 1.658063, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 15595), -- Shattered Sun Warrior (Area: 0 - Difficulty: 0) (Auras: )
(@CGUID+11, 55013, 585, 4131, 0, "1,2", 169, 0, 0, 0, 9.677083, -5.901042, -2.722767, 1.58825, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 15595), -- Shattered Sun Marksman (Area: 0 - Difficulty: 0) (Auras: )
(@CGUID+12, 55011, 585, 4131, 0, "1,2", 169, 0, 0, 0, 9.067708, 6.24132, -2.711256, 4.642576, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 15595), -- Shattered Sun Warrior (Area: 0 - Difficulty: 0) (Auras: )
(@CGUID+13, 55018, 585, 4131, 0, "1,2", 169, 0, 0, 0, 22.20313, 0.3125, -2.734227, 4.794769, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 15595), -- Shattered Sun Sentry (Area: 0 - Difficulty: 0) (Auras: ) (possible waypoints or random movement)
(@CGUID+14, 55013, 585, 4131, 0, "1,2", 169, 0, 0, 0, 4.619792, 6.265625, -2.713269, 4.747295, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 15595), -- Shattered Sun Marksman (Area: 0 - Difficulty: 0) (Auras: )
(@CGUID+15, 55007, 585, 4131, 0, "1,2", 169, 0, 0, 0, 17.20486, 0.001736111, -2.712097, 3.106686, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 15595); -- Exarch Larethor (Area: 0 - Difficulty: 0)
DELETE FROM `creature_addon` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+15;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
(@CGUID+0, 0, 0, 0, 2, 0, '58506'), -- Shattered Sun Marksman - 58506 - Stealth
(@CGUID+1, 0, 0, 0, 1, 0, ''), -- Shattered Sun Warrior
(@CGUID+2, 0, 0, 0, 1, 0, ''), -- Shattered Sun Warrior
(@CGUID+3, 0, 0, 0, 2, 0, '58506'), -- Shattered Sun Marksman - 58506 - Stealth
(@CGUID+4, 0, 0, 0, 1, 0, '58506'), -- Shattered Sun Warrior - 58506 - Stealth
(@CGUID+5, 0, 0, 0, 2, 0, '58506'), -- Shattered Sun Marksman - 58506 - Stealth
(@CGUID+6, 0, 0, 0, 2, 0, '58506'), -- Shattered Sun Marksman - 58506 - Stealth
(@CGUID+7, 0, 0, 0, 1, 0, ''), -- Shattered Sun Warrior
(@CGUID+8, 0, 0, 0, 1, 0, '58506'), -- Shattered Sun Warrior - 58506 - Stealth
(@CGUID+9, 0, 0, 0, 2, 0, ''), -- Shattered Sun Marksman
(@CGUID+10, 0, 0, 0, 1, 0, ''), -- Shattered Sun Warrior
(@CGUID+11, 0, 0, 0, 2, 0, ''), -- Shattered Sun Marksman
(@CGUID+12, 0, 0, 0, 1, 0, ''), -- Shattered Sun Warrior
(@CGUID+14, 0, 0, 0, 2, 0, ''), -- Shattered Sun Marksman
(@CGUID+15, 0, 0, 0, 1, 0, ''); -- Exarch Larethor
@@ -0,0 +1,225 @@
-- Pathing for Entry: 45265 'TDB FORMAT'
SET @NPC := 253837;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '84849');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-424.701,-538.622,894.0889,0,0,0,0,100,0),
(@PATH,2,-449.543,-538.153,894.0859,0,0,0,0,100,0),
(@PATH,3,-424.701,-538.622,894.0889,0,0,0,0,100,0),
(@PATH,4,-403.469,-539.156,894.0871,0,0,0,0,100,0);
-- 0x20307C53E02C344000034900004E80CA .go xyz -424.701 -538.622 894.0889
DELETE FROM `creature_formations` WHERE `leaderGUID`= 253837;
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES
-- Front Line
(253837, 253837, 0, 0, 515, 0, 0),
(253837, 253838, 6, 90, 515, 2, 4),
(253837, 253840, 12, 90, 515, 2, 4),
(253837, 253849, 6, 270, 515, 2, 4),
(253837, 253834, 12, 270, 515, 2, 4),
-- Back Line
(253837, 253836, 5, 0, 515, 2, 4),
(253837, 253843, 8, 45, 515, 2, 4),
(253837, 253835, 8, 315, 515, 2, 4),
(253837, 253844, 12, 65, 515, 2, 4),
(253837, 253847, 12, 295, 515, 2, 4);
-- Pathing for Entry: 45265 'TDB FORMAT'
SET @NPC := 253794;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '84849');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-423.875,-523.818,894.0902,0,0,0,0,100,0),
(@PATH,2,-401.708,-524.644,894.087,0,0,0,0,100,0),
(@PATH,3,-423.875,-523.818,894.0902,0,0,0,0,100,0),
(@PATH,4,-448.594,-523.03,894.0881,0,0,0,0,100,0);
-- 0x20307C53E02C344000034900044E80CA .go xyz -423.875 -523.818 894.0902
DELETE FROM `creature_formations` WHERE `leaderGUID`= 253794;
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES
-- Front Line
(253794, 253794, 0, 0, 515, 0, 0),
(253794, 253791, 6, 90, 515, 2, 4),
(253794, 253784, 12, 90, 515, 2, 4),
(253794, 253782, 6, 270, 515, 2, 4),
(253794, 253797, 12, 270, 515, 2, 4),
-- Back Line
(253794, 253795, 5, 0, 515, 2, 4),
(253794, 253798, 8, 45, 515, 2, 4),
(253794, 253790, 8, 315, 515, 2, 4),
(253794, 253788, 12, 65, 515, 2, 4),
(253794, 253792, 12, 295, 515, 2, 4);
-- Pathing for Entry: 45265 'TDB FORMAT'
SET @NPC := 253842;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '84849');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-323.597,-534.234,894.5809,0,0,0,0,100,0),
(@PATH,2,-321.976,-565.561,894.5803,0,0,0,0,100,0),
(@PATH,3,-323.597,-534.234,894.5809,0,0,0,0,100,0),
(@PATH,4,-361.729,-533.083,894.58,0,0,0,0,100,0);
-- 0x20307C53E02C344000034900014E80CA .go xyz -323.597 -534.234 894.5809
DELETE FROM `creature_formations` WHERE `leaderGUID`= 253842;
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES
(253842, 253842, 0, 0, 515, 0, 0),
(253842, 253830, 6, 0, 515, 2, 4),
(253842, 253846, 6, 270, 515, 2, 4),
(253842, 253827, 9, 315, 515, 2, 4);
-- Set existing trash spawns to spawnMask 10 (25 normal and 25 heroic)
UPDATE `creature` SET `spawnDifficulties`="3,4,5,6" WHERE `map`=671 AND `spawnDifficulties`= "0,1,2,3";
UPDATE `creature` SET `spawnDifficulties`="5,6" WHERE `map`=671 AND `spawnDifficulties`= "2,3";
UPDATE `creature` SET `spawnDifficulties`= "6,4" WHERE `guid` IN (253849, 253847, 253798, 253795, 253791, 253783, 253779, 253843, 253838, 253835, 253799, 253790, 253782, 253778, 253846, 253842, 253837, 253834, 253830, 253827, 253797, 253794, 253789, 253787, 253844, 253840, 253836, 253800, 253792, 253788, 253784, 253780, 254253, 254250, 254249, 254170, 254167, 254164, 254258, 254254, 254252, 254166, 254165, 254163, 254256, 254255, 254251, 254161, 254160, 254159, 253948, 253941, 253938, 253936, 253934, 253932, 253928, 253926, 253898, 253892, 253947, 253935, 253931, 253925, 253896, 253949, 253945, 253940, 253939, 253911, 253906, 253996, 253995, 253993, 253990, 253943, 253918, 253913, 253909, 253902, 253994, 253992, 253991, 253989, 253942, 253921, 253912, 253908, 253900, 253952, 253946, 253930, 253924, 253916, 253907, 253944, 253933, 253929, 253923, 253915, 253905, 254037, 253997, 253986, 253937, 253927, 253922, 253919, 253903, 253901, 253988, 253987, 253985, 253984, 253983, 253982, 253920, 253917, 253914);
SET @CGUID := 339661;
DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+72;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `VerifiedBuild`) VALUES
(@CGUID+0, 45261, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -449.3764, -510.8528, 894.088, 6.245684, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Shadow Knight (Area: The Bastion of Twilight - Difficulty: 5) (Auras: 84827 - Shield Mastery)
(@CGUID+1, 45264, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -450.0513, -528.8401, 894.0882, 6.245687, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Crossfire (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+2, 45266, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -449.6014, -516.8486, 894.088, 6.245687, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Dark Mender (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+3, 45265, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -479.318, -524.196, 890.6763, 3.159046, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Soul Blade (Area: The Bastion of Twilight - Difficulty: 5) (Auras: 84849 - Soul Blade)
(@CGUID+4, 45261, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -452.4585, -530.6738, 894.0883, 5.195304, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Shadow Knight (Area: The Bastion of Twilight - Difficulty: 5) (Auras: 84827 - Shield Mastery)
(@CGUID+5, 45264, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -478.148, -538.096, 890.6763, 3.01942, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Crossfire (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+6, 45266, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -476.521, -528.498, 890.6763, 3.211406, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Dark Mender (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+7, 45261, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -476.142, -533.194, 890.6763, 3.141593, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Shadow Knight (Area: The Bastion of Twilight - Difficulty: 5) (Auras: 84827 - Shield Mastery)
(@CGUID+8, 45265, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -447.8682, -522.9178, 894.1266, 6.245685, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Soul Blade (Area: The Bastion of Twilight - Difficulty: 5) (Auras: 84849 - Soul Blade)
(@CGUID+9, 45266, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -398.1873, -548.8336, 894.0871, 4.744542, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Dark Mender (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+10, 45265, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -355.0883, -530.9302, 894.6034, 6.178656, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Soul Blade (Area: The Bastion of Twilight - Difficulty: 5) (Auras: 84849 - Soul Blade)
(@CGUID+11, 45261, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -396.8199, -530.0619, 894.087, 1.859064, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Shadow Knight (Area: The Bastion of Twilight - Difficulty: 5) (Auras: 84827 - Shield Mastery)
(@CGUID+12, 45266, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -397.8061, -533.0828, 894.087, 3.124424, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Dark Mender (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+13, 45265, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -356.887, -525.3019, 894.58, 0.9683747, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Soul Blade (Area: The Bastion of Twilight - Difficulty: 5) (Auras: 84849 - Soul Blade)
(@CGUID+14, 46952, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -451.438, -685.332, 894.6663, 0.01745329, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Chosen Seer (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+15, 46951, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -448.806, -672.181, 894.6663, 6.038839, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Chosen Warrior (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+16, 46951, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -448.602, -697.616, 894.6633, 0.4363323, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Chosen Warrior (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+17, 47087, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -591.8993, -631.7761, 834.7148, 5.183628, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Azureborne Destroyer (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+18, 47086, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -595.0799, -636.0504, 834.7148, 5.794493, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Crimsonborne Firestarter (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+19, 47161, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -582.2778, -636.3976, 834.7148, 3.438299, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Brute (Area: The Bastion of Twilight - Difficulty: 5) (Auras: 42459 - Dual Wield)
(@CGUID+20, 46951, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -647.797, -672.542, 834.7153, 3.822271, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Chosen Warrior (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+21, 46952, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -656.394, -696.481, 834.7153, 2.042035, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Chosen Seer (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+22, 47151, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -656.922, -709.627, 834.7153, 1.902409, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Wind Breaker (Area: The Bastion of Twilight - Difficulty: 5) (Auras: )
(@CGUID+23, 47081, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -651.21, -703.512, 834.7153, 2.495821, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Elemental Firelord (Area: The Bastion of Twilight - Difficulty: 5) (Auras: )
(@CGUID+24, 46951, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -654.521, -673.438, 834.7153, 6.213372, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Chosen Warrior (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+25, 47151, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -623.816, -647.6996, 834.7148, 2.740167, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Wind Breaker (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+26, 47150, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -625.9271, -640.4375, 834.7148, 3.926991, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Earth Ravager (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+27, 47081, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -637.8854, -652.0816, 834.7148, 0.296706, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Elemental Firelord (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+28, 47152, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -582.17, -723.396, 834.7153, 0.6457718, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Elementalist (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+29, 46951, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -649.672, -679.969, 834.7153, 3.508112, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Chosen Warrior (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+30, 46951, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -646.448, -697.309, 834.7153, 2.548181, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Chosen Warrior (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+31, 47086, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -596.8507, -640.4045, 834.7148, 0.06981317, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Crimsonborne Firestarter (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+32, 46952, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -641.885, -685.115, 834.7153, 3.124139, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Chosen Seer (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+33, 47161, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -586.7327, -631.717, 834.7148, 4.782202, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Brute (Area: The Bastion of Twilight - Difficulty: 5) (Auras: 42459 - Dual Wield)
(@CGUID+34, 46951, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -653.477, -694.368, 834.7153, 2.321288, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Chosen Warrior (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+35, 46951, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -649.323, -689.858, 834.7153, 2.80998, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Chosen Warrior (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+36, 47151, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -588.076, -717.471, 834.7153, 5.445427, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Wind Breaker (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+37, 47150, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -589.455, -724.906, 834.7153, 0.3490658, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Earth Ravager (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+38, 47081, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -573.538, -719.878, 834.7153, 3.001966, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Elemental Firelord (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+39, 46952, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -648.806, -684.971, 834.7153, 3.228859, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Chosen Seer (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+40, 47152, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -585.385, -722.53, 834.7153, 0.2617994, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Elementalist (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+41, 46951, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -660.42, -697.372, 834.7153, 1.745329, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Chosen Warrior (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+42, 46952, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -657.023, -669.576, 834.7153, 4.328416, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Chosen Seer (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+43, 46951, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -660.252, -667.686, 834.7153, 4.433136, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Chosen Warrior (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+44, 47150, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -665.729, -709.622, 834.7153, 1.37881, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Earth Ravager (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+45, 47086, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -623.269, -738.898, 834.7143, 2.321288, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Crimsonborne Firestarter (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+46, 47086, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -627.818, -740.076, 834.7153, 1.762783, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Crimsonborne Firestarter (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+47, 47152, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -628.493, -644.3871, 834.7148, 3.839724, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Elementalist (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+48, 47161, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -636.273, -735.965, 834.7153, 0.7504916, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Brute (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+49, 47152, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -631.7535, -645.0538, 834.7148, 4.223697, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Elementalist (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+50, 47087, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -633.142, -740.071, 834.7153, 1.151917, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Azureborne Destroyer (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+51, 47161, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -635.175, -729.597, 834.7153, 5.689773, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Brute (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+52, 47161, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -649.372, -666.09, 834.7153, 3.717551, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Brute (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+53, 47087, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -653.559, -657.622, 834.7153, 3.961897, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Azureborne Destroyer (Area: The Bastion of Twilight - Difficulty: 5) (Auras: )
(@CGUID+54, 47086, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -651.559, -661.814, 834.7153, 3.787364, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Crimsonborne Firestarter (Area: The Bastion of Twilight - Difficulty: 5) (Auras: )
(@CGUID+55, 47161, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -656.227, -664.17, 834.7143, 3.961897, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Brute (Area: The Bastion of Twilight - Difficulty: 5) (Auras: )
(@CGUID+56, 47087, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -660.941, -661.828, 834.7143, 4.13643, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Azureborne Destroyer (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+57, 45687, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -1116.228, -788.7411, 835.0055, 1.793802, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight-Shifter (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+58, 45687, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -1123.416, -797.5894, 835.0095, 4.676396, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight-Shifter (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+59, 47152, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -662.403, -701.109, 834.7143, 2.251475, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Elementalist (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+60, 47152, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -666.064, -703.797, 834.7143, 1.553343, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Elementalist (Area: The Bastion of Twilight - Difficulty: 5) (Auras: )
(@CGUID+61, 45700, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -1108.446, -789.4514, 835.0883, 5.934119, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Portal Shaper (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+62, 45699, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -1113.38, -784.057, 835.1293, 3.735005, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Shadow Mender (Area: The Bastion of Twilight - Difficulty: 5) (Auras: 85575 - Shadow Mending)
(@CGUID+63, 45700, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -1108.448, -806.9549, 835.0883, 0.1745329, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Portal Shaper (Area: The Bastion of Twilight - Difficulty: 5) (Auras: )
(@CGUID+64, 45699, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -1114.54, -811.313, 835.1293, 2.460914, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Shadow Mender (Area: The Bastion of Twilight - Difficulty: 5) (Auras: 85575 - Shadow Mending)
(@CGUID+65, 45687, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -1210.611, -791.2717, 835.046, 3.944117, 7200, 10, 0, 0, 0, 1, 0, 0, 0, 27326), -- Twilight-Shifter (Area: The Bastion of Twilight - Difficulty: 5) (Auras: ) (possible waypoints or random movement)
(@CGUID+66, 45687, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -1201.732, -805.6627, 835.0444, 4.658576, 7200, 10, 0, 0, 0, 1, 0, 0, 0, 27326), -- Twilight-Shifter (Area: The Bastion of Twilight - Difficulty: 5) (possible waypoints or random movement)
(@CGUID+67, 45700, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -1215.52, -791.188, 835.1293, 3.438299, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Portal Shaper (Area: The Bastion of Twilight - Difficulty: 5) (Auras: )
(@CGUID+68, 45699, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -1211.81, -813.09, 835.1293, 0.8901179, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Shadow Mender (Area: The Bastion of Twilight - Difficulty: 5) (Auras: 85575 - Shadow Mending)
(@CGUID+69, 45700, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -1216.38, -807.493, 835.1293, 2.722714, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Portal Shaper (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+70, 45699, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -1210.52, -786.564, 835.1293, 5.654867, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Shadow Mender (Area: The Bastion of Twilight - Difficulty: 5) (Auras: 85575 - Shadow Mending)
(@CGUID+71, 45264, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -398.0121, -545.0811, 894.087, 3.124424, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326), -- Twilight Crossfire (Area: The Bastion of Twilight - Difficulty: 5)
(@CGUID+72, 45265, 671, 5334, 5334, "3,5", 169, 0, 0, 0, -399.2076, -539.0597, 894.0872, 3.124425, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 27326); -- Twilight Soul Blade (Area: The Bastion of Twilight - Difficulty: 5) (Auras: 84849 - Soul Blade)
-- Pathing for Entry: 45265 'TDB FORMAT'
SET @NPC := @CGUID+72;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '84849');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-424.701,-538.622,894.0889,0,0,0,0,100,0),
(@PATH,2,-449.543,-538.153,894.0859,0,0,0,0,100,0),
(@PATH,3,-424.701,-538.622,894.0889,0,0,0,0,100,0),
(@PATH,4,-403.469,-539.156,894.0871,0,0,0,0,100,0);
-- 0x20307C53E02C344000034900004E80CA .go xyz -424.701 -538.622 894.0889
DELETE FROM `creature_formations` WHERE `leaderGUID`= @CGUID+72;
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES
-- Front Line
(@CGUID+72, @CGUID+72, 0, 0, 515, 0, 0),
(@CGUID+72, @CGUID+12, 6, 90, 515, 2, 4),
(@CGUID+72, @CGUID+11, 12, 90, 515, 2, 4),
(@CGUID+72, @CGUID+71, 6, 270, 515, 2, 4),
(@CGUID+72, @CGUID+9, 12, 270, 515, 2, 4);
-- Pathing for Entry: 45265 'TDB FORMAT'
SET @NPC := @CGUID+8;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '84849');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-423.875,-523.818,894.0902,0,0,0,0,100,0),
(@PATH,2,-401.708,-524.644,894.087,0,0,0,0,100,0),
(@PATH,3,-423.875,-523.818,894.0902,0,0,0,0,100,0),
(@PATH,4,-448.594,-523.03,894.0881,0,0,0,0,100,0);
-- 0x20307C53E02C344000034900044E80CA .go xyz -423.875 -523.818 894.0902
DELETE FROM `creature_formations` WHERE `leaderGUID`= @CGUID+8;
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES
-- Front Line
(@CGUID+8, @CGUID+8, 0, 0, 515, 0, 0),
(@CGUID+8, @CGUID+1, 6, 90, 515, 2, 4),
(@CGUID+8, @CGUID+4, 12, 90, 515, 2, 4),
(@CGUID+8, @CGUID+2, 6, 270, 515, 2, 4),
(@CGUID+8, @CGUID+0, 12, 270, 515, 2, 4);
-- Pathing for Entry: 45265 'TDB FORMAT'
SET @NPC := @CGUID+10;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '84849');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,-323.597,-534.234,894.5809,0,0,0,0,100,0),
(@PATH,2,-321.976,-565.561,894.5803,0,0,0,0,100,0),
(@PATH,3,-323.597,-534.234,894.5809,0,0,0,0,100,0),
(@PATH,4,-361.729,-533.083,894.58,0,0,0,0,100,0);
-- 0x20307C53E02C344000034900014E80CA .go xyz -323.597 -534.234 894.5809
DELETE FROM `creature_formations` WHERE `leaderGUID`= @CGUID+10;
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES
(@CGUID+10, @CGUID+10, 0, 0, 515, 0, 0),
(@CGUID+10, @CGUID+13, 6, 270, 515, 2, 4);
@@ -0,0 +1,574 @@
-- Pathing for Entry: 36602 'TDB FORMAT'
SET @NPC := 255575;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -2194.741, `position_y`= 2291.962, `position_z`= 7.864716 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -2194.741, 2291.962, 7.864716, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -2225, 2293.229, 7.518183, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -2232.035, 2295.972, 6.486444, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -2245.835, 2301.55, 5.613362, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -2257.273, 2307.658, 5.426106, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -2278.813, 2327.274, 5.529029, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -2290.639, 2331.924, 4.694418, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -2301.132, 2326.5, 2.868995, 0, 0, 0, 0, 100, 0),
(@PATH, 9, -2309.076, 2318.417, 1.048316, 0, 4, 0, 0, 100, 0),
(@PATH, 10, -2301.132, 2326.5, 2.868995, 0, 0, 0, 0, 100, 0),
(@PATH, 11, -2290.639, 2331.924, 4.694418, 0, 0, 0, 0, 100, 0),
(@PATH, 12, -2279.007, 2327.247, 5.528661, 0, 0, 0, 0, 100, 0),
(@PATH, 13, -2257.273, 2307.658, 5.426106, 0, 0, 0, 0, 100, 0),
(@PATH, 14, -2245.835, 2301.55, 5.613362, 0, 0, 0, 0, 100, 0),
(@PATH, 15, -2232.035, 2295.972, 6.486444, 0, 0, 0, 0, 100, 0),
(@PATH, 16, -2225.646, 2293.498, 7.470819, 0, 0, 0, 0, 100, 0),
(@PATH, 17, -2194.741, 2291.962, 7.864716, 0, 0, 0, 0, 100, 0),
(@PATH, 18, -2184.188, 2289.774, 8.699677, 0, 0, 0, 0, 100, 0),
(@PATH, 19, -2175.34, 2287.26, 9.318817, 0, 0, 0, 0, 100, 0),
(@PATH, 20, -2169.406, 2287.519, 9.783539, 0, 0, 0, 0, 100, 0),
(@PATH, 21, -2165.29, 2288.321, 10.19825, 0, 0, 0, 0, 100, 0),
(@PATH, 22, -2165.399, 2294.276, 9.74281, 0, 0, 0, 0, 100, 0),
(@PATH, 23, -2173.533, 2309.679, 7.470339, 0, 0, 0, 0, 100, 0),
(@PATH, 24, -2184.582, 2325.38, 4.580813, 0, 0, 0, 0, 100, 0),
(@PATH, 25, -2193.455, 2341.358, 2.922411, 0, 0, 0, 0, 100, 0),
(@PATH, 26, -2195.497, 2358.366, 1.422411, 0, 0, 0, 0, 100, 0),
(@PATH, 27, -2193.556, 2379.188, 1.99852, 0, 0, 0, 0, 100, 0),
(@PATH, 28, -2182.62, 2393.875, 5.182358, 0, 0, 0, 0, 100, 0),
(@PATH, 29, -2168.689, 2405.677, 10.59824, 0, 396, 0, 0, 100, 0),
(@PATH, 30, -2182.62, 2393.875, 5.182358, 0, 0, 0, 0, 100, 0),
(@PATH, 31, -2193.556, 2379.188, 1.99852, 0, 0, 0, 0, 100, 0),
(@PATH, 32, -2195.497, 2358.366, 1.422411, 0, 0, 0, 0, 100, 0),
(@PATH, 33, -2193.455, 2341.358, 2.922411, 0, 0, 0, 0, 100, 0),
(@PATH, 34, -2184.582, 2325.38, 4.580813, 0, 0, 0, 0, 100, 0),
(@PATH, 35, -2173.533, 2309.679, 7.470339, 0, 0, 0, 0, 100, 0),
(@PATH, 36, -2165.399, 2294.276, 9.74281, 0, 0, 0, 0, 100, 0),
(@PATH, 37, -2165.29, 2288.321, 10.19825, 0, 0, 0, 0, 100, 0),
(@PATH, 38, -2169.406, 2287.519, 9.783539, 0, 0, 0, 0, 100, 0),
(@PATH, 39, -2175.34, 2287.26, 9.318817, 0, 0, 0, 0, 100, 0),
(@PATH, 40, -2184.188, 2289.774, 8.699677, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C023BE80000A5200057BE97A .go xyz -2194.741 2291.962 7.864716
-- Pathing for Entry: 36602 'TDB FORMAT'
SET @NPC := 255495;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1934.457, `position_y`= 2199.648, `position_z`= 29.0159 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1934.457, 2199.648, 29.0159, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1935.224, 2212.201, 32.56932, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1931.167, 2222.351, 35.47858, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1920.16, 2233.92, 39.22011, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1911.747, 2242.193, 41.96523, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -1920.16, 2233.92, 39.22011, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -1931.167, 2222.351, 35.47858, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -1935.224, 2212.201, 32.56932, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C023BE80000A520005FBE97A .go xyz -1934.457 2199.648 29.0159
-- Pathing for Entry: 36602 'TDB FORMAT'
SET @NPC := 255484;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1946.13, `position_y`= 2319.274, `position_z`= 34.76398 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1946.13, 2319.274, 34.76398, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1943.356, 2333.33, 34.26447, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1937.304, 2351.054, 32.67007, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1946.13, 2319.274, 34.76398, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1947.467, 2314.467, 34.95734, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -1953.241, 2308.766, 34.68781, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -1970.977, 2317.913, 31.41698, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -1988.578, 2321.609, 28.85362, 0, 0, 0, 0, 100, 0),
(@PATH, 9, -1976.986, 2319.983, 30.47459, 0, 0, 0, 0, 100, 0),
(@PATH, 10, -1953.944, 2308.573, 34.60358, 0, 0, 0, 0, 100, 0),
(@PATH, 11, -1951.418, 2302.773, 35.63654, 0, 0, 0, 0, 100, 0),
(@PATH, 12, -1947.424, 2291.991, 37.5909, 0, 0, 0, 0, 100, 0),
(@PATH, 13, -1939.96, 2282.712, 40.22494, 0, 0, 0, 0, 100, 0),
(@PATH, 14, -1947.424, 2291.991, 37.5909, 0, 0, 0, 0, 100, 0),
(@PATH, 15, -1951.418, 2302.773, 35.63654, 0, 0, 0, 0, 100, 0),
(@PATH, 16, -1953.944, 2308.573, 34.60358, 0, 0, 0, 0, 100, 0),
(@PATH, 17, -1970.977, 2317.913, 31.41698, 0, 0, 0, 0, 100, 0),
(@PATH, 18, -1988.578, 2321.609, 28.85362, 0, 0, 0, 0, 100, 0),
(@PATH, 19, -1976.986, 2319.983, 30.47459, 0, 0, 0, 0, 100, 0),
(@PATH, 20, -1953.944, 2308.573, 34.60358, 0, 0, 0, 0, 100, 0),
(@PATH, 21, -1947.467, 2314.467, 34.95734, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C023BE80000A5200067BE97A .go xyz -1946.13 2319.274 34.76398
-- Pathing for Entry: 36602 'TDB FORMAT'
SET @NPC := 255580;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -2091.122, `position_y`= 2395.448, `position_z`= 9.130095 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -2091.122, 2395.448, 9.130095, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -2101.681, 2395.776, 9.618845, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -2113.665, 2397.951, 11.11884, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -2101.681, 2395.776, 9.618845, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -2091.122, 2395.448, 9.130095, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -2079.682, 2398.889, 9.380095, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -2066.559, 2403.736, 10.71501, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -2053.122, 2405.689, 12.20256, 0, 0, 0, 0, 100, 0),
(@PATH, 9, -2038.358, 2405.059, 13.80474, 0, 0, 0, 0, 100, 0),
(@PATH, 10, -2027.08, 2402.998, 15.03127, 0, 0, 0, 0, 100, 0),
(@PATH, 11, -2010.54, 2395.877, 18.18131, 0, 0, 0, 0, 100, 0),
(@PATH, 12, -1996.842, 2393.722, 20.54385, 0, 0, 0, 0, 100, 0),
(@PATH, 13, -1982.078, 2389.585, 23.77822, 0, 0, 0, 0, 100, 0),
(@PATH, 14, -1996.842, 2393.722, 20.54385, 0, 0, 0, 0, 100, 0),
(@PATH, 15, -2010.54, 2395.877, 18.18131, 0, 0, 0, 0, 100, 0),
(@PATH, 16, -2027.08, 2402.998, 15.03127, 0, 0, 0, 0, 100, 0),
(@PATH, 17, -2038.358, 2405.059, 13.80474, 0, 0, 0, 0, 100, 0),
(@PATH, 18, -2053.122, 2405.689, 12.20256, 0, 0, 0, 0, 100, 0),
(@PATH, 19, -2066.559, 2403.736, 10.71501, 0, 0, 0, 0, 100, 0),
(@PATH, 20, -2079.682, 2398.889, 9.380095, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C023BE80000A520006FBE97A .go xyz -2091.122 2395.448 9.130095
-- Pathing for Entry: 36453 'TDB FORMAT'
SET @NPC := 255464;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 0, `position_x`= -1894.193, `position_y`= 2257.021, `position_z`= 42.44826, `spawntimesecs`= 10 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
DELETE FROM `waypoints` WHERE `entry`=@PATH;
INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, -1894.193, 2257.021, 42.44826),
(@PATH, 2, -1916.847, 2239.845, 40.91469),
(@PATH, 3, -1927.254, 2227.689, 36.98933),
(@PATH, 4, -1939.424, 2230.359, 36.1411),
(@PATH, 5, -1941.524, 2248.212, 35.74326);
-- 0x2016DC51C0239940000A5200007C732F .go xyz -1894.193 2257.021 42.44826
-- Creature Duskhaven Villager 36453 SAI
SET @ENTRY := 36453;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
SET @ENTRY := -255464;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@ENTRY, 0, 0, 0, 63, 0, 100, 0, 0, 0, 0, 0, 53, 0, 2554640, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When just created - Self: Start path #2554640, walk, do not repeat, Passive // "),
(@ENTRY, 0, 1, 0, 40, 0, 100, 0, 5, 2554640, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On wapoint 5 of path 2554640 reached - Self: Despawn instantly // ");
-- Pathing for Entry: 36453 'TDB FORMAT'
SET @NPC := 255608;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1873.366, `position_y`= 2279.368, `position_z`= 42.2726 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1873.366, 2279.368, 42.2726, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1860.163, 2292.927, 42.37807, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1842.648, 2312.363, 39.95538, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1855.878, 2297.681, 42.34389, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1860.163, 2292.927, 42.37807, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -1873.366, 2279.368, 42.2726, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -1887.168, 2264.307, 42.44826, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -1894.903, 2256.849, 42.44826, 0, 0, 0, 0, 100, 0),
(@PATH, 9, -1903.941, 2248.106, 42.43593, 0, 0, 0, 0, 100, 0),
(@PATH, 10, -1894.903, 2256.849, 42.44826, 0, 0, 0, 0, 100, 0),
(@PATH, 11, -1887.168, 2264.307, 42.44826, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C0239940000A5200067BE97A .go xyz -1873.366 2279.368 42.2726
-- Pathing for Entry: 36528 'TDB FORMAT'
SET @NPC := 255888;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -2191.427, `position_y`= 2210.014, `position_z`= 16.85409 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -2191.427, 2210.014, 16.85409, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -2192.771, 2240.549, 10.35777, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -2191.427, 2210.014, 16.85409, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -2180.431, 2185.913, 17.17649, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -2143.8, 2179.517, 21.92157, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -2180.431, 2185.913, 17.17649, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C023AC00000A5200007BE97A .go xyz -2191.427 2210.014 16.85409
-- Pathing for Entry: 37499 'TDB FORMAT'
SET @NPC := 256175;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -2429.564, `position_y`= 1519.872, `position_z`= 16.55267 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -2429.564, 1519.872, 16.55267, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -2441.924, 1518.691, 16.8201, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -2429.564, 1519.872, 16.55267, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -2402.613, 1519.833, 9.752254, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -2372.38, 1512.417, 3.916122, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -2402.613, 1519.833, 9.752254, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C0249EC0000A520000FBE97A .go xyz -2429.564 1519.872 16.55267
-- Pathing for Entry: 37499 'TDB FORMAT'
SET @NPC := 256149;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -2474.689, `position_y`= 1504.384, `position_z`= 16.57015 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -2474.689, 1504.384, 16.57015, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -2474.722, 1522.802, 16.65865, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -2475.073, 1549.606, 16.56605, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -2475.033, 1569.531, 16.46894, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -2475.073, 1549.606, 16.56605, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -2474.722, 1522.802, 16.65865, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C0249EC0000A5200047BE97A .go xyz -2474.689 1504.384 16.57015
-- Pathing for Entry: 37716 'TDB FORMAT'
SET @NPC := 256376;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1920.988, `position_y`= 915.0052, `position_z`= 80.65214 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1920.988, 915.0052, 80.65214, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1940.851, 919.7361, 77.1021, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1920.988, 915.0052, 80.65214, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1904.314, 919.3108, 81.12821, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1877.561, 940.7153, 78.46329, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -1883.273, 971.4636, 76.76004, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -1886.76, 988.5417, 75.08572, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -1880.538, 1013.764, 69.19176, 0, 0, 0, 0, 100, 0),
(@PATH, 9, -1879.96, 1030.516, 65.19395, 0, 147, 0, 0, 100, 0),
(@PATH, 10, -1880.538, 1013.764, 69.19176, 0, 0, 0, 0, 100, 0),
(@PATH, 11, -1886.76, 988.5417, 75.08572, 0, 0, 0, 0, 100, 0),
(@PATH, 12, -1883.273, 971.4636, 76.76004, 0, 0, 0, 0, 100, 0),
(@PATH, 13, -1877.561, 940.7153, 78.46329, 0, 0, 0, 0, 100, 0),
(@PATH, 14, -1904.314, 919.3108, 81.12821, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C024D500000A5200007C3E2C .go xyz -1920.988 915.0052 80.65214
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 0, `position_x`= -1920.988, `position_y`= 915.0052, `position_z`= 80.65214 WHERE `guid`= 256377;
DELETE FROM `creature_formations` WHERE `leaderGUID`= 256376;
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES
(256376, 256376, 0, 0, 515, 0, 0),
(256376, 256377, 3.5, 45, 515, 0, 0);
-- Pathing for Entry: 37716 'TDB FORMAT'
SET @NPC := 256338;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1994.333, `position_y`= 901.1597, `position_z`= 57.28863 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1994.333, 901.1597, 57.28863, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1987.087, 884.1893, 60.00602, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1977.618, 866.3299, 64.44198, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1977.663, 850.1233, 64.31698, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1993.066, 835.0243, 66.02936, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -2004.243, 827.3108, 66.02936, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -1993.066, 835.0243, 66.02936, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -1977.663, 850.1233, 64.31698, 0, 0, 0, 0, 100, 0),
(@PATH, 9, -1977.618, 866.3299, 64.44198, 0, 0, 0, 0, 100, 0),
(@PATH, 10, -1987.087, 884.1893, 60.00602, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C024D500000A5200007C6A37 .go xyz -1994.333 901.1597 57.28863
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 0, `position_x`= -1994.333, `position_y`= 901.1597, `position_z`= 57.28863 WHERE `guid`= 256339;
DELETE FROM `creature_formations` WHERE `leaderGUID`= 256338;
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES
(256338, 256338, 0, 0, 515, 0, 0),
(256338, 256339, 3.5, 45, 515, 0, 0);
-- Pathing for Entry: 37716 'TDB FORMAT'
SET @NPC := 256335;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -2067.856, `position_y`= 969.2118, `position_z`= 68.70877 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -2067.856, 969.2118, 68.70877, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -2078.332, 985.2656, 65.64993, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -2088.236, 996.8246, 63.32449, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -2078.332, 985.2656, 65.64993, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -2067.856, 969.2118, 68.70877, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -2056.203, 951.6406, 70.049, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -2038.592, 942.6163, 69.044, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -2019.125, 939.7743, 64.905, 0, 0, 0, 0, 100, 0),
(@PATH, 9, -2009.146, 933.618, 62.09396, 0, 0, 0, 0, 100, 0),
(@PATH, 10, -2019.125, 939.7743, 64.905, 0, 0, 0, 0, 100, 0),
(@PATH, 11, -2038.592, 942.6163, 69.044, 0, 0, 0, 0, 100, 0),
(@PATH, 12, -2056.203, 951.6406, 70.049, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C024D500000A5200007C777B .go xyz -2067.856 969.2118 68.70877
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 0, `position_x`= -2067.856, `position_y`= 969.2118, `position_z`= 68.70877 WHERE `guid`= 256337;
DELETE FROM `creature_formations` WHERE `leaderGUID`= 256335;
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES
(256335, 256335, 0, 0, 515, 0, 0),
(256335, 256337, 3.5, 45, 515, 0, 0);
-- Pathing for Entry: 37735 'TDB FORMAT'
SET @NPC := 256380;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -2092.382, `position_y`= 765.0938, `position_z`= 94.48202 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -2092.382, 765.0938, 94.48202, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -2090.931, 753.4097, 94.33138, 0, 138, 0, 0, 100, 0),
(@PATH, 3, -2092.382, 765.0938, 94.48202, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -2098.059, 774.8611, 94.13759, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -2100.215, 785.7813, 90.1011, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -2102.316, 790.4809, 89.92068, 0, 46, 0, 0, 100, 0),
(@PATH, 7, -2100.215, 785.7813, 90.1011, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -2098.088, 774.9854, 94.13808, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C024D9C0000A5200007C75FB .go xyz -2092.382 765.0938 94.48202
-- Pathing for Entry: 37733 'TDB FORMAT'
SET @NPC := 256416;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1903.321, `position_y`= 956.8455, `position_z`= 76.66547 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1903.321, 956.8455, 76.66547, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1893.905, 945.5469, 77.56022, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1903.321, 956.8455, 76.66547, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1908.823, 970.6042, 76.37778, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1919.597, 983.7222, 77.73883, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -1924.319, 979.8802, 77.73791, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -1929.385, 984.1337, 77.73791, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -1921.168, 992.6024, 86.8955, 0, 0, 0, 0, 100, 0),
(@PATH, 9, -1917.144, 988.3177, 86.89632, 0, 0, 0, 0, 100, 0),
(@PATH, 10, -1921.254, 982.8958, 86.89243, 0, 0, 0, 0, 100, 0),
(@PATH, 11, -1917.144, 988.3177, 86.89632, 0, 0, 0, 0, 100, 0),
(@PATH, 12, -1921.168, 992.6024, 86.8955, 0, 0, 0, 0, 100, 0),
(@PATH, 13, -1929.385, 984.1337, 77.73791, 0, 0, 0, 0, 100, 0),
(@PATH, 14, -1924.319, 979.8802, 77.73791, 0, 0, 0, 0, 100, 0),
(@PATH, 15, -1919.597, 983.7222, 77.73883, 0, 0, 0, 0, 100, 0),
(@PATH, 16, -1908.823, 970.6042, 76.37778, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C024D940000A5200007C750C .go xyz -1903.321 956.8455 76.66547
-- Pathing for Entry: 37803 'TDB FORMAT'
SET @NPC := 256557;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1371.585, `position_y`= 1207.505, `position_z`= 35.66685 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1371.585, 1207.505, 35.66685, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1375.611, 1217.569, 35.66685, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1373.533, 1228.219, 35.66685, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1375.611, 1217.569, 35.66685, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1371.585, 1207.505, 35.66685, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -1367.905, 1198.311, 35.60542, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C024EAC0000A5200007BE97A .go xyz -1371.585 1207.505 35.66685
-- Pathing for Entry: 37692 'TDB FORMAT'
SET @NPC := 256546;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1161.3, `position_y`= 1159.146, `position_z`= 24.30762 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1161.3, 1159.146, 24.30762, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1168.967, 1147.288, 24.40761, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1174.701, 1136.983, 24.40761, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1188.795, 1129.389, 26.53261, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1202.111, 1125.109, 31.01379, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -1188.91, 1129.323, 26.53969, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -1174.701, 1136.983, 24.40761, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -1168.967, 1147.288, 24.40761, 0, 0, 0, 0, 100, 0),
(@PATH, 9, -1161.3, 1159.146, 24.30762, 0, 0, 0, 0, 100, 0),
(@PATH, 10, -1147.311, 1167.064, 24.2856, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C024CF00000A5200007C7A04 .go xyz -1161.3 1159.146 24.30762
-- Pathing for Entry: 37692 'TDB FORMAT'
SET @NPC := 256536;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1121.595, `position_y`= 1087.806, `position_z`= 24.21713 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1121.595, 1087.806, 24.21713, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1113.825, 1080.91, 25.50626, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1106.036, 1077.946, 25.5035, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1113.825, 1080.91, 25.50626, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1121.595, 1087.806, 24.21713, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -1139.198, 1106.674, 24.40304, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -1149.453, 1123.134, 24.40304, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -1139.198, 1106.674, 24.40304, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C024CF00000A5200007C7B48 .go xyz -1121.595 1087.806 24.21713
-- Pathing for Entry: 37701 'TDB FORMAT'
SET @NPC := 256482;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1174.153, `position_y`= 931.5764, `position_z`= 24.65535 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1174.153, 931.5764, 24.65535, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1182.519, 938.8629, 26.71802, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1174.153, 931.5764, 24.65535, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1156.22, 931.8021, 24.43024, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1142.063, 924.1719, 24.92024, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -1133.828, 913.3368, 25.76561, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -1142.063, 924.1719, 24.92024, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -1156.22, 931.8021, 24.43024, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C024D140000A5200007C6735 .go xyz -1174.153 931.5764 24.65535
-- Pathing for Entry: 37701 'TDB FORMAT'
SET @NPC := 256489;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1174.266, `position_y`= 910.8073, `position_z`= 22.33742 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1174.266, 910.8073, 22.33742, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1167.611, 904.9045, 22.40444, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1164.054, 893.3577, 22.43097, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1151.313, 870.2066, 25.02729, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1138.495, 860.7379, 28.21266, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -1151.313, 870.2066, 25.02729, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -1164.054, 893.3577, 22.43097, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -1167.611, 904.9045, 22.40444, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C024D140000A5200007C6D39 .go xyz -1174.266 910.8073 22.33742
-- Pathing for Entry: 37701 'TDB FORMAT'
SET @NPC := 256525;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1032.212, `position_y`= 990.5695, `position_z`= 39.35429 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1032.212, 990.5695, 39.35429, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1026.731, 990.283, 39.00252, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1032.212, 990.5695, 39.35429, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1051.504, 984.1771, 43.06197, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C024D140000A5200007C6D40 .go xyz -1032.212 990.5695 39.35429
-- Pathing for Entry: 37701 'TDB FORMAT'
SET @NPC := 256503;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1166.602, `position_y`= 859.5695, `position_z`= 24.81995 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1166.602, 859.5695, 24.81995, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1153.026, 865.8733, 25.39171, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1143.53, 864.0608, 26.33944, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1136.766, 856.5573, 29.62898, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1143.53, 864.0608, 26.33944, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -1153.026, 865.8733, 25.39171, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -1166.602, 859.5695, 24.81995, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -1181.953, 852.1424, 25.12563, 0, 0, 0, 0, 100, 0),
(@PATH, 9, -1194.964, 853.4114, 24.8287, 0, 0, 0, 0, 100, 0),
(@PATH, 10, -1181.953, 852.1424, 25.12563, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C024D140000A5200007C6DA2 .go xyz -1166.602 859.5695 24.81995
-- Pathing for Entry: 37701 'TDB FORMAT'
SET @NPC := 256468;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1216.549, `position_y`= 1039.929, `position_z`= 39.58936 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1216.549, 1039.929, 39.58936, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1220.865, 1017.769, 43.51139, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1206.929, 998.3368, 45.30154, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1220.865, 1017.769, 43.51139, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1216.549, 1039.929, 39.58936, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -1205.917, 1056.165, 37.96485, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -1197.384, 1073.109, 35.93882, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -1196.642, 1081.526, 35.72037, 0, 0, 0, 0, 100, 0),
(@PATH, 9, -1197.396, 1081.771, 35.72037, 0, 0, 0, 0, 100, 0),
(@PATH, 10, -1203.436, 1087.87, 35.71577, 0, 0, 0, 0, 100, 0),
(@PATH, 11, -1217.953, 1092.246, 34.99638, 0, 0, 0, 0, 100, 0),
(@PATH, 12, -1203.436, 1087.87, 35.71577, 0, 0, 0, 0, 100, 0),
(@PATH, 13, -1197.396, 1081.771, 35.72037, 0, 0, 0, 0, 100, 0),
(@PATH, 14, -1196.642, 1081.526, 35.72037, 0, 0, 0, 0, 100, 0),
(@PATH, 15, -1197.384, 1073.109, 35.93882, 0, 0, 0, 0, 100, 0),
(@PATH, 16, -1205.917, 1056.165, 37.96485, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C024D140000A5200007C78D7 .go xyz -1216.549 1039.929 39.58936
-- Pathing for Entry: 37701 'TDB FORMAT'
SET @NPC := 256474;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1178.582, `position_y`= 1022.448, `position_z`= 42.33801 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1178.582, 1022.448, 42.33801, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1186.76, 1033.207, 41.87118, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1178.582, 1022.448, 42.33801, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1158.873, 1024.286, 43.32338, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1148.368, 1021.017, 43.39351, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -1158.873, 1024.286, 43.32338, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C024D140000A5200007C78F9 .go xyz -1178.582 1022.448 42.33801
-- Pathing for Entry: 37701 'TDB FORMAT'
SET @NPC := 256514;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1094.542, `position_y`= 996.0764, `position_z`= 46.33026 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1094.542, 996.0764, 46.33026, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1082.139, 1000.153, 46.48643, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1073.005, 1004.438, 46.67006, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1066.443, 996.1389, 45.25841, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1059.972, 985.7327, 45.06297, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -1056.95, 971.7188, 44.89788, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -1059.948, 962.8559, 45.02491, 0, 322, 0, 0, 100, 0),
(@PATH, 8, -1056.95, 971.7188, 44.89788, 0, 0, 0, 0, 100, 0),
(@PATH, 9, -1059.91, 985.4459, 45.05038, 0, 0, 0, 0, 100, 0),
(@PATH, 10, -1066.443, 996.1389, 45.25841, 0, 0, 0, 0, 100, 0),
(@PATH, 11, -1072.948, 1004.365, 46.66784, 0, 0, 0, 0, 100, 0),
(@PATH, 12, -1082.139, 1000.153, 46.48643, 0, 0, 0, 0, 100, 0),
(@PATH, 13, -1094.542, 996.0764, 46.33026, 0, 0, 0, 0, 100, 0),
(@PATH, 14, -1103.339, 994.1389, 45.45895, 0, 9, 0, 0, 100, 0);
-- 0x2016DC51C024D140000A5200007C7A08 .go xyz -1094.542 996.0764 46.33026
-- Pathing for Entry: 37701 'TDB FORMAT'
SET @NPC := 256496;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1112.424, `position_y`= 946.7031, `position_z`= 39.90021 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1112.424, 946.7031, 39.90021, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1101.115, 942.191, 39.40974, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1083.464, 941.9739, 39.45651, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1101.115, 942.191, 39.40974, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1112.424, 946.7031, 39.90021, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -1123.457, 949.6511, 40.60905, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -1134.141, 951.1198, 41.30095, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -1123.584, 949.6686, 40.6466, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C024D140000A5200007C7A2F .go xyz -1112.424 946.7031 39.90021
-- Pathing for Entry: 37701 'TDB FORMAT'
SET @NPC := 256510;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 2, `position_x`= -1086.516, `position_y`= 887.8559, `position_z`= 37.05409 WHERE `guid`= @NPC;
DELETE FROM `creature_addon` WHERE `guid`= @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES (@NPC, @PATH, 0, 0, 1, 0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(@PATH, 1, -1086.516, 887.8559, 37.05409, 0, 0, 0, 0, 100, 0),
(@PATH, 2, -1081.691, 896.4653, 36.73196, 0, 0, 0, 0, 100, 0),
(@PATH, 3, -1075.509, 912.9132, 35.19082, 0, 0, 0, 0, 100, 0),
(@PATH, 4, -1072.684, 927.7639, 38.62774, 0, 0, 0, 0, 100, 0),
(@PATH, 5, -1069.144, 938.9653, 41.08496, 0, 0, 0, 0, 100, 0),
(@PATH, 6, -1072.588, 928.0688, 38.70449, 0, 0, 0, 0, 100, 0),
(@PATH, 7, -1075.509, 912.9132, 35.19082, 0, 0, 0, 0, 100, 0),
(@PATH, 8, -1081.691, 896.4653, 36.73196, 0, 0, 0, 0, 100, 0);
-- 0x2016DC51C024D140000A5200007C7A4A .go xyz -1086.516 887.8559 37.05409
@@ -0,0 +1,11 @@
--
DELETE FROM `spell_area` WHERE `spell` IN (84459) AND `area`=9;
INSERT INTO `spell_area` (`spell`,`area`,`quest_start`,`quest_end`,`aura_spell`,`racemask`,`gender`,`flags`,`quest_start_status`,`quest_end_status`) VALUES
(84459,9,28806,0,0,0,2,3,8,67),
(84459,9,28808,0,0,0,2,3,8,67),
(84459,9,28809,0,0,0,2,3,8,67),
(84459,9,28810,0,0,0,2,3,8,67),
(84459,9,28811,0,0,0,2,3,8,67),
(84459,9,28812,0,0,0,2,3,8,67),
(84459,9,28813,0,0,0,2,3,8,67),
(84459,9,29082,0,0,0,2,3,8,67);
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,5 @@
-- Twilight Zealot from Heroic Blackrock Caverns is missing
SET @GUID := 250021;
DELETE FROM `creature` WHERE `guid` = @GUID;
INSERT INTO `creature` (`guid`, `id`, `map`, `spawnDifficulties`, `phaseId`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `MovementType`) VALUES
(@GUID, 50284,645,"2",169,573.484,978.585,155.4369,1.570796,7200,0,0); -- Twilight Zealot Heroic
@@ -0,0 +1,64 @@
-- #### Fix Quest 25370 "Inciting the Elements" in Hyjai zone####
-- Remove loot and fix addon for Twilight Inciter
UPDATE `creature_template` SET `lootid`=0 WHERE `entry`=39926;
DELETE FROM `creature_loot_template` WHERE `Entry`=39926;
DELETE FROM `creature_template_addon` WHERE `entry`=39926;
INSERT INTO `creature_template_addon` (`entry`,`mount`,`bytes1`,`bytes2`,`emote`,`aiAnimKit`,`auras`) VALUES (39926,0,131072,503316481,0,0, '30991');
-- Set random movement for various creatures
UPDATE `creature` SET `spawndist`=5,`MovementType`=1 WHERE `id` IN (39921,40229,49728);
-- Add creature text for Faerie Dragon & Twilight Inciter
DELETE FROM `creature_text` WHERE `CreatureID` IN (39921,39926);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(39921, 0, 0, 'Meep! $R is good friend. Follow now! We find intruder!', 12, 0, 100, 0, 0, 0, 39943, 'Faerie Dragon'),
(39921, 0, 1, 'We find evil ones now! Follow!', 12, 0, 100, 0, 0, 0, 40300, 'Faerie Dragon'),
(39921, 0, 2, 'They hide this way! Quick!', 12, 0, 100, 0, 0, 0, 40301, 'Faerie Dragon'),
(39921, 0, 3, 'We look for the evil ones now, yes?', 12, 0, 100, 0, 0, 0, 40302, 'Faerie Dragon'),
(39921, 1, 0, 'We finds evil one! Quick!', 14, 0, 100, 0, 0, 0, 39944, 'Faerie Dragon'),
(39921, 1, 1, 'Over here! You must stop them!', 14, 0, 100, 0, 0, 0, 40303, 'Faerie Dragon'),
(39921, 1, 2, 'You must fight now, $n!', 14, 0, 100, 0, 0, 0, 40304, 'Faerie Dragon'),
(39921, 1, 3, 'Over here, $n!', 14, 0, 100, 0, 0, 0, 40305, 'Faerie Dragon'),
(39926, 0, 0, 'How did you find me? It matters little... you will die!', 12, 0, 100, 0, 0, 0, 39945, 'Twilight Inciter'),
(39926, 0, 1, 'I''ve been spotted? Time to die!', 12, 0, 100, 0, 0, 0, 39946, 'Twilight Inciter'),
(39926, 0, 2, 'You will not give away my position, $c!', 12, 0, 100, 0, 0, 0, 39947, 'Twilight Inciter'),
(39926, 0, 3, 'You might have found me, but you won''t bring word back to the others!', 12, 0, 100, 0, 0, 0, 39948, 'Twilight Inciter');
-- Faerie Dragon SAI
SET @ENTRY := 39921;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY*10 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
(@ENTRY,0,0,0,11,0,100,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Faerie Dragon - On spawn - Set event phase"),
(@ENTRY,0,1,2,8,1,100,0,74513,0,60000,60000,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Faerie Dragon - On Spell hit - Say 0"),
(@ENTRY,0,2,0,61,1,100,0,0,0,0,0,80,@ENTRY*10,0,0,0,0,0,1,0,0,0,0,0,0,0,"Faerie Dragon - On Spell hit - Run script"),
(@ENTRY*10,9,0,0,0,0,100,0,0,0,0,0,22,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Faerie Dragon - script - Set event phase"),
(@ENTRY*10,9,1,0,0,0,100,0,3000,3000,3000,3000,89,25,0,0,0,0,0,1,0,0,0,0,0,0,0,"Faerie Dragon - script - Move to random location 25 yards"),
(@ENTRY*10,9,2,0,0,0,100,0,8000,8000,8000,8000,11,74515,0,0,0,0,0,7,0,0,0,0,0,0,0,"Faerie Dragon - script - Cast 'Forcecast Spot Infiltrator'"),
(@ENTRY*10,9,3,0,0,0,100,0,0,0,0,0,1,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"Faerie Dragon - script - Say 1"),
(@ENTRY*10,9,4,0,0,0,100,0,0,0,0,0,41,3000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Faerie Dragon - script - despawn");
-- Twilight Inciter SAI
SET @ENTRY := 39926;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,1,54,0,100,1,0,0,0,0,66,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Twilight Inciter - Just Summoned - Turn to summoner"),
(@ENTRY,0,1,0,61,0,100,1,0,0,0,0,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Twilight Inciter - Just Summoned - Say 0"),
(@ENTRY,0,2,0,0,0,100,0,10000,10000,10000,10000,11,80576,0,0,0,0,0,2,0,0,0,0,0,0,0,"Twilight Inciter - Combat - Cast: 'Shadowstep'"),
(@ENTRY,0,3,0,67,0,100,0,5000,5000,0,0,11,37685,0,0,0,0,0,2,0,0,0,0,0,0,0,"Twilight Inciter - Combat - Cast: 'Backstab'");
-- fix npc
DELETE FROM `creature_addon` WHERE `guid`=383970;
DELETE FROM `creature_template_addon` WHERE `entry`=40278;
INSERT INTO `creature_template_addon` (`entry`,`mount`,`bytes1`,`bytes2`,`emote`,`aiAnimKit`,`auras`) VALUES (40278,0,0,1,375,0, '');
-- Tiala Whitemane SAI
SET @ENTRY := 40833;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,1,0,100,0,1000,1000,2000,2000,11,13236,0,0,0,0,0,1,0,0,0,0,0,0,0,"Tiala Whitemane - OOC - Cast 'Nature Channeling'"),
(@ENTRY,0,1,0,1,0,100,0,2000,2000,2000,2000,92,0,13236,1,0,0,0,1,0,0,0,0,0,0,0,"Tiala Whitemane - OOC - Interupt cast");
@@ -0,0 +1,2 @@
--
ALTER TABLE `smart_scripts` ADD COLUMN `event_param5` INT(10) UNSIGNED DEFAULT 0 NOT NULL AFTER `event_param4`;
@@ -0,0 +1,57 @@
--
UPDATE `quest_template_addon` SET `PrevQuestID`=0 WHERE `ID` IN (25317);
DELETE FROM `quest_template_addon` WHERE `ID` IN (25584);
INSERT INTO `quest_template_addon` (`ID`,`PrevQuestID`,`ProvidedItemCount`) VALUES
(25584,25578,0);
DELETE FROM `quest_template_addon` WHERE `ID` IN (25472);
INSERT INTO `quest_template_addon` (`ID`,`PrevQuestID`,`ProvidedItemCount`) VALUES
(25472,25317,0);
DELETE FROM `quest_template_addon` WHERE `ID` IN (25430);
INSERT INTO `quest_template_addon` (`ID`,`PrevQuestID`,`ProvidedItemCount`) VALUES
(25430,25464,0);
-- Condition for source Gossip menu option condition type Quest rewarded
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=11451 AND `SourceEntry`=0 AND `SourceId`=0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(15, 11451, 0, 0, 0, 8, 0, 25578, 0, 0, 0, 0, 0, '', 'Show gossip menu 11451 option id 0 if quest Return to Nordrassil has been rewarded.');
-- Condition for source Gossip menu option condition type Quest rewarded
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=11451 AND `SourceEntry`=1 AND `SourceId`=0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(15, 11451, 1, 0, 0, 8, 0, 25578, 0, 0, 0, 0, 0, '', 'Show gossip menu 11451 option id 1 if quest Return to Nordrassil has been rewarded.');
-- Condition for source Gossip menu option condition type Quest rewarded
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=11451 AND `SourceEntry`=2 AND `SourceId`=0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(15, 11451, 2, 0, 0, 8, 0, 25578, 0, 0, 0, 0, 0, '', 'Show gossip menu 11451 option id 2 if quest Return to Nordrassil has been rewarded.');
-- Condition for source Gossip menu option condition type Quest rewarded
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=11451 AND `SourceEntry`=3 AND `SourceId`=0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(15, 11451, 3, 0, 0, 8, 0, 25578, 0, 0, 0, 0, 0, '', 'Show gossip menu 11451 option id 3 if quest Return to Nordrassil has been rewarded.');
UPDATE `creature_template` SET `InhabitType`=4 WHERE `entry`=38917;
DELETE FROM `spell_area` WHERE `spell`=101311;
INSERT INTO `spell_area` (`spell`,`area`,`quest_start`,`quest_end`,`aura_spell`,`racemask`,`gender`,`flags`,`quest_start_status`,`quest_end_status`) VALUES
(101311,5625,25430,25324,0,0,2,3,74,11);
UPDATE `creature_template` SET `flags_extra`=2 WHERE `entry`=40139;
UPDATE `creature_template` SET `InhabitType`=4 WHERE `entry`=40178;
DELETE FROM `spell_area` WHERE `spell`=75243;
INSERT INTO `spell_area` (`spell`,`area`,`quest_start`,`quest_end`,`aura_spell`,`racemask`,`gender`,`flags`,`quest_start_status`,`quest_end_status`) VALUES
(75243,5032,25325,25578,0,0,2,3,74,1);
UPDATE `creature_template` SET `HealthScalingExpansion`=2,`faction`=35,`unit_class`=2,`unit_flags`=72 WHERE `entry`=40180;
DELETE FROM `creature_template_addon` WHERE `entry`=40180;
INSERT INTO `creature_template_addon` (`entry`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (40180,0,0,0,257,0, '76236');
-- Captain Saynna Stormrunner SAI
SET @ENTRY := 39446;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,19,0,100,0,25325,0,0,0,11,74895,0,0,0,0,0,7,0,0,0,0,0,0,0,"Captain Saynna Stormrunner - Quest accepted - Cast 'Forcecast Summon Fandral'");
@@ -0,0 +1,457 @@
-- Dave's Industrial Light and Magic Bunny (Medium)(Sessile) SAI ***
-- Dave's Industrial Light and Magic Bunny (Small)(Sessile) SAI ***
UPDATE `creature_template` SET `flags_extra`=2 WHERE `entry`=40139;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry` IN (38821,35845);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (-385940,-386736,-384774,-384767,-384775,-384769,-384773,-384734,-384740,-384533) AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (388210,388211,388212,388213,388214,388215,388216,388217) AND `source_type`=9;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(-385940,0,0,0,10,0,100,0,1,2,1000,1000,1,11,75667,0,0,0,0,0,7,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Range - Cast 'Second Flamegate Entry'"),
(-386736,0,0,0,10,0,100,0,1,2,1000,1000,1,11,77815,0,0,0,0,0,7,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Small)(Sessile) - Range - Cast 'Second Flamegate Exit'"),
(-384774,0,0,0,1,0,100,0,5000,25000,30000,35000,0,80,388210,0,0,0,0,0,1,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - OOC - Run Script"),
(-384767,0,0,0,1,0,100,0,5000,25000,30000,35000,0,80,388211,0,0,0,0,0,1,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - OOC - Run Script"),
(-384775,0,0,0,1,0,100,0,5000,25000,30000,35000,0,80,388212,0,0,0,0,0,1,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - OOC - Run Script"),
(-384769,0,0,0,1,0,100,0,5000,25000,30000,35000,0,80,388213,0,0,0,0,0,1,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - OOC - Run Script"),
(-384773,0,0,0,1,0,100,0,5000,25000,30000,35000,0,80,388214,0,0,0,0,0,1,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - OOC - Run Script"),
(-384734,0,0,0,1,0,100,0,5000,25000,30000,35000,0,80,388215,0,0,0,0,0,1,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - OOC - Run Script"),
(-384740,0,0,0,1,0,100,0,5000,25000,30000,35000,0,80,388216,0,0,0,0,0,1,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - OOC - Run Script"),
(-384533,0,0,0,1,0,100,0,5000,25000,30000,35000,0,80,388217,0,0,0,0,0,1,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - OOC - Run Script"),
(388210,9,0,0,0,0,100,0,0,0,0,0,0,85,74419,0,0,0,0,0,11,39859,30,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Target Self Cast 'Cosmetic - Storm Cloud Base'"),
(388210,9,1,0,0,0,100,0,5000,5000,0,0,0,86,74425,0,11,39859,30,0,1,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Cross Cast to self 'Cosmetic - Lightning Strike'"),
(388210,9,2,0,0,0,100,0,5000,5000,0,0,0,28,74419,0,0,0,0,0,11,39859,30,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Target Remove aura 'Cosmetic - Storm Cloud Base'"),
(388211,9,0,0,0,0,100,0,0,0,0,0,0,85,74419,0,0,0,0,0,11,39859,30,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Target Self Cast 'Cosmetic - Storm Cloud Base'"),
(388211,9,1,0,0,0,100,0,5000,5000,0,0,0,86,74425,0,11,39859,30,0,1,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Cross Cast to self 'Cosmetic - Lightning Strike'"),
(388211,9,2,0,0,0,100,0,5000,5000,0,0,0,28,74419,0,0,0,0,0,11,39859,30,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Target Remove aura 'Cosmetic - Storm Cloud Base'"),
(388212,9,0,0,0,0,100,0,0,0,0,0,0,85,74419,0,0,0,0,0,11,39859,30,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Target Self Cast 'Cosmetic - Storm Cloud Base'"),
(388212,9,1,0,0,0,100,0,5000,5000,0,0,0,86,74425,0,11,39859,30,0,1,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Cross Cast to self 'Cosmetic - Lightning Strike'"),
(388212,9,2,0,0,0,100,0,5000,5000,0,0,0,28,74419,0,0,0,0,0,11,39859,30,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Target Remove aura 'Cosmetic - Storm Cloud Base'"),
(388213,9,0,0,0,0,100,0,0,0,0,0,0,85,74419,0,0,0,0,0,11,39859,30,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Target Self Cast 'Cosmetic - Storm Cloud Base'"),
(388213,9,1,0,0,0,100,0,5000,5000,0,0,0,86,74425,0,11,39859,30,0,1,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Cross Cast to self 'Cosmetic - Lightning Strike'"),
(388213,9,2,0,0,0,100,0,5000,5000,0,0,0,28,74419,0,0,0,0,0,11,39859,30,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Target Remove aura 'Cosmetic - Storm Cloud Base'"),
(388214,9,0,0,0,0,100,0,0,0,0,0,0,85,74419,0,0,0,0,0,11,39859,30,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Target Self Cast 'Cosmetic - Storm Cloud Base'"),
(388214,9,1,0,0,0,100,0,5000,5000,0,0,0,86,74425,0,11,39859,30,0,1,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Cross Cast to self 'Cosmetic - Lightning Strike'"),
(388214,9,2,0,0,0,100,0,5000,5000,0,0,0,28,74419,0,0,0,0,0,11,39859,30,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Target Remove aura 'Cosmetic - Storm Cloud Base'"),
(388215,9,0,0,0,0,100,0,0,0,0,0,0,85,74419,0,0,0,0,0,11,39859,30,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Target Self Cast 'Cosmetic - Storm Cloud Base'"),
(388215,9,1,0,0,0,100,0,5000,5000,0,0,0,86,74425,0,11,39859,30,0,1,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Cross Cast to self 'Cosmetic - Lightning Strike'"),
(388215,9,2,0,0,0,100,0,5000,5000,0,0,0,28,74419,0,0,0,0,0,11,39859,30,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Target Remove aura 'Cosmetic - Storm Cloud Base'"),
(388216,9,0,0,0,0,100,0,0,0,0,0,0,85,74419,0,0,0,0,0,11,39859,30,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Target Self Cast 'Cosmetic - Storm Cloud Base'"),
(388216,9,1,0,0,0,100,0,5000,5000,0,0,0,86,74425,0,11,39859,30,0,1,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Cross Cast to self 'Cosmetic - Lightning Strike'"),
(388216,9,2,0,0,0,100,0,5000,5000,0,0,0,28,74419,0,0,0,0,0,11,39859,30,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Target Remove aura 'Cosmetic - Storm Cloud Base'"),
(388217,9,0,0,0,0,100,0,0,0,0,0,0,85,74419,0,0,0,0,0,11,39859,30,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Target Self Cast 'Cosmetic - Storm Cloud Base'"),
(388217,9,1,0,0,0,100,0,5000,5000,0,0,0,86,74425,0,11,39859,30,0,1,0,0,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Cross Cast to self 'Cosmetic - Lightning Strike'"),
(388217,9,2,0,0,0,100,0,5000,5000,0,0,0,28,74419,0,0,0,0,0,11,39859,30,0,0,0,0,0,"Dave's Industrial Light and Magic Bunny (Medium)(Sessile) - Script - Target Remove aura 'Cosmetic - Storm Cloud Base'");
-- Remove aura from Dave's Industrial Light and Magic Bunny (Large)(Sessile)
UPDATE `creature_addon` SET `auras` = "" WHERE `guid` IN (384778,384770,384777,384766,384776,384735,384741,384535);
UPDATE `creature` SET `modelid`=31729 WHERE `id`=40190;
DELETE FROM `creature_addon` WHERE `guid`=386736;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (386736,0,0,0,1,0, '70696,74093,74094,74095,74096');
UPDATE `creature_template` SET `flags_extra`=2 WHERE `entry` IN (40834, 40837);
UPDATE `creature_template` SET `flags_extra`=128,`InhabitType`=4 WHERE `entry` IN (39600);
UPDATE `creature_template` SET `InhabitType`=4 WHERE `entry` IN (40240,40650,40250);
UPDATE `creature_template` SET `npcflag`=16777216,`unit_flags`=512,`unit_flags2`=67110912,`InhabitType`=4 WHERE `entry` IN (40190);
UPDATE `vehicle_template_accessory` SET `seat_id`=4 WHERE `entry`=40190;
DELETE FROM `creature_template_addon` WHERE `entry`=39637;
INSERT INTO `creature_template_addon` (`entry`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (39637,0,0,0,257,0, '');
DELETE FROM `creature` WHERE `guid` IN (384781,385390,385339,385033,385478,385472,385791);
DELETE FROM `creature_addon` WHERE `guid` IN (384781,385390,385339,385033,385478,385472,385791);
UPDATE `creature` SET `spawndist`=10,`MovementType`=1 WHERE `id`=39588;
DELETE FROM `creature_addon` WHERE `guid`=384892;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (384892,0,0,0,1,431, '');
DELETE FROM `npc_spellclick_spells` WHERE `npc_entry`=40240;
INSERT INTO `npc_spellclick_spells` (`npc_entry`,`spell_id`,`cast_flags`,`user_type`) VALUES (40240,75140,3,0);
UPDATE `quest_template` SET `AllowableRaces`=1101 WHERE `ID` IN (25352,25268,27726,25273,25280,25278,25353,25618,25623,25611,27398);
UPDATE `quest_template` SET `AllowableRaces`=690 WHERE `ID` IN (25354,25269,27721,25272,25279,25277,25355,25617,25624,25612,27399);
DELETE FROM `spell_area` WHERE `spell`=74091;
INSERT INTO `spell_area` (`spell`,`area`,`quest_start`,`quest_end`,`aura_spell`,`racemask`,`gender`,`flags`,`quest_start_status`,`quest_end_status`) VALUES
(74091,4979,0,25272,0,0,2,3,64,11);
DELETE FROM `gameobject` WHERE `guid`=237982;
DELETE FROM `creature_questender` WHERE `id` IN (39622) AND `quest` IN (25273,25353);
INSERT INTO `creature_questender` (`id`,`quest`) VALUES
(39622,25273),(39622,25353);
UPDATE `creature_template` SET `unit_flags`=8,`VehicleId`=1227 WHERE `entry`=39622;
DELETE FROM `spell_target_position` WHERE `ID`=74077;
DELETE FROM `gameobject` WHERE `guid`=237985;
DELETE FROM `gameobject_addon` WHERE `guid`=237985;
DELETE FROM `spell_scripts` WHERE `id`=74083;
INSERT INTO `spell_scripts` (`id`,`delay`,`command`,`datalong`,`datalong2`,`dataint`,`x`,`y`,`z`,`o`) VALUES
(74083,0,15,74077,1,0,0,0,0,0);
-- Fix Lycanthoth spawn location
UPDATE `event_scripts` SET `x`=5134.321,`y`=-2309.696,`z`=1279.615,`o`=0.6539252 WHERE `id`=24005;
-- Lycanthoth SAI
SET @ENTRY := 39446;
UPDATE `creature_template` SET `mingold`=0, `maxgold`=0,`AIName`="SmartAI" WHERE `entry`=@ENTRY;
UPDATE `creature_template_addon` SET `auras`='74060 74061' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,54,0,100,1,0,0,0,0,116,3,0,0,0,0,0,1,0,0,0,0,0,0,0,"Lycanthoth - Just Summoned - Despawn after 3 sec"),
(@ENTRY,0,1,0,54,0,100,1,0,0,0,0,49,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Lycanthoth - Just Summoned - Attack Summoner"),
(@ENTRY,0,2,0,54,0,100,1,0,0,0,0,50,202661,0,0,0,0,0,8,0,0,0,5140.518,-2305.198,1279.25,1.221729,"Lycanthoth - Just Summoned - Summon Gameobject"),
(@ENTRY,0,3,0,4,0,100,1,0,0,0,0,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Lycanthoth - Aggro - Say 0"),
(@ENTRY,0,4,0,2,0,100,1,1,49,0,0,11,37776,2,0,0,0,0,1,0,0,0,0,0,0,0,"Lycanthoth - Hp below 50% - Cast 'Blood Howl'"),
(@ENTRY,0,5,0,2,0,100,1,1,49,0,0,1,1,0,0,0,0,0,2,0,0,0,0,0,0,0,"Lycanthoth - Hp below 50% - Say 1"),
(@ENTRY,0,6,0,6,0,100,1,0,0,0,0,11,74084,2,0,0,0,0,7,0,0,0,0,0,0,0,"Lycanthoth - Death - Cast 'Force Player to Summon Wolf God'"),
(@ENTRY,0,7,0,6,0,100,1,0,0,0,0,4,21902,0,0,0,0,0,7,0,0,0,0,0,0,0,"Lycanthoth - Death - Play Sound");
DELETE FROM `creature_text` WHERE `CreatureID`=39446;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(39446, 0, 0, 'Log''loth og shandai, mortal. Only death is eternal. You will be undone.', 12, 0, 100, 0, 0, 21900, 39639, 'Lycanthoth Aggro'),
(39446, 1, 0, 'Fate subjugates faith, mortal. Your prayers are meaningless here.', 12, 0, 100, 0, 0, 21901, 39640, 'Lycanthoth 50% HP');
-- Captain Saynna Stormrunner SAI
SET @ENTRY := 40139;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,19,0,100,0,25325,0,0,0,11,74895,0,0,0,0,0,7,0,0,0,0,0,0,0,"Captain Saynna Stormrunner - Quest accepted - Cast 'Forcecast Summon Fandral'");
UPDATE `creature` SET `PhaseId`=0, `PhaseGroup`=448 WHERE `guid`=384142;
-- Pathing for Goldrinn Defender Entry: 39637 'TDB FORMAT'
SET @NPC := 385246;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=5029.46,`position_y`=-2057.81,`position_z`=1148.975 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,257,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,5029.46,-2057.81,1148.975,0,0,0,0,100,0),
(@PATH,2,5024.99,-2060.07,1148.975,0,0,0,0,100,0),
(@PATH,3,5020.8,-2061.3,1148.975,0,0,0,0,100,0),
(@PATH,4,5024.99,-2060.07,1148.975,0,0,0,0,100,0),
(@PATH,5,5029.46,-2057.81,1148.975,0,0,0,0,100,0),
(@PATH,6,5033.73,-2055.75,1148.975,0,0,0,0,100,0),
(@PATH,7,5036.76,-2054.16,1148.975,0,0,0,0,100,0),
(@PATH,8,5033.73,-2055.75,1148.975,0,0,0,0,100,0);
-- Pathing for Goldrinn Defender Entry: 39637 'TDB FORMAT'
SET @NPC := 385248;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=5040.6,`position_y`=-2035.3,`position_z`=1148.975 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,257,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,5040.6,-2035.3,1148.975,0,0,0,0,100,0),
(@PATH,2,5030.91,-2036.05,1148.975,0,0,0,0,100,0),
(@PATH,3,5021.19,-2040.07,1148.975,0,0,0,0,100,0),
(@PATH,4,5017.68,-2042.73,1148.975,0,0,0,0,100,0),
(@PATH,5,5025.12,-2038.51,1148.975,0,0,0,0,100,0),
(@PATH,6,5030.91,-2036.05,1148.975,0,0,0,0,100,0),
(@PATH,7,5036.69,-2034.98,1148.975,0,0,0,0,100,0);
-- Pathing for Goldrinn Defender Entry: 39637 'TDB FORMAT'
SET @NPC := 384772;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=5352.994,`position_y`=-2182.122,`position_z`=1281.864 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,257,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,5352.994,-2182.122,1281.864,0,0,0,0,100,0),
(@PATH,2,5359.195,-2183.47,1286.33,0,0,0,0,100,0),
(@PATH,3,5363.801,-2182.422,1289.738,0,0,0,0,100,0),
(@PATH,4,5367.083,-2182.677,1291.274,0,21000,0,3847720,100,0),
(@PATH,5,5359.329,-2183.13,1286.5,0,0,0,0,100,0),
(@PATH,6,5356.353,-2182.75,1284.551,0,0,0,0,100,0),
(@PATH,7,5351.456,-2179.042,1280.659,0,0,0,0,100,0),
(@PATH,8,5350.095,-2172.814,1279.973,3.159046,28000,0,0,100,0);
DELETE FROM `waypoint_scripts` WHERE `id`=3847720;
INSERT INTO `waypoint_scripts` (`id`,`delay`,`command`,`datalong`,`datalong2`,`dataint`,`x`,`y`,`z`,`o`,`guid`) VALUES
(3847720,4,4,68,8,0,0,0,0,0,954),(3847720,15,5,68,8,0,0,0,0,0,955);
-- Pathing for Goldrinn Defender Entry: 39637 'TDB FORMAT'
SET @NPC := 384894;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=5338.754,`position_y`=-2125.771,`position_z`=1280.634 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,257,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,5338.754,-2125.771,1280.634,0,0,0,0,100,0),
(@PATH,2,5338.994,-2131.273,1280.634,0,0,0,0,100,0),
(@PATH,3,5337.473,-2132.144,1280.634,0,20000,0,0,100,0),
(@PATH,4,5339.748,-2128.094,1280.634,0,0,0,0,100,0),
(@PATH,5,5339.636,-2122.615,1280.634,0,0,0,0,100,0),
(@PATH,6,5340.385,-2118.509,1280.634,0,0,0,0,100,0),
(@PATH,7,5338.963,-2116.507,1280.634,0,0,0,0,100,0),
(@PATH,8,5338.963,-2116.507,1280.634,3.124139,23000,0,0,100,0);
-- Pathing for Goldrinn Defender Entry: 39637 'TDB FORMAT'
SET @NPC := 385248;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=5349.028,`position_y`=-2159.953,`position_z`=1277.905 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,257,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,5349.028,-2159.953,1277.905,0,0,0,0,100,0),
(@PATH,2,5353.612,-2153.771,1280.535,0,0,0,0,100,0),
(@PATH,3,5356.823,-2150.359,1280.82,0,0,0,0,100,0),
(@PATH,4,5356.823,-2150.359,1280.82,3.665191,30000,0,0,100,0),
(@PATH,5,5349.887,-2157.385,1278.499,0,0,0,0,100,0),
(@PATH,6,5346.077,-2159.991,1276.248,0,0,0,0,100,0),
(@PATH,7,5341.911,-2162.766,1273.801,0,0,0,0,100,0),
(@PATH,8,5336.247,-2167.521,1271.412,0,0,0,0,100,0),
(@PATH,9,5334,-2172.441,1271.104,0,18000,0,0,100,0),
(@PATH,10,5343.153,-2163.199,1274.301,0,0,0,0,100,0);
-- Pathing for Hovel Brute Entry: 39642 'TDB FORMAT'
SET @NPC := 385371;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `equipment_id`=2,`spawndist`=0,`MovementType`=2,`position_x`=5166.781,`position_y`=-2143.323,`position_z`=1277.952 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,0,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,5166.781,-2143.323,1277.952,0,0,0,0,100,0),
(@PATH,2,5160.98,-2141.422,1277.969,0,11000,0,3853710,100,0), -- wait 4 Emote ID: 381 (OneShotLoot) wait 4 Emote ID: 381 (OneShotLoot) wait 3
(@PATH,3,5172.483,-2144.684,1277.952,0,0,0,0,100,0),
(@PATH,4,5176.522,-2149.427,1277.952,0,0,0,0,100,0),
(@PATH,5,5177.647,-2153.807,1277.952,0,18000,0,3853711,100,0),
(@PATH,6,5172.174,-2146.021,1277.952,0,0,0,0,100,0);
DELETE FROM `waypoint_scripts` WHERE `id` IN (3853710,3853711);
INSERT INTO `waypoint_scripts` (`id`,`delay`,`command`,`datalong`,`datalong2`,`dataint`,`x`,`y`,`z`,`o`,`guid`) VALUES
(3853710,4,1,381,0,0,0,0,0,0,956),(3853710,8,1,381,0,0,0,0,0,0,957),
(3853711,3,2,117,1,0,0,0,0,0,958),(3853711,7,1,233,1,0,0,0,0,0,959),(3853711,13,1,0,1,0,0,0,0,0,960),(3853711,18,2,117,0,0,0,0,0,0,961);
-- Pathing for Hovel Brute Entry: 39642 'TDB FORMAT'
SET @NPC := 384825;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=5166.486,`position_y`=-2121.313,`position_z`=1277.969,`orientation`=2.565634 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,5166.486,-2121.313,1277.969,2.443461,15000,0,3848250,100,0),
(@PATH,2,5165.997,-2128.097,1277.969,0,0,0,0,100,0),
(@PATH,3,5160.565,-2128.458,1277.969,0,15000,0,3848250,100,0),
(@PATH,4,5169.286,-2126.177,1277.884,0,0,0,0,100,0);
DELETE FROM `waypoint_scripts` WHERE `id` IN (3848250);
INSERT INTO `waypoint_scripts` (`id`,`delay`,`command`,`datalong`,`datalong2`,`dataint`,`x`,`y`,`z`,`o`,`guid`) VALUES
(3848250,5,1,54,0,0,0,0,0,0,962),(3848250,7,1,54,0,0,0,0,0,0,963),(3848250,9,1,54,0,0,0,0,0,0,964);
-- Pathing for Hovel Brute Entry: 39642 'TDB FORMAT'
SET @NPC := 384832;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=5194.97,`position_y`=-2136.91,`position_z`=1270.598 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,5194.97,-2136.91,1270.598,0,0,0,0,100,0),
(@PATH,2,5196.738,-2141.149,1269.484,0,15000,0,0,100,0),
(@PATH,3,5200.823,-2149.858,1267.478,0,0,0,0,100,0),
(@PATH,4,5205.227,-2153.849,1265.438,0,0,0,0,100,0),
(@PATH,5,5209.253,-2156.948,1263.483,0,12000,0,0,100,0),
(@PATH,6,5199.896,-2147.983,1267.906,0,0,0,0,100,0),
(@PATH,7,5198.407,-2143.964,1268.746,0,0,0,0,100,0),
(@PATH,8,5195.907,-2132.566,1270.825,0,0,0,0,100,0),
(@PATH,9,5194.737,-2125.478,1272.296,0,16000,0,0,100,0);
-- Pathing for Twilight Stormcaller Entry: 39843 'TDB FORMAT'
SET @NPC := 385286;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=5213.397,`position_y`=-1968.066,`position_z`=1365.574 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,5213.397,-1968.066,1365.574,0,0,0,0,100,0),
(@PATH,2,5208.937,-1977.262,1365.574,0,0,0,0,100,0),
(@PATH,3,5213.397,-1968.066,1365.574,0,0,0,0,100,0),
(@PATH,4,5213.714,-1958.587,1365.673,0,0,0,0,100,0),
(@PATH,5,5213.311,-1949.323,1365.506,0,0,0,0,100,0),
(@PATH,6,5213.684,-1940.509,1365.631,0,0,0,0,100,0),
(@PATH,7,5219.163,-1936.24,1365.733,0,0,0,0,100,0),
(@PATH,8,5227.706,-1933.649,1364.482,0,0,0,0,100,0),
(@PATH,9,5219.163,-1936.24,1365.733,0,0,0,0,100,0),
(@PATH,10,5213.684,-1940.509,1365.631,0,0,0,0,100,0),
(@PATH,11,5213.311,-1949.323,1365.506,0,0,0,0,100,0),
(@PATH,12,5213.714,-1958.587,1365.673,0,0,0,0,100,0);
-- Pathing for Twilight Stormcaller Entry: 39843 'TDB FORMAT'
SET @NPC := 385086;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=5186.012,`position_y`=-2002.101,`position_z`=1365.646 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,5186.012,-2002.101,1365.646,0,0,0,0,100,0),
(@PATH,2,5178.724,-2009.715,1365.646,0,0,0,0,100,0),
(@PATH,3,5171.741,-2015.064,1365.646,0,0,0,0,100,0),
(@PATH,4,5164.22,-2018.594,1365.648,0,0,0,0,100,0),
(@PATH,5,5159.299,-2019.639,1365.648,0,0,0,0,100,0),
(@PATH,6,5164.22,-2018.594,1365.648,0,0,0,0,100,0),
(@PATH,7,5171.741,-2015.064,1365.646,0,0,0,0,100,0),
(@PATH,8,5178.724,-2009.715,1365.646,0,0,0,0,100,0),
(@PATH,9,5186.012,-2002.101,1365.646,0,0,0,0,100,0),
(@PATH,10,5192.807,-1994.3,1365.648,0,0,0,0,100,0),
(@PATH,11,5186.012,-2002.101,1365.646,0,0,0,0,100,0);
-- Pathing for Twilight Stormcaller Entry: 39843 'TDB FORMAT'
SET @NPC := 386097;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=5083.972,`position_y`=-2175.635,`position_z`=1382.04 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,5083.972,-2175.635,1382.04,5.637414,12000,0,3860970,100,0),
(@PATH,2,5083.239,-2173.729,1382.011,0,0,0,0,100,0),
(@PATH,3,5085.739,-2171.979,1382.011,0,0,0,0,100,0),
(@PATH,4,5090.989,-2171.979,1381.761,0,0,0,0,100,0),
(@PATH,5,5094.239,-2174.229,1382.011,0,0,0,0,100,0),
(@PATH,6,5093.507,-2176.323,1381.982,3.124139,12000,0,3860971,100,0),
(@PATH,7,5094.489,-2173.979,1382.011,0,0,0,0,100,0),
(@PATH,8,5090.239,-2170.479,1381.761,0,0,0,0,100,0),
(@PATH,9,5085.239,-2170.979,1381.761,0,0,0,0,100,0),
(@PATH,10,5083.239,-2173.479,1382.011,0,0,0,0,100,0);
DELETE FROM `waypoint_scripts` WHERE `id` IN (3860970,3860971);
INSERT INTO `waypoint_scripts` (`id`,`delay`,`command`,`datalong`,`datalong2`,`dataint`,`x`,`y`,`z`,`o`,`guid`) VALUES
(3860970,4,4,68,8,0,0,0,0,0,966),(3860970,8,5,68,8,0,0,0,0,0,967),
(3860971,3,1,432,0,0,0,0,0,0,968),(3860971,6,1,60,0,0,0,0,0,0,969),(3860971,9,1,5,0,0,0,0,0,0,970);
-- Pathing for Dave's Industrial Light and Magic Bunny (Small) Entry: 34527 'TDB FORMAT'
SET @NPC := 386768;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4520.843,`position_y`=-2415.413,`position_z`=1136.632 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '74096');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,4520.843,-2415.413,1136.632,0,0,0,0,100,0),
(@PATH,2,4510.958,-2425.653,1134.929,0,0,0,0,100,0);
-- Pathing for Dave's Industrial Light and Magic Bunny (Small) Entry: 34527 'TDB FORMAT'
SET @NPC := 386581;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4527.24,`position_y`=-1933.665,`position_z`=1222.378 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '74096');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,4527.24,-1933.665,1222.378,0,0,0,0,100,0),
(@PATH,2,4519.055,-1927.365,1225.969,0,0,0,0,100,0);
-- Pathing for Dave's Industrial Light and Magic Bunny (Small) Entry: 34527 'TDB FORMAT'
SET @NPC := 386539;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4747.391,`position_y`=-1613.127,`position_z`=1301.171 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '74096');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,4747.391,-1613.127,1301.171,0,0,0,0,100,0),
(@PATH,2,4735.158,-1610.667,1301.631,0,0,0,0,100,0);
-- Pathing for Dave's Industrial Light and Magic Bunny (Small) Entry: 34527 'TDB FORMAT'
SET @NPC := 386658;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4682.988,`position_y`=-2330.377,`position_z`=1173.957 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '74096');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,4682.988,-2330.377,1173.957,0,0,0,0,100,0),
(@PATH,2,4690.177,-2342.637,1172.034,0,0,0,0,100,0);
-- Pathing for Dave's Industrial Light and Magic Bunny (Small) Entry: 34527 'TDB FORMAT'
SET @NPC := 386543;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4682.21,`position_y`=-1631.776,`position_z`=1290.973 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '74096');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,4682.21,-1631.776,1290.973,0,0,0,0,100,0),
(@PATH,2,4672.656,-1634.052,1290.015,0,0,0,0,100,0);
-- Pathing for Dave's Industrial Light and Magic Bunny (Small) Entry: 34527 'TDB FORMAT'
SET @NPC := 386674;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4656.105,`position_y`=-2392.976,`position_z`=1159.272 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '74096');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,4656.105,-2392.976,1159.272,0,0,0,0,100,0),
(@PATH,2,4669.66,-2398.333,1156.774,0,0,0,0,100,0);
-- Pathing for Dave's Industrial Light and Magic Bunny (Small) Entry: 34527 'TDB FORMAT'
SET @NPC := 386625;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4500.909,`position_y`=-2142.785,`position_z`=1184.245 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '74096');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,4500.909,-2142.785,1184.245,0,0,0,0,100,0),
(@PATH,2,4496.703,-2133.859,1186.32,0,0,0,0,100,0);
-- Pathing for Dave's Industrial Light and Magic Bunny (Small) Entry: 34527 'TDB FORMAT'
SET @NPC := 386554;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4595.052,`position_y`=-1731.286,`position_z`=1274.395 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '74096');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,4595.052,-1731.286,1274.395,0,0,0,0,100,0),
(@PATH,2,4590.37,-1731.879,1273.904,0,0,0,0,100,0);
-- Pathing for Dave's Industrial Light and Magic Bunny (Small) Entry: 34527 'TDB FORMAT'
SET @NPC := 386547;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4673.484,`position_y`=-1685.705,`position_z`=1279.83 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '74096');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,4673.484,-1685.705,1279.83,0,0,0,0,100,0),
(@PATH,2,4675.502,-1680.677,1280.695,0,0,0,0,100,0);
-- Pathing for Dave's Industrial Light and Magic Bunny (Small) Entry: 34527 'TDB FORMAT'
SET @NPC := 386587;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4457.581,`position_y`=-1936.37,`position_z`=1233.196 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '74096');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,4457.581,-1936.37,1233.196,0,0,0,0,100,0),
(@PATH,2,4449.836,-1942.502,1233.046,0,0,0,0,100,0);
-- Pathing for Dave's Industrial Light and Magic Bunny (Small) Entry: 34527 'TDB FORMAT'
SET @NPC := 386664;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4722.851,`position_y`=-2397.524,`position_z`=1172.824 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '74096');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,4722.851,-2397.524,1172.824,0,0,0,0,100,0),
(@PATH,2,4717.418,-2388.906,1172.696,0,0,0,0,100,0);
-- Pathing for Dave's Industrial Light and Magic Bunny (Small) Entry: 34527 'TDB FORMAT'
SET @NPC := 386707;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4720.998,`position_y`=-2560.922,`position_z`=1153.353 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '74096');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(@PATH,1,4720.998,-2560.922,1153.353,0,0,0,0,100,0),
(@PATH,2,4710.188,-2555.892,1151.776,0,0,0,0,100,0);
@@ -0,0 +1,2 @@
--
ALTER TABLE `spell_area` ALTER COLUMN `racemask` SET DEFAULT 0;
@@ -0,0 +1,168 @@
-- Spell Area
DELETE FROM `spell_area` WHERE `area` IN (493, 5040) AND `spell`= 49416;
INSERT INTO `spell_area` (`spell`, `area`, `quest_start`, `quest_end`, `flags`, `gender`, `quest_start_status`, `quest_end_status`) VALUES
(49416, 493, 25316, 25316, 3, 2, 2, 11),
(49416, 5040, 25316, 25316, 3, 2, 2, 11);
-- Gameobject focus (203087)
DELETE FROM `gameobject` WHERE `guid`= 200888;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseID`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `VerifiedBuild`) VALUES
(200888, 203087, 1, 0, 0, "0", 169, 5758.737, -3297.48, 1604.599, 0, 0, 0, 0, 1, 6000, 100, 1, 0);
-- Remove duplicate spawns
DELETE FROM `creature` WHERE `guid` IN (394598, 384268);
DELETE FROM `creature_addon` WHERE `guid` IN (394598, 384268);
-- Make quest items quest related
UPDATE `creature_loot_template` SET `QuestRequired`= 1 WHERE `Item` IN (52506, 53139);
-- Conditions
DELETE FROM `conditions` WHERE `SourceEntry` IN (75206, 75192) AND `SourceTypeOrReferenceId`= 17;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES
(17, 0, 75206, 0, 0, 31, 1, 3, 38896, 0, 0, 0, '', 'Flamebreaker - Only allow Blazebound Elemental'),
(17, 0, 75192, 0, 0, 31, 1, 3, 40147, 0, 0, 0, '', 'Weakening - Only allow Baron Geddon');
-- Conditions
DELETE FROM `conditions` WHERE `SourceEntry` IN (76205, 73518) AND `SourceTypeOrReferenceId`= 13;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES
(13, 1, 76205, 0, 0, 31, 0, 5, 203065, 0, 0, 0, '', 'Emerald Flameweaver Drake Breath - Target Emerald Flames'),
(13, 1, 73518, 0, 0, 31, 0, 3, 39140, 0, 0, 0, '', 'Hyjal Intro Flight - Target Aronus');
DELETE FROM `conditions` WHERE `SourceEntry` IN (73518) AND `SourceTypeOrReferenceId`= 18;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ScriptName`, `Comment`) VALUES
(18, 39140, 73518, 0, 0, 28, 0, 25316, 0, 0, 0, 0, '', 'Required quest complete for spellclick');
-- Update Movements
UPDATE `creature` SET `spawndist`= 0, `MovementType`= 0 WHERE `id`= 39921;
UPDATE `creature` SET `spawndist`= 7, `MovementType`= 1 WHERE `id`= 40229;
UPDATE `creature` SET `spawndist`= 5, `MovementType`= 1 WHERE `id`= 49844;
-- Template Updates
-- Scalding Rock Elemental
UPDATE `creature_template` SET `DamageModifier`= 2.3 WHERE `entry`= 40229;
-- Hyjal Warden
UPDATE `creature_template` SET `DamageModifier`= 2.3 WHERE `entry`= 38915;
-- Furious Hyjal Warden
UPDATE `creature_template` SET `DamageModifier`= 2.3 WHERE `entry`= 43427;
-- Twilight Infiltrator
UPDATE `creature_template` SET `DamageModifier`= 2.3, `mingold`= 2000, `maxgold`= 2500 WHERE `entry`= 40882;
-- Aronus
UPDATE `creature_template` SET `npcflag`= 16777216, `InhabitType`= 4 WHERE `entry`= 39140;
-- Ragnaros
UPDATE `creature_template` SET `InhabitType`= 4, `flags_extra`= 2 WHERE `entry`= 38806;
-- Deathwing
UPDATE `creature_template` SET `InhabitType`= 4 WHERE `entry`= 39867;
-- Generic Bunny - PRK (Large AOI)
UPDATE `creature_template` SET `InhabitType`= 4, `flags_extra`= 128 WHERE `entry`= 44775;
-- Twilight Vanquisher
UPDATE `creature_template` SET `DamageModifier`= 1.5, `flags_extra`= 2048, `BaseAttackTime`= 2000, `mingold`= 1000, `maxgold`= 4000 WHERE `entry`= 38913;
-- Twilight Flamecaller
UPDATE `creature_template` SET `DamageModifier`= 2.3, `mingold`= 1000, `maxgold`= 4000 WHERE `entry`= 38926;
-- Twilight Overseer
UPDATE `creature_template` SET `DamageModifier`= 2.3, `mingold`= 1000, `maxgold`= 4000 WHERE `entry`= 40123;
-- Blazebound Elemental
UPDATE `creature_template` SET `DamageModifier`= 2.3 WHERE `entry`= 38896;
-- Unbound Flame Spirit
UPDATE `creature_template` SET `unit_flags`= 33587968 WHERE `entry`= 40080;
-- Unbound Flame Spirit
UPDATE `creature_template` SET `unit_class`=2 WHERE `entry` IN (40065,40080);
-- Blazebound Elemental Entry: 38896 SAI
SET @ENTRY := 38896;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,5000,5000,12500,15300,11,80031,0,0,0,0,0,2,0,0,0,0,0,0,0, "Blazebound Elemental - Combat - Cast 'Flaming Slice'"),
(@ENTRY,0,1,0,8,0,100,0,74723,0,0,0,37,0,0,0,0,0,0,1,0,0,0,0,0,0,0, "Blazebound Elemental - On Spell Hit - Die");
-- Unbound Flame Spirit Entry: 40080 SAI
SET @ENTRY := 40080;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@ENTRY,0,0,0,54,0,100,0,0,0,0,0,116,2,0,0,0,0,0,1,0,0,0,0,0,0,0, "Unbound Flame Spirit - Just summoned - Set corpse delay"),
(@ENTRY,0,1,0,54,0,100,0,0,0,0,0,3,40065,0,0,0,0,0,1,0,0,0,0,0,0,0, "Unbound Flame Spirit - Just summoned - Morph to entry 40065"),
(@ENTRY,0,2,0,54,0,100,0,0,0,0,0,19,33554688,0,0,0,0,0,1,0,0,0,0,0,0,0, "Unbound Flame Spirit - Just summoned - Remove UNIT_FLAGS - UNIT_FLAG_IMMUNE_TO_PC, UNIT_FLAG_NOT_SELECTABLE"),
(@ENTRY,0,3,0,54,0,100,0,0,0,0,0,49,0,0,0,0,0,0,23,0,0,0,0,0,0,0, "Unbound Flame Spirit - Just summoned - Attack Summoner"),
(@ENTRY,0,4,0,6,0,100,0,0,0,0,0,33,40065,0,0,0,0,0,7,0,0,0,0,0,0,0, "Unbound Flame Spirit - On death - Killcredit");
-- Twilight Vanquisher Entry: 38913 SAI
SET @ENTRY := 38913;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,6000,8000,14000,18000,11,79881,0,0,0,0,0,2,0,0,0,0,0,0,0, "Twilight Vanquisher - Combat - Cast 'Slam'"),
(@ENTRY,0,1,0,1,0,100,0,1000,1000,5000,5000,49,0,0,0,0,0,0,11,38915,6,0,0,0,0,0, "Twilight Vanquisher - OOC - Attack Hyjal Warden");
-- Twilight Flamecaller Entry: 38926 SAI
SET @ENTRY := 38926;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,0,0,3400,4700,11,15536,64,0,0,0,0,2,0,0,0,0,0,0,0, "Twilight Flamecaller - Combat - Cast 'Fireball'"),
(@ENTRY,0,1,0,0,0,100,0,3000,6000,11000,12000,11,20794,0,0,0,0,0,2,0,0,0,0,0,0,0, "Twilight Flamecaller - Combat - Cast 'Flamestrike'"),
(@ENTRY,0,2,0,0,0,100,0,9000,9000,21000,22000,11,11990,0,0,0,0,0,2,0,0,0,0,0,0,0, "Twilight Flamecaller - Combat - Cast 'Rain of Fire'"),
(@ENTRY,0,3,0,1,0,100,0,1000,1000,5000,5000,49,0,0,0,0,0,0,11,38915,10,0,0,0,0,0, "Twilight Flamecaller - Combat - Attack Hyjal Warden"),
(@ENTRY,0,4,0,2,0,100,1,0,15,0,0,25,1,0,0,0,0,0,0,0,0,0,0,0,0,0, "Twilight Flamecaller - HP 0% - 15% - Flee for assist (No Repeat)");
-- SAI corrections and additions
-- Furious Hyjal Warden Entry: 43427 SAI
SET @ENTRY := 43427;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,5000,6000,22000,30000,11,18328,0,0,0,0,0,1,0,0,0,0,0,0,0, "Furious Hyjal Warden - Combat - Cast 'Incapacitating Shout'"),
(@ENTRY,0,1,0,0,0,100,0,1000,3000,7000,14000,11,19643,0,0,0,0,0,2,0,0,0,0,0,0,0, "Furious Hyjal Warden - Combat - Cast 'Mortal Strike'"),
(@ENTRY,0,2,0,0,0,100,0,1000,3000,11000,13000,11,15618,0,0,0,0,0,2,0,0,0,0,0,0,0, "Furious Hyjal Warden - Combat - Cast Snap Kick"),
(@ENTRY,0,3,0,1,0,100,0,1000,1000,3000,3000,49,0,0,0,0,0,0,11,40229,10,0,0,0,0,0, "Furious Hyjal Warden - OOC - Attack Scalding Rock Elemental");
-- Hyjal Warden Entry: 38915 SAI
SET @ENTRY := 38915;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,5000,5000,11000,14000,11,19643,0,0,0,0,0,2,0,0,0,0,0,0,0, "Hyjal Warden - Combat - Cast Snap Kick"),
(@ENTRY,0,1,0,1,0,100,0,1000,1000,3000,3000,49,0,0,0,0,0,0,11,40229,10,0,0,0,0,0, "Hyjal Warden - OOC - Attack Scalding Rock Elemental");
-- Scalding Rock Elemental Entry: 40229 SAI
SET @ENTRY := 40229;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,8000,10000,15000,19000,11,80638,0,0,0,0,0,2,0,0,0,0,0,0,0, "Scalding Rock Elemental - Combat - Cast Searing Touch");
-- Cenarion Emissary Jademoon Entry: 15187 SAI
SET @ENTRY := 15187;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@ENTRY,0,0,0,62,0,100,512,12129,0,0,0,86,86587,0,7,0,0,0,7,0,0,0,0,0,0,0, "Cenarion Emissary Jademoon - Gossip Option Select - Invoker Cast Teleport to Moonglade");
-- Cenarion Emissary Blackhoof Entry: 15188 SAI
SET @ENTRY := 15188;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@ENTRY,0,0,0,62,0,100,512,12125,0,0,0,86,86565,0,7,0,0,0,7,0,0,0,0,0,0,0, "Cenarion Emissary Blackhoof - Gossip Option Select - Invoker Cast Teleport to Moonglade");
-- Ragnaros Entry: 38806 SAI
SET @ENTRY := 38806;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@ENTRY,0,0,0,63,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0, "Ragnaros - Just Created - Say 0"),
(@ENTRY,0,1,0,60,0,100,1,3500,3500,0,0,5,53,0,0,0,0,0,1,0,0,0,0,0,0,0, "Ragnaros - Update - Emote 53");
-- As Hyjal Burns Texts
DELETE FROM `creature_text` WHERE `CreatureID` IN (38806, 39128);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(38806, 0, 0, 'BY FIRE BE PURGED!!!!', 14, 0, 100, 449, 0, 23335, 39839, 'Ragnaros to Player'),
(39128, 0, 0, 'No... it can\'t be. Our forward outpost has been obliterated!', 12, 0, 100, 0, 0, 20950, 39185, 'Aronus to Player'),
(39128, 1, 0, 'Is it too late? I feel Deathwing\'s presence nearby!', 12, 0, 100, 0, 0, 20951, 39186, 'Aronus to Player'),
(39128, 2, 0, 'The Firelord has risen! We must send word to the others. Let us hurry!', 12, 0, 100, 0, 0, 20952, 39189, 'Aronus to Player');
UPDATE `creature_text` SET `TextRange`= 1 WHERE `CreatureID`= 38806;
-- Spellclick
DELETE FROM `npc_spellclick_spells` WHERE `npc_entry` IN (39140, 39128);
INSERT INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `user_type`) VALUES
(39140, 73518, 1, 0),(39128, 76649, 1, 0);
@@ -0,0 +1,21 @@
UPDATE `creature_template` SET `InhabitType`= 4 WHERE `entry`= 51712;
UPDATE `creature` SET `MovementType`= 1, `spawndist`= 7 WHERE `ID` IN (51712, 45859, 45905, 51674);
SET @CGUID := 252516;
DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+2;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `VerifiedBuild`) VALUES
(@CGUID+0, 47062, 1, 5034, 5666, "0", 169, 0, 0, 0, -9757.48, -918.474, 56.99433, 0.6457718, 120, 0, 0, 0, 0, 0, 0, 0, 0, 26654), -- Vir'Naal Priest (Area: Vir'naal Dam - Difficulty: 0)
(@CGUID+1, 47062, 1, 5034, 5666, "0", 169, 0, 0, 0, -9761.31, -912.45, 57.00123, 0.6457718, 120, 0, 0, 0, 0, 0, 0, 0, 0, 26654), -- Vir'Naal Priest (Area: Vir'naal Dam - Difficulty: 0)
(@CGUID+2, 46135, 1, 5034, 5666, "0", 169, 0, 0, 0, -9758.25, -914.427, 57.09123, 0.6457718, 120, 0, 0, 0, 0, 0, 0, 0, 0, 26654); -- High Priest Amet (Area: Vir'naal Dam - Difficulty: 0)
DELETE FROM `creature_addon` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+2;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
(@CGUID+0, 0, 0, 0, 1, 468, ''), -- Vir'Naal Priest
(@CGUID+1, 0, 0, 0, 1, 468, ''), -- Vir'Naal Priest
(@CGUID+2, 0, 0, 0, 1, 0, ''); -- High Priest Amet
SET @OGUID := 200965;
DELETE FROM `gameobject` WHERE `guid`= @OGUID+0;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `VerifiedBuild`) VALUES
(@OGUID+0, 205564, 1, 5034, 5599, "0", 169, 0, -10674.59, -1323.694, 15.63416, 3.647743, 0.004201889, 0.001173973, -0.9681377, 0.2503803, 120, 255, 1, 26654); -- Meeting Stone (Area: Lost City of the Tol'vir - Difficulty: 0)
@@ -0,0 +1,18 @@
ALTER TABLE `creature_template`
ADD `FadeRegionRadius` float NOT NULL DEFAULT '0' AFTER `movementId`,
ADD `WidgetSetID` int(11) NOT NULL DEFAULT '0' AFTER `FadeRegionRadius`,
ADD `WidgetSetUnitConditionID` int(11) NOT NULL DEFAULT '0' AFTER `WidgetSetID`;
ALTER TABLE `playerchoice` ADD `SoundKitId` int(10) unsigned NOT NULL DEFAULT '0' AFTER `UiTextureKitId`;
ALTER TABLE `playerchoice_response`
ADD `UiTextureAtlasElementID` int(10) unsigned NOT NULL DEFAULT '0' AFTER `WidgetSetID`,
ADD `SoundKitID` int(10) unsigned NOT NULL DEFAULT '0' AFTER `UiTextureAtlasElementID`,
ADD `SubHeader` varchar(100) NOT NULL DEFAULT '' AFTER `Header`,
ADD `ButtonTooltip` varchar(400) NOT NULL DEFAULT '' AFTER `SubHeader`,
ADD `RewardQuestID` int(10) unsigned DEFAULT NULL AFTER `Confirmation`;
ALTER TABLE `playerchoice_response_locale`
ADD `SubHeader` varchar(100) NOT NULL DEFAULT '' AFTER `Header`,
ADD `ButtonTooltip` varchar(400) NOT NULL DEFAULT '' AFTER `SubHeader`;
ALTER TABLE `quest_template` ADD `ManagedWorldStateID` int(11) NOT NULL DEFAULT '0' AFTER `Expansion`;
@@ -0,0 +1 @@
DELETE FROM `command` WHERE `name` IN ('debug setbit','debug getvalue','debug getitemvalue','debug Mod32Value','debug setitemvalue','debug setvalue','debug update','modify bit');
@@ -0,0 +1,17 @@
DELETE FROM `item_enchantment_template` WHERE `type`!=2;
ALTER TABLE `item_enchantment_template`
DROP PRIMARY KEY,
DROP `type`,
CHANGE `entry` `Id` int(10) unsigned NOT NULL,
CHANGE `ench` `BonusListID` int(10) unsigned NOT NULL,
CHANGE `chance` `chance_temp` float NOT NULL,
ADD PRIMARY KEY(`Id`,`BonusListID`);
ALTER TABLE `item_enchantment_template` CHANGE `chance_temp` `Chance` float NOT NULL;
RENAME TABLE `item_enchantment_template` TO `item_random_bonus_list_template`;
ALTER TABLE `item_template_addon` ADD `RandomBonusListTemplateId` int(10) unsigned NOT NULL DEFAULT '0';
UPDATE `command` SET `name`='reload item_random_bonus_list_template' WHERE `name`='reload item_enchantment_template';
@@ -0,0 +1,2 @@
-- Fix self-reference issue
UPDATE `reference_loot_template` SET `Reference` = 0 WHERE `Entry` IN (11919,11920,11921,13006,13007,13008,13009,13010);
@@ -0,0 +1 @@
ALTER TABLE `creature_template` MODIFY COLUMN `family` int(11) NOT NULL DEFAULT 0 AFTER `dynamicflags`;
@@ -0,0 +1,99 @@
--
DELETE FROM `gossip_menu_option` WHERE `MenuId` IN (57006, 57015, 57018, 57007, 57008, 57009, 57010, 57011);
INSERT INTO `gossip_menu_option` (`MenuId`, `OptionIndex`, `OptionIcon`, `OptionText`, `OptionType`, `OptionNpcFlag`, `OptionBroadcastTextID`) VALUES
(57015, 0, 0, "Yes I checked, I'm missing the top piece!", 1, 1, 11778),
(57015, 1, 0, "Yes I checked, I'm missing the left piece!", 1, 1, 11780),
(57006, 0, 0, "I lost Lord Valthalak's Amulet!", 1, 1, 11773),
(57006, 1, 0, "I lost a piece of Lord Valthalak's Amulet!", 1, 1, 11776),
(57006, 2, 0,"I've misplaced the Brazier of Beckoning!", 1, 1, 11784),
(57006, 3, 0,"Bodley, tell me what's going on.", 1, 1, 11915),
(57018, 0, 0,"Yes, please summon it back!", 1, 1, 11786),
(57007, 0, 0,"You were telling me about The Veiled Blade and how you took the wrong mission.", 1, 1, 11917),
(57008, 0, 0,"No, no, please continue... it's just that the air up here is so, um, smoky.", 1, 1, 11919),
(57009, 0, 0,"Please continue, Bodley.", 1, 1, 11921),
(57010, 0, 0,"I thought you were almost done?", 1, 1, 11923),
(57011, 0, 0,"What happened to your mercenary company, The Veiled Blade?", 1, 1, 11925);
DELETE FROM `gossip_menu_option_action` WHERE `MenuId` IN (57006, 57015, 57018, 57007, 57008, 57009, 57010, 57011);
INSERT INTO `gossip_menu_option_action` (`MenuId`, `OptionIndex`, `ActionMenuId`, `ActionPoiId`) VALUES
(57015, 0, 57016, 0),
(57015, 1, 57017, 0),
(57006, 0, 57014, 0),
(57006, 1, 57015, 0),
(57006, 2, 57018, 0),
(57006, 3, 57007, 0),
(57018, 0, 57019, 0),
(57007, 0, 57008, 0),
(57008, 0, 57009, 0),
(57009, 0, 57010, 0),
(57010, 0, 57011, 0),
(57011, 0, 57012, 0);
UPDATE `creature_template` SET `gossip_menu_id`=57006, `AIName`='SmartAI', `npcflag`=3 WHERE `entry`=16033;
DELETE FROM `gossip_menu` WHERE `MenuId` BETWEEN 57006 AND 57019;
INSERT INTO `gossip_menu` (`MenuId`,`TextId`) VALUES (57006,50002),(57007,50003),(57008,50004),(57009,50005),(57010,50006),(57011,50007),(57012,50008),(57006,50009),(57014,50010),(57015,50011),(57016,50012),(57017,50013),(57018,50014),(57019,50015);
DELETE FROM `npc_text` WHERE `ID` BETWEEN 50002 AND 50015;
INSERT INTO `npc_text` (`ID`, `Probability0`, `BroadcastTextID0`, `VerifiedBuild`) VALUES
(50002, 1, 11772, 0),
(50003, 1, 11916, 0),
(50004, 1, 11918, 0),
(50005, 1, 11920, 0),
(50006, 1, 11922, 0),
(50007, 1, 11924, 0),
(50008, 1, 11926, 0),
(50009, 1, 11830, 0),
(50010, 1, 11774, 0),
(50011, 1, 11777, 0),
(50012, 1, 11779, 0),
(50013, 1, 11781, 0),
(50014, 1, 11785, 0),
(50015, 1, 11787, 0);
DELETE FROM `smart_scripts` WHERE `entryorguid`=16033 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
(16033, 0, 0, 0, 62, 0, 100, 0, 57015, 0, 0, 0, 11, 27544, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Bodley - On Gossip Select - Cast Add Item Left'),
(16033, 0, 1, 0, 62, 0, 100, 0, 57015, 1, 0, 0, 11, 27542, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Bodley - On Gossip Select - Cast Add Item Top'),
(16033, 0, 2, 0, 62, 0, 100, 0, 57018, 0, 0, 0, 11, 27566, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Bodley - On Gossip Select - Cast Add Item Brasero'),
(16033, 0, 3, 0, 62, 0, 100, 0, 57006, 3, 0, 0, 11, 27537, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Bodley - On Gossip Select - Cast Add Item Amulette');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup` IN (57006,57015);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=14 AND `SourceGroup` IN (57006);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(15, 57006, 1, 0, 0, 8, 0, 8966, 0, 0, 0, 0, '', 'Requires Quest Rewarded'),
(15, 57006, 1, 0, 0, 8, 0, 8995, 0, 0, 1, 0, '', 'Requires Quest Not Rewarded'),
(15, 57006, 1, 0, 0, 2, 0, 21984, 1, 0, 1, 0, '', 'Requires Missing Item'),
(15, 57006, 1, 0, 1, 8, 0, 8967, 0, 0, 0, 0, '', 'Requires Quest Rewarded'),
(15, 57006, 1, 0, 1, 8, 0, 8995, 0, 0, 1, 0, '', 'Requires Quest Not Rewarded'),
(15, 57006, 1, 0, 1, 2, 0, 21984, 1, 0, 1, 0, '', 'Requires Missing Item'),
(15, 57006, 1, 0, 2, 8, 0, 8968, 0, 0, 0, 0, '', 'Requires Quest Rewarded'),
(15, 57006, 1, 0, 2, 8, 0, 8995, 0, 0, 1, 0, '', 'Requires Quest Not Rewarded'),
(15, 57006, 1, 0, 2, 2, 0, 21984, 1, 0, 1, 0, '', 'Requires Missing Item'),
(15, 57006, 1, 0, 3, 8, 0, 8969, 0, 0, 0, 0, '', 'Requires Quest Rewarded'),
(15, 57006, 1, 0, 3, 8, 0, 8995, 0, 0, 1, 0, '', 'Requires Quest Not Rewarded'),
(15, 57006, 1, 0, 3, 2, 0, 21984, 1, 0, 1, 0, '', 'Requires Missing Item'),
(15, 57006, 1, 0, 4, 8, 0, 9015, 0, 0, 0, 0, '', 'Requires Quest Rewarded'),
(15, 57006, 1, 0, 4, 8, 0, 8995, 0, 0, 1, 0, '', 'Requires Quest Not Rewarded'),
(15, 57006, 1, 0, 4, 2, 0, 22047, 1, 0, 1, 0, '', 'Requires Missing Item'),
(15, 57006, 0, 0, 0, 8, 0, 8994, 0, 0, 0, 0, '', 'Requires Quest Rewarded'),
(15, 57006, 0, 0, 0, 8, 0, 8995, 0, 0, 1, 0, '', 'Requires Quest Not Rewarded'),
(15, 57006, 0, 0, 0, 2, 0, 22048, 1, 0, 1, 0, '', 'Requires Missing Item'),
(15, 57006, 2, 0, 0, 8, 0, 8995, 0, 0, 0, 0, '', 'Requires Quest Rewarded'),
(15, 57006, 2, 0, 0, 2, 0, 22056, 1, 0, 1, 0, '', 'Requires Missing Item'),
(15, 57015, 1, 0, 0, 8, 0, 8966, 0, 0, 0, 0, '', 'Requires Quest Rewarded'),
(15, 57015, 1, 0, 0, 8, 0, 8995, 0, 0, 1, 0, '', 'Requires Quest Not Rewarded'),
(15, 57015, 1, 0, 0, 2, 0, 21984, 1, 0, 1, 0, '', 'Requires Missing Item'),
(15, 57015, 1, 0, 1, 8, 0, 8967, 0, 0, 0, 0, '', 'Requires Quest Rewarded'),
(15, 57015, 1, 0, 1, 8, 0, 8995, 0, 0, 1, 0, '', 'Requires Quest Not Rewarded'),
(15, 57015, 1, 0, 1, 2, 0, 21984, 1, 0, 1, 0, '', 'Requires Missing Item'),
(15, 57015, 1, 0, 2, 8, 0, 8968, 0, 0, 0, 0, '', 'Requires Quest Rewarded'),
(15, 57015, 1, 0, 2, 8, 0, 8995, 0, 0, 1, 0, '', 'Requires Quest Not Rewarded'),
(15, 57015, 1, 0, 2, 2, 0, 21984, 1, 0, 1, 0, '', 'Requires Missing Item'),
(15, 57015, 1, 0, 3, 8, 0, 8969, 0, 0, 0, 0, '', 'Requires Quest Rewarded'),
(15, 57015, 1, 0, 3, 8, 0, 8995, 0, 0, 1, 0, '', 'Requires Quest Not Rewarded'),
(15, 57015, 1, 0, 3, 2, 0, 21984, 1, 0, 1, 0, '', 'Requires Missing Item'),
(15, 57015, 0, 0, 4, 8, 0, 9015, 0, 0, 0, 0, '', 'Requires Quest Rewarded'),
(15, 57015, 0, 0, 4, 8, 0, 8995, 0, 0, 1, 0, '', 'Requires Quest Not Rewarded'),
(15, 57015, 0, 0, 4, 2, 0, 22047, 1, 0, 1, 0, '', 'Requires Missing Item'),
(14, 57006, 50009, 0, 0, 8, 0, 8997, 0, 0, 0, 0, '', 'Requires Quest Rewarded'),
(14, 57006, 50009, 0, 1, 8, 0, 8998, 0, 0, 0, 0, '', 'Requires Quest Rewarded');
@@ -0,0 +1,162 @@
-- Mogg SAI
SET @ENTRY := 14908;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,14908,1,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Reset - Start Waypoint"),
(@ENTRY,0,1,0,40,0,100,0,5,14908,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Waypoint 5 Reached - Run Script"),
(@ENTRY,0,2,0,40,0,100,0,6,14908,0,0,80,@ENTRY*100+01,2,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Waypoint 6 Reached - Run Script"),
(@ENTRY,0,3,0,40,0,100,0,7,14908,0,0,80,@ENTRY*100+02,2,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Waypoint 7 Reached - Run Script"),
(@ENTRY,0,4,0,40,0,100,0,17,14908,0,0,80,@ENTRY*100+03,2,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Waypoint 17 Reached - Run Script"),
(@ENTRY,0,5,0,40,0,100,0,27,14908,0,0,80,@ENTRY*100+04,2,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Waypoint 27 Reached - Run Script"),
(@ENTRY,0,6,0,40,0,100,0,28,14908,0,0,80,@ENTRY*100+05,2,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Waypoint 28 Reached - Run Script"),
(@ENTRY,0,7,8,40,0,100,0,29,14908,0,0,80,@ENTRY*100+06,2,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Waypoint 29 Reached - Run Script");
-- Actionlist SAI
SET @ENTRY := 1490800;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,8000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,89,5,0,0,0,0,0,19,14909,50,0,0,0,0,0,"Mogg - On Script - Start Random Movement"),
(@ENTRY,9,2,0,0,0,100,0,3000,3000,0,0,1,0,3000,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Script - Say Line 0"),
(@ENTRY,9,3,0,0,0,100,0,3000,3000,0,0,1,1,3000,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Script - Say Line 1");
-- Actionlist SAI
SET @ENTRY := 1490801;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,6000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,4000,4000,0,0,1,2,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Script - Say Line 2"),
(@ENTRY,9,2,0,0,0,100,0,1000,1000,0,0,59,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Script - Set Run On");
-- Actionlist SAI
SET @ENTRY := 1490802;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,4000,4000,0,0,1,3,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Script - Say Line 3");
-- Actionlist SAI
SET @ENTRY := 1490803;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,6000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,5000,5000,0,0,1,5,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Script - Say Line 5");
-- Actionlist SAI
SET @ENTRY := 1490804;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,6000,0,0,0,0,0,10,0,0,0,0,0,0,0,"Mogg - On Script - Pause Waypoint"),
(@ENTRY,9,2,0,0,0,100,0,2000,2000,0,0,59,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Script - Set Run Off"),
(@ENTRY,9,3,0,0,0,100,0,4000,4000,0,0,1,6,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Script - Say Line 6");
-- Actionlist SAI
SET @ENTRY := 1490805;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,10000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,45,1,1,0,0,0,0,19,14909,50,0,0,0,0,0,"Mogg - On Script - Set Data 1 1"),
(@ENTRY,9,2,0,0,0,100,0,8000,8000,0,0,1,7,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Mogg - On Script - Say Line 7");
-- Actionlist SAI
SET @ENTRY := 1490806;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,80000,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,1,8,5000,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 8"),
(@ENTRY,9,2,0,0,0,100,0,2000,2000,0,0,45,2,2,0,0,0,0,19,14909,50,0,0,0,0,0,"On Script - Set Data 2 2");
-- Pooka SAI
SET @ENTRY := 14909;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,38,0,100,0,1,1,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Pooka - On Data Set 1 1 - Run Script"),
(@ENTRY,0,1,2,38,0,100,0,2,2,0,0,59,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Pooka - On Data Set 2 2 - Set Run Off"),
(@ENTRY,0,2,3,61,0,100,0,2,2,0,0,53,0,14909,0,0,0,0,1,0,0,0,0,0,0,0,"Pooka - On Data Set 2 2 - Start Waypoint"),
(@ENTRY,0,3,0,61,0,100,0,2,2,0,0,1,1,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Pooka - On Data Set 2 2 - Say Line 1"),
(@ENTRY,0,4,0,40,0,100,0,6,14909,0,0,80,@ENTRY*100+01,2,0,0,0,0,1,0,0,0,0,0,0,0,"Pooka - On Waypoint 6 Reached - Run Script"),
(@ENTRY,0,5,0,40,0,100,0,12,14909,0,0,89,5,0,0,0,0,0,1,0,0,0,0,0,0,0,"Pooka - On Waypoint 12 Reached - Start Random Movement");
-- Actionlist SAI
SET @ENTRY := 1490900;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,89,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Pooka - On Script - Start Random Movement"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,69,0,0,0,0,0,0,8,0,0,0,1021.28,-2233.42,93.33,5.05,"Pooka - On Script - Move To Position"),
(@ENTRY,9,2,0,0,0,100,0,4000,4000,0,0,1,0,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Pooka - On Script - Say Line 0"),
(@ENTRY,9,3,0,0,0,100,0,4000,4000,0,0,59,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Pooka - On Script - Set Run Off"),
(@ENTRY,9,4,0,0,0,100,0,2000,2000,0,0,69,0,0,0,0,0,0,8,0,0,0,1013.24,-2221.47,92.9837,2.5,"Pooka - On Script - Move To Position"),
(@ENTRY,9,5,0,0,0,100,0,5000,5000,0,0,69,0,0,0,0,0,0,8,0,0,0,1017.95,-2224.33,93.08,4.7,"Pooka - On Script - Move To Position"),
(@ENTRY,9,6,0,0,0,100,0,3000,3000,0,0,89,5,0,0,0,0,0,1,0,0,0,0,0,0,0,"Pooka - On Script - Start Random Movement");
-- Actionlist SAI
SET @ENTRY := 1490901;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,5,18,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Play Emote 18"),
(@ENTRY,9,2,0,0,0,100,0,2000,2000,0,0,5,18,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Play Emote 18");
DELETE FROM `creature_text` WHERE `CreatureID` IN (14908, 14909);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(14908, 0, 0, 'I am going to practice and become a warrior like my father!', 12, 0, 100, 1, 0, 0, 10293, 'Mogg'),
(14908, 1, 0, 'Now to find an unsuspecting Harpy!', 12, 0, 100, 1, 0, 0, 10294, 'Mogg'),
(14908, 2, 0, 'There''s one! For the Horde!', 12, 0, 100, 1, 0, 0, 10295, 'Mogg'),
(14908, 3, 0, 'Take that you mangy Harpy! Hyaa!', 12, 0, 100, 1, 0, 0, 10296, 'Mogg'),
(14908, 4, 0, 'You can''t get away from a warrior of the Horde! Take that! And that!', 12, 0, 100, 1, 0, 0, 10297, 'Mogg'),
(14908, 5, 0, 'Now go back home where you belong!', 12, 0, 100, 1, 0, 0, 10298, 'Mogg'),
(14908, 6, 0, 'Aaahhh... Another glorious victory for The Horde!', 12, 0, 100, 1, 0, 0, 10299, 'Mogg'),
(14908, 7, 0, 'Yes right away momma!', 12, 0, 100, 1, 0, 0, 10301, 'Mogg'),
(14908, 8, 0, 'When is poppa coming back from the fights in Warsong? It has been so long...', 12, 0, 100, 1, 0, 0, 10303, 'Mogg'),
(14909, 0, 0, 'Mogg, get inside. It is not safe out there while your father is gone.', 12, 0, 100, 1, 0, 0, 10300, 'Pooka'),
(14909, 1, 0, 'Soon child... Very soon.', 12, 0, 100, 1, 0, 0, 10304, 'Pooka');
DELETE FROM `waypoints` WHERE `entry`=14908;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(14908,1,1022.24,-2235.11,93.3114, 'Mogg'),
(14908,2,1023.37,-2238.18,92.3744, 'Mogg'),
(14908,3,1024.2,-2243.96,92.4697, 'Mogg'),
(14908,4,1022.05,-2244.86,92.3385, 'Mogg'),
(14908,5,1020.21,-2242.92,92.2321, 'Mogg'),
(14908,6,1034.19,-2250.56,92.8656, 'Mogg'),
(14908,7,1033.85,-2258.61,93.6338, 'Mogg'),
(14908,8,1037.68,-2262.02,93.8145, 'Mogg'),
(14908,9,1036.96,-2269.7,93.7554, 'Mogg'),
(14908,10,1042,-2273.46,93.6932, 'Mogg'),
(14908,11,1042.7,-2275.52,93.5781, 'Mogg'),
(14908,12,1046.52,-2274.46,93.6045, 'Mogg'),
(14908,13,1050.26,-2270.44,93.4986, 'Mogg'),
(14908,14,1049.74,-2266.86,93.3475, 'Mogg'),
(14908,15,1048.05,-2263.53,93.2249, 'Mogg'),
(14908,16,1041.05,-2258.77,93.4525, 'Mogg'),
(14908,17,1039.14,-2253.68,92.9611, 'Mogg'),
(14908,18,1032.8,-2253.55,93.3633, 'Mogg'),
(14908,19,1025.83,-2258.54,93.1641, 'Mogg'),
(14908,20,1021.94,-2266.24,92.8306, 'Mogg'),
(14908,21,1022.81,-2272.14,92.6617, 'Mogg'),
(14908,22,1027.02,-2277.89,92.6709, 'Mogg'),
(14908,23,1036.56,-2280.12,93.1197, 'Mogg'),
(14908,24,1046.66,-2275.73,93.5356, 'Mogg'),
(14908,25,1049.61,-2269.77,93.5509, 'Mogg'),
(14908,26,1045.76,-2261.03,93.2522, 'Mogg'),
(14908,27,1038.3,-2254.31,93.1039, 'Mogg'),
(14908,28,1028.89,-2245.04,92.4171, 'Mogg'),
(14908,29,1016.87,-2225.77,93.1025, 'Mogg');
DELETE FROM `waypoints` WHERE `entry`=14909;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(14909, 1, 1025.19, -2239.77, 92.4462, 'Pooka'),
(14909, 2, 1032.77, -2242.09, 92.1655, 'Pooka'),
(14909, 3, 1040.45, -2241.81, 91.9457, 'Pooka'),
(14909, 4, 1040.65, -2233.18, 91.735, 'Pooka'),
(14909, 5, 1037.72, -2227.49, 91.8037, 'Pooka'),
(14909, 6, 1035.65, -2224.96, 91.9576, 'Pooka'), -- cry
(14909, 7, 1039.38, -2231.71, 91.7299, 'Pooka'),
(14909, 8, 1041.05, -2240.78, 91.9556, 'Pooka'),
(14909, 9, 1031.51, -2241.51, 92.1757, 'Pooka'),
(14909, 10, 1025.37, -2240.84, 92.4583, 'Pooka'),
(14909, 11, 1020.98, -2232.5, 93.3069, 'Pooka'),
(14909, 12, 1014.45, -2225.92, 93.0579, 'Pooka'); -- move rndm
@@ -0,0 +1,140 @@
-- Horde Laborer SAI
SET @GUID := -303171;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=14718;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@GUID 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
(@GUID,0,0,0,1,0,100,0,0,0,180000,180000,80,30317100,2,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - Out of Combat - Run Script"),
(@GUID,0,1,0,4,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Aggro - Say Line 0");
-- Actionlist SAI
SET @ENTRY := 30317100;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,4.39941,"Horde Laborer - On Script - Set Orientation 4.39941"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,17,173,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Set Emote State 173"),
(@ENTRY,9,2,0,0,0,100,0,117000,117000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Set Emote State 0"),
(@ENTRY,9,3,0,0,0,100,0,1000,1000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,1.19849,"Horde Laborer - On Script - Set Orientation 1.19849");
-- Horde Laborer SAI
SET @GUID := -303150;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=14718;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@GUID 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
(@GUID,0,0,0,1,0,100,0,0,0,180000,180000,80,30315000,2,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - Out of Combat - Run Script"),
(@GUID,0,1,0,4,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Aggro - Say Line 0");
-- Actionlist SAI
SET @ENTRY := 30315000;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,4.17085,"Horde Laborer - On Script - Set Orientation 4.17085"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,17,173,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Set Emote State 173"),
(@ENTRY,9,2,0,0,0,100,0,117000,117000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Set Emote State 0"),
(@ENTRY,9,3,0,0,0,100,0,1000,1000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,0.882199,"Horde Laborer - On Script - Set Orientation 0.882199");
-- Horde Laborer SAI
SET @GUID := -303148;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=14718;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@GUID 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
(@GUID,0,0,0,1,0,100,0,0,0,180000,180000,80,30314800,2,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - Out of Combat - Run Script"),
(@GUID,0,1,0,4,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Aggro - Say Line 0");
-- Actionlist SAI
SET @ENTRY := 30314800;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,4.17085,"Horde Laborer - On Script - Set Orientation 4.17085"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,17,173,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Set Emote State 173"),
(@ENTRY,9,2,0,0,0,100,0,117000,117000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Set Emote State 0"),
(@ENTRY,9,3,0,0,0,100,0,1000,1000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,0.882199,"Horde Laborer - On Script - Set Orientation 0.882199");
-- Horde Laborer SAI
SET @GUID := -303151;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=14718;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@GUID 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
(@GUID,0,0,0,1,0,100,0,0,0,180000,180000,80,30315100,2,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - Out of Combat - Run Script"),
(@GUID,0,1,0,4,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Aggro - Say Line 0");
-- Actionlist SAI
SET @ENTRY := 30315100;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,4.17085,"Horde Laborer - On Script - Set Orientation 4.17085"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,17,173,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Set Emote State 173"),
(@ENTRY,9,2,0,0,0,100,0,117000,117000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Set Emote State 0"),
(@ENTRY,9,3,0,0,0,100,0,1000,1000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,0.882199,"Horde Laborer - On Script - Set Orientation 0.882199");
DELETE FROM `creature_text` WHERE `CreatureID`=14718;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(14718, 0, 0, '%s attempts to get help!', 16, 0, 100, 0, 0, 0, 6311, 'Horde Laborer');
UPDATE `creature` SET `position_x`='1029.65', `position_y`='-2105.91', `position_z`='123.07', `orientation`='2.58302' WHERE `guid`=303138;
-- Horde Laborer SAI
SET @GUID := -303138;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=14718;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@GUID 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
(@GUID,0,0,0,4,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Aggro - Say Line 0"),
(@GUID,0,1,0,25,0,100,0,0,0,0,0,53,0,14718,1,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Reset - Start Waypoint"),
(@GUID,0,2,0,40,0,100,0,8,14718,0,0,80,30313800,2,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Waypoint 8 Reached - Run Script"),
(@GUID,0,3,0,40,0,100,0,14,14718,0,0,80,30313801,2,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Waypoint 14 Reached - Run Script"),
(@GUID,0,4,0,40,0,100,0,20,14718,0,0,80,30313802,2,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Waypoint 20 Reached - Run Script");
-- Actionlist SAI
SET @ENTRY := 30313800;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,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,"Horde Laborer - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,3000,3000,0,0,17,69,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Set Emote State 69"),
(@ENTRY,9,2,0,0,0,100,0,13000,13000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Set Emote State 0"),
(@ENTRY,9,3,0,0,0,100,0,2000,2000,0,0,5,1,0,0,0,0,0,0,0,0,0,0,0,0,0,"Horde Laborer - On Script - Play Emote 1");
-- Actionlist SAI
SET @ENTRY := 30313801;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,30000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,1.08029,"Horde Laborer - On Script - Set Orientation 1.08029"),
(@ENTRY,9,2,0,0,0,100,0,2000,2000,0,0,17,69,0,0,0,0,0,0,0,0,0,0,0,0,0,"Horde Laborer - On Script - Set Emote State 69"),
(@ENTRY,9,3,0,0,0,100,0,10000,10000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Set Emote State 0"),
(@ENTRY,9,4,0,0,0,100,0,2000,2000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,4.8455,"Horde Laborer - On Script - Set Orientation 4.8455"),
(@ENTRY,9,5,0,0,0,100,0,2000,2000,0,0,17,69,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Set Emote State 69"),
(@ENTRY,9,6,0,0,0,100,0,10000,10000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Set Emote State 0"),
(@ENTRY,9,7,0,0,0,100,0,1000,1000,0,0,5,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Play Emote 1");
-- Actionlist SAI
SET @ENTRY := 30313802;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,60000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,17,69,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Set Emote State 69"),
(@ENTRY,9,2,0,0,0,100,0,5000,5000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Set Emote State 0"),
(@ENTRY,9,3,0,0,0,100,0,1000,1000,0,0,5,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horde Laborer - On Script - Play Emote 1");
DELETE FROM `waypoints` WHERE `entry`=14718;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(14718, 1, 1034.29, -2112.98, 122.946, 'Horde Laborer'),
(14718, 2, 1034.5, -2115.07, 122.946, 'Horde Laborer'),
(14718, 3, 1034.06, -2125.55, 122.953, 'Horde Laborer'),
(14718, 4, 1033.47, -2136.03, 122.94, 'Horde Laborer'),
(14718, 5, 1033.66, -2148.56, 122.9, 'Horde Laborer'),
(14718, 6, 1032.68, -2152.52, 122.948, 'Horde Laborer'),
(14718, 7, 1030.98, -2152.07, 122.97, 'Horde Laborer'),
(14718, 8, 1029.92, -2150.68, 123.052, 'Horde Laborer'), -- work 1
(14718, 9, 1033.3, -2150.87, 122.922, 'Horde Laborer'),
(14718, 10, 1035.12, -2146.2, 122.907, 'Horde Laborer'),
(14718, 11, 1034.46, -2142.76, 122.858, 'Horde Laborer'),
(14718, 12, 1033.41, -2135.26, 122.941, 'Horde Laborer'),
(14718, 13, 1039.67, -2130.72, 123.491, 'Horde Laborer'),
(14718, 14, 1044.52, -2130.13, 124.082, 'Horde Laborer'), -- work 2
(14718, 15, 1044.52, -2130.13, 124.082, 'Horde Laborer'),
(14718, 16, 1034.41, -2128.47, 122.967, 'Horde Laborer'),
(14718, 17, 1034.34, -2124.97, 122.987, 'Horde Laborer'),
(14718, 18, 1034.2, -2114.47, 122.947, 'Horde Laborer'),
(14718, 19, 1032.9, -2106.12, 122.947, 'Horde Laborer'),
(14718, 20, 1029.66, -2104.47, 122.947, 'Horde Laborer'); -- work 3
@@ -0,0 +1,13 @@
-- [Q] Nugget Slugs -- http://wotlk.openwow.com/quest=3922
-- Actionlist SAI
SET @ENTRY := 931600;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,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,"Wenikee Boltbucket - On Script - Say Line 0"),
(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,70,7,0,0,0,0,0,14,6579,162024,0,0,0,0,0,"Wenikee Boltbucket - On Script - Respawn Closest Gameobject 'Samophlange'"),
(@ENTRY,9,2,0,0,0,100,0,1000,1000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,0.725311,"Wenikee Boltbucket - On Script - Set Orientation 0.725311"),
(@ENTRY,9,3,0,0,0,100,0,1000,1000,0,0,17,173,0,0,0,0,0,1,0,0,0,0,0,0,0,"Wenikee Boltbucket - On Script - Set Emote State 173"),
(@ENTRY,9,4,0,0,0,100,0,4000,4000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Wenikee Boltbucket - On Script - Set Emote State 0"),
(@ENTRY,9,5,0,0,0,100,0,1000,1000,0,0,11,13727,0,0,0,0,0,1,0,0,0,0,0,0,0,"Wenikee Boltbucket - On Script - Cast 'Break Samophlange'"),
(@ENTRY,9,6,0,0,0,100,0,1000,1000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,2.72271,"Wenikee Boltbucket - On Script - Set Orientation 2.72271"),
(@ENTRY,9,7,0,0,0,100,0,1000,1000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Wenikee Boltbucket - On Script - Say Line 1");
@@ -0,0 +1,2 @@
--
UPDATE `creature` SET `spawndist`=10, `MovementType`=1 WHERE `guid`=302652;
@@ -0,0 +1,4 @@
UPDATE `creature_template` SET `unit_flags`=33587200, `unit_flags2`=2080 WHERE `entry`=29791; -- Fixed flags of Rhino Spirit
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_gal_darah_stampede_charge';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (59823, 'spell_gal_darah_stampede_charge');
@@ -0,0 +1,2 @@
UPDATE `creature_template` SET `unit_flags`=512 WHERE `entry`=37129; -- Crok
UPDATE `creature_addon` SET `auras`=70203 WHERE `guid`=137753; -- Svalna
@@ -0,0 +1,37 @@
-- East
DELETE FROM `script_spline_chain_meta` WHERE `entry`=39814 AND `chainId`=1;
INSERT INTO `script_spline_chain_meta` (`entry`,`chainId`,`splineId`,`expectedDuration`,`msUntilNext`) VALUES
(39814, 1, 0, 2314, 0);
DELETE FROM `script_spline_chain_waypoints` WHERE `entry`=39814 AND `chainId`=1;
INSERT INTO `script_spline_chain_waypoints` (`entry`,`chainId`,`splineId`,`wpId`,`x`,`y`,`z`) VALUES
(39814, 1, 0, 0, 3062.4450, 613.99300, 84.232710),
(39814, 1, 0, 1, 3058.9580, 610.40010, 85.552370),
(39814, 1, 0, 2, 3055.7080, 606.65010, 86.302370),
(39814, 1, 0, 3, 3046.2080, 596.15010, 86.552370),
(39814, 1, 0, 4, 3043.7080, 593.15010, 87.302370),
(39814, 1, 0, 5, 3040.2080, 589.65010, 88.052370),
(39814, 1, 0, 6, 3034.4580, 583.15010, 88.802370),
(39814, 1, 0, 7, 3014.9700, 561.80730, 88.872020);
-- West
DELETE FROM `script_spline_chain_meta` WHERE `entry`=39814 AND `chainId`=2;
INSERT INTO `script_spline_chain_meta` (`entry`,`chainId`,`splineId`,`expectedDuration`,`msUntilNext`) VALUES
(39814, 2, 0, 3486, 0);
DELETE FROM `script_spline_chain_waypoints` WHERE `entry`=39814 AND `chainId`=2;
INSERT INTO `script_spline_chain_waypoints` (`entry`,`chainId`,`splineId`,`wpId`,`x`,`y`,`z`) VALUES
(39814, 2, 0, 0, 3047.4820, 454.40800, 84.374650),
(39814, 2, 0, 1, 3045.4070, 456.82900, 85.912670),
(39814, 2, 0, 2, 3043.6570, 458.57900, 86.912670),
(39814, 2, 0, 3, 3042.4070, 460.07900, 87.412670),
(39814, 2, 0, 4, 3041.6570, 460.57900, 87.662670),
(39814, 2, 0, 5, 3039.1570, 462.07900, 88.412670),
(39814, 2, 0, 6, 3037.9070, 462.82900, 88.662670),
(39814, 2, 0, 7, 3037.9070, 463.82900, 88.912670),
(39814, 2, 0, 8, 3037.9070, 464.82900, 89.162670),
(39814, 2, 0, 9, 3037.9070, 466.82900, 89.162670),
(39814, 2, 0, 10, 3033.4070, 469.07900, 89.412670),
(39814, 2, 0, 11, 3027.1570, 475.32900, 89.412670),
(39814, 2, 0, 12, 3025.1570, 477.32900, 89.412670),
(39814, 2, 0, 13, 3016.9070, 481.32900, 89.662670),
(39814, 2, 0, 14, 3014.9070, 483.32900, 89.662670),
(39814, 2, 0, 15, 3008.6570, 500.07900, 89.662670),
(39814, 2, 0, 16, 3003.8320, 501.25000, 89.450690);
@@ -0,0 +1,43 @@
UPDATE `creature_template` SET `flags_extra`=536871681, `InhabitType`=7 WHERE `entry`=17225;
UPDATE `creature_text` SET `TextRange`=3 WHERE `CreatureID`=17225;
UPDATE `creature_model_info` SET `BoundingRadius`=0.45, `CombatReach`=10.5 WHERE `DisplayID`=18062;
UPDATE `creature_template_addon` SET `bytes2`=1 WHERE `entry`=17225;
UPDATE `gameobject_template` SET `ScriptName`= 'go_blackened_urn' WHERE `entry`=194092;
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_rain_of_bones';
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`)VALUES
(37098,'spell_rain_of_bones');
DELETE FROM `script_spline_chain_meta` WHERE `entry`=17225;
INSERT INTO `script_spline_chain_meta` (`entry`,`chainId`,`splineId`,`expectedDuration`,`msUntilNext`) VALUES
(17225, 1, 0, 3689, 0),
(17225, 2, 0, 26021, 0),
(17225, 3, 0, 2697, 0),
(17225, 4, 0, 15920, 0),
(17225, 5, 0, 15920, 0);
DELETE FROM `script_spline_chain_waypoints` WHERE `entry`=17225;
INSERT INTO `script_spline_chain_waypoints` (`entry`,`chainId`,`splineId`,`wpId`,`x`,`y`,`z`) VALUES
(17225, 1, 0, 0, -11003.710, -1760.1940, 140.25340),
(17225, 1, 0, 1, -11018.860, -1797.2690, 172.85250),
(17225, 2, 0, 0, -11018.860, -1797.2690, 172.85250),
(17225, 2, 0, 1, -11105.760, -1875.9000, 158.97800),
(17225, 2, 0, 2, -11175.100, -1857.2240, 101.00590),
(17225, 2, 0, 3, -11296.930, -1764.5310, 101.00590),
(17225, 2, 0, 4, -11258.900, -1722.3720, 101.00590),
(17225, 2, 0, 5, -11176.760, -1809.5990, 101.00590),
(17225, 2, 0, 6, -11191.110, -1889.3960, 107.89480),
(17225, 2, 0, 7, -11152.180, -1863.3180, 101.00590),
(17225, 2, 0, 8, -11130.680, -1891.4230, 107.89630),
(17225, 2, 0, 9, -11110.670, -1878.7710, 107.89690),
(17225, 3, 0, 0, -11110.670, -1878.7710, 107.89690),
(17225, 3, 0, 1, -11142.710, -1891.1930, 92.250380),
(17225, 4, 0, 0, -11162.230, -1900.3290, 94.727470),
(17225, 4, 0, 1, -11162.230, -1900.3290, 91.472650),
(17225, 5, 0, 0, -11160.130, -1870.6830, 97.738760),
(17225, 5, 0, 1, -11117.730, -1941.2610, 127.17200),
(17225, 5, 0, 2, -11123.780, -1968.2430, 125.92200),
(17225, 5, 0, 3, -11148.340, -1972.9800, 116.69970),
(17225, 5, 0, 4, -11161.620, -1945.7250, 103.08860),
(17225, 5, 0, 5, -11168.010, -1922.9050, 97.394150),
(17225, 5, 0, 6, -11162.230, -1900.3290, 94.727470);
@@ -0,0 +1,20 @@
UPDATE `creature` SET `position_x`=-11187.9, `position_y`=-1883.373, `position_z`=156.0449, `orientation`=5.375582, `spawndist`=0 WHERE `guid`=135489;
UPDATE `creature_template` SET `unit_flags`=33554432, `flags_extra`=256, `ScriptName`='npc_curator_astral_flare' WHERE `entry` IN (17096,19781,19782,19783);
DELETE FROM `creature_template_addon` WHERE `entry` IN (17096,19781,19782,19783);
INSERT INTO `creature_template_addon` (`entry`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES
(19781,0,0,0,1,0,30234),
(19782,0,0,0,1,0,30234),
(19783,0,0,0,1,0,30234),
(17096,0,0,0,1,0,30234);
DELETE FROM `waypoint_data` WHERE `id`=1354890;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(1354890, 1, -11172.98, -1902.532, 165.7656, 0, 0, 0, 0, 100, 0),
(1354890, 2, -11160.56, -1901.736, 165.7654, 0, 0, 0, 0, 100, 0),
(1354890, 3, -11104.56, -1856.968, 165.7654, 0, 0, 0, 0, 100, 0),
(1354890, 4, -11114.04, -1864.641, 165.7654, 0, 0, 0, 0, 100, 0),
(1354890, 5, -11166.35, -1906.356, 165.7654, 0, 0, 0, 0, 100, 0),
(1354890, 6, -11170.42, -1906.521, 165.7654, 0, 0, 0, 0, 100, 0),
(1354890, 7, -11180.58, -1892.599, 160.9129, 0, 0, 0, 0, 100, 0),
(1354890, 8, -11194.23, -1875.336, 153.5438, 0, 0, 0, 0, 100, 0);
@@ -0,0 +1,7 @@
-- Phantom Mammoth
DELETE FROM `creature` WHERE `guid`=127005; -- shouldn't stand all the time
UPDATE `creature_template` SET `flags_extra` = `flags_extra`&0x2 WHERE `entry`=29748; -- set visible to players
-- Mojo Frenzy
DELETE FROM `spell_script_names` WHERE `ScriptName` = "spell_moorabi_mojo_frenzy";
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(55163, "spell_moorabi_mojo_frenzy");
@@ -0,0 +1,7 @@
UPDATE `creature_template` SET `unit_flags`=33555200 WHERe `entry`=17265;
UPDATE `spell_target_position` SET `PositionX`=-11240.5, `PositionY`=-1717.25, `PositionZ`=179.238 WHERE `ID`=30171 AND `EffectIndex`=0; -- `Orientation`=1.32986
UPDATE `spell_target_position` SET `PositionX`=-11251.6, `PositionY`=-1703.42, `PositionZ`=179.238 WHERE `ID`=30179 and`EffectIndex`=0; -- `Orientation`=6.1522
DELETE FROM `spell_target_position` WHERE `ID`=30120;
INSERT INTO `spell_target_position` (`ID`,`EffectIndex`,`MapID`,`PositionX`,`PositionY`,`PositionZ`,`VerifiedBuild`)VALUES
(30120, 0, 532, -11234.2, -1698.46, 179.24, 0); -- `Orientation`=0.67621
@@ -0,0 +1,28 @@
-- Trok -- http://www.wowhead.com/npc=14872/trok#comments
-- Trok SAI
SET @ENTRY := 14872;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,1,0,100,0,10000,20000,10000,20000,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Trok - Out of Combat - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=14872;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextID`, `comment`) VALUES
(14872, 0, 0, 'Help! I''m being chased by a swarm of bees!', 12, 1, 100, 0, 0, 0, 10259, 'Trok'),
(14872, 0, 1, 'I''m so tired of running, but these bees won''t leave me alone!', 12, 1, 100, 0, 0, 0, 10260, 'Trok'),
(14872, 0, 2, 'I didn''t know bees didn''t like fire!', 12, 1, 100, 0, 0, 0, 10261, 'Trok'),
(14872, 0, 3, 'Karu will you please help get these bees off of me? They sting!', 12, 1, 100, 0, 0, 0, 10262, 'Trok');
DELETE FROM `creature_formations` WHERE `leaderGUID`=303759;
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES
(303759, 303759, 0, 0, 512, 0, 0),
(303759, 303761, 3, 30, 512, 0, 0),
(303759, 303762, 3, 60, 512, 0, 0),
(303759, 303763, 3, 330, 512, 0, 0),
(303759, 303764, 3, 300, 512, 0, 0);
UPDATE `creature` SET `position_x`=180.182, `position_y`=-2862.82, `position_z`=93.2346 WHERE `guid` IN (303761, 303762, 303763, 303764);
DELETE FROM `creature_addon` WHERE `guid` IN (303761, 303762, 303763, 303764);
DELETE FROM `waypoint_data` WHERE `id` IN (3037610, 3037620, 3037630, 3037640);
UPDATE `creature_template` SET `speed_run`=1.257143 WHERE `entry`=14894;
UPDATE `waypoint_data` SET `move_type`=1 WHERE `id`=3037590;
@@ -0,0 +1,3 @@
--
UPDATE `playercreateinfo` SET `orientation`= 0 WHERE `race`= 2 AND `map`=0;
UPDATE `playercreateinfo` SET `orientation`= 0.377780 WHERE `race` = 3 AND `map`=1;
@@ -0,0 +1,2 @@
ALTER TABLE `creature_template_model` DROP PRIMARY KEY;
ALTER TABLE `creature_template_model` ADD PRIMARY KEY (`CreatureID`, `Idx`);
@@ -0,0 +1,64 @@
-- **** Fix quest 14386 "Leader of the Pack" ****
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_q14386_call_attack_mastiffs';
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
(68682, 'spell_q14386_call_attack_mastiffs');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceGroup` IN (1,4) AND `SourceEntry` IN (68682) AND `SourceId`=0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(13, 1, 68682, 0, 0, 31, 0, 3, 36312, 0, 0, 0, 0, '', 'Call Attack Mastiffs Effect 0 will hit Dark Ranger Thyala'),
(13, 4, 68682, 0, 0, 31, 1, 3, 36198, 0, 0, 0, 0, '', 'Call Attack Mastiffs Effect 2 will hit Generic Trigger LAB - Multiphase (Ground)');
UPDATE `creature` SET `spawntimesecs`=120 WHERE id=36312;
UPDATE `creature_template` SET `mingold`=4,`maxgold`=10 WHERE `entry` IN (36312);
-- Dark Ranger Thyala SAI
SET @ENTRY := 36312;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry` IN (@ENTRY);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@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_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,4,0,100,0,0,0,0,0,0,11,6660,0,0,0,0,0,2,0,0,0,0,0,0,0,"Dark Ranger Thyala - On Aggro - Cast 'Shoot'"),
(@ENTRY,0,1,0,9,0,100,0,0,5,10000,10000,0,11,68683,0,0,0,0,0,1,0,0,0,0,0,0,0,"Dark Ranger Thyala - On Range 0-5 - Cast 'Knockback'"),
(@ENTRY,0,2,0,8,0,100,0,68682,0,0,0,0,49,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Dark Ranger Thyala - On Spellhit - Attack Start Invoker");
-- Attack Mastiff SAI
SET @ENTRY := 36405;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry` IN (@ENTRY);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@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_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,9,0,50,1,8,25,0,0,0,11,68687,0,0,0,0,0,2,0,0,0,0,0,0,0,"Attack Mastiff - Combat - Cast 'Leap' (No Repeat)"),
(@ENTRY,0,1,0,0,0,100,0,5000,9000,10000,10000,0,11,26281,0,0,0,0,0,2,0,0,0,0,0,0,0,"Attack Mastiff - Combat - Cast 'Taunt'"),
(@ENTRY,0,2,0,9,0,50,0,0,3,15000,15000,0,11,15971,0,0,0,0,0,1,0,0,0,0,0,0,0,"Attack Mastiff - On Range 0-5 - Cast 'Demoralizing Roar'"),
(@ENTRY,0,4,0,60,0,100,1,200,200,0,0,0,49,0,0,0,0,0,0,10,255706,36312,0,0,0,0,0,"Attack Mastiff - Update Event - Attack Dark Ranger Thyala (No Repeat)");
-- Attack Mastiff SAI
SET @ENTRY := 36409;
UPDATE `creature_template` SET `AIName`="SmartAI", `faction`=2203 WHERE `entry` IN (@ENTRY);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@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_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,9,0,50,1,8,25,0,0,0,11,68687,0,0,0,0,0,2,0,0,0,0,0,0,0,"Attack Mastiff - Combat - Cast 'Leap' (No Repeat)"),
(@ENTRY,0,1,0,0,0,100,0,5000,9000,10000,10000,0,11,26281,0,0,0,0,0,2,0,0,0,0,0,0,0,"Attack Mastiff - Combat - Cast 'Taunt'"),
(@ENTRY,0,2,0,9,0,50,0,0,3,15000,15000,0,11,15971,0,0,0,0,0,1,0,0,0,0,0,0,0,"Attack Mastiff - On Range 0-5 - Cast 'Demoralizing Roar'"),
(@ENTRY,0,3,0,1,0,100,1,0,0,0,0,0,49,0,0,0,0,0,0,10,255706,36312,0,0,0,0,0,"Attack Mastiff - OOC - Attack Dark Ranger Thyala (No Repeat)");
-- Lord Godfrey SAI
SET @ENTRY := 36290;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry` IN (@ENTRY);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@ENTRY) AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (3629000) AND `source_type`=9;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,20,0,100,0,14386,0,0,0,0,80,3629000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Lord Godfrey - quest complete - Run Script"),
(3629000,9,0,0,0,0,100,0,0,0,0,0,0,85,68483,0,0,0,0,0,7,0,0,0,0,0,0,0,"Lord Godfrey - Script - Cast 'Phase - Quest Zone-Specific 08'"),
(3629000,9,1,0,0,0,100,0,0,0,0,0,0,28,68482,0,0,0,0,0,7,0,0,0,0,0,0,0,"Lord Godfrey - Script - Unaura 'Phase - Quest Zone-Specific 07'"),
(3629000,9,2,0,0,0,100,0,500,500,0,0,0,85,69027,0,0,0,0,0,7,0,0,0,0,0,0,0,"Lord Godfrey - Script - Cast 'Forcecast Cataclysm I'"),
(3629000,9,3,0,0,0,100,0,100,100,0,0,0,1,0,1,0,0,0,0,10,255676,36291,0,0,0,0,0,"Lord Godfrey - Script - Melinda Hammond Say 0"),
(3629000,9,4,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Lord Godfrey - Script - Say 0");
DELETE FROM `creature_text` WHERE `CreatureID` IN (36290,36291);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(36290, 0, 0, 'Hold your positions, men!', 14, 0, 100, 0, 0, 0, 36632, 'Lord Godfrey'),
(36291, 0, 0, 'What''s happening?!', 12, 0, 100, 0, 0, 0, 36633, 'Melinda Hammond');
-- 471 Phases 182,183
UPDATE `creature` SET `PhaseId`=0, `PhaseGroup`=471 WHERE `guid` IN
(255676,255677,255678,255679,255680,255681);