20 Commits
Author SHA1 Message Date
luis f5076cfe03 fishing 2026-11-19 06:29:37 -03:00
luis 42ded56c5c trading post 2026-11-19 05:41:46 -03:00
luis 4d8f6c04de VoidAssault fix 2026-11-19 04:50:45 -03:00
luis 7c45ce7de8 majorfaction full 2026-11-19 04:45:18 -03:00
luis c61973a4ce omnium updates 2026-11-19 04:09:02 -03:00
stevebone bf4e28294d Scripts/FSB: added some more bot defines from @vekzla
Signed-off-by: luis <[email protected]>
2026-11-19 03:06:34 -03:00
luis 06df48d2ce midnight campaigns 2026-11-19 02:50:03 -03:00
luis fc10919774 eversong woods 2026-11-18 23:20:33 -03:00
luis aaa3641e44 Core QUEST crash fix TEST 2026-11-18 20:49:23 -03:00
luis 9dcaee0b34 db errors 2026-11-18 18:56:01 -03:00
luis 3608ccf0c3 coiled isle 2026-11-18 13:40:46 -03:00
luis 0caf9fcc1c broadcast text 2026-11-18 13:40:10 -03:00
luis c751d391a0 Core/Spells: Implement SPELL_EFFECT_TELEPORT_TO_LFG_DUNGEON 2026-11-18 13:29:04 -03:00
luis c202570c10 Scripts/Ulduar: Check Kologarn's vehicle kit before removing Stone Grip's passenger 2026-11-18 13:25:03 -03:00
luis 767592fc6a Core: Updated allowed build to 12.1.5.70961 2026-11-18 12:27:55 -03:00
Shauren 89fd922edd Tests: Avoid ! in catch2 macros
Signed-off-by: luis <[email protected]>
2026-11-18 12:26:10 -03:00
luis 95540e544b Core/DataStores: Named MapFlags2::UseHybridMinimap 2026-11-18 12:25:19 -03:00
luis 3cbf646f41 Core/Spells: Implemented SPELL_ATTR12_NOT_IN_PROVING_GROUNDS 2026-11-18 12:19:45 -03:00
luis 6d8f739a12 Core/Channels: Implemented AreaFlags::NoLocalDefenseChannel 2026-11-18 12:16:20 -03:00
luis d6a7b38c6c Core/Quests: Implemented QUEST_FLAGS_EX_SUPPRESS_GOSSIP_COMPLETE 2026-11-18 12:13:32 -03:00
49 changed files with 4551 additions and 250 deletions
@@ -0,0 +1,23 @@
DELETE FROM `build_info` WHERE `build` IN (70961);
INSERT INTO `build_info` (`build`,`majorVersion`,`minorVersion`,`bugfixVersion`,`hotfixVersion`) VALUES
(70961,12,1,5,NULL);
DELETE FROM `build_auth_key` WHERE `build`=70961 AND `platform`='Mac' AND `arch`='A64' AND `type`='WoW';
DELETE FROM `build_auth_key` WHERE `build`=70961 AND `platform`='Mac' AND `arch`='A64' AND `type`='WoWC';
DELETE FROM `build_auth_key` WHERE `build`=70961 AND `platform`='Mac' AND `arch`='x64' AND `type`='WoW';
DELETE FROM `build_auth_key` WHERE `build`=70961 AND `platform`='Mac' AND `arch`='x64' AND `type`='WoWC';
DELETE FROM `build_auth_key` WHERE `build`=70961 AND `platform`='Win' AND `arch`='A64' AND `type`='WoW';
DELETE FROM `build_auth_key` WHERE `build`=70961 AND `platform`='Win' AND `arch`='x64' AND `type`='WoW';
DELETE FROM `build_auth_key` WHERE `build`=70961 AND `platform`='Win' AND `arch`='x64' AND `type`='WoWC';
INSERT INTO `build_auth_key` (`build`,`platform`,`arch`,`type`,`key`) VALUES
(70961,'Mac','A64','WoW',0xB3E7B53078DFE20AF4EB052A9CE92331),
(70961,'Mac','A64','WoWC',0xC11F69562D5105723BDE9669208A9317),
(70961,'Mac','x64','WoW',0x2BE8C03F4CD11B22A2C22241E048EC02),
(70961,'Mac','x64','WoWC',0x50B323D744C714B80FA50ED5857A4F92),
(70961,'Win','A64','WoW',0xB124B7530201D0FA6486586FA058070E),
(70961,'Win','x64','WoW',0x162AFD0D470E2AF6B534C61C44829451),
(70961,'Win','x64','WoWC',0xD45C544B3E137934D10B00FE3C59FF2C);
UPDATE `realmlist` SET `gamebuild`=70961 WHERE `gamebuild`=70783;
ALTER TABLE `realmlist` CHANGE `gamebuild` `gamebuild` int unsigned NOT NULL DEFAULT '70961';
@@ -0,0 +1,25 @@
--
-- Major Factions - renown reward grant tracking
--
-- Backs ReputationMgr::IsRenownRewardGranted / MarkRenownRewardGranted and is
-- loaded at login by ReputationMgr::LoadRenownRewardsGrantedFromDB (queries
-- CHAR_SEL_CHAR_RENOWN_REWARDS_GRANTED / CHAR_SEL_WARBAND_RENOWN_REWARDS_GRANTED).
--
-- character_renown_rewards_granted holds character-bound rewards (RenownRewards
-- rows without the AccountUnlock flag, e.g. per-toon spells / Crafter's
-- Knowledge). warband_renown_rewards_granted holds rows with AccountUnlock, so
-- a mount/toy/transmog unlocked by one character is not handed out again to
-- every alt on the same Battle.net account.
--
CREATE TABLE IF NOT EXISTS `character_renown_rewards_granted` (
`characterId` bigint unsigned NOT NULL,
`renownRewardId` int unsigned NOT NULL,
PRIMARY KEY (`characterId`, `renownRewardId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `warband_renown_rewards_granted` (
`battlenetAccountId` int unsigned NOT NULL,
`renownRewardId` int unsigned NOT NULL,
PRIMARY KEY (`battlenetAccountId`, `renownRewardId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
@@ -0,0 +1,33 @@
--
-- Great Vault (Weekly Rewards) -- character-side persistence.
--
-- Backs WeeklyRewardsMgr (src/server/game/WeeklyRewards/WeeklyRewardsMgr.cpp) and
-- the prepared statements CHAR_SEL/REP_WEEKLY_REWARD_ACTIVITY and
-- CHAR_SEL/REP_WEEKLY_REWARD_STATE in CharacterDatabase.cpp. The tables were
-- previously only present on live characters DBs; this recreates them from the
-- live 12.0.7.68275 schema so a fresh realm can run the vault.
--
-- character_weekly_reward_activity stores one row per (character, period, row
-- type): row type 0 = Dungeon (Mythic+ runs), 1 = Raid (boss kills), 2 = World
-- (delves). `levels` is the comma-separated per-run levels (high->low) used to
-- derive each slot's reward level. Only the current period's rows are adopted at
-- load time; older periods are treated as stale.
-- character_weekly_reward_state stores the last period a reward was claimed for,
-- so a claim cannot be repeated within the same week.
--
CREATE TABLE IF NOT EXISTS `character_weekly_reward_activity` (
`ownerGuid` bigint unsigned NOT NULL,
`period` int unsigned NOT NULL DEFAULT 0,
`activityType` tinyint unsigned NOT NULL DEFAULT 0,
`count` int unsigned NOT NULL DEFAULT 0,
`bestLevel` int unsigned NOT NULL DEFAULT 0,
`levels` text COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (`ownerGuid`, `period`, `activityType`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `character_weekly_reward_state` (
`ownerGuid` bigint unsigned NOT NULL DEFAULT 0 COMMENT 'Character Global Unique Identifier',
`claimedPeriod` int unsigned NOT NULL DEFAULT 0 COMMENT 'Last weekly period a reward was claimed',
PRIMARY KEY (`ownerGuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System';
@@ -0,0 +1,31 @@
DELETE FROM `broadcast_text` WHERE `VerifiedBuild`>0 AND `ID` IN (311565, 311563, 311664, 311663);
INSERT INTO `broadcast_text` (`Text`, `Text1`, `ID`, `LanguageID`, `ConditionID`, `EmotesID`, `Flags`, `ChatBubbleDurationMs`, `VoiceOverPriorityID`, `SoundKitID1`, `SoundKitID2`, `EmoteID1`, `EmoteID2`, `EmoteID3`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `VerifiedBuild`) VALUES
('De relics are where dey belong. May de Tortollans rest easy.', '', 311565, 0, 0, 1, 256, 0, 13, 342101, 0, 0, 0, 0, 0, 0, 0, 70783),
('Our Tortollan allies have had their artifacts desecrated. We cannot allow disrespect for de dead!', '', 311563, 0, 0, 1, 256, 0, 13, 343936, 0, 0, 0, 0, 0, 0, 0, 70783),
('', 'Jan\'alai, guide our flame.', 311664, 0, 0, 1, 256, 0, 13, 0, 342123, 0, 0, 0, 0, 0, 0, 70783),
('', 'De snakes are hatching faster than we can destroy dem. Bring me fire.', 311663, 0, 0, 1, 256, 0, 13, 0, 343943, 0, 0, 0, 0, 0, 0, 70783);
DELETE FROM `broadcast_text` WHERE `VerifiedBuild`>0 AND `ID` IN (326289, 310562, 310561, 310559, 310557, 310551, 310548, 310616, 310614, 310619, 310618, 315909, 315908, 310612, 310611, 310542, 310541, 326255, 326257);
INSERT INTO `broadcast_text` (`Text`, `Text1`, `ID`, `LanguageID`, `ConditionID`, `EmotesID`, `Flags`, `ChatBubbleDurationMs`, `VoiceOverPriorityID`, `SoundKitID1`, `SoundKitID2`, `EmoteID1`, `EmoteID2`, `EmoteID3`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `VerifiedBuild`) VALUES
('There\'s barely anything edible left on these corpses. Even the bones have bites taken out of them.\n\nTroll, serpent, or otherwise-- everyone must have fled when the aqir arrived. And any who didn\'t flee quickly enough were devoured.', '', 326289, 0, 0, 0, 256, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 70961),
('', 'Of course. Even here, my faith is unwavering.', 310562, 0, 0, 0, 256, 0, 4, 0, 355231, 0, 0, 0, 0, 0, 0, 70961),
('', 'I hoped I would never enter dis cursed place again. Are you ready, my hash\'ura?', 310561, 0, 0, 0, 256, 0, 4, 0, 355230, 0, 0, 0, 0, 0, 0, 70961),
('', 'Kith\'ix awaits somewhere under this temple.', 310559, 0, 0, 0, 256, 0, 4, 0, 355229, 0, 0, 0, 0, 0, 0, 70961),
('', 'Hah! Weakling. De first victory for our \"small force.\"', 310557, 0, 0, 0, 256, 0, 4, 0, 355214, 0, 0, 0, 0, 0, 0, 70961),
('We will secure the rear. $n, go with Zul\'jarra and deal with that barrier.', '', 310551, 0, 0, 0, 256, 0, 4, 355216, 0, 0, 0, 0, 0, 0, 0, 70961),
('', 'These invaders will defile our lands no longer! For de Amani!', 310548, 0, 0, 0, 256, 0, 4, 0, 355215, 0, 0, 0, 0, 0, 0, 70961),
('', 'Good thing I had your back. Just like at de Sunwell.', 310616, 0, 0, 0, 256, 0, 4, 0, 355211, 0, 0, 0, 0, 0, 0, 70961),
('Damnable thing is smarter than it looks. It attacked from my blind side.', '', 310614, 0, 0, 0, 256, 0, 4, 355209, 0, 0, 0, 0, 0, 0, 0, 70961),
('I\'m glad I\'m on this side of those flames, for a change.', '', 310619, 0, 0, 0, 256, 0, 4, 355206, 0, 0, 0, 0, 0, 0, 0, 70961),
('Hah! Bring de whole swarm! They\'ll all burn in the fires of Jan\'alai!', '', 310618, 0, 0, 5, 256, 0, 4, 355205, 0, 0, 0, 0, 0, 0, 0, 70961),
('', 'You and Zul\'jarra are kin to me. I would not leave you both in need.', 315909, 0, 0, 0, 256, 0, 4, 0, 355213, 0, 0, 0, 0, 0, 0, 70961),
('', 'Thank you for joining our fight, Orweyna. I know this crisis doesn\'t concern the haranir.', 315908, 0, 0, 0, 256, 0, 4, 0, 355212, 0, 0, 0, 0, 0, 0, 70961),
('I\'ll... take that as a compliment.', '', 310612, 0, 0, 0, 256, 0, 4, 355208, 0, 0, 0, 0, 0, 0, 0, 70961),
('Looks like Liadrin\'s not de only elf who can fight!', '', 310611, 0, 0, 0, 256, 0, 4, 355207, 0, 0, 0, 0, 0, 0, 0, 70961),
('', 'You elves gonna learn to fight like de Amani. Try not to slow us down.', 310542, 0, 0, 0, 256, 0, 4, 0, 355203, 0, 0, 0, 0, 0, 0, 70961),
('', 'We\'ll scale the wall. Strike hard and fast.', 310541, 0, 0, 0, 256, 0, 4, 0, 355202, 0, 0, 0, 0, 0, 0, 70961),
('', 'Lo\'rthemar has personally ordered the deaths of many of my kin. To stand beside him, even now...\n\nBut Kith\'ix must die. Guide me, my hash\'ura. Let me lean on your wisdom where mine may fail.', 326255, 0, 0, 0, 256, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 70961),
('De Shadowpine may not stand for dis. Fightin\' alongside de elf-king and his lackeys... Pah.\n\nBut that\'s a problem for later. Kith\'ix is a problem for now.', '', 326257, 0, 0, 0, 256, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 70961);
File diff suppressed because one or more lines are too long
@@ -0,0 +1,209 @@
DELETE FROM `creature` WHERE `guid`=905286;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905286, 239676, 0, 15969, 16079, '0', 0, 0, 0, -1, 0, 0, 8612.53, -4702.21, 19.9317, 0.423587, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=255103;
REPLACE INTO `npc_text` (`ID`, `Probability0`, `Probability1`, `Probability2`, `Probability3`, `Probability4`, `Probability5`, `Probability6`, `Probability7`, `BroadcastTextId0`, `BroadcastTextId1`, `BroadcastTextId2`, `BroadcastTextId3`, `BroadcastTextId4`, `BroadcastTextId5`, `BroadcastTextId6`, `BroadcastTextId7`, `VerifiedBuild`) VALUES
(263707, 1, 0, 0, 0, 0, 0, 0, 0, 309877, 0, 0, 0, 0, 0, 0, 0, 70783), -- 260710 (Jelvik)
(263709, 1, 0, 0, 0, 0, 0, 0, 0, 309823, 0, 0, 0, 0, 0, 0, 0, 70783), -- 260557 (Wavemaster Mavani)
(263711, 1, 0, 0, 0, 0, 0, 0, 0, 309873, 0, 0, 0, 0, 0, 0, 0, 70783), -- 260710 (Jelvik)
(254599, 1, 0, 0, 0, 0, 0, 0, 0, 309871, 0, 0, 0, 0, 0, 0, 0, 70783), -- 260710 (Jelvik)
(263708, 1, 0, 0, 0, 0, 0, 0, 0, 309719, 0, 0, 0, 0, 0, 0, 0, 70783), -- 254635 (Maka the Trawler)
(254599, 1, 0, 0, 0, 0, 0, 0, 0, 309944, 0, 0, 0, 0, 0, 0, 0, 70783), -- 260226 (Ofi the Sly)
(263710, 1, 0, 0, 0, 0, 0, 0, 0, 309944, 0, 0, 0, 0, 0, 0, 0, 70783), -- 263327 (Ofi the Sly)
(254599, 1, 0, 0, 0, 0, 0, 0, 0, 319018, 0, 0, 0, 0, 0, 0, 0, 70783); -- 263327 (Ofi the Sly)
REPLACE INTO `gossip_menu` (`MenuID`, `TextID`, `VerifiedBuild`) VALUES
(42605, 263707, 70783), -- 260710 (Jelvik)
(42569, 263709, 70783), -- 260557 (Wavemaster Mavani)
(42606, 263711, 70783), -- 260710 (Jelvik)
(42607, 254599, 70783), -- 260710 (Jelvik)
(42535, 263708, 70783), -- 254635 (Maka the Trawler)
(42615, 254599, 70783), -- 260226 (Ofi the Sly)
(43917, 263710, 70783), -- 263327 (Ofi the Sly)
(43918, 254599, 70783); -- 263327 (Ofi the Sly)
REPLACE INTO `npc_text` (`ID`, `Probability0`, `Probability1`, `Probability2`, `Probability3`, `Probability4`, `Probability5`, `Probability6`, `Probability7`, `BroadcastTextId0`, `BroadcastTextId1`, `BroadcastTextId2`, `BroadcastTextId3`, `BroadcastTextId4`, `BroadcastTextId5`, `BroadcastTextId6`, `BroadcastTextId7`, `VerifiedBuild`) VALUES
(263707, 1, 0, 0, 0, 0, 0, 0, 0, 315025, 0, 0, 0, 0, 0, 0, 0, 70961), -- 263707 (Dusk Prowler Hano'mon)
(263709, 1, 0, 0, 0, 0, 0, 0, 0, 315057, 0, 0, 0, 0, 0, 0, 0, 70961), -- 263709 (Scout Kamaina)
(263711, 1, 0, 0, 0, 0, 0, 0, 0, 315063, 0, 0, 0, 0, 0, 0, 0, 70961), -- 263711 (Scout Ko'ruku)
(254599, 1, 1, 0, 0, 0, 0, 0, 0, 309944, 318856, 0, 0, 0, 0, 0, 0, 70961), -- 254599 (Ofi the Sly)
(263708, 1, 0, 0, 0, 0, 0, 0, 0, 315072, 0, 0, 0, 0, 0, 0, 0, 70961), -- 263708 (Wartusk A'pone)
(254599, 1, 0, 0, 0, 0, 0, 0, 0, 316841, 0, 0, 0, 0, 0, 0, 0, 70961), -- 254599 (Ofi the Sly)
(263710, 1, 0, 0, 0, 0, 0, 0, 0, 315074, 0, 0, 0, 0, 0, 0, 0, 70961), -- 263710 (Scout Uha'ne)
(254599, 1, 0, 0, 0, 0, 0, 0, 0, 316845, 0, 0, 0, 0, 0, 0, 0, 70961), -- 254599 (Ofi the Sly)
(254599, 1, 0, 0, 0, 0, 0, 0, 0, 316845, 0, 0, 0, 0, 0, 0, 0, 70961), -- 254599 (Ofi the Sly)
(260165, 1, 0, 0, 0, 0, 0, 0, 0, 326257, 0, 0, 0, 0, 0, 0, 0, 70961), -- 260165 (Tak'lejo)
(254599, 1, 0, 0, 0, 0, 0, 0, 0, 316845, 0, 0, 0, 0, 0, 0, 0, 70961), -- 254599 (Ofi the Sly)
(254599, 1, 0, 0, 0, 0, 0, 0, 0, 316846, 0, 0, 0, 0, 0, 0, 0, 70961), -- 254599 (Ofi the Sly)
(254599, 1, 0, 0, 0, 0, 0, 0, 0, 316846, 0, 0, 0, 0, 0, 0, 0, 70961), -- 254599 (Ofi the Sly)
(254599, 1, 0, 0, 0, 0, 0, 0, 0, 316846, 0, 0, 0, 0, 0, 0, 0, 70961), -- 254599 (Ofi the Sly)
(260164, 1, 0, 0, 0, 0, 0, 0, 0, 326255, 0, 0, 0, 0, 0, 0, 0, 70961), -- 260164 (Zul'jarra)
(254599, 1, 0, 0, 0, 0, 0, 0, 0, 316846, 0, 0, 0, 0, 0, 0, 0, 70961), -- 254599 (Ofi the Sly)
(263103, 1, 0, 0, 0, 0, 0, 0, 0, 326289, 0, 0, 0, 0, 0, 0, 0, 70961); -- 263103 (Halduron Brightwing)
REPLACE INTO `gossip_menu` (`MenuID`, `TextID`, `VerifiedBuild`) VALUES
(43253, 263707, 70961), -- 263707 (Dusk Prowler Hano'mon)
(43257, 263709, 70961), -- 263709 (Scout Kamaina)
(43258, 263711, 70961), -- 263711 (Scout Ko'ruku)
(43555, 254599, 70961), -- 254599 (Ofi the Sly)
(43259, 263708, 70961), -- 263708 (Wartusk A'pone)
(43556, 254599, 70961), -- 254599 (Ofi the Sly)
(43260, 263710, 70961), -- 263710 (Scout Uha'ne)
(43557, 254599, 70961), -- 254599 (Ofi the Sly)
(43558, 254599, 70961), -- 254599 (Ofi the Sly)
(44927, 260165, 70961), -- 260165 (Tak'lejo)
(43559, 254599, 70961), -- 254599 (Ofi the Sly)
(43560, 254599, 70961), -- 254599 (Ofi the Sly)
(43566, 254599, 70961), -- 254599 (Ofi the Sly)
(43570, 254599, 70961), -- 254599 (Ofi the Sly)
(43313, 260164, 70961), -- 260164 (Zul'jarra)
(43573, 254599, 70961), -- 254599 (Ofi the Sly)
(42765, 263103, 70961); -- 263103 (Halduron Brightwing)
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=261163;
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=261137;
UPDATE `creature_template` SET `unit_flags3` = 0 WHERE `unit_flags3` = 67108865;
UPDATE `creature_template` SET `unit_flags3` = 0 WHERE `unit_flags3` = 335544320;
UPDATE `creature_template` SET `unit_flags3` = 0 WHERE `unit_flags3` = 1073741825;
UPDATE `creature_template` SET `unit_flags3` = 0 WHERE `unit_flags3` = 67108864;
UPDATE `creature_template` SET `unit_flags3` = 0 WHERE `unit_flags3` = 134217728;
UPDATE `creature_template` SET `unit_flags3` = 0 WHERE `unit_flags3` = 1073741824;
UPDATE `creature_template` SET `unit_flags3` = 0 WHERE `unit_flags3` = 2147483648;
UPDATE `creature_template` SET `unit_flags3` = 0 WHERE `unit_flags3` = 1;
UPDATE `creature` SET `unit_flags3` = 0 WHERE `unit_flags3` = 67108865;
UPDATE `creature` SET `unit_flags3` = 0 WHERE `unit_flags3` = 335544320;
UPDATE `creature` SET `unit_flags3` = 0 WHERE `unit_flags3` = 1073741825;
UPDATE `creature` SET `unit_flags3` = 0 WHERE `unit_flags3` = 67108864;
UPDATE `creature` SET `unit_flags3` = 0 WHERE `unit_flags3` = 134217728;
UPDATE `creature` SET `unit_flags3` = 0 WHERE `unit_flags3` = 1073741824;
UPDATE `creature` SET `unit_flags3` = 0 WHERE `unit_flags3` = 2147483648;
UPDATE `creature` SET `unit_flags3` = 0 WHERE `unit_flags3` = 1;
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=261138;
UPDATE `creature_template` SET `faction`=35 WHERE `entry`=263102;
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=261169;
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=262282;
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=261136;
UPDATE `creature_template` SET `faction`=35 WHERE `entry`=263104;
UPDATE `creature_template` SET `faction`=35 WHERE `entry`=265180;
UPDATE `creature_template` SET `faction`=35 WHERE `entry`=263100;
UPDATE `creature_template` SET `faction`=35 WHERE `entry` IN (265468, 263107, 273832, 274777, 261215);
UPDATE `creature_template` SET `faction`=14 WHERE `entry` IN (261139, 261162, 261135, 265495, 265496);
UPDATE `creature_template` SET `faction`=35 WHERE `entry` IN (261146, 263099, 263101, 263103, 263108, 265463, 266102, 262519, 268250, 264293);
UPDATE `creature` SET `curHealthPct`=NULL WHERE `curHealthPct`=100;
DELETE FROM `areatrigger_template` WHERE (`IsCustom`=0 AND `Id` IN (44280,42836));
INSERT INTO `areatrigger_template` (`Id`, `IsCustom`, `VerifiedBuild`) VALUES
(44280, 0, 70783),
(42836, 0, 70783);
DELETE FROM `creature_template` WHERE `entry`=263098;
INSERT INTO `creature_template` (`entry`, `KillCredit1`, `KillCredit2`, `name`, `femaleName`, `subname`, `TitleAlt`, `IconName`, `RequiredExpansion`, `VignetteID`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Classification`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `unit_flags3`, `family`, `trainer_class`, `type`, `VehicleId`, `AIName`, `MovementType`, `ExperienceModifier`, `RacialLeader`, `movementId`, `WidgetSetID`, `WidgetSetUnitConditionID`, `RegenHealth`, `CreatureImmunitiesId`, `flags_extra`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (263098, 0, 0, '[DNT] Kill Credit', '', NULL, NULL, ' ', 0, 0, 35, 0, 1, 1.14286, 1, 1, 0, 2000, 0, 1, 1, 1, 0, 2048, 0, 0, 0, 7, 0, 'SmartAI', 0, 1, 0, 0, 0, 0, 0, 1, 0, '', '', 0);
DELETE FROM `creature_template` WHERE `entry`=276425;
INSERT INTO `creature_template` (`entry`, `KillCredit1`, `KillCredit2`, `name`, `femaleName`, `subname`, `TitleAlt`, `IconName`, `RequiredExpansion`, `VignetteID`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Classification`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `unit_flags3`, `family`, `trainer_class`, `type`, `VehicleId`, `AIName`, `MovementType`, `ExperienceModifier`, `RacialLeader`, `movementId`, `WidgetSetID`, `WidgetSetUnitConditionID`, `RegenHealth`, `CreatureImmunitiesId`, `flags_extra`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (276425, 0, 0, '[DNT] Kill Credit: Corpses investigated', '', NULL, NULL, ' ', 0, 0, 35, 0, 1, 1.14286, 1, 1, 0, 2000, 0, 1, 1, 1, 0, 2048, 0, 0, 0, 7, 0, 'SmartAI', 0, 1, 0, 0, 0, 0, 0, 1, 0, '', '', 0);
DELETE FROM `creature_template` WHERE `entry`=261223;
INSERT INTO `creature_template` (`entry`, `KillCredit1`, `KillCredit2`, `name`, `femaleName`, `subname`, `TitleAlt`, `IconName`, `RequiredExpansion`, `VignetteID`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Classification`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `unit_flags3`, `family`, `trainer_class`, `type`, `VehicleId`, `AIName`, `MovementType`, `ExperienceModifier`, `RacialLeader`, `movementId`, `WidgetSetID`, `WidgetSetUnitConditionID`, `RegenHealth`, `CreatureImmunitiesId`, `flags_extra`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (261223, 0, 0, '[DNT] Kill Credit 1', '', NULL, NULL, ' ', 0, 0, 35, 0, 1, 1.14286, 1, 1, 0, 2000, 0, 1, 1, 1, 0, 2048, 0, 0, 0, 7, 0, 'SmartAI', 0, 1, 0, 0, 0, 0, 0, 1, 0, '', '', 0);
DELETE FROM `creature_template` WHERE `entry`=265842;
INSERT INTO `creature_template` (`entry`, `KillCredit1`, `KillCredit2`, `name`, `femaleName`, `subname`, `TitleAlt`, `IconName`, `RequiredExpansion`, `VignetteID`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Classification`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `unit_flags3`, `family`, `trainer_class`, `type`, `VehicleId`, `AIName`, `MovementType`, `ExperienceModifier`, `RacialLeader`, `movementId`, `WidgetSetID`, `WidgetSetUnitConditionID`, `RegenHealth`, `CreatureImmunitiesId`, `flags_extra`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (265842, 0, 0, '[DNT] Kill Credit: Vignette 3', '', NULL, NULL, ' ', 0, 0, 35, 0, 1, 1.14286, 1, 1, 0, 2000, 0, 1, 1, 1, 0, 2048, 0, 0, 0, 7, 0, 'SmartAI', 0, 1, 0, 0, 0, 0, 0, 1, 0, '', '', 0);
DELETE FROM `creature_template` WHERE `entry`=261224;
INSERT INTO `creature_template` (`entry`, `KillCredit1`, `KillCredit2`, `name`, `femaleName`, `subname`, `TitleAlt`, `IconName`, `RequiredExpansion`, `VignetteID`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Classification`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `unit_flags3`, `family`, `trainer_class`, `type`, `VehicleId`, `AIName`, `MovementType`, `ExperienceModifier`, `RacialLeader`, `movementId`, `WidgetSetID`, `WidgetSetUnitConditionID`, `RegenHealth`, `CreatureImmunitiesId`, `flags_extra`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (261224, 0, 0, '[DNT] Kill Credit 2', '', NULL, NULL, ' ', 0, 0, 35, 0, 1, 1.14286, 1, 1, 0, 2000, 0, 1, 1, 1, 0, 2048, 0, 0, 0, 7, 0, 'SmartAI', 0, 1, 0, 0, 0, 0, 0, 1, 0, '', '', 0);
DELETE FROM `creature_template` WHERE `entry`=265843;
INSERT INTO `creature_template` (`entry`, `KillCredit1`, `KillCredit2`, `name`, `femaleName`, `subname`, `TitleAlt`, `IconName`, `RequiredExpansion`, `VignetteID`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Classification`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `unit_flags3`, `family`, `trainer_class`, `type`, `VehicleId`, `AIName`, `MovementType`, `ExperienceModifier`, `RacialLeader`, `movementId`, `WidgetSetID`, `WidgetSetUnitConditionID`, `RegenHealth`, `CreatureImmunitiesId`, `flags_extra`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (265843, 0, 0, '[DNT] Kill Credit: Vignette 3B', '', NULL, NULL, ' ', 0, 0, 35, 0, 1, 1.14286, 1, 1, 0, 2000, 0, 1, 1, 1, 0, 2048, 0, 0, 0, 7, 0, 'SmartAI', 0, 1, 0, 0, 0, 0, 0, 1, 0, '', '', 0);
DELETE FROM `creature_template` WHERE `entry`=261225;
INSERT INTO `creature_template` (`entry`, `KillCredit1`, `KillCredit2`, `name`, `femaleName`, `subname`, `TitleAlt`, `IconName`, `RequiredExpansion`, `VignetteID`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Classification`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `unit_flags3`, `family`, `trainer_class`, `type`, `VehicleId`, `AIName`, `MovementType`, `ExperienceModifier`, `RacialLeader`, `movementId`, `WidgetSetID`, `WidgetSetUnitConditionID`, `RegenHealth`, `CreatureImmunitiesId`, `flags_extra`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (261225, 0, 0, '[DNT] Kill Credit Midpoint', '', NULL, NULL, ' ', 0, 0, 35, 0, 1, 1.14286, 1, 1, 0, 2000, 0, 1, 1, 1, 0, 2048, 0, 0, 0, 7, 0, 'SmartAI', 0, 1, 0, 0, 0, 0, 0, 1, 0, '', '', 0);
DELETE FROM `creature_template` WHERE `entry`=262521;
INSERT INTO `creature_template` (`entry`, `KillCredit1`, `KillCredit2`, `name`, `femaleName`, `subname`, `TitleAlt`, `IconName`, `RequiredExpansion`, `VignetteID`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Classification`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `unit_flags3`, `family`, `trainer_class`, `type`, `VehicleId`, `AIName`, `MovementType`, `ExperienceModifier`, `RacialLeader`, `movementId`, `WidgetSetID`, `WidgetSetUnitConditionID`, `RegenHealth`, `CreatureImmunitiesId`, `flags_extra`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (262521, 0, 0, '[DNT] Kill Credit - Barrier Destroyed', '', NULL, NULL, ' ', 0, 0, 35, 0, 1, 1.14286, 1, 1, 0, 2000, 0, 1, 1, 1, 0, 2048, 0, 0, 0, 7, 0, 'SmartAI', 0, 1, 0, 0, 0, 0, 0, 1, 0, '', '', 0);
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=254599;
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=254605;
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=260226;
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=260710;
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=261088;
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=263327;
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=263674;
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=263675;
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=264945;
UPDATE `creature_template` SET `npcflag`=131 WHERE `entry`=276362;
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=254376;
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=264070;
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=264944;
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=267451;
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=274777;
UPDATE `creature_template` SET `npcflag`=1 WHERE `entry`=268250;
DELETE FROM `creature_template_model` WHERE `CreatureID`=262352 AND `Idx`=0;
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES (262352, 0, 52318, 1, 1, 0);
DELETE FROM `creature_template_model` WHERE `CreatureID`=262963 AND `Idx`=0;
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES (262963, 0, 76224, 1, 1, 0);
DELETE FROM `creature_template_model` WHERE `CreatureID`=262509 AND `Idx`=0;
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES (262509, 0, 52318, 1, 1, 0);
DELETE FROM `creature_template_model` WHERE `CreatureID`=262517 AND `Idx`=0;
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES (262517, 0, 52318, 1, 1, 0);
DELETE FROM `creature_template_model` WHERE `CreatureID`=262349 AND `Idx`=0;
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES (262349, 0, 52318, 1, 1, 0);
DELETE FROM `creature_template_model` WHERE `CreatureID`=262350 AND `Idx`=0;
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES (262350, 0, 52318, 1, 1, 0);
UPDATE `gameobject_template` SET `Data30`='0' WHERE `entry`=676645;
-- Creature 165189 has a non-existing spell (id 2) in spell slot 1 of creature_template_spell.
DELETE FROM `creature_template_spell` WHERE `CreatureID`=165189 AND `Index`=0;
-- SPELL_AURA_CONTROL_VEHICLE (46598) must not be stored in creature_template_addon: the ride aura is
-- applied through npc_spellclick_spells. The three vehicle templates also need a spellclick row,
-- otherwise their vehicle_template_accessory entry is rejected at load time.
UPDATE `creature_template_addon` SET `auras`='' WHERE `entry` IN (268250,264293,257863);
DELETE FROM `npc_spellclick_spells` WHERE `npc_entry` IN (268249,264294,257864) AND `spell_id`=46598;
INSERT INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `user_type`) VALUES
(268249, 46598, 1, 0), -- Soup Pot
(264294, 46598, 1, 0), -- Abducted Tortollan
(257864, 46598, 1, 0); -- Exalted Skyfiend
-- Disallowed UNIT_FLAG (0x8000) on these spawns; the server strips it at load time anyway.
UPDATE `creature` SET `unit_flags`=`unit_flags` & ~0x8000 WHERE `guid` IN (905163,905189);
UPDATE `creature` SET `unit_flags2`=`unit_flags2` & ~0x8000 WHERE `guid`=905103;
-- Serverside PlayerCondition 150584 does not exist, the display spell needs no condition.
UPDATE `quest_reward_display_spell` SET `PlayerConditionID`=0 WHERE `QuestID`=91206 AND `SpellID`=1276570;
-- Choice rewards point at items that are not present in this build's ItemSparse
-- (96936 -> 275436; 86636 -> 248034, 248035, 248036, 248037).
UPDATE `quest_template` SET `RewardChoiceItemID1`=0, `RewardChoiceItemQuantity1`=0 WHERE `ID`=96936;
UPDATE `quest_template` SET `RewardChoiceItemID1`=0, `RewardChoiceItemQuantity1`=0,
`RewardChoiceItemID2`=0, `RewardChoiceItemQuantity2`=0,
`RewardChoiceItemID3`=0, `RewardChoiceItemQuantity3`=0,
`RewardChoiceItemID4`=0, `RewardChoiceItemQuantity4`=0 WHERE `ID`=86636;
-- All-zero target positions are unusable placeholders (Play Scene, Return to Camp, Send Taxi).
DELETE FROM `spell_target_position` WHERE `ID` IN (450046,312372,383937) AND `PositionX`=0 AND `PositionY`=0 AND `PositionZ`=0;
-- Conversation actors flagged as world objects but with no spawn guid (GUID 0 never resolves).
DELETE FROM `conversation_actors` WHERE `ConversationActorGuid`=0 AND `CreatureId`=0 AND `NoActorObject`=0 AND `ActivePlayerObject`=0;
-- Conversation 25752 has no first line: there is no line data for it in this build.
DELETE FROM `conversation_template` WHERE `Id`=25752 AND `FirstLineId`=0;
-- Orphaned ruRU player choice response translations (choices 781-784 do not exist).
DELETE FROM `playerchoice_response_locale` WHERE `ChoiceID` IN (781,782,783,784);
-- Quest loot rows with zero min/max counts.
UPDATE `creature_loot_template` SET `MinCount`=1, `MaxCount`=1 WHERE `Entry` IN (235561,235563,238369) AND `Item`=254665 AND `MinCount`=0 AND `MaxCount`=0;
@@ -0,0 +1,633 @@
-- A Missing Member
SET @ENTRY := 93511;
INSERT IGNORE INTO `quest_template_addon` (`ID`) VALUES (@ENTRY);
UPDATE `quest_template_addon` SET `ScriptName` = 'SmartQuest' WHERE `ID` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 5 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 5, 0, 0, 47, 0, 100, 0, 0, 0, 0, 0, 0, 171, 93511, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On quest accepted - Player who accepted: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 93511 AND `SourceId` = 5;
-- Naleidea Rivergleam smart ai
SET @ENTRY := 242398;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 62, 0, 100, 0, 41594, 0, 0, 0, 0, 33, 230350, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 41594 selected - Gossip player: Give kill credit Trash Pile (230350)', ''),
(@ENTRY, 0, 1, 0, 62, 0, 100, 0, 41594, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 41594 selected - Gossip player: Close gossip', ''),
(@ENTRY, 0, 2, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 33, 242398, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Give kill credit Naleidea Rivergleam (242398)', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 242398 AND `SourceId` = 0;
UPDATE `quest_objectives` SET `Type`=0 WHERE `ID`=466659;
UPDATE `quest_objectives` SET `Type`=0 WHERE `ID`=466660;
DELETE FROM `creature` WHERE `guid`=905287;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905287, 254565, 0, 15969, 16079, '0', 0, 0, 0, -1, 0, 0, 8309.21, -4809.35, 74.7024, 0.717009, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
-- Delver's Guide smart ai
SET @ENTRY := 254565;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 62, 0, 100, 0, 41163, 0, 0, 0, 0, 33, 254565, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 41163 selected - Gossip player: Give kill credit Delver\'s Guide (254565)', ''),
(@ENTRY, 0, 1, 0, 62, 0, 100, 0, 41163, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 41163 selected - Gossip player: Close gossip', ''),
(@ENTRY, 0, 2, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 33, 242399, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Give kill credit Telemancer Astrandis (242399)', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 254565 AND `SourceId` = 0;
DELETE FROM `creature_questender` WHERE `id`=242381 AND `quest`=93501;
INSERT INTO `creature_questender` (`id`, `quest`, `VerifiedBuild`) VALUES (242381, 93501, 0);
DELETE FROM `creature_questender` WHERE `id` = 242381;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(242381, 91918),
(242381, 93501),
(242381, 93511),
(242381, 93519),
(242381, 93525),
(242381, 97321),
(242381, 97454),
(242381, 97482);
-- Nelthius Shadestone smart ai
SET @ENTRY := 254616;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 62, 0, 100, 0, 41247, 0, 0, 0, 0, 153, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 41247 selected - Self: Credit quest objective talk to', ''),
(@ENTRY, 0, 1, 0, 62, 0, 100, 0, 41247, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 41247 selected - Gossip player: Close gossip', ''),
(@ENTRY, 0, 2, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 171, 93453, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 254616 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
(22, 3, 254616, 0, 0, 9, 0, 93453, 0, 0, '', 0, 'Action invoker has quest A Grave Concern (93453) active');
DELETE FROM `creature` WHERE `guid`=905288;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905288, 250181, 0, 15969, 16099, '0', 0, 0, 0, -1, 0, 0, 9096.52, -4277.39, 14.2058, 2.5314, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=1 WHERE `entry`=249794;
DELETE FROM `creature_template_gossip` WHERE `CreatureID`=249794 AND `MenuID`=1;
INSERT INTO `creature_template_gossip` (`CreatureID`, `MenuID`, `VerifiedBuild`) VALUES (249794, 1, 47936);
-- Emberstrike smart ai
SET @ENTRY := 249794;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 171, 92122, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 249794 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
(22, 1, 249794, 0, 0, 9, 0, 92122, 0, 0, '', 0, 'Action invoker has quest Beneath the Sunsails (92122) active');
-- Salandria smart ai
SET @ENTRY := 242893;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 171, 90552, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 242893 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
(22, 1, 242893, 0, 0, 9, 0, 90552, 0, 0, '', 0, 'Action invoker has quest Interrogation (90552) active');
-- Valdekar Solaar smart ai
SET @ENTRY := 245745;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 62, 0, 100, 0, 39561, 0, 0, 0, 0, 33, 247293, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 39561 selected - Gossip player: Give kill credit Kill Credit 1 (247293)', ''),
(@ENTRY, 0, 1, 0, 62, 0, 100, 0, 39561, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 39561 selected - Gossip player: Close gossip', ''),
(@ENTRY, 0, 2, 0, 62, 0, 100, 0, 39561, 1, 0, 0, 0, 33, 247294, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 1 from menu 39561 selected - Gossip player: Give kill credit Kill Credit 2 (247294)', ''),
(@ENTRY, 0, 3, 0, 62, 0, 100, 0, 39561, 1, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 1 from menu 39561 selected - Gossip player: Close gossip', ''),
(@ENTRY, 0, 4, 0, 62, 0, 100, 0, 39561, 2, 0, 0, 0, 33, 247295, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 2 from menu 39561 selected - Gossip player: Give kill credit Kill Credit 3 (247295)', ''),
(@ENTRY, 0, 5, 0, 62, 0, 100, 0, 39561, 2, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 2 from menu 39561 selected - Gossip player: Close gossip', ''),
(@ENTRY, 0, 6, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 171, 91271, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 245745 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
(22, 7, 245745, 0, 0, 9, 0, 91271, 0, 0, '', 0, 'Action invoker has quest A Fish! (91271) active');
UPDATE `creature_template` SET `unit_flags`=0, `unit_flags2`=0 WHERE `entry`=246679;
-- Cataloger Truesight smart ai
SET @ENTRY := 258381;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 171, 94630, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 258381 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
(22, 1, 258381, 0, 0, 9, 0, 94630, 0, 0, '', 0, 'Action invoker has quest Work It (94630) active');
DELETE FROM `creature` WHERE `guid`=905289;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905289, 266443, 0, 15968, 16334, '0', 0, 0, 0, -1, 0, 0, 5738.36, -5698.45, 195.891, 4.48222, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
-- Fresh Blood smart ai
SET @ENTRY := 266443;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 73, 0, 100, 0, 0, 0, 0, 0, 0, 33, 266443, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On spellclick - Clicker: Give kill credit Fresh Blood (266443)', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 266443 AND `SourceId` = 0;
DELETE FROM `creature` WHERE `guid`=905290;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905290, 266444, 0, 15968, 16334, '0', 0, 0, 0, -1, 0, 0, 5780.98, -5705.52, 198.413, 1.02585, 300, 0, 0, 100, 0, NULL, 33024, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905291;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905291, 266444, 0, 15968, 16334, '0', 0, 0, 0, -1, 0, 0, 5797.47, -5690.7, 195.545, 1.52065, 300, 0, 0, 100, 0, NULL, 33024, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `unit_flags`=0, `unit_flags2`=0 WHERE `entry`=266444;
UPDATE `creature_template` SET `KillCredit1`=266444 WHERE `entry`=266444;
DELETE FROM `creature` WHERE `guid`=905292;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905292, 266445, 0, 15968, 16334, '0', 0, 0, 0, -1, 0, 0, 5784.34, -5669.23, 190.748, 2.20594, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
-- Fresh Blood smart ai
SET @ENTRY := 266443;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 73, 0, 100, 0, 0, 0, 0, 0, 0, 171, 96591, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On spellclick - Clicker: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 266443 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
(22, 1, 266443, 0, 0, 9, 0, 96591, 0, 0, '', 0, 'Action invoker has quest Prey: Venom Ambush (96591) active');
UPDATE `creature_template` SET `KillCredit1`=249967, `faction`=14 WHERE `entry`=249965;
DELETE FROM `creature` WHERE `guid`=905293;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905293, 249965, 0, 15968, 16052, '0', 0, 0, 0, -1, 0, 0, 5008.12, -5525.02, 166.798, 4.20516, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905294;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905294, 249965, 0, 15968, 16052, '0', 0, 0, 0, -1, 0, 0, 5001.91, -5567.52, 169.461, 4.4177, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905295;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905295, 249965, 0, 15968, 16052, '0', 0, 0, 0, -1, 0, 0, 5003.41, -5569.37, 170.709, 4.4177, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905296;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905296, 249965, 0, 15968, 16052, '0', 0, 0, 0, -1, 0, 0, 4967.81, -5553.22, 170.716, 3.00302, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905297;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905297, 249965, 0, 15968, 16052, '0', 0, 0, 0, -1, 0, 0, 4983.61, -5581.32, 173.451, 5.43038, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905298;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905298, 249965, 0, 15968, 16052, '0', 0, 0, 0, -1, 0, 0, 5031.97, -5611.93, 176.425, 0.41781, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905299;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905299, 249965, 0, 15968, 16052, '0', 0, 0, 0, -1, 0, 0, 5056.43, -5616.19, 177.19, 0.982195, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905300;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905300, 249965, 0, 15968, 16052, '0', 0, 0, 0, -1, 0, 0, 5063.04, -5604.15, 176.478, 0.776268, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905301;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905301, 249965, 0, 15968, 16052, '0', 0, 0, 0, -1, 0, 0, 5108.18, -5559.25, 167.805, 2.34534, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905302;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905302, 249965, 0, 15968, 16052, '0', 0, 0, 0, -1, 0, 0, 5115.57, -5539.76, 167.107, 2.76267, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905303;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905303, 249965, 0, 15968, 16052, '0', 0, 0, 0, -1, 0, 0, 5089.86, -5513.96, 166.524, 2.4738, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905304;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905304, 249965, 0, 15968, 16052, '0', 0, 0, 0, -1, 0, 0, 5018.41, -5543.11, 167.344, 4.28979, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905305;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905305, 274915, 0, 15968, 15968, '0', 0, 0, 0, -1, 0, 0, 5632.86, -5778.7, 225.303, 5.38779, 300, 0, 0, 100, 0, NULL, 32768, 16384, NULL, '', NULL, 0);
-- Dangers Untold and Hardships Unnumbered
SET @ENTRY := 98832;
INSERT IGNORE INTO `quest_template_addon` (`ID`) VALUES (@ENTRY);
UPDATE `quest_template_addon` SET `ScriptName` = 'SmartQuest' WHERE `ID` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 5 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 5, 0, 0, 47, 0, 100, 0, 0, 0, 0, 0, 0, 171, 98832, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On quest accepted - Player who accepted: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 98832 AND `SourceId` = 5;
UPDATE `creature_template` SET `unit_flags`=0, `unit_flags2`=0 WHERE `entry`=247391;
UPDATE `creature_template` SET `unit_flags`=0, `unit_flags2`=0 WHERE `entry`=248102;
UPDATE `creature_template` SET `KillCredit1`=247391 WHERE `entry`=247389;
UPDATE `gameobject_template` SET `Data1`=568505, `Data30`=0 WHERE `entry`=568505;
UPDATE gameobject_template SET data1 = 568505 WHERE entry = 568505 AND type IN (3, 50);
DELETE FROM `gameobject_loot_template` WHERE `entry` = 568505;
INSERT INTO `gameobject_loot_template` (`entry`, `Item`, `ItemType`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(568505, 249491, 0, 100, 1, 1, 0, 1, 1, 'Mysterious Bloom');
UPDATE `creature_template_difficulty` SET `StaticFlags1`='0' WHERE `Entry`=237392;
UPDATE `creature_template_difficulty` SET `TypeFlags`=0, `TypeFlags2`=0, `StaticFlags5`=0 WHERE `Entry`=237392;
UPDATE `creature` SET `unit_flags`=0, `unit_flags2`=0 WHERE `guid`=904523;
-- A Soiree to Remember
SET @ENTRY := 97622;
INSERT IGNORE INTO `quest_template_addon` (`ID`) VALUES (@ENTRY);
UPDATE `quest_template_addon` SET `ScriptName` = 'SmartQuest' WHERE `ID` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 5 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 5, 0, 0, 47, 0, 100, 0, 0, 0, 0, 0, 0, 171, 97622, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On quest accepted - Player who accepted: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 97622 AND `SourceId` = 5;
DELETE FROM `creature` WHERE `guid`=905319;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905319, 240240, 0, 16215, 16754, '0', 0, 0, 0, -1, 0, 0, 10769.9, -4616.59, 35.3988, 6.16549, 300, 0, 0, 99, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905320;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905320, 237563, 0, 16215, 16526, '0', 0, 0, 0, -1, 0, 0, 11028.8, -4644.71, 34.1191, 2.10484, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905321;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905321, 242609, 0, 16215, 16526, '0', 0, 0, 0, -1, 0, 0, 11033.8, -4642.46, 34.1191, 2.36753, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905322;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905322, 242614, 0, 16215, 16526, '0', 0, 0, 0, -1, 0, 0, 11039.1, -4639.92, 34.1191, 2.5831, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905323;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905323, 248317, 0, 16215, 16526, '0', 0, 0, 0, -1, 0, 0, 11043.8, -4636.19, 34.1191, 2.62112, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905324;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905324, 248323, 0, 16215, 16526, '0', 0, 0, 0, -1, 0, 0, 11047.3, -4631.78, 34.1191, 2.90607, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905325;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905325, 242608, 0, 16215, 16526, '0', 0, 0, 0, -1, 0, 0, 11049.8, -4628.58, 34.1191, 2.90607, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905326;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905326, 242613, 0, 16215, 16526, '0', 0, 0, 0, -1, 0, 0, 11052.2, -4623.33, 34.1191, 2.92791, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905327;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905327, 248322, 0, 16215, 16526, '0', 0, 0, 0, -1, 0, 0, 11053.3, -4617.16, 34.1191, 3.15395, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905328;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905328, 248326, 0, 16215, 16526, '0', 0, 0, 0, -1, 0, 0, 11052.7, -4610.49, 34.1191, 3.41644, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905329;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905329, 242606, 0, 16215, 16526, '0', 0, 0, 0, -1, 0, 0, 11051.2, -4604.62, 34.1191, 3.46797, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905330;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905330, 242610, 0, 16215, 16526, '0', 0, 0, 0, -1, 0, 0, 11049, -4599.23, 34.1191, 3.75354, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905331;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905331, 242615, 0, 16215, 16526, '0', 0, 0, 0, -1, 0, 0, 11045.7, -4594.13, 34.1191, 3.92743, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
SET @ENTRY := 242610;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 8, 0, 100, 0, 0, 0, 0, 0, 0, 33, 237563, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On any spell hit - Caster: Give kill credit Sunwell Channeler (237563)', '');
SET @ENTRY := 242615;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 8, 0, 100, 0, 0, 0, 0, 0, 0, 33, 237563, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On any spell hit - Caster: Give kill credit Sunwell Channeler (237563)', '');
SET @ENTRY := 242606;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 8, 0, 100, 0, 0, 0, 0, 0, 0, 33, 237563, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On any spell hit - Caster: Give kill credit Sunwell Channeler (237563)', '');
SET @ENTRY := 248326;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 8, 0, 100, 0, 0, 0, 0, 0, 0, 33, 237563, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On any spell hit - Caster: Give kill credit Sunwell Channeler (237563)', '');
SET @ENTRY := 242613;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 8, 0, 100, 0, 0, 0, 0, 0, 0, 33, 237563, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On any spell hit - Caster: Give kill credit Sunwell Channeler (237563)', '');
SET @ENTRY := 248322;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 8, 0, 100, 0, 0, 0, 0, 0, 0, 33, 237563, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On any spell hit - Caster: Give kill credit Sunwell Channeler (237563)', '');
SET @ENTRY := 242608;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 8, 0, 100, 0, 0, 0, 0, 0, 0, 33, 237563, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On any spell hit - Caster: Give kill credit Sunwell Channeler (237563)', '');
SET @ENTRY := 248323;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 8, 0, 100, 0, 0, 0, 0, 0, 0, 33, 237563, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On any spell hit - Caster: Give kill credit Sunwell Channeler (237563)', '');
SET @ENTRY := 248317;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 8, 0, 100, 0, 0, 0, 0, 0, 0, 33, 237563, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On any spell hit - Caster: Give kill credit Sunwell Channeler (237563)', '');
SET @ENTRY := 242614;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 8, 0, 100, 0, 0, 0, 0, 0, 0, 33, 237563, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On any spell hit - Caster: Give kill credit Sunwell Channeler (237563)', '');
SET @ENTRY := 242609;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 8, 0, 100, 0, 0, 0, 0, 0, 0, 33, 237563, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On any spell hit - Caster: Give kill credit Sunwell Channeler (237563)', '');
-- Sunwell Channeler smart ai
SET @ENTRY := 237563;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 8, 0, 100, 0, 0, 0, 0, 0, 0, 33, 237563, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On any spell hit - Caster: Give kill credit Sunwell Channeler (237563)', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 237563 AND `SourceId` = 0;
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=240240;
DELETE FROM `creature` WHERE `guid`=905332;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905332, 237594, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2258.73, -5261.33, 80.0521, 1.83942, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=237731;
DELETE FROM `creature` WHERE `guid`=905333;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905333, 237731, 0, 139, 2622, '0', 0, 0, 0, -1, 0, 0, 2297.1, -5190.2, 79.4653, 6.00265, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905334;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905334, 237731, 0, 139, 2622, '0', 0, 0, 0, -1, 0, 0, 2318.54, -5194.77, 73.8949, 6.0683, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905335;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905335, 237731, 0, 139, 2622, '0', 0, 0, 0, -1, 0, 0, 2326.29, -5196.46, 74.6047, 6.0683, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905336;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905336, 237731, 0, 139, 2622, '0', 0, 0, 0, -1, 0, 0, 2351.84, -5193.29, 75.242, 0.105405, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905337;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905337, 237731, 0, 139, 2622, '0', 0, 0, 0, -1, 0, 0, 2356.81, -5197.89, 76.7678, 0.105405, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905338;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905338, 237731, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2369.06, -5213.96, 79.2528, 6.17543, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905339;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905339, 237731, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2392.79, -5212.71, 74.3346, 6.17543, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905340;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905340, 237731, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2393.55, -5205.66, 73.6128, 6.17543, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905341;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905341, 237731, 0, 139, 2269, '0', 0, 0, 0, -1, 0, 0, 2394.41, -5197.68, 73.6351, 6.17543, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905342;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905342, 237731, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2381.85, -5228.6, 77.8392, 3.52485, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905343;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905343, 237731, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2372.94, -5227.5, 80.8542, 3.08593, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905344;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905344, 237731, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2365.96, -5236.73, 82.7985, 3.08593, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905345;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905345, 237731, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2359.67, -5236.38, 85.1875, 3.08593, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905346;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905346, 237731, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2346.89, -5235.97, 85.9368, 3.11955, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `faction`=7 WHERE `entry`=237739;
DELETE FROM `creature` WHERE `guid`=905347;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905347, 237739, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2321.61, -5234.12, 84.5903, 3.20643, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905348;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905348, 237739, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2311.33, -5230.54, 84.7474, 3.02261, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905349;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905349, 237739, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2305.38, -5229.83, 85.0345, 3.02261, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905350;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905350, 237739, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2311.75, -5211.63, 82.8811, 1.38677, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905351;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905351, 237739, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2307.88, -5210.91, 83.2281, 1.38677, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905352;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905352, 237739, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2303.84, -5210.16, 83.5193, 1.38677, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905353;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905353, 237739, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2296.87, -5208.86, 83.8132, 1.38677, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905354;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905354, 237739, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2290.83, -5207.73, 83.1123, 1.38677, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905355;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905355, 237739, 0, 139, 2622, '0', 0, 0, 0, -1, 0, 0, 2281.51, -5180.22, 78.1819, 2.2884, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905356;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905356, 237739, 0, 139, 2622, '0', 0, 0, 0, -1, 0, 0, 2278.31, -5180.79, 78.7036, 2.2884, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905357;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905357, 237739, 0, 139, 2622, '0', 0, 0, 0, -1, 0, 0, 2279.55, -5177.17, 77.8879, 2.2884, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905358;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905358, 237739, 0, 139, 2622, '0', 0, 0, 0, -1, 0, 0, 2252.41, -5174.77, 77.8157, 3.27628, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905359;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905359, 237739, 0, 139, 2622, '0', 0, 0, 0, -1, 0, 0, 2253.13, -5180.08, 77.8876, 3.27628, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
-- Relics of Paladins Past
SET @ENTRY := 86841;
INSERT IGNORE INTO `quest_template_addon` (`ID`) VALUES (@ENTRY);
UPDATE `quest_template_addon` SET `ScriptName` = 'SmartQuest' WHERE `ID` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 5 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 5, 0, 0, 47, 0, 100, 0, 0, 0, 0, 0, 0, 171, 86841, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On quest accepted - Player who accepted: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 86841 AND `SourceId` = 5;
DELETE FROM `creature` WHERE `guid`=905360;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905360, 237601, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2264.25, -5258.1, 80.1666, 2.30464, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=1 WHERE `entry`=241255;
DELETE FROM `creature` WHERE `guid`=905361;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905361, 241255, 0, 139, 2268, '0', 0, 0, 0, -1, 0, 0, 2255.51, -5259.42, 79.4594, 0.835805, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=1 WHERE `entry`=240714;
DELETE FROM `creature_template_gossip` WHERE `CreatureID`=240714 AND `MenuID`=1;
INSERT INTO `creature_template_gossip` (`CreatureID`, `MenuID`, `VerifiedBuild`) VALUES (240714, 1, 47936);
-- Alonsus Faol smart ai
SET @ENTRY := 240714;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 1, 64, 0, 100, 0, 0, 0, 0, 0, 0, 33, 242627, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Give kill credit Kill Credit (242627)', ''),
(@ENTRY, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 33, 240714, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Give kill credit Alonsus Faol (240714)', ''),
(@ENTRY, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 33, 248044, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Give kill credit Kill Credit: Enter Scarlet Halls (248044)', ''),
(@ENTRY, 0, 3, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 134, 1225740, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Cast spell 1225740 on Gossip player', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 240714 AND `SourceId` = 0;
DELETE FROM `creature` WHERE `guid`=905363;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905363, 241311, 2857, 16170, 16170, '0', 0, 0, 0, -1, 0, 0, 1068.82, 512.266, 2.82022, 4.98618, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905364;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905364, 237602, 2857, 16170, 16170, '0', 0, 0, 0, -1, 0, 0, 1071.11, 512.563, 2.82024, 4.56662, 300, 0, 0, 99, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
SET @CGUID := 905365;
DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+93;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `VerifiedBuild`) VALUES
(@CGUID+0, 237772, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1072.90771484375, 472.962799072265625, 2.81580352783203125, 4.104837417602539062, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Initiate (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+1, 241333, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1079.53125, 461.088531494140625, 2.899120807647705078, 2.313182353973388671, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Training Dummy (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 98892 - Training Dummy Marker, 349892 - [DNT] No Parry)
(@CGUID+2, 241333, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1093.4322509765625, 493.72222900390625, 2.912626266479492187, 4.752705574035644531, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Training Dummy (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 98892 - Training Dummy Marker, 349892 - [DNT] No Parry)
(@CGUID+3, 237772, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1068.998291015625, 494.640625, 2.903526782989501953, 2.880689620971679687, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Initiate (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+4, 237772, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1071.719970703125, 470.75299072265625, 2.852402925491333007, 4.549538612365722656, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Initiate (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+5, 241333, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1119.5694580078125, 472.84375, 2.90561842918395996, 4.8051300048828125, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Training Dummy (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 98892 - Training Dummy Marker, 349892 - [DNT] No Parry)
(@CGUID+6, 237772, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1078.2135009765625, 462.8663330078125, 2.896471261978149414, 5.350249767303466796, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Initiate (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+7, 241336, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1149.5677490234375, 506.076385498046875, 13.56304836273193359, 0, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- [DNT] VFX Bunny (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 1227047 - Make Folks Talk)
(@CGUID+8, 241333, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1090.1353759765625, 461.673614501953125, 2.907283782958984375, 6.237911701202392578, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Training Dummy (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 98892 - Training Dummy Marker, 349892 - [DNT] No Parry)
(@CGUID+9, 241333, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1078.12158203125, 505.744781494140625, 2.904584169387817382, 3.121410131454467773, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Training Dummy (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 98892 - Training Dummy Marker, 349892 - [DNT] No Parry)
(@CGUID+10, 241311, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1067.0035400390625, 513.16143798828125, 2.905481815338134765, 4.948701381683349609, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Arator (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+11, 237772, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1071.426025390625, 470.897979736328125, 2.850205183029174804, 4.720537662506103515, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Initiate (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+12, 241333, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1123.2882080078125, 472.795135498046875, 2.90528273582458496, 4.818989753723144531, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Training Dummy (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 98892 - Training Dummy Marker, 349892 - [DNT] No Parry)
(@CGUID+13, 241333, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1065.7135009765625, 469.470489501953125, 2.888126850128173828, 0.002296710154041647, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Training Dummy (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 98892 - Training Dummy Marker, 349892 - [DNT] No Parry)
(@CGUID+14, 241333, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1106.578125, 485.8194580078125, 2.916867494583129882, 3.121410131454467773, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Training Dummy (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 98892 - Training Dummy Marker, 349892 - [DNT] No Parry)
(@CGUID+15, 241333, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1089.9166259765625, 466.364593505859375, 2.908885955810546875, 6.263463973999023437, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Training Dummy (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 98892 - Training Dummy Marker, 349892 - [DNT] No Parry)
(@CGUID+16, 241333, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1066.5850830078125, 481.329864501953125, 2.884289979934692382, 0.164876297116279602, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Training Dummy (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 98892 - Training Dummy Marker, 349892 - [DNT] No Parry)
(@CGUID+17, 241333, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1089.9132080078125, 470.135406494140625, 2.910707950592041015, 0.039288550615310668, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Training Dummy (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 98892 - Training Dummy Marker, 349892 - [DNT] No Parry)
(@CGUID+18, 241333, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1067.236083984375, 495.111114501953125, 2.904322385787963867, 6.092909812927246093, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Training Dummy (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 98892 - Training Dummy Marker, 349892 - [DNT] No Parry)
(@CGUID+19, 237602, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1064.3992919921875, 511.539947509765625, 2.905458450317382812, 0, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Alonsus Faol (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+20, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1165.9583740234375, 526.6492919921875, 14.44105148315429687, 1.790907621383666992, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: )
(@CGUID+21, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1165.9583740234375, 529.23614501953125, 14.44105148315429687, 4.532293319702148437, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: )
(@CGUID+22, 237772, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1092.203125, 462.192718505859375, 2.923376083374023437, 3.387557506561279296, 120, 10, 0, 1, NULL, NULL, NULL, NULL, 69497), -- Scarlet Initiate (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (possible waypoints or random movement)
(@CGUID+23, 241336, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1165.8350830078125, 527.51739501953125, 14.44105148315429687, 0, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- [DNT] VFX Bunny (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 1227047 - Make Folks Talk)
(@CGUID+24, 237783, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1111.267333984375, 465.614593505859375, 2.905420780181884765, 3.078854560852050781, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Instructor Meyer (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+25, 237802, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1151.4254150390625, 504.833343505859375, 13.56305885314941406, 2.63514566421508789, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Cleric (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+26, 237782, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1147.71875, 503.885406494140625, 13.56303215026855468, 0.930152118206024169, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Mage (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+27, 237782, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1149.37158203125, 509.0625, 13.56302833557128906, 4.549993038177490234, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Mage (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+28, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1166.6041259765625, 451.660919189453125, 13.10625553131103515, 6.023822784423828125, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+29, 237802, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1167.2083740234375, 455.67486572265625, 13.08858394622802734, 2.275841712951660156, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Cleric (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+30, 237782, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1164.6009521484375, 449.890899658203125, 13, 0.301610052585601806, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Mage (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+31, 241336, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1168.595458984375, 549.77081298828125, 14.44106864929199218, 0, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- [DNT] VFX Bunny (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 1227047 - Make Folks Talk)
(@CGUID+32, 237782, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1169.279541015625, 550.64410400390625, 14.44107532501220703, 4.21048736572265625, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Mage (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+33, 237782, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1167.5850830078125, 548.68927001953125, 14.44106197357177734, 1.058568120002746582, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Mage (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+34, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1166.0242919921875, 492.69097900390625, 12.9017181396484375, 1.484823107719421386, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+35, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1168.595458984375, 492.692718505859375, 12.90172004699707031, 5.687850475311279296, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+36, 237802, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1167.41845703125, 494.11285400390625, 12.9017181396484375, 1.781175136566162109, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Cleric (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+37, 237803, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1206.38720703125, 444.104156494140625, 1.071199655532836914, 3.153148174285888671, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Champion Aelyse (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+38, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1212.03125, 464.421875, 6.165938854217529296, 4.52934885025024414, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+39, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1211.829833984375, 423.75, 6.165946483612060546, 1.955879807472229003, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+40, 237783, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1110.26513671875, 465.67755126953125, 2.936793327331542968, 3.078854560852050781, 120, 10, 0, 1, NULL, NULL, NULL, NULL, 69497), -- Instructor Meyer (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: ) (possible waypoints or random movement)
(@CGUID+41, 237802, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1226.46240234375, 553.59051513671875, 12.96416282653808593, 6.180940151214599609, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Cleric (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+42, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1234.6473388671875, 551.0596923828125, 12.841796875, 1.951457858085632324, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+43, 237802, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1235.53857421875, 549.67510986328125, 12.81478595733642578, 6.148268699645996093, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Cleric (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+44, 237782, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1234.6055908203125, 549.46539306640625, 12.78446865081787109, 2.266116619110107421, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Mage (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+45, 241336, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1220.234375, 558.9305419921875, 12.88215923309326171, 5.715266227722167968, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- [DNT] VFX Bunny (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 1227047 - Make Folks Talk)
(@CGUID+46, 241336, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1194.3836669921875, 555.40625, 12.90005683898925781, 0, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- [DNT] VFX Bunny (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 1227047 - Make Folks Talk)
(@CGUID+47, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1187.98095703125, 521.25177001953125, 12.92143630981445312, 1.455841422080993652, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+48, 237802, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1189.9427490234375, 517.9774169921875, 12.91297340393066406, 1.753818273544311523, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Cleric (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+49, 237782, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1192.263916015625, 520.9461669921875, 12.91863059997558593, 2.606502294540405273, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Mage (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+50, 238033, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1299.045166015625, 549.73785400390625, 12.87776088714599609, 2.945408105850219726, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Abbot Benthar (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: )
(@CGUID+51, 237602, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1257.545166015625, 539.46527099609375, 12.90941810607910156, 0.747036933898925781, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Alonsus Faol (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: 1225808 - Bubble)
(@CGUID+52, 237803, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1215.4912109375, 453.635650634765625, 4.215534210205078125, 1.44863903522491455, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Champion Aelyse (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+53, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1195.0972900390625, 554.1632080078125, 12.90016937255859375, 2.385694742202758789, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+54, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1193.638916015625, 556.3055419921875, 12.90084362030029296, 5.51696014404296875, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+55, 238033, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1299.045166015625, 549.73785400390625, 12.87776088714599609, 2.945408105850219726, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Abbot Benthar (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+56, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1217.578369140625, 545.99139404296875, 12.86764335632324218, 0.345936506986618041, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+57, 237802, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1219.5977783203125, 547.206298828125, 12.87717056274414062, 3.299502372741699218, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Cleric (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+58, 237782, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1217.1859130859375, 549.42059326171875, 12.8854990005493164, 4.360137939453125, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Mage (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+59, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1212.03125, 464.421875, 6.165938854217529296, 4.52934885025024414, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+60, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1167.3797607421875, 468.454254150390625, 13, 4.734096527099609375, 120, 10, 0, 1, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (possible waypoints or random movement)
(@CGUID+61, 237802, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1165.90673828125, 472.464874267578125, 12.99928665161132812, 4.584270477294921875, 120, 10, 0, 1, NULL, NULL, NULL, NULL, 69497), -- Scarlet Cleric (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (possible waypoints or random movement)
(@CGUID+62, 237782, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1168.247802734375, 474.39422607421875, 12.99773597717285156, 4.630152702331542968, 120, 10, 0, 1, NULL, NULL, NULL, NULL, 69497), -- Scarlet Mage (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (possible waypoints or random movement)
(@CGUID+63, 237802, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1219.16845703125, 559.388916015625, 12.88561344146728515, 5.79669189453125, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Cleric (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+64, 237802, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1221.1666259765625, 557.74652099609375, 12.87736797332763671, 2.665425777435302734, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Cleric (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+65, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1166.0242919921875, 492.69097900390625, 12.9017181396484375, 1.484823107719421386, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+66, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1168.595458984375, 492.692718505859375, 12.90172004699707031, 5.687850475311279296, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+67, 237802, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1167.41845703125, 494.11285400390625, 12.9017181396484375, 1.781175136566162109, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Cleric (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+68, 237803, 2857, 16170, 16170, '0', '0', 0, 0, 2, 1206.38720703125, 444.104156494140625, 1.071199655532836914, 3.153148174285888671, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Champion Aelyse (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+69, 237772, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1120.510009765625, 469.665008544921875, 2.984375, 1.240459322929382324, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Initiate (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+70, 237783, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1120.7696533203125, 471.9310302734375, 2.984375, 0.674840092658996582, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Instructor Meyer (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+71, 237772, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1113.2733154296875, 468.564117431640625, 2.984375, 3.276542186737060546, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Initiate (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+72, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1126.3441162109375, 450.7822265625, 2.885828733444213867, 6.245869159698486328, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+73, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1122.520263671875, 455.35919189453125, 2.832918882369995117, 0.548931360244750976, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+74, 237772, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1103.513916015625, 485.842010498046875, 2.941077470779418945, 6.27582550048828125, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Initiate (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+75, 237772, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1101.5015869140625, 465.51910400390625, 2.984374761581420898, 6.190574169158935546, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Initiate (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+76, 237772, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1098.2618408203125, 467.57794189453125, 2.976217031478881835, 5.94821929931640625, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Initiate (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+77, 237772, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1098.4488525390625, 473.137237548828125, 2.984374761581420898, 0.359637558460235595, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Initiate (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+78, 237772, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1093.3233642578125, 490.560699462890625, 2.984375, 0.768268227577209472, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Initiate (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+79, 237772, 2857, 16170, 16170, '0', '0', 0, 0, 0, 1093.6544189453125, 489.447174072265625, 2.984375, 1.229294419288635253, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Initiate (Area: Scarlet Halls - Difficulty: 0) CreateObject1
(@CGUID+80, 237782, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1167.5850830078125, 548.68927001953125, 14.44106197357177734, 1.058568120002746582, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Mage (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+81, 237782, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1169.279541015625, 550.64410400390625, 14.44107532501220703, 4.21048736572265625, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Mage (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+82, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1137.326416015625, 445.44964599609375, 2.987866878509521484, 3.2510528564453125, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2
(@CGUID+83, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1137.21533203125, 442.859375, 2.944033384323120117, 3.2510528564453125, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2
(@CGUID+84, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1187.98095703125, 521.25177001953125, 12.92143630981445312, 1.455841422080993652, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+85, 237802, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1189.9427490234375, 517.9774169921875, 12.91297340393066406, 1.753818273544311523, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Cleric (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+86, 237782, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1192.263916015625, 520.9461669921875, 12.91863059997558593, 2.606502294540405273, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Mage (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+87, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1166.8773193359375, 502.589935302734375, 13.25536632537841796, 1.485016345977783203, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: )
(@CGUID+88, 237802, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1167.3775634765625, 501.305908203125, 13.05148792266845703, 1.512166261672973632, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Cleric (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: )
(@CGUID+89, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1167.8701171875, 498.861419677734375, 13.0000009536743164, 1.724788427352905273, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject1 (Auras: )
(@CGUID+90, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1165.9583740234375, 529.23614501953125, 14.44105148315429687, 4.532293319702148437, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+91, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1165.9583740234375, 526.6492919921875, 14.44105148315429687, 1.790907621383666992, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+92, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1195.0972900390625, 554.1632080078125, 12.90016937255859375, 2.385694742202758789, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497), -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
(@CGUID+93, 237801, 2857, 16170, 16170, '0', '0', 0, 0, 1, 1193.638916015625, 556.3055419921875, 12.90084362030029296, 5.51696014404296875, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 69497); -- Scarlet Footman (Area: Scarlet Halls - Difficulty: 0) CreateObject2 (Auras: )
UPDATE `creature` SET `curHealthPct`=NULL WHERE `curHealthPct`=100;
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=237783;
UPDATE creature_template_difficulty SET lootid = 237783 WHERE entry = 237783 AND lootid = 0;
DELETE FROM `creature_loot_template` WHERE `entry` = 237783;
INSERT INTO `creature_loot_template` (`entry`, `Item`, `ItemType`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(237783, 235911, 0, 0.02251238, 0, 3, 0, 1, 1, 'Weathered Mysterious Satchel'),
(237783, 236963, 0, 3, 0, 3, 0, 1, 2, 'Bright Linen'),
(237783, 237017, 0, 0.02251238, 0, 3, 0, 1, 1, 'Arcanoweave'),
(237783, 237018, 0, 0.09004953, 0, 3, 0, 1, 1, 'Arcanoweave'),
(237783, 237579, 0, 100, 1, 3, 0, 1, 1, 'Meyer''s Rod of Castigation'),
(237783, 245831, 0, 0.04502476, 0, 3, 0, 1, 1, 'Two of Hunt'),
(237783, 245832, 0, 0.09004953, 0, 3, 0, 1, 1, 'Three of Hunt'),
(237783, 245833, 0, 0.06753714, 0, 3, 0, 1, 1, 'Four of Hunt'),
(237783, 245834, 0, 0.02251238, 0, 3, 0, 1, 1, 'Five of Hunt'),
(237783, 245835, 0, 0.04502476, 0, 3, 0, 1, 1, 'Six of Hunt'),
(237783, 245839, 0, 0.04502476, 0, 3, 0, 1, 1, 'Two of Void'),
(237783, 245840, 0, 0.06753714, 0, 3, 0, 1, 1, 'Three of Void'),
(237783, 245842, 0, 0.02251238, 0, 3, 0, 1, 1, 'Five of Void'),
(237783, 245843, 0, 0.02251238, 0, 3, 0, 1, 1, 'Six of Void'),
(237783, 245844, 0, 0.02251238, 0, 3, 0, 1, 1, 'Seven of Void'),
(237783, 245845, 0, 0.04502476, 0, 3, 0, 1, 1, 'Eight of Void'),
(237783, 245848, 0, 0.04502476, 0, 3, 0, 1, 1, 'Two of Rot'),
(237783, 245849, 0, 0.1125619, 0, 3, 0, 1, 1, 'Three of Rot'),
(237783, 245851, 0, 0.02251238, 0, 3, 0, 1, 1, 'Five of Rot'),
(237783, 245852, 0, 0.09004953, 0, 3, 0, 1, 1, 'Six of Rot'),
(237783, 245856, 0, 0.04502476, 0, 3, 0, 1, 1, 'Ace of Blood'),
(237783, 245857, 0, 0.02251238, 0, 3, 0, 1, 1, 'Two of Blood'),
(237783, 245858, 0, 0.04502476, 0, 3, 0, 1, 1, 'Three of Blood'),
(237783, 245860, 0, 0.04502476, 0, 3, 0, 1, 1, 'Five of Blood'),
(237783, 245862, 0, 0.02251238, 0, 3, 0, 1, 1, 'Seven of Blood'),
(237783, 245863, 0, 0.04502476, 0, 3, 0, 1, 1, 'Eight of Blood'),
(237783, 258848, 0, 0.06753714, 0, 3, 0, 1, 1, 'Stained Girdle'),
(237783, 258849, 0, 0.2026114, 0, 3, 0, 1, 1, 'Stained Headguard'),
(237783, 258850, 0, 0.1125619, 0, 3, 0, 1, 1, 'Stained Fistguards'),
(237783, 258851, 0, 0.09004953, 0, 3, 0, 1, 1, 'Stained Hauberk'),
(237783, 258852, 0, 0.02251238, 0, 3, 0, 1, 1, 'Stained Greaves'),
(237783, 258853, 0, 0.1125619, 0, 3, 0, 1, 1, 'Stained Sabatons'),
(237783, 258854, 0, 0.1800991, 0, 3, 0, 1, 1, 'Stained Pauldrons'),
(237783, 258855, 0, 0.1125619, 0, 3, 0, 1, 1, 'Stained Armguards'),
(237783, 258856, 0, 0.1350743, 0, 3, 0, 1, 1, 'Threadbare Mantle'),
(237783, 258857, 0, 0.2251238, 0, 3, 0, 1, 1, 'Threadbare Sash'),
(237783, 258858, 0, 0.09004953, 0, 3, 0, 1, 1, 'Threadbare Crown'),
(237783, 258859, 0, 0.06753714, 0, 3, 0, 1, 1, 'Threadbare Mitts'),
(237783, 258860, 0, 0.06753714, 0, 3, 0, 1, 1, 'Threadbare Leggings'),
(237783, 258861, 0, 0.04502476, 0, 3, 0, 1, 1, 'Threadbare Slippers'),
(237783, 258862, 0, 0.1350743, 0, 3, 0, 1, 1, 'Threadbare Vestments'),
(237783, 258863, 0, 0.06753714, 0, 3, 0, 1, 1, 'Threadbare Armbands'),
(237783, 258864, 0, 0.2701486, 0, 3, 0, 1, 1, 'Brittle Waistguard'),
(237783, 258865, 0, 0.1125619, 0, 3, 0, 1, 1, 'Brittle Breastplate'),
(237783, 258866, 0, 0.1800991, 0, 3, 0, 1, 1, 'Brittle Gauntlets'),
(237783, 258867, 0, 0.06753714, 0, 3, 0, 1, 1, 'Brittle Faceguard'),
(237783, 258868, 0, 0.02251238, 0, 3, 0, 1, 1, 'Brittle Legguards'),
(237783, 258869, 0, 0.09004953, 0, 3, 0, 1, 1, 'Brittle Pauldrons'),
(237783, 258870, 0, 0.09004953, 0, 3, 0, 1, 1, 'Brittle Warboots'),
(237783, 258871, 0, 0.06753714, 0, 3, 0, 1, 1, 'Brittle Armplates'),
(237783, 258872, 0, 0.06753714, 0, 3, 0, 1, 1, 'Frayed Wristwraps'),
(237783, 258873, 0, 0.1575867, 0, 3, 0, 1, 1, 'Frayed Tunic'),
(237783, 258874, 0, 0.1350743, 0, 3, 0, 1, 1, 'Frayed Shoulderpads'),
(237783, 258875, 0, 0.1575867, 0, 3, 0, 1, 1, 'Frayed Britches'),
(237783, 258876, 0, 0.06753714, 0, 3, 0, 1, 1, 'Frayed Guise'),
(237783, 258877, 0, 0.09004953, 0, 3, 0, 1, 1, 'Frayed Handwraps'),
(237783, 258878, 0, 0.09004953, 0, 3, 0, 1, 1, 'Frayed Boots'),
(237783, 258879, 0, 0.1800991, 0, 3, 0, 1, 1, 'Frayed Strap'),
(237783, 266216, 0, 0.06753714, 0, 3, 0, 1, 1, 'Threadbare Cloak'),
(237783, 266221, 0, 0.1125619, 0, 3, 0, 1, 1, 'Frayed Shroud'),
(237783, 266223, 0, 0.04502476, 0, 3, 0, 1, 1, 'Stained Drape'),
(237783, 266224, 0, 0.1125619, 0, 3, 0, 1, 1, 'Brittle Cape');
@@ -0,0 +1,801 @@
UPDATE creature_template_difficulty SET lootid = 238033 WHERE entry = 238033 AND lootid = 0;
DELETE FROM `creature_loot_template` WHERE `entry` = 238033;
INSERT INTO `creature_loot_template` (`entry`, `Item`, `ItemType`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(238033, 236963, 0, 1.28415, 0, 1, 0, 1, 2, 'Bright Linen'),
(238033, 237015, 0, 0.02379819, 0, 1, 0, 1, 1, 'Sunfire Silk'),
(238033, 237016, 0, 0.02379819, 0, 1, 0, 1, 1, 'Sunfire Silk'),
(238033, 237018, 0, 0.07139458, 0, 1, 0, 1, 1, 'Arcanoweave'),
(238033, 237576, 0, 100, 1, 3, 0, 1, 1, 'Benthar''s Scarlet Spire'),
(238033, 245831, 0, 0.07139458, 0, 1, 0, 1, 1, 'Two of Hunt'),
(238033, 245832, 0, 0.04759638, 0, 1, 0, 1, 1, 'Three of Hunt'),
(238033, 245833, 0, 0.04759638, 0, 1, 0, 1, 1, 'Four of Hunt'),
(238033, 245834, 0, 0.04759638, 0, 1, 0, 1, 1, 'Five of Hunt'),
(238033, 245836, 0, 0.02379819, 0, 1, 0, 1, 1, 'Seven of Hunt'),
(238033, 245837, 0, 0.02379819, 0, 1, 0, 1, 1, 'Eight of Hunt'),
(238033, 245839, 0, 0.07139458, 0, 1, 0, 1, 1, 'Two of Void'),
(238033, 245840, 0, 0.07139458, 0, 1, 0, 1, 1, 'Three of Void'),
(238033, 245841, 0, 0.02379819, 0, 1, 0, 1, 1, 'Four of Void'),
(238033, 245843, 0, 0.02379819, 0, 1, 0, 1, 1, 'Six of Void'),
(238033, 245847, 0, 0.02379819, 0, 1, 0, 1, 1, 'Ace of Rot'),
(238033, 245848, 0, 0.02379819, 0, 1, 0, 1, 1, 'Two of Rot'),
(238033, 245850, 0, 0.04759638, 0, 1, 0, 1, 1, 'Four of Rot'),
(238033, 245851, 0, 0.07139458, 0, 1, 0, 1, 1, 'Five of Rot'),
(238033, 245852, 0, 0.02379819, 0, 1, 0, 1, 1, 'Six of Rot'),
(238033, 245853, 0, 0.02379819, 0, 1, 0, 1, 1, 'Seven of Rot'),
(238033, 245854, 0, 0.02379819, 0, 1, 0, 1, 1, 'Eight of Rot'),
(238033, 245856, 0, 0.02379819, 0, 1, 0, 1, 1, 'Ace of Blood'),
(238033, 245857, 0, 0.04759638, 0, 1, 0, 1, 1, 'Two of Blood'),
(238033, 245858, 0, 0.07139458, 0, 1, 0, 1, 1, 'Three of Blood'),
(238033, 245860, 0, 0.04759638, 0, 1, 0, 1, 1, 'Five of Blood'),
(238033, 245861, 0, 0.07139458, 0, 1, 0, 1, 1, 'Six of Blood'),
(238033, 245862, 0, 0.02379819, 0, 1, 0, 1, 1, 'Seven of Blood'),
(238033, 258848, 0, 0.09519277, 0, 1, 0, 1, 1, 'Stained Girdle'),
(238033, 258849, 0, 0.09519277, 0, 1, 0, 1, 1, 'Stained Headguard'),
(238033, 258850, 0, 0.04759638, 0, 1, 0, 1, 1, 'Stained Fistguards'),
(238033, 258851, 0, 0.09519277, 0, 1, 0, 1, 1, 'Stained Hauberk'),
(238033, 258852, 0, 0.09519277, 0, 1, 0, 1, 1, 'Stained Greaves'),
(238033, 258853, 0, 0.118991, 0, 1, 0, 1, 1, 'Stained Sabatons'),
(238033, 258854, 0, 0.07139458, 0, 1, 0, 1, 1, 'Stained Pauldrons'),
(238033, 258855, 0, 0.1427892, 0, 1, 0, 1, 1, 'Stained Armguards'),
(238033, 258856, 0, 0.09519277, 0, 1, 0, 1, 1, 'Threadbare Mantle'),
(238033, 258857, 0, 0.04759638, 0, 1, 0, 1, 1, 'Threadbare Sash'),
(238033, 258858, 0, 0.09519277, 0, 1, 0, 1, 1, 'Threadbare Crown'),
(238033, 258859, 0, 0.1903855, 0, 1, 0, 1, 1, 'Threadbare Mitts'),
(238033, 258860, 0, 0.04759638, 0, 1, 0, 1, 1, 'Threadbare Leggings'),
(238033, 258861, 0, 0.09519277, 0, 1, 0, 1, 1, 'Threadbare Slippers'),
(238033, 258862, 0, 0.02379819, 0, 1, 0, 1, 1, 'Threadbare Vestments'),
(238033, 258863, 0, 0.09519277, 0, 1, 0, 1, 1, 'Threadbare Armbands'),
(238033, 258864, 0, 0.1665873, 0, 1, 0, 1, 1, 'Brittle Waistguard'),
(238033, 258865, 0, 0.1427892, 0, 1, 0, 1, 1, 'Brittle Breastplate'),
(238033, 258866, 0, 0.04759638, 0, 1, 0, 1, 1, 'Brittle Gauntlets'),
(238033, 258867, 0, 0.1427892, 0, 1, 0, 1, 1, 'Brittle Faceguard'),
(238033, 258868, 0, 0.02379819, 0, 1, 0, 1, 1, 'Brittle Legguards'),
(238033, 258869, 0, 0.04759638, 0, 1, 0, 1, 1, 'Brittle Pauldrons'),
(238033, 258870, 0, 0.118991, 0, 1, 0, 1, 1, 'Brittle Warboots'),
(238033, 258871, 0, 0.09519277, 0, 1, 0, 1, 1, 'Brittle Armplates'),
(238033, 258872, 0, 0.09519277, 0, 1, 0, 1, 1, 'Frayed Wristwraps'),
(238033, 258873, 0, 0.2141837, 0, 1, 0, 1, 1, 'Frayed Tunic'),
(238033, 258874, 0, 0.07139458, 0, 1, 0, 1, 1, 'Frayed Shoulderpads'),
(238033, 258875, 0, 0.04759638, 0, 1, 0, 1, 1, 'Frayed Britches'),
(238033, 258876, 0, 0.118991, 0, 1, 0, 1, 1, 'Frayed Guise'),
(238033, 258877, 0, 0.09519277, 0, 1, 0, 1, 1, 'Frayed Handwraps'),
(238033, 258878, 0, 0.1427892, 0, 1, 0, 1, 1, 'Frayed Boots'),
(238033, 258879, 0, 0.2855783, 0, 1, 0, 1, 1, 'Frayed Strap'),
(238033, 266216, 0, 0.1427892, 0, 1, 0, 1, 1, 'Threadbare Cloak'),
(238033, 266221, 0, 0.2379819, 0, 1, 0, 1, 1, 'Frayed Shroud'),
(238033, 266223, 0, 0.09519277, 0, 1, 0, 1, 1, 'Stained Drape'),
(238033, 266224, 0, 0.1903855, 0, 1, 0, 1, 1, 'Brittle Cape');
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=237602;
DELETE FROM `gameobject` WHERE `guid`=224465;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224465, 584668, 2857, 16170, 16170, '0', 0, 0, 0, -1, 1265.71, 543.412, 12.7927, 1.9579, 0, 0, 0.829913, 0.557893, 300, 255, 1, 0, '', NULL, 0);
UPDATE `gameobject_template` SET `Data0`=1312050 WHERE `entry`=584668;
-- Portal to Silvermoon City smart ai
SET @ENTRY := 584668;
UPDATE `gameobject_template` SET `AIName` = 'SmartGameObjectAI' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 1 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 33, 250066, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Give kill credit Kill Credit: Portal Taken to Silvermoon (250066)', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 584668 AND `SourceId` = 1;
DELETE FROM `creature` WHERE `guid`=905459;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905459, 251355, 0, 16215, 16754, '0', 0, 0, 0, -1, 0, 0, 10768.4, -4613.52, 35.3997, 0.0729879, 300, 0, 0, 99, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=1 WHERE `entry`=248322;
DELETE FROM `creature` WHERE `guid`=905460;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905460, 248322, 0, 16215, 16526, '0', 0, 0, 0, -1, 0, 0, 11014.6, -4581.68, 34.1203, 4.98882, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
REPLACE INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`Difficulties`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`event_param_string`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`action_param7`,`action_param_string`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_param_string`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(248322,0,1,0,'',62,0,100,0,39955,0,0,0,0,'',33,248322,0,0,0,0,0,0,NULL,7,0,0,0,0,NULL,0,0,0,0,'Salandria - gossip menu 39955 OptionID 0 (GossipOptionID 134853, Take this sword) credits 86902 objective 248322 (Relic given to Salandria): #155481 CMSG_GOSSIP_SELECT_OPTION 15:44:10.287 -> #155494 SMSG_QUEST_UPDATE_ADD_CREDIT VictimGUID entry 248322'),
(248322,0,2,0,'',62,0,100,0,39955,0,0,0,0,'',72,0,0,0,0,0,0,0,NULL,7,0,0,0,0,NULL,0,0,0,0,'Salandria - close the gossip menu after the select (retail SMSG_GOSSIP_COMPLETE 15:44:13.248)');
UPDATE `creature_template` SET `npcflag`=1 WHERE `entry`=248326;
REPLACE INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`Difficulties`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`event_param_string`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`action_param7`,`action_param_string`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_param_string`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(248326,0,1,0,'',62,0,100,0,39959,0,0,0,0,'',33,248326,0,0,0,0,0,0,NULL,7,0,0,0,0,NULL,0,0,0,0,'Valunei - gossip menu 39959 OptionID 0 (GossipOptionID 134855, Vindicator Maraad found peac) credits 86902 objective 248326 (Relic given to Valunei): #157106 CMSG_GOSSIP_SELECT_OPTION 15:44:34.694 -> #157130 SMSG_QUEST_UPDATE_ADD_CREDIT VictimGUID entry 248326'),
(248326,0,2,0,'',62,0,100,0,39959,0,0,0,0,'',72,0,0,0,0,0,0,0,NULL,7,0,0,0,0,NULL,0,0,0,0,'Valunei - close the gossip menu after the select (retail SMSG_GOSSIP_COMPLETE 15:44:44.016)');
UPDATE `creature_template` SET `npcflag`=1 WHERE `entry`=248323;
REPLACE INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`Difficulties`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`event_param_string`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`action_param7`,`action_param_string`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_param_string`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(248323,0,1,0,'',62,0,100,0,39326,0,0,0,0,'',33,248323,0,0,0,0,0,0,NULL,7,0,0,0,0,NULL,0,0,0,0,'Taelia Fordragon - gossip menu 39326 OptionID 0 (GossipOptionID 134818, I have a relic to sustain yo) credits 86902 objective 248323 (Relic given to Taelia): #156831 CMSG_GOSSIP_SELECT_OPTION 15:44:29.644 -> #156854 SMSG_QUEST_UPDATE_ADD_CREDIT VictimGUID entry 248323'),
(248323,0,2,0,'',62,0,100,0,39326,0,0,0,0,'',72,0,0,0,0,0,0,0,NULL,7,0,0,0,0,NULL,0,0,0,0,'Taelia Fordragon - close the gossip menu after the select (retail SMSG_GOSSIP_COMPLETE 15:44:33.284)');
UPDATE `creature_template` SET `npcflag`=1 WHERE `entry`=248321;
DELETE FROM `creature` WHERE `guid`=905461;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905461, 248321, 0, 16215, 16526, '0', 0, 0, 0, -1, 0, 0, 11007.8, -4582.68, 34.1197, 5.22108, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=1 WHERE `entry`=248408;
DELETE FROM `creature` WHERE `guid`=905462;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905462, 248408, 0, 16215, 16526, '0', 0, 0, 0, -1, 0, 0, 11002.1, -4583.55, 34.1197, 5.17286, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `quest_objectives` SET `Type`=0 WHERE `ID`=469671;
-- Aelyse smart ai
SET @ENTRY := 248408;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 171, 86902, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 248408 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
(22, 1, 248408, 0, 0, 9, 0, 86902, 0, 0, '', 0, 'Action invoker has quest Relinquishing Relics (86902) active');
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=251355;
DELETE FROM `gameobject` WHERE `guid`=224466;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224466, 570777, 0, 16215, 16754, '0', 0, 0, 0, -1, 10759.6, -4616.81, 35.5039, 0.0756134, 0, 0, 0.0377977, 0.999285, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905463;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905463, 245186, 2796, 15716, 15719, '0', 0, 0, 0, -1, 0, 0, -1012.74, -3519.96, 61.4103, 4.84642, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224467;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224467, 525458, 2796, 15716, 15719, '0', 0, 0, 0, -1, -1029.4, -3536, 57.2703, 0.273901, 0, 0, 0.136523, 0.990637, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224468;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224468, 525458, 2796, 15716, 15719, '0', 0, 0, 0, -1, -1025.84, -3534.23, 57.433, 0.336592, 0, 0, 0.167503, 0.985872, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224469;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224469, 525458, 2796, 15716, 15719, '0', 0, 0, 0, -1, -1021.13, -3533.33, 57.3556, 0.336592, 0, 0, 0.167503, 0.985872, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224470;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224470, 525458, 2796, 15716, 15719, '0', 0, 0, 0, -1, -1015.36, -3531.32, 57.1739, 0.336592, 0, 0, 0.167503, 0.985872, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224471;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224471, 525458, 2796, 15716, 15719, '0', 0, 0, 0, -1, -1007.38, -3554.01, 56.5829, 5.25822, 0, 0, 0.490343, -0.871529, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224472;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224472, 525458, 2796, 15716, 15719, '0', 0, 0, 0, -1, -998.359, -3551.69, 58.0158, 0.116539, 0, 0, 0.0582365, 0.998303, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224473;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224473, 525458, 2796, 15716, 15719, '0', 0, 0, 0, -1, -992.237, -3549.56, 57.6845, 0.302211, 0, 0, 0.150531, 0.988605, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224474;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224474, 525458, 2796, 15716, 15719, '0', 0, 0, 0, -1, -980.127, -3532.89, 57.1952, 0.931373, 0, 0, 0.449036, 0.893514, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224475;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224475, 525459, 2796, 15716, 15719, '0', 0, 0, 0, -1, -975.396, -3530.18, 56.7455, 1.74033, 0, 0, 0.764436, 0.644699, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224476;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224476, 525459, 2796, 15716, 15719, '0', 0, 0, 0, -1, -985.252, -3504.87, 57.3795, 1.93668, 0, 0, 0.823947, 0.566667, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224477;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224477, 525459, 2796, 15716, 15719, '0', 0, 0, 0, -1, -974.831, -3490.08, 55.2459, 0.960585, 0, 0, 0.462039, 0.88686, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224478;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224478, 525459, 2796, 15716, 15719, '0', 0, 0, 0, -1, -967.047, -3480.11, 55.2114, 0.910636, 0, 0, 0.439748, 0.898121, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224479;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224479, 525459, 2796, 15716, 15719, '0', 0, 0, 0, -1, -986.178, -3489.21, 61.0432, 3.67476, 0, 0, 0.964676, -0.263438, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224480;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224480, 525459, 2796, 15716, 15719, '0', 0, 0, 0, -1, -1002.99, -3514.45, 60.1009, 4.00119, 0, 0, 0.90905, -0.416687, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224481;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224481, 525459, 2796, 15716, 15719, '0', 0, 0, 0, -1, -1027.8, -3558.84, 56.5377, 4.02647, 0, 0, 0.903711, -0.428144, 300, 255, 1, 0, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=1 WHERE `entry`=238101;
DELETE FROM `creature` WHERE `guid`=905464;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905464, 238101, 2796, 15716, 15719, '0', 0, 0, 0, -1, 0, 0, -954.332, -3535.94, 56.9349, 3.02995, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `faction`=7 WHERE `entry`=240579;
DELETE FROM `creature` WHERE `guid`=905465;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905465, 240579, 2796, 15716, 15719, '0', 0, 0, 0, -1, 0, 0, -963.672, -3527.7, 56.6409, 3.58533, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905466;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905466, 240579, 2796, 15716, 15719, '0', 0, 0, 0, -1, 0, 0, -976.704, -3524.9, 56.9225, 2.87, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905467;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905467, 240579, 2796, 15716, 15719, '0', 0, 0, 0, -1, 0, 0, -996.888, -3517.83, 57.2795, 2.86717, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905468;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905468, 240579, 2796, 15716, 15719, '0', 0, 0, 0, -1, 0, 0, -1005.27, -3524.8, 58.5226, 3.52519, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905469;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905469, 240579, 2796, 15716, 15719, '0', 0, 0, 0, -1, 0, 0, -1019.63, -3530.39, 57.2534, 3.40125, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905470;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905470, 240579, 2796, 15716, 15719, '0', 0, 0, 0, -1, 0, 0, -1022.85, -3530.32, 57.2136, 3.40125, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905471;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905471, 240579, 2796, 15716, 15719, '0', 0, 0, 0, -1, 0, 0, -1027.14, -3530.65, 57.6055, 3.40125, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905472;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905472, 240579, 2796, 15716, 15719, '0', 0, 0, 0, -1, 0, 0, -1028.4, -3533.71, 57.4324, 3.40125, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=129 WHERE `entry`=232033;
DELETE FROM `creature` WHERE `guid`=905473;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905473, 232033, 2796, 15716, 15719, '0', 0, 0, 0, -1, 0, 0, -1017.11, -3494.32, 62.1023, 5.73038, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=129 WHERE `entry`=232036;
DELETE FROM `creature` WHERE `guid`=905474;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905474, 232036, 2796, 15716, 15719, '0', 0, 0, 0, -1, 0, 0, -968.65, -3563.65, 58.5107, 2.2567, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=81 WHERE `entry`=232031;
DELETE FROM `creature` WHERE `guid`=905475;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905475, 232031, 2796, 15716, 15719, '0', 0, 0, 0, -1, 0, 0, -953.84, -3532.19, 56.9741, 3.39601, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=129 WHERE `entry`=232035;
DELETE FROM `creature` WHERE `guid`=905476;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905476, 232035, 2796, 15716, 15719, '0', 0, 0, 0, -1, 0, 0, -928.472, -3531.98, 70.685, 0.16299, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=129 WHERE `entry`=232037;
DELETE FROM `creature` WHERE `guid`=905477;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905477, 232037, 2796, 15716, 15719, '0', 0, 0, 0, -1, 0, 0, -882.992, -3500.46, 71.7712, 4.6484, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905478;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905478, 247299, 2796, 15716, 15719, '0', 0, 0, 0, -1, 0, 0, -935.932, -3532.6, 70.64, 0.123891, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=3 WHERE `entry`=245186;
-- Sunwalker Dezco smart ai
SET @ENTRY := 245186;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 171, 89338, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 245186 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
(22, 1, 245186, 0, 0, 9, 0, 89338, 0, 0, '', 0, 'Action invoker has quest Gathering Plowshares (89338) active');
-- Slithering Spoils
SET @ENTRY := 97321;
INSERT IGNORE INTO `quest_template_addon` (`ID`) VALUES (@ENTRY);
UPDATE `quest_template_addon` SET `ScriptName` = 'SmartQuest' WHERE `ID` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 5 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 5, 0, 0, 47, 0, 100, 0, 0, 0, 0, 0, 0, 171, 97321, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On quest accepted - Player who accepted: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 97321 AND `SourceId` = 5;
SET @ENTRY := 95008;
INSERT IGNORE INTO `quest_template_addon` (`ID`) VALUES (@ENTRY);
UPDATE `quest_template_addon` SET `ScriptName` = 'SmartQuest' WHERE `ID` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 5 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 5, 0, 0, 47, 0, 100, 0, 0, 0, 0, 0, 0, 171, 95008, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On quest accepted - Player who accepted: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 95008 AND `SourceId` = 5;
UPDATE `creature_template` SET `faction`=35 WHERE `entry`=242802;
DELETE FROM `creature_queststarter` WHERE `id` = 241455;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(241455, 93705),
(241455, 93706),
(241455, 93707),
(241455, 93708),
(241455, 93709);
DELETE FROM `creature_questender` WHERE `id` = 241455;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(241455, 93705),
(241455, 93706),
(241455, 93707),
(241455, 93708),
(241455, 93709);
-- Lord Antenorian smart ai
SET @ENTRY := 245004;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 62, 0, 100, 0, 39451, 0, 0, 0, 0, 33, 245004, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 39451 selected - Gossip player: Give kill credit Lord Antenorian (245004)', ''),
(@ENTRY, 0, 1, 0, 62, 0, 100, 0, 39451, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 39451 selected - Gossip player: Close gossip', ''),
(@ENTRY, 0, 2, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 171, 90907, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 245004 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
(22, 3, 245004, 0, 0, 9, 0, 90907, 0, 0, '', 0, 'Action invoker has quest The First to Know (90907) active');
UPDATE creature_template_difficulty SET lootid = 244434 WHERE entry = 244434 AND lootid = 0;
DELETE FROM `creature_loot_template` WHERE `entry` = 244434;
INSERT INTO `creature_loot_template` (`entry`, `Item`, `ItemType`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(244434, 235052, 0, 0.01395284, 0, 3, 0, 1, 1, 'Weathered Mysterious Satchel'),
(244434, 236870, 0, 0.01395284, 0, 3, 0, 1, 1, 'Potion of Mysterious Tremorshards'),
(244434, 236963, 0, 3.29287, 0, 3, 0, 1, 2, 'Bright Linen'),
(244434, 237015, 0, 0.08371703, 0, 3, 0, 1, 1, 'Sunfire Silk'),
(244434, 237016, 0, 0.0697642, 0, 3, 0, 1, 1, 'Sunfire Silk'),
(244434, 237017, 0, 0.04185852, 0, 3, 0, 1, 1, 'Arcanoweave'),
(244434, 237018, 0, 0.05581136, 0, 3, 0, 1, 1, 'Arcanoweave'),
(244434, 243221, 0, 100, 1, 3, 0, 1, 1, 'Suspicious Missive'),
(244434, 245831, 0, 0.01395284, 0, 3, 0, 1, 1, 'Two of Hunt'),
(244434, 245833, 0, 0.01395284, 0, 3, 0, 1, 1, 'Four of Hunt'),
(244434, 245834, 0, 0.01395284, 0, 3, 0, 1, 1, 'Five of Hunt'),
(244434, 245836, 0, 0.02790568, 0, 3, 0, 1, 1, 'Seven of Hunt'),
(244434, 245840, 0, 0.02790568, 0, 3, 0, 1, 1, 'Three of Void'),
(244434, 245841, 0, 0.01395284, 0, 3, 0, 1, 1, 'Four of Void'),
(244434, 245842, 0, 0.01395284, 0, 3, 0, 1, 1, 'Five of Void'),
(244434, 245843, 0, 0.01395284, 0, 3, 0, 1, 1, 'Six of Void'),
(244434, 245845, 0, 0.04185852, 0, 3, 0, 1, 1, 'Eight of Void'),
(244434, 245847, 0, 0.01395284, 0, 3, 0, 1, 1, 'Ace of Rot'),
(244434, 245848, 0, 0.02790568, 0, 3, 0, 1, 1, 'Two of Rot'),
(244434, 245850, 0, 0.01395284, 0, 3, 0, 1, 1, 'Four of Rot'),
(244434, 245851, 0, 0.01395284, 0, 3, 0, 1, 1, 'Five of Rot'),
(244434, 245854, 0, 0.04185852, 0, 3, 0, 1, 1, 'Eight of Rot'),
(244434, 245857, 0, 0.01395284, 0, 3, 0, 1, 1, 'Two of Blood'),
(244434, 245858, 0, 0.01395284, 0, 3, 0, 1, 1, 'Three of Blood'),
(244434, 245860, 0, 0.04185852, 0, 3, 0, 1, 1, 'Five of Blood'),
(244434, 245861, 0, 0.02790568, 0, 3, 0, 1, 1, 'Six of Blood'),
(244434, 245862, 0, 0.02790568, 0, 3, 0, 1, 1, 'Seven of Blood'),
(244434, 258848, 0, 0.08371703, 0, 3, 0, 1, 1, 'Stained Girdle'),
(244434, 258849, 0, 0.1116227, 0, 3, 0, 1, 1, 'Stained Headguard'),
(244434, 258850, 0, 0.0697642, 0, 3, 0, 1, 1, 'Stained Fistguards'),
(244434, 258851, 0, 0.08371703, 0, 3, 0, 1, 1, 'Stained Hauberk'),
(244434, 258852, 0, 0.09766988, 0, 3, 0, 1, 1, 'Stained Greaves'),
(244434, 258853, 0, 0.04185852, 0, 3, 0, 1, 1, 'Stained Sabatons'),
(244434, 258854, 0, 0.08371703, 0, 3, 0, 1, 1, 'Stained Pauldrons'),
(244434, 258855, 0, 0.09766988, 0, 3, 0, 1, 1, 'Stained Armguards'),
(244434, 258856, 0, 0.0697642, 0, 3, 0, 1, 1, 'Threadbare Mantle'),
(244434, 258857, 0, 0.05581136, 0, 3, 0, 1, 1, 'Threadbare Sash'),
(244434, 258858, 0, 0.0697642, 0, 3, 0, 1, 1, 'Threadbare Crown'),
(244434, 258859, 0, 0.1255756, 0, 3, 0, 1, 1, 'Threadbare Mitts'),
(244434, 258860, 0, 0.1395284, 0, 3, 0, 1, 1, 'Threadbare Leggings'),
(244434, 258861, 0, 0.1116227, 0, 3, 0, 1, 1, 'Threadbare Slippers'),
(244434, 258862, 0, 0.1116227, 0, 3, 0, 1, 1, 'Threadbare Vestments'),
(244434, 258863, 0, 0.1395284, 0, 3, 0, 1, 1, 'Threadbare Armbands'),
(244434, 258864, 0, 0.08371703, 0, 3, 0, 1, 1, 'Brittle Waistguard'),
(244434, 258865, 0, 0.0697642, 0, 3, 0, 1, 1, 'Brittle Breastplate'),
(244434, 258866, 0, 0.08371703, 0, 3, 0, 1, 1, 'Brittle Gauntlets'),
(244434, 258867, 0, 0.1116227, 0, 3, 0, 1, 1, 'Brittle Faceguard'),
(244434, 258868, 0, 0.08371703, 0, 3, 0, 1, 1, 'Brittle Legguards'),
(244434, 258869, 0, 0.05581136, 0, 3, 0, 1, 1, 'Brittle Pauldrons'),
(244434, 258870, 0, 0.2511511, 0, 3, 0, 1, 1, 'Brittle Warboots'),
(244434, 258871, 0, 0.1116227, 0, 3, 0, 1, 1, 'Brittle Armplates'),
(244434, 258872, 0, 0.1255756, 0, 3, 0, 1, 1, 'Frayed Wristwraps'),
(244434, 258873, 0, 0.1534812, 0, 3, 0, 1, 1, 'Frayed Tunic'),
(244434, 258874, 0, 0.1395284, 0, 3, 0, 1, 1, 'Frayed Shoulderpads'),
(244434, 258875, 0, 0.1534812, 0, 3, 0, 1, 1, 'Frayed Britches'),
(244434, 258876, 0, 0.0697642, 0, 3, 0, 1, 1, 'Frayed Guise'),
(244434, 258877, 0, 0.0697642, 0, 3, 0, 1, 1, 'Frayed Handwraps'),
(244434, 258878, 0, 0.1674341, 0, 3, 0, 1, 1, 'Frayed Boots'),
(244434, 258879, 0, 0.08371703, 0, 3, 0, 1, 1, 'Frayed Strap'),
(244434, 258908, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Band'),
(244434, 258909, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Signet'),
(244434, 258911, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Pendant'),
(244434, 258912, 0, 0.02790568, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Spellbinder''s Robe'),
(244434, 258913, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Spellbinder''s Slippers'),
(244434, 258914, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Spellbinder''s Mitts'),
(244434, 258915, 0, 0.02790568, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Spellbinder''s Crown'),
(244434, 258916, 0, 0.02790568, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Spellbinder''s Trousers'),
(244434, 258917, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Spellbinder''s Pads'),
(244434, 258919, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Spellbinder''s Bands'),
(244434, 258922, 0, 0.02790568, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Corsair''s Gloves'),
(244434, 258923, 0, 0.05581136, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Corsair''s Hood'),
(244434, 258924, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Corsair''s Breeches'),
(244434, 258926, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Corsair''s Belt'),
(244434, 258927, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Corsair''s Bracers'),
(244434, 258929, 0, 0.02790568, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Sentinel''s Sabatons'),
(244434, 258930, 0, 0.04185852, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Sentinel''s Handguards'),
(244434, 258931, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Sentinel''s Cover'),
(244434, 258932, 0, 0.04185852, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Sentinel''s Chausses'),
(244434, 258933, 0, 0.02790568, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Sentinel''s Epaulets'),
(244434, 258934, 0, 0.04185852, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Sentinel''s Girdle'),
(244434, 258935, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Sentinel''s Armguards'),
(244434, 258936, 0, 0.04185852, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Commander''s Breastplate'),
(244434, 258937, 0, 0.0697642, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Commander''s Warboots'),
(244434, 258938, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Commander''s Gauntlets'),
(244434, 258939, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Commander''s Helmet'),
(244434, 258940, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Commander''s Greaves'),
(244434, 258942, 0, 0.04185852, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Commander''s Greatbelt'),
(244434, 258943, 0, 0.02790568, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Commander''s Armplates'),
(244434, 258945, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Carver'),
(244434, 258946, 0, 0.02790568, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Chopper'),
(244434, 258951, 0, 0.04185852, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Shortsword'),
(244434, 258952, 0, 0.04185852, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Longsword'),
(244434, 258953, 0, 0.02790568, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Longbow'),
(244434, 258954, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Poleaxe'),
(244434, 258955, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Halberd'),
(244434, 258958, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Greatsword'),
(244434, 258959, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Blade'),
(244434, 258960, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Beacon'),
(244434, 258961, 0, 0.01395284, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Defender'),
(244434, 258962, 0, 0.02790568, 0, 3, 0, 1, 1, 'Tarnished Dawnlit Warglaive'),
(244434, 264475, 0, 0.04185852, 0, 3, 0, 1, 1, 'Umbral Tin Lockbox'),
(244434, 265803, 0, 0.1116227, 0, 3, 0, 1, 1, 'Bazaar Bites'),
(244434, 266216, 0, 0.04185852, 0, 3, 0, 1, 1, 'Threadbare Cloak'),
(244434, 266221, 0, 0.05581136, 0, 3, 0, 1, 1, 'Frayed Shroud'),
(244434, 266223, 0, 0.0697642, 0, 3, 0, 1, 1, 'Stained Drape'),
(244434, 266224, 0, 0.09766988, 0, 3, 0, 1, 1, 'Brittle Cape');
-- Arator smart ai
SET @ENTRY := 236391;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 62, 0, 100, 0, 40663, 0, 0, 0, 0, 33, 252294, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 40663 selected - Gossip player: Give kill credit Kill Credit (252294)', ''),
(@ENTRY, 0, 1, 0, 62, 0, 100, 0, 40663, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 40663 selected - Gossip player: Close gossip', ''),
(@ENTRY, 0, 2, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 171, 86633, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 236391 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
(22, 3, 236391, 0, 0, 9, 0, 86633, 0, 0, '', 0, 'Action invoker has quest Comprehend the Void (86633) active');
-- Void Walk With Me
SET @ENTRY := 86636;
INSERT IGNORE INTO `quest_template_addon` (`ID`) VALUES (@ENTRY);
UPDATE `quest_template_addon` SET `ScriptName` = 'SmartQuest' WHERE `ID` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 5 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 5, 0, 0, 47, 0, 100, 0, 0, 0, 0, 0, 0, 171, 86636, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On quest accepted - Player who accepted: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 86636 AND `SourceId` = 5;
DELETE FROM `creature` WHERE `guid`=905479;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905479, 240103, 0, 15968, 16046, '0', 0, 0, 0, -1, 0, 0, 6339.75, -4916.81, 172.587, 5.31319, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905480;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905480, 240103, 0, 15968, 16046, '0', 0, 0, 0, -1, 0, 0, 6357.6, -4936.1, 173.057, 5.43038, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905481;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905481, 240103, 0, 15968, 16046, '0', 0, 0, 0, -1, 0, 0, 6354.68, -4938.65, 175.543, 5.43038, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905482;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905482, 240103, 0, 15968, 16046, '0', 0, 0, 0, -1, 0, 0, 6374.06, -4922.24, 171.034, 5.58558, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905483;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905483, 240103, 0, 15968, 16046, '0', 0, 0, 0, -1, 0, 0, 6403.75, -4925.75, 174.716, 0.339118, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905484;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905484, 240103, 0, 15968, 16046, '0', 0, 0, 0, -1, 0, 0, 6404.64, -4928.27, 174.573, 0.339118, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905485;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905485, 240103, 0, 15968, 16046, '0', 0, 0, 0, -1, 0, 0, 6428.83, -4923.29, 175.513, 5.13287, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905486;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905486, 240103, 0, 15968, 16046, '0', 0, 0, 0, -1, 0, 0, 6431.46, -4923.46, 175.344, 5.13287, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905487;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905487, 240103, 0, 15968, 16046, '0', 0, 0, 0, -1, 0, 0, 6472.29, -4962.97, 174.905, 5.1368, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905488;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905488, 240103, 0, 15968, 16046, '0', 0, 0, 0, -1, 0, 0, 6476.57, -4961.04, 174.228, 5.1368, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905489;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905489, 240103, 0, 15968, 16046, '0', 0, 0, 0, -1, 0, 0, 6509.93, -4973.87, 174.528, 4.04056, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905490;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905490, 240103, 0, 15968, 16046, '0', 0, 0, 0, -1, 0, 0, 6514.49, -4977.49, 175.47, 4.04056, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905491;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905491, 240103, 0, 15968, 16046, '0', 0, 0, 0, -1, 0, 0, 6521.89, -4983.37, 177.01, 4.04056, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `KillCredit1`=241368, `faction`=14 WHERE `entry`=237386;
DELETE FROM `creature` WHERE `guid`=905492;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905492, 237386, 0, 15968, 16343, '0', 0, 0, 0, -1, 0, 0, 5972.07, -4937.64, 183.318, 1.46861, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
-- Beat of Blood
SET @ENTRY := 86647;
INSERT IGNORE INTO `quest_template_addon` (`ID`) VALUES (@ENTRY);
UPDATE `quest_template_addon` SET `ScriptName` = 'SmartQuest' WHERE `ID` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 5 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 5, 0, 0, 47, 0, 100, 0, 0, 0, 0, 0, 0, 171, 86647, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On quest accepted - Player who accepted: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 86647 AND `SourceId` = 5;
DELETE FROM `creature` WHERE `guid`=905493;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905493, 236611, 0, 15968, 16052, '0', 0, 0, 0, -1, 0, 0, 5041.77, -5056.1, 111.193, 0.426549, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=1 WHERE `entry`=245419;
DELETE FROM `creature` WHERE `guid`=905494;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905494, 245419, 0, 15968, 16052, '0', 0, 0, 0, -1, 0, 0, 5057.56, -5459.94, 138.846, 1.51174, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature_template_gossip` WHERE `CreatureID`=245419 AND `MenuID`=1;
INSERT INTO `creature_template_gossip` (`CreatureID`, `MenuID`, `VerifiedBuild`) VALUES (245419, 1, 47936);
-- Arator smart ai
SET @ENTRY := 245419;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 171, 86648, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 245419 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
(22, 1, 245419, 0, 0, 9, 0, 86648, 0, 0, '', 0, 'Action invoker has quest Light Guide Us (86648) active');
DELETE FROM `creature` WHERE `guid`=905495;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905495, 236612, 0, 15968, 16052, '0', 0, 0, 0, -1, 0, 0, 5052.34, -5522.94, 166.798, 5.27711, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature_template` WHERE `entry`=249083;
INSERT INTO `creature_template` (`entry`, `KillCredit1`, `KillCredit2`, `name`, `femaleName`, `subname`, `IconName`, `TitleAlt`, `RequiredExpansion`, `VignetteID`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Classification`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `unit_flags3`, `family`, `trainer_class`, `type`, `VehicleId`, `AIName`, `MovementType`, `ExperienceModifier`, `RacialLeader`, `movementId`, `WidgetSetID`, `WidgetSetUnitConditionID`, `RegenHealth`, `CreatureImmunitiesId`, `flags_extra`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (249083, 249115, 253369, 'Void Beast', NULL, NULL, NULL, NULL, 0, 0, 7, 0, 1, 1.14286, 1, 0, 0, 0, 0, 1, 1, 2, 0, 2048, 0, 0, 0, 4, 0, '', 0, 1, 0, 0, 0, 0, 1, 0, 0, '', NULL, 69933);
DELETE FROM `creature` WHERE `guid`=905496;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905496, 249083, 0, 15968, 16052, '0', 0, 0, 0, -1, 0, 0, 5070.57, -5547.6, 167.21, 1.87613, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905497;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905497, 236485, 0, 16194, 16194, '0', 0, 0, 0, -1, 0, 0, 5054.64, -5921.76, 215.241, 4.67717, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905498;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905498, 236468, 0, 16194, 16194, '0', 0, 0, 0, -1, 0, 0, 5051.47, -5921.17, 215.241, 4.81648, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905499;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905499, 236558, 0, 16194, 16670, '0', 0, 0, 0, -1, 0, 0, 5032.68, -6568.55, 218.646, 1.48543, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template_difficulty` SET `StaticFlags1`=0 WHERE `Entry`=236544;
UPDATE creature_template_difficulty SET lootid = 236544 WHERE entry = 236544;
DELETE FROM `creature_loot_template` WHERE `entry` = 236544;
INSERT INTO `creature_loot_template` (`entry`, `Item`, `ItemType`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(236544, 237768, 0, 100, 1, 1, 0, 0, 0, 'Hash''ey Staff');
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=236519;
UPDATE creature_template_difficulty SET lootid = 236519 WHERE entry = 236519;
DELETE FROM `creature_loot_template` WHERE `entry` = 236519;
INSERT INTO `creature_loot_template` (`entry`, `Item`, `ItemType`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(236519, 235054, 0, 0.002793764, 0, 3, 0, 1, 1, 'Pristine Mysterious Satchel'),
(236519, 236963, 0, 3.173716, 0, 3, 0, 1, 2, 'Bright Linen'),
(236519, 236965, 0, 0.4749399, 0, 3, 0, 1, 2, 'Bright Linen'),
(236519, 237015, 0, 0.1173381, 0, 3, 0, 1, 1, 'Sunfire Silk'),
(236519, 237016, 0, 0.1341007, 0, 3, 0, 1, 1, 'Sunfire Silk'),
(236519, 237017, 0, 0.06705035, 0, 3, 0, 1, 1, 'Arcanoweave'),
(236519, 237018, 0, 0.1564508, 0, 3, 0, 1, 1, 'Arcanoweave'),
(236519, 237767, 0, 100, 1, 3, 0, 1, 1, 'Lightwood Weapon'),
(236519, 245831, 0, 0.03631894, 0, 3, 0, 1, 1, 'Two of Hunt'),
(236519, 245832, 0, 0.02235011, 0, 3, 0, 1, 1, 'Three of Hunt'),
(236519, 245833, 0, 0.02235011, 0, 3, 0, 1, 1, 'Four of Hunt'),
(236519, 245834, 0, 0.01955635, 0, 3, 0, 1, 1, 'Five of Hunt'),
(236519, 245835, 0, 0.008381293, 0, 3, 0, 1, 1, 'Six of Hunt'),
(236519, 245836, 0, 0.01396882, 0, 3, 0, 1, 1, 'Seven of Hunt'),
(236519, 245837, 0, 0.01396882, 0, 3, 0, 1, 1, 'Eight of Hunt'),
(236519, 245838, 0, 0.002793764, 0, 3, 0, 1, 1, 'Ace of Void'),
(236519, 245839, 0, 0.02235011, 0, 3, 0, 1, 1, 'Two of Void'),
(236519, 245840, 0, 0.02793764, 0, 3, 0, 1, 1, 'Three of Void'),
(236519, 245841, 0, 0.01676259, 0, 3, 0, 1, 1, 'Four of Void'),
(236519, 245842, 0, 0.008381293, 0, 3, 0, 1, 1, 'Five of Void'),
(236519, 245843, 0, 0.01955635, 0, 3, 0, 1, 1, 'Six of Void'),
(236519, 245844, 0, 0.01396882, 0, 3, 0, 1, 1, 'Seven of Void'),
(236519, 245845, 0, 0.008381293, 0, 3, 0, 1, 1, 'Eight of Void'),
(236519, 245847, 0, 0.01117506, 0, 3, 0, 1, 1, 'Ace of Rot'),
(236519, 245848, 0, 0.005587528, 0, 3, 0, 1, 1, 'Two of Rot'),
(236519, 245849, 0, 0.03352517, 0, 3, 0, 1, 1, 'Three of Rot'),
(236519, 245850, 0, 0.01117506, 0, 3, 0, 1, 1, 'Four of Rot'),
(236519, 245851, 0, 0.01396882, 0, 3, 0, 1, 1, 'Five of Rot'),
(236519, 245852, 0, 0.005587528, 0, 3, 0, 1, 1, 'Six of Rot'),
(236519, 245853, 0, 0.01396882, 0, 3, 0, 1, 1, 'Seven of Rot'),
(236519, 245854, 0, 0.008381293, 0, 3, 0, 1, 1, 'Eight of Rot'),
(236519, 245856, 0, 0.005587528, 0, 3, 0, 1, 1, 'Ace of Blood'),
(236519, 245857, 0, 0.02514388, 0, 3, 0, 1, 1, 'Two of Blood'),
(236519, 245858, 0, 0.02235011, 0, 3, 0, 1, 1, 'Three of Blood'),
(236519, 245859, 0, 0.01676259, 0, 3, 0, 1, 1, 'Four of Blood'),
(236519, 245860, 0, 0.008381293, 0, 3, 0, 1, 1, 'Five of Blood'),
(236519, 245861, 0, 0.02793764, 0, 3, 0, 1, 1, 'Six of Blood'),
(236519, 245862, 0, 0.01676259, 0, 3, 0, 1, 1, 'Seven of Blood'),
(236519, 245863, 0, 0.01676259, 0, 3, 0, 1, 1, 'Eight of Blood'),
(236519, 258848, 0, 0.1005755, 0, 3, 0, 1, 1, 'Stained Girdle'),
(236519, 258849, 0, 0.07543164, 0, 3, 0, 1, 1, 'Stained Headguard'),
(236519, 258850, 0, 0.1145443, 0, 3, 0, 1, 1, 'Stained Fistguards'),
(236519, 258851, 0, 0.05866905, 0, 3, 0, 1, 1, 'Stained Hauberk'),
(236519, 258852, 0, 0.09498799, 0, 3, 0, 1, 1, 'Stained Greaves'),
(236519, 258853, 0, 0.08101916, 0, 3, 0, 1, 1, 'Stained Sabatons'),
(236519, 258854, 0, 0.08940046, 0, 3, 0, 1, 1, 'Stained Pauldrons'),
(236519, 258855, 0, 0.0866067, 0, 3, 0, 1, 1, 'Stained Armguards'),
(236519, 258856, 0, 0.09498799, 0, 3, 0, 1, 1, 'Threadbare Mantle'),
(236519, 258857, 0, 0.1033693, 0, 3, 0, 1, 1, 'Threadbare Sash'),
(236519, 258858, 0, 0.09219422, 0, 3, 0, 1, 1, 'Threadbare Crown'),
(236519, 258859, 0, 0.0866067, 0, 3, 0, 1, 1, 'Threadbare Mitts'),
(236519, 258860, 0, 0.106163, 0, 3, 0, 1, 1, 'Threadbare Leggings'),
(236519, 258861, 0, 0.08381293, 0, 3, 0, 1, 1, 'Threadbare Slippers'),
(236519, 258862, 0, 0.1341007, 0, 3, 0, 1, 1, 'Threadbare Vestments'),
(236519, 258863, 0, 0.07543164, 0, 3, 0, 1, 1, 'Threadbare Armbands'),
(236519, 258864, 0, 0.106163, 0, 3, 0, 1, 1, 'Brittle Waistguard'),
(236519, 258865, 0, 0.08381293, 0, 3, 0, 1, 1, 'Brittle Breastplate'),
(236519, 258866, 0, 0.0782254, 0, 3, 0, 1, 1, 'Brittle Gauntlets'),
(236519, 258867, 0, 0.0866067, 0, 3, 0, 1, 1, 'Brittle Faceguard'),
(236519, 258868, 0, 0.07543164, 0, 3, 0, 1, 1, 'Brittle Legguards'),
(236519, 258869, 0, 0.142482, 0, 3, 0, 1, 1, 'Brittle Pauldrons'),
(236519, 258870, 0, 0.1117506, 0, 3, 0, 1, 1, 'Brittle Warboots'),
(236519, 258871, 0, 0.09219422, 0, 3, 0, 1, 1, 'Brittle Armplates'),
(236519, 258872, 0, 0.1005755, 0, 3, 0, 1, 1, 'Frayed Wristwraps'),
(236519, 258873, 0, 0.08940046, 0, 3, 0, 1, 1, 'Frayed Tunic'),
(236519, 258874, 0, 0.08940046, 0, 3, 0, 1, 1, 'Frayed Shoulderpads'),
(236519, 258875, 0, 0.1005755, 0, 3, 0, 1, 1, 'Frayed Britches'),
(236519, 258876, 0, 0.06705035, 0, 3, 0, 1, 1, 'Frayed Guise'),
(236519, 258877, 0, 0.1313069, 0, 3, 0, 1, 1, 'Frayed Handwraps'),
(236519, 258878, 0, 0.07543164, 0, 3, 0, 1, 1, 'Frayed Boots'),
(236519, 258879, 0, 0.09778175, 0, 3, 0, 1, 1, 'Frayed Strap'),
(236519, 265800, 0, 0.2179136, 0, 3, 0, 1, 1, 'Earthy Garnish'),
(236519, 266216, 0, 0.1145443, 0, 3, 0, 1, 1, 'Threadbare Cloak'),
(236519, 266221, 0, 0.09498799, 0, 3, 0, 1, 1, 'Frayed Shroud'),
(236519, 266223, 0, 0.09778175, 0, 3, 0, 1, 1, 'Stained Drape'),
(236519, 266224, 0, 0.07263787, 0, 3, 0, 1, 1, 'Brittle Cape');
DELETE FROM `creature` WHERE `guid`=905500;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905500, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4834.09, -6174.73, 224.052, 4.47375, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905501;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905501, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4833.8, -6214.14, 223.103, 2.38436, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905502;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905502, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4870.67, -6187.25, 223.368, 3.09184, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905503;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905503, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4871.04, -6179.91, 223.327, 3.09184, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905504;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905504, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4872.76, -6204.88, 223.654, 3.09184, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905505;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905505, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4872.52, -6209.83, 223.375, 3.09184, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905506;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905506, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4857.07, -6250.32, 232.819, 1.57147, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905507;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905507, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4843.17, -6250.33, 232.819, 1.57147, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905508;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905508, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4798.63, -6209.12, 232.82, 0.101534, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905509;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905509, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4798.77, -6189.6, 232.82, 0.101534, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905510;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905510, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4831.49, -6175.21, 223.933, 6.24163, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905511;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905511, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4867.92, -6135.53, 208.094, 1.75073, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905512;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905512, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4834.88, -6132.19, 208.066, 1.53302, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905513;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905513, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4829.03, -6102.88, 208.217, 4.95324, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905514;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905514, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4774.11, -6116.39, 189.647, 3.66567, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905515;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905515, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4769.82, -6142.72, 188.391, 4.72643, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905516;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905516, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4753.2, -6188.73, 184.887, 4.85885, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905517;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905517, 236519, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4751.63, -6188.96, 184.887, 4.85885, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=16777216 WHERE `entry`=236518;
REPLACE INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `user_type`) VALUES
(241695, 1277832, 1, 1),
(236518, 1223258, 1, 1);
DELETE FROM `creature` WHERE `guid`=905518;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905518, 236518, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4755.21, -6309.23, 181.265, 5.63618, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905519;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905519, 236518, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4759.15, -6312.72, 181.325, 0.84746, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905520;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905520, 236518, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4765.25, -6318.1, 181.368, 0.84746, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905521;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905521, 236518, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4773.15, -6325.08, 180.88, 0.84746, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905522;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905522, 236518, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4800.18, -6312.66, 184.405, 5.56943, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905523;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905523, 236518, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4808.51, -6309.21, 187.728, 5.56943, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905524;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905524, 236518, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4829.71, -6292.1, 193.403, 5.56943, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905525;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905525, 236518, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4852.15, -6313.9, 194.705, 4.6769, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905526;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905526, 236518, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4838.44, -6334.06, 193.978, 5.54649, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905527;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905527, 236518, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4871.29, -6382.4, 197.252, 3.34282, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905528;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905528, 236518, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4794.22, -6390.8, 180.783, 3.41461, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905529;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905529, 236518, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4797.22, -6427.74, 181.236, 4.33683, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905530;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905530, 236518, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4837.54, -6460.65, 183.061, 0.981456, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224482;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224482, 548746, 0, 16194, 16385, '0', 0, 0, 0, -1, 4921.65, -6373.92, 183.674, 1.41625, 0, 0, 0.650412, 0.759581, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224483;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224483, 548746, 0, 16194, 16385, '0', 0, 0, 0, -1, 4915.84, -6339.44, 185.415, 2.5298, 0, 0, 0.953577, 0.30115, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224484;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224484, 548746, 0, 16194, 16385, '0', 0, 0, 0, -1, 4900.16, -6333.52, 190.618, 2.5298, 0, 0, 0.953577, 0.30115, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224485;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224485, 548746, 0, 16194, 16385, '0', 0, 0, 0, -1, 4891.16, -6334.37, 193.058, 2.5298, 0, 0, 0.953577, 0.30115, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224486;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224486, 548746, 0, 16194, 16385, '0', 0, 0, 0, -1, 4878.22, -6334.57, 195.236, 2.5298, 0, 0, 0.953577, 0.30115, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224487;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `isActive`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (224487, 548746, 0, 16194, 16385, '0', 0, 0, 0, -1, 4871.17, -6332.71, 195.024, 2.5298, 0, 0, 0.953577, 0.30115, 300, 255, 1, 0, '', NULL, 0);
-- Demoralized Defender smart ai
SET @ENTRY := 236518;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 73, 0, 100, 0, 0, 0, 0, 0, 0, 33, 236518, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On spellclick - Clicker: Give kill credit Demoralized Defender (236518)', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 236518 AND `SourceId` = 0;
DELETE FROM `creature` WHERE `guid`=905531;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905531, 236541, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4714, -6207.07, 184.479, 0.419646, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=236562;
DELETE FROM `creature` WHERE `guid`=905532;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905532, 236562, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4724.75, -6388.72, 184.556, 0.130144, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905533;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905533, 236587, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4714.68, -6214.11, 184.648, 0.341934, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905534;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905534, 236542, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4713.83, -6217.14, 184.353, 6.24703, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=236546;
DELETE FROM `creature` WHERE `guid`=905535;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905535, 236546, 0, 16194, 16384, '0', 0, 0, 0, -1, 0, 0, 4732.17, -6287.56, 180.973, 5.49304, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905536;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905536, 236546, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4746.38, -6326.93, 181.798, 0.17651, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905537;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905537, 236546, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4750.9, -6331.63, 181.214, 0.17651, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905538;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905538, 236546, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4755.23, -6336.51, 181.239, 0.17651, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905539;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905539, 236546, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4734.89, -6387.02, 184.992, 4.96917, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905540;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905540, 236546, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4731.15, -6386.69, 184.838, 4.96917, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905541;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905541, 236546, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4729.01, -6416.24, 184.994, 6.02773, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905542;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905542, 236546, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4723.8, -6452.12, 181.108, 0.0357668, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905543;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905543, 236546, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4726.03, -6458.65, 181.498, 0.0357668, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905544;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905544, 236546, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4757.7, -6494.86, 191.405, 0.110178, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905545;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905545, 236546, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4829.05, -6511.81, 191.002, 1.16482, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905546;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905546, 236546, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4828.16, -6469.41, 181.137, 1.16482, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905547;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905547, 236546, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4873.9, -6464.67, 181.362, 4.32777, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905548;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905548, 236546, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4921.27, -6402.62, 184.12, 1.49468, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905549;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905549, 236546, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4923.92, -6344.71, 184.156, 2.34622, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905550;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905550, 236546, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4914.23, -6318.73, 189.888, 3.0116, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=236550;
DELETE FROM `creature` WHERE `guid`=905551;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905551, 236550, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4871.21, -6335.18, 195.579, 3.14905, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905552;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905552, 236550, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4821.05, -6303.71, 190.803, 4.93755, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905553;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905553, 236550, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4869.82, -6367.38, 197.254, 3.98454, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905554;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905554, 236550, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4868.07, -6367.2, 197.254, 3.98454, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905555;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905555, 236550, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4792.83, -6379.56, 180.784, 3.30862, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905556;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905556, 236550, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4748.09, -6399.46, 185.992, 0.574665, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905557;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905557, 236550, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4739.99, -6459.26, 182.524, 0.0328815, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905558;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905558, 236550, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4790.3, -6484.45, 187.269, 0.883936, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905559;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905559, 236550, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4832.62, -6463.71, 182.743, 6.17752, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905560;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905560, 236550, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4866.9, -6467.7, 181.476, 6.17752, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905561;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905561, 236550, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4924.38, -6374.68, 183.757, 2.01319, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905562;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905562, 236550, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4908, -6335.49, 187.9, 3.00279, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905563;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905563, 236550, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4885.28, -6332.3, 193.518, 3.00279, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905564;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905564, 236550, 0, 16194, 16385, '0', 0, 0, 0, -1, 0, 0, 4814.76, -6330.15, 186.896, 3.3556, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=16777216 WHERE `entry`=241695;
DELETE FROM `creature` WHERE `guid`=905565;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905565, 241695, 0, 16194, 16670, '0', 0, 0, 0, -1, 0, 0, 5040.52, -6602.02, 218.646, 4.71895, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
-- Lightwood Ballista smart ai
SET @ENTRY := 241695;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 73, 0, 100, 0, 0, 0, 0, 0, 0, 171, 86720, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On spellclick - Clicker: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 241695 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
(22, 1, 241695, 0, 0, 9, 0, 86720, 0, 0, '', 0, 'Action invoker has quest Break the Blade (86720) active');
DELETE FROM `creature` WHERE `guid`=905566;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905566, 236601, 0, 16194, 16670, '0', 0, 0, 0, -1, 0, 0, 5056.86, -6598.38, 218.645, 4.80755, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
-- Loa Speaker Kinduru smart ai
SET @ENTRY := 244479;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
INSERT INTO `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`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
(@ENTRY, 0, 0, 0, 64, 0, 100, 0, 39276, 1, 0, 0, 0, 33, 245697, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Give kill credit Kill Credit: Stay Awhile (245697)', ''),
(@ENTRY, 0, 1, 0, 62, 0, 100, 0, 39276, 1, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 1 from menu 39276 selected - Gossip player: Close gossip', ''),
(@ENTRY, 0, 2, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 33, 244479, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Give kill credit Loa Speaker Kinduru (244479)', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 244479 AND `SourceId` = 0;
UPDATE `creature` SET `curHealthPct`=NULL WHERE `curHealthPct`=100;
@@ -0,0 +1,85 @@
--
-- Major Factions - world configuration table and seed
--
-- MajorFactionMgr::LoadWorldData() reads this table at startup (wired from
-- World::SetInitialWorldSettings right after sDB2Manager.IndexLoadedStores()).
-- The table is a server-side overlay for the post-12.0 Journey UI; everything
-- else (identity, renown track, rewards, paragon) comes from DB2.
--
-- Values match the live 12.1.5.70077 data. uiPriority orders the expansion
-- page (newer expansions sort first). displayAsJourney/useJourneyRewardTrack/
-- useJourneyUnlockToast are set only for 2616 Keg Leg Thrasher (Plunderstorm),
-- which renders through Journey-mode UI and has no renown campaign.
--
-- 2772 Zul'jarra's Forces is a live major faction (ParagonFactionID and
-- RenownCurrencyID are set) but is intentionally not seeded: its intro quest
-- and campaign ids have not been verified, and LoadWorldData tolerates a
-- missing row (GetConfig returns nullptr). Add it once the data is captured.
--
-- introQuestId is the canonical/Horde value; introQuestIdAlliance is only set
-- where the Alliance uses a distinct quest (2507 Dragonscale Expedition:
-- Horde 65435, Alliance 65436). 0 means "fall back to introQuestId".
--
CREATE TABLE IF NOT EXISTS `major_faction_config` (
`factionId` int unsigned NOT NULL,
`hiddenFromExpansionPage` tinyint(1) NOT NULL DEFAULT 0,
`displayAsJourney` tinyint(1) NOT NULL DEFAULT 0,
`useJourneyRewardTrack` tinyint(1) NOT NULL DEFAULT 0,
`useJourneyUnlockToast` tinyint(1) NOT NULL DEFAULT 0,
`uiPriority` int NOT NULL DEFAULT 0,
`introQuestId` int unsigned NOT NULL DEFAULT 0,
`introQuestIdAlliance` int unsigned NOT NULL DEFAULT 0,
`playerCompanionId` int unsigned NOT NULL DEFAULT 0,
`renownCampaignId` int unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`factionId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Older installs created the table before introQuestIdAlliance existed.
-- MySQL 8 has no ADD COLUMN IF NOT EXISTS, so guard it through
-- INFORMATION_SCHEMA and a prepared statement (no DELIMITER required).
SET @hasIntroQuestIdAlliance := (
SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = DATABASE()
AND TABLE_NAME = 'major_faction_config'
AND COLUMN_NAME = 'introQuestIdAlliance');
SET @addIntroQuestIdAlliance := IF(@hasIntroQuestIdAlliance = 0,
'ALTER TABLE `major_faction_config` ADD COLUMN `introQuestIdAlliance` INT UNSIGNED NOT NULL DEFAULT 0 AFTER `introQuestId`',
'DO 0');
PREPARE stmt FROM @addIntroQuestIdAlliance;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;
DELETE FROM `major_faction_config` WHERE `factionId` IN
(2503, 2507, 2510, 2511, 2564, 2574, 2570, 2590, 2594, 2600, 2616,
2653, 2658, 2685, 2688, 2696, 2699, 2704, 2710, 2792);
INSERT INTO `major_faction_config`
(`factionId`, `hiddenFromExpansionPage`, `displayAsJourney`, `useJourneyRewardTrack`,
`useJourneyUnlockToast`, `uiPriority`, `introQuestId`, `introQuestIdAlliance`,
`playerCompanionId`, `renownCampaignId`) VALUES
-- Dragonflight 10.x
(2503, 0, 0, 0, 0, 100, 65795, 0, 0, 166), -- Maruuk Centaur
(2507, 0, 0, 0, 0, 101, 65435, 65436, 0, 197), -- Dragonscale Expedition (Alliance intro 65436)
(2510, 0, 0, 0, 0, 102, 66705, 0, 0, 189), -- Valdrakken Accord
(2511, 0, 0, 0, 0, 103, 65566, 0, 0, 174), -- Iskaara Tuskarr
(2564, 0, 0, 0, 0, 104, 75292, 0, 0, 203), -- Loamm Niffen
(2574, 0, 0, 0, 0, 105, 76558, 0, 0, 231), -- Dream Wardens
-- Plunderstorm 10.2.6 (dedicated Journey track, no campaign)
(2616, 0, 1, 1, 1, 150, 78443, 0, 0, 0), -- Keg Leg Thrasher
-- The War Within 11.0
(2570, 0, 0, 0, 0, 200, 76246, 0, 0, 238), -- Hallowfall Arathi
(2590, 0, 0, 0, 0, 201, 76061, 0, 0, 236), -- Council of Dornogal
(2594, 0, 0, 0, 0, 202, 76365, 0, 0, 237), -- The Assembly of the Deeps
(2600, 0, 0, 0, 0, 203, 76502, 0, 0, 239), -- The Severed Threads
-- The War Within 11.1 / 11.2
(2653, 0, 0, 0, 0, 210, 85115, 0, 0, 264), -- The Cartels of Undermine
(2688, 0, 0, 0, 0, 211, 86715, 0, 0, 267), -- Flame's Radiance
(2658, 0, 0, 0, 0, 220, 85116, 0, 0, 268), -- The K'aresh Trust
(2685, 0, 0, 0, 0, 221, 85116, 0, 0, 0), -- Gallagio Loyalty Rewards Club (raid, no campaign)
-- Midnight 12.0
(2696, 0, 0, 0, 0, 300, 92010, 0, 0, 270), -- Amani Tribe
(2699, 0, 0, 0, 0, 301, 92030, 0, 0, 270), -- The Singularity
(2704, 0, 0, 0, 0, 302, 92020, 0, 0, 270), -- Hara'ti
(2710, 0, 0, 0, 0, 303, 92040, 0, 0, 267), -- Silvermoon Court
(2792, 0, 0, 0, 0, 310, 95390, 0, 0, 0); -- Ritual Sites (auxiliary track, no campaign)
@@ -0,0 +1,65 @@
--
-- Void Assaults (Midnight 12.0.5) + Void Assault "Escalations" (12.0.7)
-- open-world invasion framework -- world DB schema.
--
-- VoidAssaultMgr::LoadFromDB() reads these tables at startup (wired from
-- World::SetInitialWorldSettings right after WorldStateMgr::LoadFromDB()).
-- Both loaders tolerate a missing/empty table (idle no-op), so a realm without
-- this SQL is unaffected. This file is the authoritative recreation of the
-- schema that previously only existed on the feature/void-assaults branch.
--
-- Evidence tags: [DB2] = wago.tools 12.0.7.68887, [SNIFF] = tester capture,
-- [RESEARCH] = web design guide (intent only). Seed rows are placeholders that
-- drive ONLY the worldstate/rotation spine; no spawns or rewards ship (those are
-- CAPTURE-BLOCKED). See C:\dumps\VOID_ASSAULTS_BLUEPRINT.md.
--
CREATE TABLE IF NOT EXISTS `void_assault_template` (
`Id` INT UNSIGNED NOT NULL,
`Type` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT '0 VoidStrike, 1 VoidIncursion, 2 VoidEscalation',
`ZoneId` INT UNSIGNED NOT NULL DEFAULT 0,
`MapId` INT UNSIGNED NOT NULL DEFAULT 0,
`StateWorldStateId` INT NOT NULL DEFAULT 0 COMMENT 'assault meter 29616 or rotation 5207/5208 [SNIFF]',
`TimerWorldStateId` INT NOT NULL DEFAULT 0 COMMENT 'next-event unix clock 22984 [SNIFF]',
`CountdownWorldStateId` INT NOT NULL DEFAULT 0 COMMENT '1 Hz countdown 28763 [SNIFF]',
`PeriodSeconds` INT UNSIGNED NOT NULL DEFAULT 0,
`DurationSeconds` INT UNSIGNED NOT NULL DEFAULT 0,
`MeterCap` INT NOT NULL DEFAULT 0 COMMENT 'escalation fill cap 1000000 [SNIFF], 0 = none',
`StrikesPerIncursion` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Void Strikes to trigger an Incursion, 0 = none',
`PortalWorldMapA` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Naigtal map 3075 [DB2]',
`PortalWorldMapB` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Val map 3047 [DB2]',
`HeroicContentTuningId` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Heroic World Tier scaling [DB2 ContentTuning -- CAPTURE-BLOCKED]',
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- Seed rows (placeholders -- drive ONLY the WS/rotation spine; realm-idle):
-- Id 1 = 12.0.5 Void Assault in Eversong Woods (area 15968), weekly swap with
-- Zul'Aman; Void Strikes feed meter 29616 (cap 1e6), Incursion at 20 strikes.
-- Id 2 = 12.0.7 Void "Escalation": portal-world window alternating Naigtal(3075)
-- / Val(3047), weekly; carries the world boss + (CAPTURE-BLOCKED) HWT.
-- Only ids 1 and 2 are owned by this seed; leave any locally added rows alone.
DELETE FROM `void_assault_template` WHERE `Id` IN (1, 2);
INSERT INTO `void_assault_template`
(`Id`,`Type`,`ZoneId`,`MapId`,`StateWorldStateId`,`TimerWorldStateId`,`CountdownWorldStateId`,`PeriodSeconds`,`DurationSeconds`,`MeterCap`,`StrikesPerIncursion`,`PortalWorldMapA`,`PortalWorldMapB`,`HeroicContentTuningId`) VALUES
(1, 0, 15968, 0, 29616, 22984, 28763, 604800, 604800, 1000000, 20, 0, 0, 0),
(2, 2, 16943, 3075, 5207, 22984, 28763, 604800, 604800, 0, 0, 3075, 3047, 0);
-- Spawn mechanism table. Ships EMPTY -- event-actor / world-boss / destructible
-- coordinates are CAPTURE-BLOCKED. VoidAssaultMgr iterates whatever rows exist
-- and is a safe no-op when empty.
CREATE TABLE IF NOT EXISTS `void_assault_spawn` (
`AssaultId` INT UNSIGNED NOT NULL,
`Kind` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT '0 creature, 1 gameobject',
`Entry` INT UNSIGNED NOT NULL DEFAULT 0,
`MapId` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT '0 = use template MapId',
`PosX` FLOAT NOT NULL DEFAULT 0,
`PosY` FLOAT NOT NULL DEFAULT 0,
`PosZ` FLOAT NOT NULL DEFAULT 0,
`Orientation` FLOAT NOT NULL DEFAULT 0,
KEY `AssaultId` (`AssaultId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- NO spawn rows shipped (CAPTURE-BLOCKED). Reference candidates for when
-- coordinates are captured (do NOT insert until verified in Creature.db2):
-- Naigtal world boss "Nexus-Captain Leth'ir" 260875 [RESEARCH]
-- Val world boss "Imperator Pertinax" 261072 [RESEARCH]
@@ -0,0 +1,707 @@
INSERT IGNORE INTO `fishing_loot_template` (`entry`, `item`, `Chance`, `lootmode`, `groupid`, `MinCount`, `MaxCount`, `Comment`) VALUES
(15968, 124669, 0.003852171, 1, 0, 2, 5, 'Darkmoon Daggermaw'),
(15968, 124670, 0.003852171, 1, 0, 1, 1, 'Sealed Darkmoon Crate'),
(15968, 236949, 0.248251, 1, 0, 1, 20, 'Mote of Light'),
(15968, 236950, 0.2580954, 1, 0, 1, 20, 'Mote of Primal Energy'),
(15968, 236951, 0.2508191, 1, 0, 1, 20, 'Mote of Wild Magic'),
(15968, 238365, 11.47604, 1, 0, 1, 1, 'Sin''dorei Swarmer'),
(15968, 238366, 13.77001, 1, 0, 1, 1, 'Lynxfish'),
(15968, 238370, 9, 1, 0, 1, 1, 'Shimmer Spinefish'),
(15968, 238371, 13.73192, 1, 0, 1, 1, 'Arcane Wyrmfish'),
(15968, 238372, 11.84992, 1, 0, 1, 1, 'Restored Songfish'),
(15968, 238373, 0.6172034, 1, 0, 1, 1, 'Ominous Octopus'),
(15968, 238374, 6, 1, 0, 1, 1, 'Tender Lumifin'),
(15968, 238377, 0.6075729, 1, 0, 1, 1, 'Blood Hunter'),
(15968, 238378, 0.8402013, 1, 0, 1, 1, 'Shimmersiren'),
(15968, 238379, 0.6139932, 1, 0, 1, 1, 'Warping Wise'),
(15968, 238380, 0.6360362, 1, 0, 1, 1, 'Null Voidfish'),
(15968, 238381, 0.6794801, 1, 0, 1, 1, 'Hollow Grouper'),
(15968, 238383, 6, 1, 0, 1, 1, 'Eversong Trout'),
(15968, 238384, 7.57508, 1, 0, 1, 1, 'Sunwell Fish'),
(15968, 238477, 1, 1, 0, 1, 1, 'Rotten Meat'),
(15968, 238478, 1, 1, 0, 1, 1, 'Shimmering Seaweed'),
(15968, 238479, 1, 1, 0, 1, 1, 'Torn Caster''s Net'),
(15968, 238480, 1, 1, 0, 1, 1, 'Opened Lockbox'),
(15968, 238481, 1, 1, 0, 1, 1, 'Glittering Garbage'),
(15968, 238482, 1, 1, 0, 1, 1, 'A Whole Lot of Nothing'),
(15968, 238483, 1, 1, 0, 1, 1, 'Bottom Grass'),
(15968, 238484, 1, 1, 0, 1, 1, 'Damp Washcloth'),
(15968, 238485, 1, 1, 0, 1, 1, 'Grotesque Globule'),
(15968, 238486, 0.1183472, 1, 0, 1, 1, 'Empty Can'),
(15968, 238487, 0.1335419, 1, 0, 1, 1, 'Kickin'' Can'),
(15968, 238488, 0.1243395, 1, 0, 1, 1, 'Definitely a Rock'),
(15968, 238489, 0.1281917, 1, 0, 1, 1, 'Definitely Not a Rock'),
(15968, 238490, 0.1247675, 1, 0, 1, 1, 'Ambiguous Rock'),
(15968, 238491, 0.1307598, 1, 0, 1, 1, 'Whispering Rock'),
(15968, 238492, 0.1142811, 1, 0, 1, 1, 'Silent Rock'),
(15968, 238493, 0.05007822, 1, 0, 1, 1, 'Screaming Rock'),
(15968, 238494, 0.0496502, 1, 0, 1, 1, 'Another''s Treasure'),
(15968, 238495, 0.05949464, 1, 0, 1, 1, 'One Angler''s Trash'),
(15968, 238496, 0.05607049, 1, 0, 1, 1, 'Top Grass'),
(15968, 238511, 0.000428019, 1, 0, 1, 2, 'Void-Tempered Leather'),
(15968, 238513, 0.002568114, 1, 0, 1, 2, 'Void-Tempered Scales'),
(15968, 242639, 0.001070047, 1, 0, 1, 3, 'Practically Pork'),
(15968, 242640, 0.007704342, 1, 0, 1, 18, 'Plant Protein'),
(15968, 243248, 0.007276323, 1, 0, 1, 9, 'Anomaly Filament'),
(15968, 243302, 0.13504, 1, 0, 1, 3, 'Aquarius Bloom'),
(15968, 243342, 0.2469669, 1, 0, 1, 20, 'Bloom Bauble'),
(15968, 243343, 0.1468105, 1, 0, 1, 3, 'Angler''s Anomaly'),
(15968, 244791, 0.1898264, 1, 0, 1, 1, 'Recipe: Amani Angler''s Ward'),
(15968, 244815, 0.1834061, 1, 0, 1, 1, 'Recipe: Ominous Octopus Lure'),
(15968, 244816, 0.1821221, 1, 0, 1, 1, 'Recipe: Lucky Loa Lure'),
(15968, 244817, 0.179554, 1, 0, 1, 1, 'Recipe: Blood Hunter Lure'),
(15968, 246379, 0.85561, 1, 0, 1, 1, 'Absolutely Adequate Fish'),
(15968, 246380, 0.8162322, 1, 0, 1, 1, 'Fairly Fine Fish'),
(15968, 246381, 0.8061737, 1, 0, 1, 1, 'Pretty Plump Fish'),
(15968, 246382, 0.7941892, 1, 0, 1, 1, 'Fabulous Fish'),
(15968, 260606, 0.003210142, 1, 0, 1, 1, 'Light and Shaggy Fur'),
(15968, 260618, 0.003852171, 1, 0, 1, 3, 'Light-Infused Leaves'),
(15968, 260638, 0.0002140095, 1, 0, 1, 1, 'Fine Void Residue'),
(15968, 260646, 0.002354104, 1, 0, 1, 2, 'Glowing Gland'),
(15968, 260656, 0.00428019, 1, 0, 1, 4, 'Perforated Wing'),
(15968, 260661, 0.002782123, 1, 0, 1, 4, 'Glowing Shrub'),
(15968, 260664, 0.006420285, 1, 0, 1, 9, 'Bioluminescent Flower Petals'),
(15968, 260670, 0.004494199, 1, 0, 1, 3, 'Bloody Broken Beak'),
(15968, 260672, 0.003424152, 1, 0, 1, 2, 'Fetid Eye'),
(15968, 260907, 0.001284057, 1, 0, 1, 1, 'Lost Winter''s Hunger'),
(15968, 262649, 0.112569, 1, 0, 1, 2, 'An Angler''s Deep Dive'),
(15968, 262650, 0.04344393, 1, 0, 1, 3, 'Writhing Wiggleworm'),
(15968, 262651, 0.04793813, 1, 0, 1, 3, 'Pointed Spikesnail'),
(15968, 262787, 0.05200431, 1, 0, 1, 2, 'Dredged Journal Entry'),
(15968, 262792, 0.2011689, 1, 0, 2, 20, 'Shredded Bloomline'),
(15968, 262793, 0.1314018, 1, 0, 1, 5, 'Stranded Bloomline'),
(15968, 262797, 0.1998849, 1, 0, 2, 20, 'Shredded Glimmerline'),
(15968, 262798, 0.1339699, 1, 0, 1, 5, 'Stranded Glimmerline'),
(15968, 263938, 0.0948062, 1, 0, 1, 1, 'Idol of Peril'),
(15968, 266384, 0.009630427, 1, 0, 1, 1, 'Sanctum Magister''s Post'),
(15968, 266386, 0.02653718, 1, 0, 1, 1, 'Sanctum Acolyte''s Post'),
(15968, 266387, 0.007918351, 1, 0, 1, 1, 'Sanctum Magister''s Pylon'),
(15968, 266388, 0.0203309, 1, 0, 1, 1, 'Sanctum Acolyte''s Pylon'),
(15968, 266393, 0.006848304, 1, 0, 1, 1, 'Farstrider''s Gilded Bow'),
(15968, 266396, 0.02204298, 1, 0, 1, 1, 'Farstrider''s Solemn Bow'),
(15968, 267395, 0.1814801, 1, 0, 1, 1, 'Technique: Homely Wall Shelves'),
(15968, 278329, 0.1305458, 1, 0, 1, 1, 'Thalassian Recipe in a Bottle'),
(15968, 238512, 0.0002140095, 1, 0, 8, 8, 'Void-Tempered Leather'),
(15968, 251923, 0.0002140095, 1, 0, 1, 1, 'Thalassian Essence of the Faire'),
(15968, 258854, 0.0002140095, 1, 0, 1, 1, 'Stained Pauldrons'),
(15968, 258859, 0.0002140095, 1, 0, 1, 1, 'Threadbare Mitts'),
(15968, 258873, 0.0002140095, 1, 0, 1, 1, 'Frayed Tunic'),
(15968, 258875, 0.000428019, 1, 0, 1, 1, 'Frayed Britches'),
(15968, 260636, 0.0002140095, 1, 0, 1, 1, 'Algae Covered Stone'),
(15968, 260647, 0.001070047, 1, 0, 1, 1, 'Digested Human Hand'),
(15968, 260650, 0.000428019, 1, 0, 1, 1, 'Elemental Debris'),
(15968, 260654, 0.000856038, 1, 0, 1, 1, 'Abrasive Sand'),
(15968, 260659, 0.0006420285, 1, 0, 1, 1, 'Stellar Vortex Residue'),
(15968, 260665, 0.002140095, 1, 0, 1, 2, 'Sizable Tusk'),
(15968, 260673, 0.0002140095, 1, 0, 1, 1, 'Partially Digested Bracers'),
(15968, 260695, 0.0002140095, 1, 0, 1, 1, 'Rancid Aquatic Remains'),
(15968, 267051, 0.00856038, 1, 0, 1, 10, 'Dark Particle'),
(15968, 271644, 0.000428019, 1, 0, 1, 1, 'Ember of Power'),
(15968, 272046, 0.000856038, 1, 0, 1, 1, 'Mana-Singed Divining Rod'),
(15968, 272047, 0.000428019, 1, 0, 1, 1, 'Deeplurk Scrying Stone'),
(15968, 272048, 0.001498066, 1, 0, 1, 1, 'Shattered Containment Pearl'),
(15968, 272116, 0.0002140095, 1, 0, 1, 1, 'Water-Logged Transaction Scroll'),
(15968, 272117, 0.001284057, 1, 0, 1, 1, 'Shattered Energy Weapon'),
(15968, 274576, 0.000428019, 1, 0, 1, 1, 'Ritualized Arcana');
INSERT IGNORE INTO `fishing_loot_template` (`entry`, `item`, `Chance`, `lootmode`, `groupid`, `MinCount`, `MaxCount`, `Comment`) VALUES
(16215, 236949, 0.04297379, 1, 0, 7, 20, 'Mote of Light'),
(16215, 236950, 0.06446068, 1, 0, 5, 17, 'Mote of Primal Energy'),
(16215, 236951, 0.04297379, 1, 0, 6, 9, 'Mote of Wild Magic'),
(16215, 238365, 13, 1, 0, 1, 1, 'Sin''dorei Swarmer'),
(16215, 238366, 16.60937, 1, 0, 1, 1, 'Lynxfish'),
(16215, 238370, 7, 1, 0, 1, 1, 'Shimmer Spinefish'),
(16215, 238371, 17.7052, 1, 0, 1, 1, 'Arcane Wyrmfish'),
(16215, 238372, 9, 1, 0, 1, 1, 'Restored Songfish'),
(16215, 238373, 0.04297379, 1, 0, 1, 1, 'Ominous Octopus'),
(16215, 238374, 11.81779, 1, 0, 1, 1, 'Tender Lumifin'),
(16215, 238377, 0.08594757, 1, 0, 1, 1, 'Blood Hunter'),
(16215, 238378, 0.02148689, 1, 0, 1, 1, 'Shimmersiren'),
(16215, 238383, 4, 1, 0, 1, 1, 'Eversong Trout'),
(16215, 238384, 8.165019, 1, 0, 1, 1, 'Sunwell Fish'),
(16215, 238477, 1, 1, 0, 1, 1, 'Rotten Meat'),
(16215, 238478, 1, 1, 0, 1, 1, 'Shimmering Seaweed'),
(16215, 238479, 1, 1, 0, 1, 1, 'Torn Caster''s Net'),
(16215, 238480, 1, 1, 0, 1, 1, 'Opened Lockbox'),
(16215, 238481, 1, 1, 0, 1, 1, 'Glittering Garbage'),
(16215, 238482, 0.795015, 1, 0, 1, 1, 'A Whole Lot of Nothing'),
(16215, 238483, 1.160292, 1, 0, 1, 1, 'Bottom Grass'),
(16215, 238484, 1.24624, 1, 0, 1, 1, 'Damp Washcloth'),
(16215, 238485, 1, 1, 0, 1, 1, 'Grotesque Globule'),
(16215, 238486, 0.1289214, 1, 0, 1, 1, 'Empty Can'),
(16215, 238487, 0.3437903, 1, 0, 1, 1, 'Kickin'' Can'),
(16215, 238488, 0.06446068, 1, 0, 1, 1, 'Definitely a Rock'),
(16215, 238489, 0.1504083, 1, 0, 1, 1, 'Definitely Not a Rock'),
(16215, 238490, 0.1074345, 1, 0, 1, 1, 'Ambiguous Rock'),
(16215, 238491, 0.1289214, 1, 0, 1, 1, 'Whispering Rock'),
(16215, 238492, 0.193382, 1, 0, 1, 1, 'Silent Rock'),
(16215, 238493, 0.06446068, 1, 0, 1, 1, 'Screaming Rock'),
(16215, 238494, 0.1074345, 1, 0, 1, 1, 'Another''s Treasure'),
(16215, 238495, 0.02148689, 1, 0, 1, 1, 'One Angler''s Trash'),
(16215, 238511, 0.08594757, 1, 0, 1, 9, 'Void-Tempered Leather'),
(16215, 242639, 0.06446068, 1, 0, 3, 6, 'Practically Pork'),
(16215, 243302, 0.04297379, 1, 0, 1, 3, 'Aquarius Bloom'),
(16215, 243342, 0.08594757, 1, 0, 1, 18, 'Bloom Bauble'),
(16215, 243343, 0.04297379, 1, 0, 1, 2, 'Angler''s Anomaly'),
(16215, 244791, 0.02148689, 1, 0, 1, 1, 'Recipe: Amani Angler''s Ward'),
(16215, 244815, 0.1074345, 1, 0, 1, 1, 'Recipe: Ominous Octopus Lure'),
(16215, 244816, 0.02148689, 1, 0, 1, 1, 'Recipe: Lucky Loa Lure'),
(16215, 244817, 0.02148689, 1, 0, 1, 1, 'Recipe: Blood Hunter Lure'),
(16215, 260643, 0.02148689, 1, 0, 1, 1, 'Pile of Feathers'),
(16215, 260652, 0.02148689, 1, 0, 1, 1, 'Broken Wildlife Claw'),
(16215, 260656, 0.04297379, 1, 0, 1, 2, 'Perforated Wing'),
(16215, 260672, 0.06446068, 1, 0, 1, 3, 'Fetid Eye'),
(16215, 262649, 0.02148689, 1, 0, 1, 1, 'An Angler''s Deep Dive'),
(16215, 262650, 0.08594757, 1, 0, 1, 3, 'Writhing Wiggleworm'),
(16215, 262651, 0.02148689, 1, 0, 3, 3, 'Pointed Spikesnail'),
(16215, 262792, 0.1074345, 1, 0, 3, 14, 'Shredded Bloomline'),
(16215, 262793, 0.08594757, 1, 0, 1, 3, 'Stranded Bloomline'),
(16215, 262797, 0.1289214, 1, 0, 4, 16, 'Shredded Glimmerline'),
(16215, 262798, 0.02148689, 1, 0, 1, 1, 'Stranded Glimmerline'),
(16215, 263938, 0.2363558, 1, 0, 1, 1, 'Idol of Peril'),
(16215, 266384, 0.02148689, 1, 0, 1, 1, 'Sanctum Magister''s Post'),
(16215, 266386, 0.02148689, 1, 0, 1, 1, 'Sanctum Acolyte''s Post'),
(16215, 266387, 0.02148689, 1, 0, 1, 1, 'Sanctum Magister''s Pylon'),
(16215, 266388, 0.02148689, 1, 0, 1, 1, 'Sanctum Acolyte''s Pylon'),
(16215, 266393, 0.02148689, 1, 0, 1, 1, 'Farstrider''s Gilded Bow'),
(16215, 266396, 0.04297379, 1, 0, 1, 1, 'Farstrider''s Solemn Bow'),
(16215, 267395, 0.1718951, 1, 0, 1, 1, 'Technique: Homely Wall Shelves'),
(16215, 278329, 0.04297379, 1, 0, 1, 1, 'Thalassian Recipe in a Bottle');
INSERT IGNORE INTO `fishing_loot_template` (`entry`, `item`, `Chance`, `lootmode`, `groupid`, `MinCount`, `MaxCount`, `Comment`) VALUES
(15355, 124669, 0.0293883, 1, 0, 2, 5, 'Darkmoon Daggermaw'),
(15355, 124670, 0.0293883, 1, 0, 1, 1, 'Sealed Darkmoon Crate'),
(15355, 236949, 0.1889248, 1, 0, 1, 19, 'Mote of Light'),
(15355, 236950, 0.1805281, 1, 0, 1, 20, 'Mote of Primal Energy'),
(15355, 236951, 0.2309081, 1, 0, 1, 19, 'Mote of Wild Magic'),
(15355, 236952, 0.008396658, 1, 0, 4, 14, 'Mote of Pure Void'),
(15355, 238365, 1, 1, 0, 1, 1, 'Sin''dorei Swarmer'),
(15355, 238366, 1, 1, 0, 1, 1, 'Lynxfish'),
(15355, 238367, 15.11818, 1, 0, 1, 1, 'Root Crab'),
(15355, 238368, 4, 1, 0, 1, 1, 'Twisted Tetra'),
(15355, 238369, 7.582182, 1, 0, 1, 1, 'Bloomtail Minnow'),
(15355, 238370, 7.460431, 1, 0, 1, 1, 'Shimmer Spinefish'),
(15355, 238371, 1, 1, 0, 1, 1, 'Arcane Wyrmfish'),
(15355, 238372, 7, 1, 0, 1, 1, 'Restored Songfish'),
(15355, 238373, 0.4954028, 1, 0, 1, 1, 'Ominous Octopus'),
(15355, 238374, 8.430244, 1, 0, 1, 1, 'Tender Lumifin'),
(15355, 238375, 8.295898, 1, 0, 1, 1, 'Fungalskin Pike'),
(15355, 238377, 0.4576179, 1, 0, 1, 1, 'Blood Hunter'),
(15355, 238378, 0.6213527, 1, 0, 1, 1, 'Shimmersiren'),
(15355, 238379, 0.5163945, 1, 0, 1, 1, 'Warping Wise'),
(15355, 238380, 0.5415844, 1, 0, 1, 1, 'Null Voidfish'),
(15355, 238381, 0.5499811, 1, 0, 1, 1, 'Hollow Grouper'),
(15355, 238383, 0.02518998, 1, 0, 1, 1, 'Eversong Trout'),
(15355, 238384, 0.8438641, 1, 0, 1, 1, 'Sunwell Fish'),
(15355, 238417, 0.01259499, 1, 0, 1, 1, 'Diminished Alndust'),
(15355, 238477, 3.178135, 1, 0, 1, 1, 'Rotten Meat'),
(15355, 238478, 3.295688, 1, 0, 1, 1, 'Shimmering Seaweed'),
(15355, 238479, 3.11516, 1, 0, 1, 1, 'Torn Caster''s Net'),
(15355, 238480, 2.829674, 1, 0, 1, 1, 'Opened Lockbox'),
(15355, 238481, 3.11516, 1, 0, 1, 1, 'Glittering Garbage'),
(15355, 238482, 3, 1, 0, 1, 1, 'A Whole Lot of Nothing'),
(15355, 238483, 3.148747, 1, 0, 1, 1, 'Bottom Grass'),
(15355, 238484, 3, 1, 0, 1, 1, 'Damp Washcloth'),
(15355, 238485, 3, 1, 0, 1, 1, 'Grotesque Globule'),
(15355, 238486, 0.4576179, 1, 0, 1, 1, 'Empty Can'),
(15355, 238487, 0.4072379, 1, 0, 1, 1, 'Kickin'' Can'),
(15355, 238488, 0.3862463, 1, 0, 1, 1, 'Definitely a Rock'),
(15355, 238489, 0.4576179, 1, 0, 1, 1, 'Definitely Not a Rock'),
(15355, 238490, 0.4534195, 1, 0, 1, 1, 'Ambiguous Rock'),
(15355, 238491, 0.3652546, 1, 0, 1, 1, 'Whispering Rock'),
(15355, 238492, 0.3400646, 1, 0, 1, 1, 'Silent Rock'),
(15355, 238493, 0.1763298, 1, 0, 1, 1, 'Screaming Rock'),
(15355, 238494, 0.1763298, 1, 0, 1, 1, 'Another''s Treasure'),
(15355, 238495, 0.1721315, 1, 0, 1, 1, 'One Angler''s Trash'),
(15355, 238496, 0.1511398, 1, 0, 1, 1, 'Top Grass'),
(15355, 242639, 0.07137159, 1, 0, 1, 4, 'Practically Pork'),
(15355, 242640, 0.1049582, 1, 0, 1, 8, 'Plant Protein'),
(15355, 243248, 0.008396658, 1, 0, 5, 9, 'Anomaly Filament'),
(15355, 243302, 0.1091566, 1, 0, 1, 3, 'Aquarius Bloom'),
(15355, 243342, 0.1889248, 1, 0, 1, 20, 'Bloom Bauble'),
(15355, 243343, 0.1049582, 1, 0, 1, 3, 'Angler''s Anomaly'),
(15355, 243589, 0.008396658, 1, 0, 1, 1, 'Alndust'),
(15355, 244791, 0.1469415, 1, 0, 1, 1, 'Recipe: Amani Angler''s Ward'),
(15355, 244815, 0.1217515, 1, 0, 1, 1, 'Recipe: Ominous Octopus Lure'),
(15355, 244816, 0.1049582, 1, 0, 1, 1, 'Recipe: Lucky Loa Lure'),
(15355, 244817, 0.1217515, 1, 0, 1, 1, 'Recipe: Blood Hunter Lure'),
(15355, 252246, 0.008396658, 1, 0, 3, 3, 'Sweet Beetle Wings'),
(15355, 255826, 0.07556992, 1, 0, 1, 2, 'Mysterious Skyshards'),
(15355, 256559, 0.01259499, 1, 0, 1, 1, 'Galactic Combatant''s Heraldry'),
(15355, 260309, 0.03358663, 1, 0, 1, 1, 'Thrumming Plant Matter'),
(15355, 260614, 0.02099165, 1, 0, 1, 2, 'Unrecognizable Organ'),
(15355, 260616, 0.01259499, 1, 0, 1, 1, 'Soft Marine Fungi'),
(15355, 260618, 0.0293883, 1, 0, 1, 2, 'Light-Infused Leaves'),
(15355, 260636, 0.02099165, 1, 0, 1, 1, 'Algae Covered Stone'),
(15355, 260638, 0.008396658, 1, 0, 1, 1, 'Fine Void Residue'),
(15355, 260641, 0.02099165, 1, 0, 1, 2, 'Arid Tendrils'),
(15355, 260650, 0.01259499, 1, 0, 1, 1, 'Elemental Debris'),
(15355, 260652, 0.01679332, 1, 0, 1, 2, 'Broken Wildlife Claw'),
(15355, 260653, 0.02099165, 1, 0, 1, 2, 'Large Lightbloom Fungi'),
(15355, 260656, 0.04618162, 1, 0, 1, 2, 'Perforated Wing'),
(15355, 260661, 0.03778496, 1, 0, 1, 3, 'Glowing Shrub'),
(15355, 260662, 0.06717326, 1, 0, 1, 3, 'Polished Purple Pebble'),
(15355, 260664, 0.04618162, 1, 0, 1, 5, 'Bioluminescent Flower Petals'),
(15355, 260673, 0.03778496, 1, 0, 1, 2, 'Partially Digested Bracers'),
(15355, 260686, 0.01259499, 1, 0, 1, 1, 'Vibrant Wings'),
(15355, 260898, 0.004198329, 1, 0, 1, 1, 'Lost Cerulean Edge'),
(15355, 260900, 0.01679332, 1, 0, 1, 1, 'Lost Thunder Fist'),
(15355, 260901, 0.01679332, 1, 0, 1, 1, 'Lost Stave of Burrowing Contortion'),
(15355, 260902, 0.004198329, 1, 0, 1, 1, 'Lost Sunset Scepter'),
(15355, 260903, 0.02099165, 1, 0, 1, 1, 'Lost Sunwell Splitter'),
(15355, 260904, 0.03358663, 1, 0, 1, 1, 'Lost Soul Collector'),
(15355, 260905, 0.01259499, 1, 0, 1, 1, 'Lost Blade of Spacial Descent'),
(15355, 260907, 0.02099165, 1, 0, 1, 1, 'Lost Winter''s Hunger'),
(15355, 260908, 0.008396658, 1, 0, 1, 1, 'Lost Frostwolf''s Stand'),
(15355, 260942, 0.01679332, 1, 0, 1, 1, 'Bubbly Snapling'),
(15355, 262649, 0.1049582, 1, 0, 1, 2, 'An Angler''s Deep Dive'),
(15355, 262650, 0.05037995, 1, 0, 1, 3, 'Writhing Wiggleworm'),
(15355, 262651, 0.05037995, 1, 0, 1, 3, 'Pointed Spikesnail'),
(15355, 262787, 0.03778496, 1, 0, 1, 2, 'Dredged Journal Entry'),
(15355, 262792, 0.1595365, 1, 0, 2, 17, 'Shredded Bloomline'),
(15355, 262793, 0.07556992, 1, 0, 1, 3, 'Stranded Bloomline'),
(15355, 262797, 0.1553382, 1, 0, 2, 20, 'Shredded Glimmerline'),
(15355, 262798, 0.09236324, 1, 0, 1, 5, 'Stranded Glimmerline'),
(15355, 263938, 0.09236324, 1, 0, 1, 1, 'Idol of Peril'),
(15355, 264544, 0.008396658, 1, 0, 1, 1, 'Grounded Death Cap'),
(15355, 264553, 0.008396658, 1, 0, 1, 1, 'Deepspore Leather Galoshes'),
(15355, 266384, 0.008396658, 1, 0, 1, 1, 'Sanctum Magister''s Post'),
(15355, 266386, 0.03358663, 1, 0, 1, 1, 'Sanctum Acolyte''s Post'),
(15355, 266387, 0.004198329, 1, 0, 1, 1, 'Sanctum Magister''s Pylon'),
(15355, 266388, 0.02518998, 1, 0, 1, 1, 'Sanctum Acolyte''s Pylon'),
(15355, 266393, 0.01259499, 1, 0, 1, 1, 'Farstrider''s Gilded Bow'),
(15355, 266396, 0.008396658, 1, 0, 1, 1, 'Farstrider''s Solemn Bow'),
(15355, 267395, 0.1637348, 1, 0, 1, 1, 'Technique: Homely Wall Shelves'),
(15355, 269023, 0.02099165, 1, 0, 1, 2, 'Phytogenic Poison Part'),
(15355, 278329, 0.1595365, 1, 0, 1, 1, 'Thalassian Recipe in a Bottle'),
(15355, 268730, 0.004198329, 1, 0, 1, 1, 'Nether-Warped Egg');
INSERT IGNORE INTO `fishing_loot_template` (`entry`, `item`, `Chance`, `lootmode`, `groupid`, `MinCount`, `MaxCount`, `Comment`) VALUES
(15947, 236949, 0.3633428, 1, 0, 1, 20, 'Mote of Light'),
(15947, 236950, 0.2893285, 1, 0, 1, 18, 'Mote of Primal Energy'),
(15947, 236951, 0.2893285, 1, 0, 1, 20, 'Mote of Wild Magic'),
(15947, 238365, 12.40075, 1, 0, 1, 1, 'Sin''dorei Swarmer'),
(15947, 238366, 10.2207, 1, 0, 1, 1, 'Lynxfish'),
(15947, 238367, 12.19217, 1, 0, 1, 1, 'Root Crab'),
(15947, 238368, 5.719284, 1, 0, 1, 1, 'Twisted Tetra'),
(15947, 238370, 0.8276141, 1, 0, 1, 1, 'Shimmer Spinefish'),
(15947, 238371, 1, 1, 0, 1, 1, 'Arcane Wyrmfish'),
(15947, 238372, 1.1775, 1, 0, 1, 1, 'Restored Songfish'),
(15947, 238373, 0.625757, 1, 0, 1, 1, 'Ominous Octopus'),
(15947, 238375, 9.749698, 1, 0, 1, 1, 'Fungalskin Pike'),
(15947, 238376, 7.636926, 1, 0, 1, 1, 'Lucky Loa'),
(15947, 238377, 5.133899, 1, 0, 1, 1, 'Blood Hunter'),
(15947, 238378, 0.484457, 1, 0, 1, 1, 'Shimmersiren'),
(15947, 238379, 0.4238999, 1, 0, 1, 1, 'Warping Wise'),
(15947, 238380, 0.4508142, 1, 0, 1, 1, 'Null Voidfish'),
(15947, 238381, 0.5921141, 1, 0, 1, 1, 'Hollow Grouper'),
(15947, 238382, 13.60517, 1, 0, 1, 1, 'Gore Guppy'),
(15947, 238383, 0.06728569, 1, 0, 1, 1, 'Eversong Trout'),
(15947, 238384, 1.1775, 1, 0, 1, 1, 'Sunwell Fish'),
(15947, 238477, 1, 1, 0, 1, 1, 'Rotten Meat'),
(15947, 238478, 1, 1, 0, 1, 1, 'Shimmering Seaweed'),
(15947, 238479, 0.8881712, 1, 0, 1, 1, 'Torn Caster''s Net'),
(15947, 238480, 0.7872427, 1, 0, 1, 1, 'Opened Lockbox'),
(15947, 238481, 0.8545283, 1, 0, 1, 1, 'Glittering Garbage'),
(15947, 238482, 0.7603284, 1, 0, 1, 1, 'A Whole Lot of Nothing'),
(15947, 238483, 1, 1, 0, 1, 1, 'Bottom Grass'),
(15947, 238484, 0.7266855, 1, 0, 1, 1, 'Damp Washcloth'),
(15947, 238485, 0.8545283, 1, 0, 1, 1, 'Grotesque Globule'),
(15947, 238486, 0.07401426, 1, 0, 1, 1, 'Empty Can'),
(15947, 238487, 0.06055713, 1, 0, 1, 1, 'Kickin'' Can'),
(15947, 238488, 0.1547571, 1, 0, 1, 1, 'Definitely a Rock'),
(15947, 238489, 0.07401426, 1, 0, 1, 1, 'Definitely Not a Rock'),
(15947, 238490, 0.1143857, 1, 0, 1, 1, 'Ambiguous Rock'),
(15947, 238491, 0.1009285, 1, 0, 1, 1, 'Whispering Rock'),
(15947, 238492, 0.1211143, 1, 0, 1, 1, 'Silent Rock'),
(15947, 238493, 0.06055713, 1, 0, 1, 1, 'Screaming Rock'),
(15947, 238494, 0.02691428, 1, 0, 1, 1, 'Another''s Treasure'),
(15947, 238495, 0.07401426, 1, 0, 1, 1, 'One Angler''s Trash'),
(15947, 238496, 0.02018571, 1, 0, 1, 1, 'Top Grass'),
(15947, 238964, 0.04709999, 1, 0, 1, 1, 'Stolen Equipment'),
(15947, 242639, 0.2018571, 1, 0, 1, 9, 'Practically Pork'),
(15947, 242640, 0.02018571, 1, 0, 1, 1, 'Plant Protein'),
(15947, 243248, 0.2018571, 1, 0, 1, 10, 'Anomaly Filament'),
(15947, 243302, 0.1480285, 1, 0, 1, 3, 'Aquarius Bloom'),
(15947, 243342, 0.3431571, 1, 0, 1, 20, 'Bloom Bauble'),
(15947, 243343, 0.1682142, 1, 0, 1, 3, 'Angler''s Anomaly'),
(15947, 244791, 0.2489571, 1, 0, 1, 1, 'Recipe: Amani Angler''s Ward'),
(15947, 244815, 0.1816714, 1, 0, 1, 1, 'Recipe: Ominous Octopus Lure'),
(15947, 244816, 0.2556856, 1, 0, 1, 1, 'Recipe: Lucky Loa Lure'),
(15947, 244817, 0.1883999, 1, 0, 1, 1, 'Recipe: Blood Hunter Lure'),
(15947, 260309, 0.00672857, 1, 0, 1, 1, 'Thrumming Plant Matter'),
(15947, 260614, 0.00672857, 1, 0, 14, 14, 'Unrecognizable Organ'),
(15947, 260636, 0.04037142, 1, 0, 1, 1, 'Algae Covered Stone'),
(15947, 260651, 0.00672857, 1, 0, 1, 1, 'Lustrous Wildlife Pelt'),
(15947, 260654, 0.09419997, 1, 0, 1, 4, 'Abrasive Sand'),
(15947, 260659, 0.08074284, 1, 0, 1, 4, 'Stellar Vortex Residue'),
(15947, 260665, 0.09419997, 1, 0, 1, 3, 'Sizable Tusk'),
(15947, 260900, 0.05382856, 1, 0, 1, 1, 'Lost Thunder Fist'),
(15947, 260901, 0.04037142, 1, 0, 1, 1, 'Lost Stave of Burrowing Contortion'),
(15947, 260902, 0.00672857, 1, 0, 1, 1, 'Lost Sunset Scepter'),
(15947, 260904, 0.05382856, 1, 0, 1, 1, 'Lost Soul Collector'),
(15947, 260907, 0.04709999, 1, 0, 1, 1, 'Lost Winter''s Hunger'),
(15947, 260908, 0.07401426, 1, 0, 1, 1, 'Lost Frostwolf''s Stand'),
(15947, 260942, 0.04037142, 1, 0, 1, 1, 'Bubbly Snapling'),
(15947, 262649, 0.07401426, 1, 0, 1, 2, 'An Angler''s Deep Dive'),
(15947, 262650, 0.1009285, 1, 0, 1, 3, 'Writhing Wiggleworm'),
(15947, 262651, 0.01345714, 1, 0, 2, 2, 'Pointed Spikesnail'),
(15947, 262787, 0.1009285, 1, 0, 1, 2, 'Dredged Journal Entry'),
(15947, 262792, 0.2556856, 1, 0, 2, 20, 'Shredded Bloomline'),
(15947, 262793, 0.1278428, 1, 0, 1, 5, 'Stranded Bloomline'),
(15947, 262797, 0.3027856, 1, 0, 2, 20, 'Shredded Glimmerline'),
(15947, 262798, 0.2085856, 1, 0, 1, 5, 'Stranded Glimmerline'),
(15947, 263938, 0.0874714, 1, 0, 1, 1, 'Idol of Peril'),
(15947, 266384, 0.1883999, 1, 0, 1, 1, 'Sanctum Magister''s Post'),
(15947, 266386, 0.06728569, 1, 0, 1, 1, 'Sanctum Acolyte''s Post'),
(15947, 266387, 0.00672857, 1, 0, 1, 1, 'Sanctum Magister''s Pylon'),
(15947, 266388, 0.02018571, 1, 0, 1, 1, 'Sanctum Acolyte''s Pylon'),
(15947, 266393, 0.2085856, 1, 0, 1, 1, 'Farstrider''s Gilded Bow'),
(15947, 266396, 0.02691428, 1, 0, 1, 1, 'Farstrider''s Solemn Bow'),
(15947, 267051, 0.1345714, 1, 0, 1, 16, 'Dark Particle'),
(15947, 267395, 0.1345714, 1, 0, 1, 1, 'Technique: Homely Wall Shelves'),
(15947, 274587, 0.07401426, 1, 0, 1, 1, 'Spotted Killifish'),
(15947, 274588, 0.06055713, 1, 0, 1, 1, 'Toxic Tlhapi'),
(15947, 274589, 0.0874714, 1, 0, 1, 1, 'Ula''tek Snakehead'),
(15947, 274590, 0.578657, 1, 0, 1, 1, 'Sulfurous Sludgefish'),
(15947, 274592, 0.06055713, 1, 0, 1, 1, 'Dirty Darter'),
(15947, 274594, 0.3027856, 1, 0, 1, 1, 'Polluted Puffer'),
(15947, 274951, 0.02691428, 1, 0, 1, 1, 'Corroded Scale'),
(15947, 275283, 0.06055713, 1, 0, 1, 1, 'Amphibious Scrap'),
(15947, 275284, 0.03364285, 1, 0, 1, 1, 'Slobbery Tongue'),
(15947, 278329, 0.2354999, 1, 0, 1, 1, 'Thalassian Recipe in a Bottle'),
(15947, 279091, 0.2220428, 1, 0, 1, 1, 'Oozing Goby'),
(15947, 279093, 0.04037142, 1, 0, 1, 1, 'Giggling Skull'),
(15947, 279094, 0.04037142, 1, 0, 1, 1, 'Grotesque Sturgeon'),
(15947, 279100, 0.296057, 1, 0, 1, 1, 'Many-Eyed Flounder'),
(15947, 236952, 0.00672857, 1, 0, 6, 6, 'Mote of Pure Void'),
(15947, 237767, 0.00672857, 1, 0, 1, 1, 'Lightwood Weapon'),
(15947, 260642, 0.02018571, 1, 0, 1, 2, 'Fossilized Wildlife'),
(15947, 260661, 0.01345714, 1, 0, 1, 2, 'Glowing Shrub'),
(15947, 260687, 0.00672857, 1, 0, 1, 1, 'Decaying Leather');
INSERT IGNORE INTO `fishing_loot_template` (`entry`, `item`, `Chance`, `lootmode`, `groupid`, `MinCount`, `MaxCount`, `Comment`) VALUES
(15458, 158746, 0.01759015, 1, 0, 1, 1, 'Tattered White Flag'),
(15458, 158823, 0.01759015, 1, 0, 1, 1, 'Malfunctioning Rocket Boots'),
(15458, 158828, 0.01759015, 1, 0, 1, 1, 'Cracked Gladiator''s Medallion'),
(15458, 163842, 0.01759015, 1, 0, 1, 1, 'Inert Hearthstone'),
(15458, 235632, 0.05277045, 1, 0, 2, 4, 'Exotic Tissue Sample'),
(15458, 236952, 0.1407212, 1, 0, 2, 14, 'Mote of Pure Void'),
(15458, 236963, 0.0703606, 1, 0, 1, 2, 'Bright Linen'),
(15458, 236965, 0.01759015, 1, 0, 1, 1, 'Bright Linen'),
(15458, 237380, 0.0351803, 1, 0, 1, 2, 'Empty Manacell'),
(15458, 237744, 0.0703606, 1, 0, 1, 4, 'Arcane Remnant'),
(15458, 237895, 0.05277045, 1, 0, 1, 2, 'Fragmented Keystone'),
(15458, 238373, 14, 1, 0, 1, 1, 'Ominous Octopus'),
(15458, 238377, 4, 1, 0, 1, 1, 'Blood Hunter'),
(15458, 238378, 7.229551, 1, 0, 1, 1, 'Shimmersiren'),
(15458, 238379, 6, 1, 0, 1, 1, 'Warping Wise'),
(15458, 238380, 9.32278, 1, 0, 1, 1, 'Null Voidfish'),
(15458, 238381, 11, 1, 0, 1, 1, 'Hollow Grouper'),
(15458, 238477, 4.221636, 1, 0, 1, 1, 'Rotten Meat'),
(15458, 238478, 4.415128, 1, 0, 1, 1, 'Shimmering Seaweed'),
(15458, 238479, 4.204046, 1, 0, 1, 1, 'Torn Caster''s Net'),
(15458, 238480, 4.485488, 1, 0, 1, 1, 'Opened Lockbox'),
(15458, 238481, 3.781882, 1, 0, 1, 1, 'Glittering Garbage'),
(15458, 238482, 4.309587, 1, 0, 1, 1, 'A Whole Lot of Nothing'),
(15458, 238483, 4, 1, 0, 1, 1, 'Bottom Grass'),
(15458, 238484, 4.415128, 1, 0, 1, 1, 'Damp Washcloth'),
(15458, 238485, 4, 1, 0, 1, 1, 'Grotesque Globule'),
(15458, 238486, 0.703606, 1, 0, 1, 1, 'Empty Can'),
(15458, 238487, 0.5452946, 1, 0, 1, 1, 'Kickin'' Can'),
(15458, 238488, 0.4045734, 1, 0, 1, 1, 'Definitely a Rock'),
(15458, 238489, 0.4573439, 1, 0, 1, 1, 'Definitely Not a Rock'),
(15458, 238490, 0.5452946, 1, 0, 1, 1, 'Ambiguous Rock'),
(15458, 238491, 0.4573439, 1, 0, 1, 1, 'Whispering Rock'),
(15458, 238492, 0.4045734, 1, 0, 1, 1, 'Silent Rock'),
(15458, 238493, 0.2638522, 1, 0, 1, 1, 'Screaming Rock'),
(15458, 238494, 0.1934916, 1, 0, 1, 1, 'Another''s Treasure'),
(15458, 238495, 0.351803, 1, 0, 1, 1, 'One Angler''s Trash'),
(15458, 238496, 0.1934916, 1, 0, 1, 1, 'Top Grass'),
(15458, 238511, 0.08795075, 1, 0, 2, 2, 'Void-Tempered Leather'),
(15458, 238512, 0.01759015, 1, 0, 1, 1, 'Void-Tempered Leather'),
(15458, 238513, 0.123131, 1, 0, 1, 2, 'Void-Tempered Scales'),
(15458, 238514, 0.01759015, 1, 0, 2, 2, 'Void-Tempered Scales'),
(15458, 238626, 0.0351803, 1, 0, 1, 1, 'Mana-Infused Bone'),
(15458, 242390, 0.05277045, 1, 0, 1, 3, 'Shadowgraft Fragment'),
(15458, 242639, 0.4925242, 1, 0, 1, 8, 'Practically Pork'),
(15458, 242640, 0.123131, 1, 0, 1, 2, 'Plant Protein'),
(15458, 243248, 0.1583114, 1, 0, 1, 10, 'Anomaly Filament'),
(15458, 243343, 0.1055409, 1, 0, 1, 3, 'Angler''s Anomaly'),
(15458, 243350, 0.0351803, 1, 0, 1, 1, 'Predator Blood'),
(15458, 244146, 0.05277045, 1, 0, 1, 3, 'Interrogated Data'),
(15458, 246372, 0.01759015, 1, 0, 1, 1, 'Void-Infused Morsel'),
(15458, 246951, 0.123131, 1, 0, 1, 6, 'Stormarion Core'),
(15458, 248086, 0.0703606, 1, 0, 1, 1, 'Void Essence'),
(15458, 248905, 0.0351803, 1, 0, 2, 3, 'Void Malgrease'),
(15458, 249387, 0.01759015, 1, 0, 1, 1, 'Latent Shadowgraft'),
(15458, 251786, 0.0351803, 1, 0, 1, 1, 'Ever-Collapsing Void Fissure'),
(15458, 251905, 0.0351803, 1, 0, 1, 3, 'Specialized Liver'),
(15458, 256559, 0.0703606, 1, 0, 1, 1, 'Galactic Combatant''s Heraldry'),
(15458, 257728, 0.05277045, 1, 0, 1, 4, 'Condensed Void Shard'),
(15458, 258146, 0.01759015, 1, 0, 1, 1, 'Rotten Carrion'),
(15458, 258857, 0.01759015, 1, 0, 1, 1, 'Threadbare Sash'),
(15458, 258861, 0.01759015, 1, 0, 1, 1, 'Threadbare Slippers'),
(15458, 258867, 0.0351803, 1, 0, 1, 1, 'Brittle Faceguard'),
(15458, 258934, 0.01759015, 1, 0, 1, 1, 'Tarnished Dawnlit Sentinel''s Girdle'),
(15458, 258936, 0.01759015, 1, 0, 1, 1, 'Tarnished Dawnlit Commander''s Breastplate'),
(15458, 258954, 0.01759015, 1, 0, 1, 1, 'Tarnished Dawnlit Poleaxe'),
(15458, 259029, 0.0351803, 1, 0, 1, 2, 'Shadowguard Intelligence'),
(15458, 260604, 0.123131, 1, 0, 1, 2, 'Insect Shedding'),
(15458, 260605, 0.0351803, 1, 0, 1, 1, 'Shattered Spear Tip'),
(15458, 260606, 0.05277045, 1, 0, 1, 1, 'Light and Shaggy Fur'),
(15458, 260614, 0.2638522, 1, 0, 1, 4, 'Unrecognizable Organ'),
(15458, 260615, 0.1759015, 1, 0, 1, 2, 'Void Dust Residue'),
(15458, 260616, 0.01759015, 1, 0, 1, 1, 'Soft Marine Fungi'),
(15458, 260637, 0.05277045, 1, 0, 1, 1, 'Rotting Insect Eggs'),
(15458, 260638, 0.2110818, 1, 0, 1, 2, 'Fine Void Residue'),
(15458, 260639, 0.123131, 1, 0, 1, 2, 'Fractured Bone'),
(15458, 260642, 0.01759015, 1, 0, 2, 2, 'Fossilized Wildlife'),
(15458, 260646, 0.01759015, 1, 0, 1, 1, 'Glowing Gland'),
(15458, 260647, 0.1055409, 1, 0, 1, 1, 'Digested Human Hand'),
(15458, 260648, 0.08795075, 1, 0, 1, 1, 'Tattered Clothes'),
(15458, 260649, 0.01759015, 1, 0, 1, 1, 'Vibrant Vortex'),
(15458, 260650, 0.1055409, 1, 0, 1, 2, 'Elemental Debris'),
(15458, 260655, 0.1407212, 1, 0, 1, 2, 'Decaying Humanoid Flesh'),
(15458, 260657, 0.123131, 1, 0, 1, 2, 'Holey Organ'),
(15458, 260658, 0.01759015, 1, 0, 1, 1, 'Crystal Rock Shard'),
(15458, 260659, 0.4397537, 1, 0, 1, 4, 'Stellar Vortex Residue'),
(15458, 260660, 0.0351803, 1, 0, 1, 1, 'Putrid Mushroom Spores'),
(15458, 260661, 0.1759015, 1, 0, 1, 4, 'Glowing Shrub'),
(15458, 260662, 0.3166227, 1, 0, 1, 4, 'Polished Purple Pebble'),
(15458, 260671, 0.0351803, 1, 0, 1, 2, 'Oversized Gland'),
(15458, 260672, 0.2462621, 1, 0, 1, 5, 'Fetid Eye'),
(15458, 260673, 0.1407212, 1, 0, 1, 1, 'Partially Digested Bracers'),
(15458, 260683, 0.01759015, 1, 0, 1, 1, 'Fine Magenta Sand'),
(15458, 260687, 0.01759015, 1, 0, 1, 1, 'Decaying Leather'),
(15458, 260689, 0.01759015, 1, 0, 1, 1, 'Fine Bioluminescent Powder'),
(15458, 260692, 0.01759015, 1, 0, 1, 1, 'Chunk of Mystery Meat'),
(15458, 260898, 0.05277045, 1, 0, 1, 1, 'Lost Cerulean Edge'),
(15458, 260901, 0.0351803, 1, 0, 1, 1, 'Lost Stave of Burrowing Contortion'),
(15458, 260902, 0.05277045, 1, 0, 1, 1, 'Lost Sunset Scepter'),
(15458, 260903, 0.05277045, 1, 0, 1, 1, 'Lost Sunwell Splitter'),
(15458, 260905, 0.0351803, 1, 0, 1, 1, 'Lost Blade of Spacial Descent'),
(15458, 260907, 0.01759015, 1, 0, 0, 0, 'Lost Winter''s Hunger'),
(15458, 260908, 0.0703606, 1, 0, 1, 1, 'Lost Frostwolf''s Stand'),
(15458, 264531, 0.01759015, 1, 0, 1, 1, 'Shadowthread Slippers'),
(15458, 264572, 0.01759015, 1, 0, 1, 1, 'Netherplate Clasp'),
(15458, 264601, 0.01759015, 1, 0, 1, 1, 'Queen''s Eye Band'),
(15458, 264634, 0.0351803, 1, 0, 1, 1, 'Spire of Flowing Void'),
(15458, 264701, 0.01759015, 1, 0, 1, 1, 'Cosmic Bell'),
(15458, 265801, 0.01759015, 1, 0, 1, 1, 'Savory Anomaly'),
(15458, 266223, 0.01759015, 1, 0, 1, 1, 'Stained Drape'),
(15458, 268730, 0.01759015, 1, 0, 1, 1, 'Nether-Warped Egg'),
(15458, 275280, 0.0351803, 1, 0, 1, 1, 'Gamey Flank'),
(15458, 275282, 0.01759015, 1, 0, 1, 1, 'Smooth Loin');
INSERT IGNORE INTO `fishing_loot_template` (`entry`, `item`, `Chance`, `lootmode`, `groupid`, `MinCount`, `MaxCount`, `Comment`) VALUES
(16365, 236949, 0.1149016, 1, 0, 1, 20, 'Mote of Light'),
(16365, 236950, 0.130758, 1, 0, 1, 20, 'Mote of Primal Energy'),
(16365, 236951, 0.1206467, 1, 0, 1, 20, 'Mote of Wild Magic'),
(16365, 238370, 0.01631602, 1, 0, 1, 1, 'Shimmer Spinefish'),
(16365, 238372, 0.01378819, 1, 0, 1, 1, 'Restored Songfish'),
(16365, 238383, 0.003676851, 1, 0, 1, 1, 'Eversong Trout'),
(16365, 238477, 1, 1, 0, 1, 1, 'Rotten Meat'),
(16365, 238478, 1, 1, 0, 1, 1, 'Shimmering Seaweed'),
(16365, 238479, 1, 1, 0, 1, 1, 'Torn Caster''s Net'),
(16365, 238480, 1, 1, 0, 1, 1, 'Opened Lockbox'),
(16365, 238481, 1, 1, 0, 1, 1, 'Glittering Garbage'),
(16365, 238482, 1, 1, 0, 1, 1, 'A Whole Lot of Nothing'),
(16365, 238483, 1, 1, 0, 1, 1, 'Bottom Grass'),
(16365, 238484, 1, 1, 0, 1, 1, 'Damp Washcloth'),
(16365, 238485, 1, 1, 0, 1, 1, 'Grotesque Globule'),
(16365, 238486, 0.1358137, 1, 0, 1, 1, 'Empty Can'),
(16365, 238487, 0.1316772, 1, 0, 1, 1, 'Kickin'' Can'),
(16365, 238488, 0.1362733, 1, 0, 1, 1, 'Definitely a Rock'),
(16365, 238489, 0.1452356, 1, 0, 1, 1, 'Definitely Not a Rock'),
(16365, 238490, 0.1339753, 1, 0, 1, 1, 'Ambiguous Rock'),
(16365, 238491, 0.1312176, 1, 0, 1, 1, 'Whispering Rock'),
(16365, 238492, 0.12846, 1, 0, 1, 1, 'Silent Rock'),
(16365, 238493, 0.0505567, 1, 0, 1, 1, 'Screaming Rock'),
(16365, 238494, 0.05951902, 1, 0, 1, 1, 'Another''s Treasure'),
(16365, 238495, 0.05446335, 1, 0, 1, 1, 'One Angler''s Trash'),
(16365, 238496, 0.06089784, 1, 0, 1, 1, 'Top Grass'),
(16365, 238513, 0.002987441, 1, 0, 1, 9, 'Void-Tempered Scales'),
(16365, 238514, 0.003217245, 1, 0, 1, 2, 'Void-Tempered Scales'),
(16365, 238944, 0.002068229, 1, 0, 1, 1, 'Torn Material'),
(16365, 243302, 0.07721387, 1, 0, 1, 2, 'Aquarius Bloom'),
(16365, 243342, 0.1181188, 1, 0, 1, 20, 'Bloom Bauble'),
(16365, 243343, 0.0795119, 1, 0, 1, 2, 'Angler''s Anomaly'),
(16365, 262649, 0.006894095, 1, 0, 1, 1, 'An Angler''s Deep Dive'),
(16365, 262650, 0.1208765, 1, 0, 1, 3, 'Writhing Wiggleworm'),
(16365, 262651, 0.1245533, 1, 0, 1, 3, 'Pointed Spikesnail'),
(16365, 262787, 0.1280004, 1, 0, 1, 2, 'Dredged Journal Entry'),
(16365, 262792, 0.1358137, 1, 0, 2, 20, 'Shredded Bloomline'),
(16365, 262793, 0.07790328, 1, 0, 1, 5, 'Stranded Bloomline'),
(16365, 262797, 0.1376521, 1, 0, 2, 20, 'Shredded Glimmerline'),
(16365, 262798, 0.07054958, 1, 0, 1, 5, 'Stranded Glimmerline'),
(16365, 263938, 0.01654583, 1, 0, 1, 1, 'Idol of Peril'),
(16365, 265525, 0.3453942, 1, 0, 1, 1, 'Grisly Morsel'),
(16365, 266384, 0.01539681, 1, 0, 1, 1, 'Sanctum Magister''s Post'),
(16365, 266386, 0.04848847, 1, 0, 1, 1, 'Sanctum Acolyte''s Post'),
(16365, 266387, 0.0142478, 1, 0, 1, 1, 'Sanctum Magister''s Pylon'),
(16365, 266388, 0.04733945, 1, 0, 1, 1, 'Sanctum Acolyte''s Pylon'),
(16365, 266393, 0.01838425, 1, 0, 1, 1, 'Farstrider''s Gilded Bow'),
(16365, 266396, 0.04986729, 1, 0, 1, 1, 'Farstrider''s Solemn Bow'),
(16365, 274076, 1.582884, 1, 0, 1, 1, 'Venom-Cursed Killifish'),
(16365, 274587, 14, 1, 0, 1, 1, 'Spotted Killifish'),
(16365, 274588, 14, 1, 0, 1, 1, 'Toxic Tlhapi'),
(16365, 274589, 2, 1, 0, 1, 1, 'Ula''tek Snakehead'),
(16365, 274590, 8.438143, 1, 0, 1, 1, 'Sulfurous Sludgefish'),
(16365, 274591, 1, 1, 0, 1, 1, 'Coiled Stargorger'),
(16365, 274592, 14, 1, 0, 1, 1, 'Dirty Darter'),
(16365, 274593, 3, 1, 0, 1, 1, 'Blightswarmer'),
(16365, 274594, 8.383909, 1, 0, 1, 1, 'Polluted Puffer'),
(16365, 274595, 0.4458182, 1, 0, 1, 1, 'Pristine Polygon'),
(16365, 274596, 2.350427, 1, 0, 1, 10, 'Beached Asteroid'),
(16365, 274597, 1.172226, 1, 0, 1, 3, 'Bulbous Benthos'),
(16365, 274801, 0.002527835, 1, 0, 1, 1, 'Envenomed Snakefang'),
(16365, 274811, 0.001838425, 1, 0, 1, 1, 'Envenomed Sacrificial Dagger'),
(16365, 277989, 0.01562661, 1, 0, 1, 1, 'Ghostcaller''s Bell'),
(16365, 277991, 0.04435201, 1, 0, 1, 1, 'Shrieking Tacklebox'),
(16365, 277993, 0.03102343, 1, 0, 1, 1, 'Spiritsurge Incense'),
(16365, 277996, 0.01838425, 1, 0, 1, 1, 'Summoning Salt'),
(16365, 277997, 0.008043111, 1, 0, 1, 1, 'Malevolent Fishing Codex'),
(16365, 277998, 0.01792465, 1, 0, 1, 1, 'Lump of Crystalline Malachite'),
(16365, 277999, 0.06020843, 1, 0, 1, 1, 'Ritual Dagger'),
(16365, 278000, 0.03745792, 1, 0, 1, 1, 'Sealed Vial of Mysterious Green Liquid'),
(16365, 278001, 0.02941481, 1, 0, 1, 1, 'Forgotten Amani Fishing Rod'),
(16365, 278329, 0.5103928, 1, 0, 1, 1, 'Thalassian Recipe in a Bottle'),
(16365, 278397, 0.1096161, 1, 0, 1, 1, 'Ephemeral Star Ooze'),
(16365, 278848, 0.1240937, 1, 0, 1, 1, 'Pustulent Blightswarmer'),
(16365, 279091, 4.575841, 1, 0, 1, 1, 'Oozing Goby'),
(16365, 279093, 1.718928, 1, 0, 1, 1, 'Giggling Skull'),
(16365, 279094, 0.8960026, 1, 0, 1, 1, 'Grotesque Sturgeon'),
(16365, 279100, 5.396238, 1, 0, 1, 1, 'Many-Eyed Flounder'),
(16365, 279105, 1, 1, 0, 1, 1, 'Twin-Headed Snipefish'),
(16365, 279106, 1, 1, 0, 1, 1, 'Loathsome Anglerfish'),
(16365, 279207, 0.2566901, 1, 0, 1, 1, 'Blackened Sludgefish'),
(16365, 279210, 0.7029679, 1, 0, 1, 1, 'Explosive Tlhapi'),
(16365, 279384, 0.1629304, 1, 0, 1, 1, 'Bonemail Gauntlet');
INSERT IGNORE INTO `fishing_loot_template` (`entry`, `item`, `Chance`, `lootmode`, `groupid`, `MinCount`, `MaxCount`, `Comment`) VALUES
(16535, 236949, 0.01932741, 1, 0, 1, 15, 'Mote of Light'),
(16535, 236950, 0.02576987, 1, 0, 5, 16, 'Mote of Primal Energy'),
(16535, 236951, 0.02576987, 1, 0, 2, 18, 'Mote of Wild Magic'),
(16535, 236963, 0.006442469, 1, 0, 2, 2, 'Bright Linen'),
(16535, 236965, 0.006442469, 1, 0, 2, 2, 'Bright Linen'),
(16535, 238370, 0.01288494, 1, 0, 1, 1, 'Shimmer Spinefish'),
(16535, 238372, 0.006442469, 1, 0, 1, 1, 'Restored Songfish'),
(16535, 238477, 1.410901, 1, 0, 1, 1, 'Rotten Meat'),
(16535, 238478, 1.475325, 1, 0, 1, 1, 'Shimmering Seaweed'),
(16535, 238479, 1.256281, 1, 0, 1, 1, 'Torn Caster''s Net'),
(16535, 238480, 1.275609, 1, 0, 1, 1, 'Opened Lockbox'),
(16535, 238481, 1.224069, 1, 0, 1, 1, 'Glittering Garbage'),
(16535, 238482, 1.333591, 1, 0, 1, 1, 'A Whole Lot of Nothing'),
(16535, 238483, 1.494653, 1, 0, 1, 1, 'Bottom Grass'),
(16535, 238484, 1.443113, 1, 0, 1, 1, 'Damp Washcloth'),
(16535, 238485, 1.282051, 1, 0, 1, 1, 'Grotesque Globule'),
(16535, 238486, 0.1675042, 1, 0, 1, 1, 'Empty Can'),
(16535, 238487, 0.1997165, 1, 0, 1, 1, 'Kickin'' Can'),
(16535, 238488, 0.1675042, 1, 0, 1, 1, 'Definitely a Rock'),
(16535, 238489, 0.2254864, 1, 0, 1, 1, 'Definitely Not a Rock'),
(16535, 238490, 0.206159, 1, 0, 1, 1, 'Ambiguous Rock'),
(16535, 238491, 0.1417343, 1, 0, 1, 1, 'Whispering Rock'),
(16535, 238492, 0.2383713, 1, 0, 1, 1, 'Silent Rock'),
(16535, 238493, 0.07086716, 1, 0, 1, 1, 'Screaming Rock'),
(16535, 238494, 0.06442469, 1, 0, 1, 1, 'Another''s Treasure'),
(16535, 238495, 0.06442469, 1, 0, 1, 1, 'One Angler''s Trash'),
(16535, 238496, 0.05153975, 1, 0, 1, 1, 'Top Grass'),
(16535, 238513, 0.03865481, 1, 0, 1, 2, 'Void-Tempered Scales'),
(16535, 238514, 0.09663703, 1, 0, 1, 2, 'Void-Tempered Scales'),
(16535, 238531, 0.006442469, 1, 0, 1, 1, 'Radiant Stomach'),
(16535, 242639, 0.05153975, 1, 0, 2, 6, 'Practically Pork'),
(16535, 243302, 0.04509728, 1, 0, 1, 2, 'Aquarius Bloom'),
(16535, 243342, 0.03865481, 1, 0, 1, 15, 'Bloom Bauble'),
(16535, 243343, 0.04509728, 1, 0, 1, 2, 'Angler''s Anomaly'),
(16535, 251923, 0.006442469, 1, 0, 1, 1, 'Thalassian Essence of the Faire'),
(16535, 258138, 0.006442469, 1, 0, 1, 1, 'Potent Healing Potion'),
(16535, 260614, 0.04509728, 1, 0, 1, 3, 'Unrecognizable Organ'),
(16535, 260639, 0.07730962, 1, 0, 1, 2, 'Fractured Bone'),
(16535, 260648, 0.05798222, 1, 0, 1, 1, 'Tattered Clothes'),
(16535, 260651, 0.03865481, 1, 0, 1, 2, 'Lustrous Wildlife Pelt'),
(16535, 260655, 0.02576987, 1, 0, 1, 2, 'Decaying Humanoid Flesh'),
(16535, 260660, 0.1417343, 1, 0, 1, 10, 'Putrid Mushroom Spores'),
(16535, 260685, 0.05153975, 1, 0, 1, 2, 'Large Brittle Bone'),
(16535, 260687, 0.006442469, 1, 0, 1, 1, 'Decaying Leather'),
(16535, 260693, 0.006442469, 1, 0, 1, 1, 'Mossy Lump of Dirt'),
(16535, 262649, 0.006442469, 1, 0, 1, 1, 'An Angler''s Deep Dive'),
(16535, 262650, 0.06442469, 1, 0, 1, 3, 'Writhing Wiggleworm'),
(16535, 262651, 0.02576987, 1, 0, 1, 3, 'Pointed Spikesnail'),
(16535, 262787, 0.03865481, 1, 0, 1, 2, 'Dredged Journal Entry'),
(16535, 262792, 0.05153975, 1, 0, 2, 17, 'Shredded Bloomline'),
(16535, 262793, 0.02576987, 1, 0, 2, 5, 'Stranded Bloomline'),
(16535, 262797, 0.05798222, 1, 0, 4, 18, 'Shredded Glimmerline'),
(16535, 262798, 0.03221234, 1, 0, 2, 4, 'Stranded Glimmerline'),
(16535, 263938, 0.02576987, 1, 0, 1, 1, 'Idol of Peril'),
(16535, 265800, 0.006442469, 1, 0, 1, 1, 'Earthy Garnish'),
(16535, 266384, 0.01288494, 1, 0, 1, 1, 'Sanctum Magister''s Post'),
(16535, 266386, 0.02576987, 1, 0, 1, 1, 'Sanctum Acolyte''s Post'),
(16535, 266387, 0.01932741, 1, 0, 1, 1, 'Sanctum Magister''s Pylon'),
(16535, 266388, 0.01288494, 1, 0, 1, 1, 'Sanctum Acolyte''s Pylon'),
(16535, 266393, 0.01288494, 1, 0, 1, 1, 'Farstrider''s Gilded Bow'),
(16535, 266396, 0.03221234, 1, 0, 1, 1, 'Farstrider''s Solemn Bow'),
(16535, 271693, 0.1932741, 1, 0, 1, 1, 'Congealed Venom'),
(16535, 271863, 0.006442469, 1, 0, 3, 3, 'Ophidian Bile'),
(16535, 271866, 0.01288494, 1, 0, 1, 1, 'Well-Worn Hatchet'),
(16535, 271867, 0.06442469, 1, 0, 1, 1, 'Venom-Etched Sword'),
(16535, 271868, 0.1417343, 1, 0, 1, 1, 'Splintering Spear'),
(16535, 274282, 1.726582, 1, 0, 1, 1, 'Venom-Charged Dubloon'),
(16535, 274587, 10.6494, 1, 0, 1, 1, 'Spotted Killifish'),
(16535, 274588, 10.27574, 1, 0, 1, 1, 'Toxic Tlhapi'),
(16535, 274589, 5.553408, 1, 0, 1, 1, 'Ula''tek Snakehead'),
(16535, 274590, 2.461023, 1, 0, 1, 1, 'Sulfurous Sludgefish'),
(16535, 274591, 3.163252, 1, 0, 1, 1, 'Coiled Stargorger'),
(16535, 274592, 10, 1, 0, 1, 1, 'Dirty Darter'),
(16535, 274594, 12.74965, 1, 0, 1, 1, 'Polluted Puffer'),
(16535, 274596, 0.04509728, 1, 0, 1, 1, 'Beached Asteroid'),
(16535, 274597, 0.06442469, 1, 0, 1, 1, 'Bulbous Benthos'),
(16535, 274801, 0.07086716, 1, 0, 1, 1, 'Envenomed Snakefang'),
(16535, 274802, 0.06442469, 1, 0, 1, 1, 'Envenomed Gavel'),
(16535, 274803, 0.04509728, 1, 0, 1, 1, 'Envenomed Trollsplitter'),
(16535, 274804, 0.07086716, 1, 0, 1, 1, 'Envenomed Elfcleaver'),
(16535, 274805, 0.03221234, 1, 0, 1, 1, 'Envenomed Chopper'),
(16535, 274806, 0.01932741, 1, 0, 1, 1, 'Envenomed Gut-Puncher'),
(16535, 274807, 0.05153975, 1, 0, 1, 1, 'Envenomed Ritualizer'),
(16535, 274808, 0.09019456, 1, 0, 1, 1, 'Envenomed Umbral Claymore'),
(16535, 274809, 0.05798222, 1, 0, 1, 1, 'Envenomed Soul Collector'),
(16535, 274810, 0.07086716, 1, 0, 1, 1, 'Envenomed Spring''s Frenzy'),
(16535, 274811, 0.03865481, 1, 0, 1, 1, 'Envenomed Sacrificial Dagger'),
(16535, 274812, 0.07730962, 1, 0, 1, 1, 'Envenomed Hunter''s Spear'),
(16535, 274813, 0.03865481, 1, 0, 1, 1, 'Envenomed Hammer'),
(16535, 274814, 0.05798222, 1, 0, 1, 1, 'Envenomed Game Ripper'),
(16535, 274815, 0.06442469, 1, 0, 1, 1, 'Envenomed Pages'),
(16535, 274816, 0.03865481, 1, 0, 1, 1, 'Envenomed False Promise'),
(16535, 274951, 0.0837521, 1, 0, 1, 4, 'Corroded Scale'),
(16535, 274953, 0.03865481, 1, 0, 1, 2, 'Serpentine Iris'),
(16535, 274954, 0.006442469, 1, 0, 1, 1, 'Pristine Fang'),
(16535, 277998, 0.1159644, 1, 0, 1, 1, 'Lump of Crystalline Malachite'),
(16535, 278001, 0.06442469, 1, 0, 1, 1, 'Forgotten Amani Fishing Rod'),
(16535, 278279, 0.8632908, 1, 0, 1, 1, 'Rapidly Decaying Fish'),
(16535, 278329, 0.206159, 1, 0, 1, 1, 'Thalassian Recipe in a Bottle'),
(16535, 278397, 0.2512563, 1, 0, 1, 1, 'Ephemeral Star Ooze'),
(16535, 279091, 9.148306, 1, 0, 1, 1, 'Oozing Goby'),
(16535, 279093, 2.409483, 1, 0, 1, 1, 'Giggling Skull'),
(16535, 279094, 0.8826182, 1, 0, 1, 1, 'Grotesque Sturgeon'),
(16535, 279100, 10.21776, 1, 0, 1, 1, 'Many-Eyed Flounder'),
(16535, 279105, 1, 1, 0, 1, 1, 'Twin-Headed Snipefish'),
(16535, 279106, 1.12099, 1, 0, 1, 1, 'Loathsome Anglerfish'),
(16535, 279207, 0.05153975, 1, 0, 1, 1, 'Blackened Sludgefish'),
(16535, 279210, 0.4509728, 1, 0, 1, 1, 'Explosive Tlhapi');
UPDATE `perks_vendor_items` SET `AvailableUntil` = 0;
@@ -954,12 +954,32 @@ void CriteriaHandler::UpdateCriteria(Criteria const* criteria, uint64 miscValue1
if (referencePlayer)
{
if (int32 milestoneActivityID = sPerksProgramMgr->GetThresholdActivityForCriteriaTree(tree->ID))
{
if (!referencePlayer->HasPerksMilestone(milestoneActivityID))
{
referencePlayer->AddPerksMilestone(milestoneActivityID);
if (referencePlayer->GetSession())
{
referencePlayer->GetSession()->SendPerksProgramActivityComplete(milestoneActivityID);
// Threshold milestones pay a bonus on top of the regular activity tender.
if (referencePlayer->ModifyPerksCurrency(sPerksProgramMgr->PERKS_TENDER_PER_ACTIVITY + sPerksProgramMgr->PERKS_TENDER_PER_MILESTONE))
referencePlayer->GetSession()->SendPerksProgramCurrencyUpdate();
}
}
}
else if (int32 mainActivityID = sPerksProgramMgr->GetMainActivityForCriteriaTree(tree->ID))
{
if (!referencePlayer->HasPerksMilestone(mainActivityID))
{
referencePlayer->AddPerksMilestone(mainActivityID);
if (referencePlayer->GetSession())
{
referencePlayer->GetSession()->SendPerksProgramActivityComplete(mainActivityID);
if (referencePlayer->ModifyPerksCurrency(sPerksProgramMgr->PERKS_TENDER_PER_ACTIVITY))
referencePlayer->GetSession()->SendPerksProgramCurrencyUpdate();
}
}
}
}
}
@@ -43,6 +43,7 @@
#include "Random.h"
#include "SpellMgr.h"
#include "TemporarySummon.h"
#include "WeeklyRewardsMgr.h"
#include "InstancePackets.h"
#include <algorithm>
#include <vector>
@@ -522,6 +523,11 @@ void ChallengeMode::Complete()
}
}
// Great Vault Dungeon row: one completion per finished run at the actual keystone level. Recorded here (once
// per run), not per boss kill in InstanceScript, so a multi-boss dungeon still counts once - and only
// keystone runs reach this path, so ordinary dungeons no longer unlock vault slots.
sWeeklyRewardsMgr.RecordActivity(player, WeeklyRewards::ActivityType::Dungeon, record.Level);
// Achievement criteria. All three are keyed off the run that just finished; the run-scoped
// ModifierTree nodes (MythicPlusKeystoneLevelEqualOrGreaterThan 247, MythicPlusCompletedInTime 248,
// MythicPlusMapChallengeMode 249) read the still-live ChallengeMode off the player's map, so these
+1
View File
@@ -1864,6 +1864,7 @@ enum class MapFlags2 : uint32
DisableSharedWeatherSystems = 0x00040000,
HonorSpellAttribute11LosHitsNocamcollide = 0x00080000,
BelongsToLayer = 0x00100000,
UseHybridMinimap = 0x10000000,
};
DEFINE_ENUM_FLAG(MapFlags2);
+2 -1
View File
@@ -371,6 +371,8 @@ class TC_GAME_API LFGMgr
void SetupGroupMember(ObjectGuid guid, ObjectGuid gguid);
/// Return Lfg dungeon entry for given dungeon id
uint32 GetLFGDungeonEntry(uint32 id);
/// Dungeon data, teleport location included (SPELL_EFFECT_TELEPORT_TO_LFG_DUNGEON)
LFGDungeonData const* GetLFGDungeon(uint32 id);
// cs_lfg
/// Get current player roles
@@ -478,7 +480,6 @@ class TC_GAME_API LFGMgr
void RemovePlayerData(ObjectGuid guid);
void GetCompatibleDungeons(LfgDungeonSet* dungeons, GuidSet const& players, LfgLockPartyMap* lockMap, std::vector<std::string_view>* playersMissingRequirement, bool isContinue);
void _SaveToDB(ObjectGuid guid, uint32 db_guid);
LFGDungeonData const* GetLFGDungeon(uint32 id);
// Proposals
void RemoveProposal(LfgProposalContainer::iterator itProposal, LfgUpdateType type);
+41 -42
View File
@@ -87,6 +87,7 @@
#include "LootPackets.h"
#include "Mail.h"
#include "MailPackets.h"
#include "MajorFactionMgr.h"
#include "MapManager.h"
#include "MapUtils.h"
#include "MiscPackets.h"
@@ -4968,9 +4969,12 @@ bool Player::CanJoinConstantChannelInZone(ChatChannelsEntry const* channel, Area
if (channel->GetFlags().HasFlag(ChatChannelFlags::ZoneBased) && zone->GetFlags().HasFlag(AreaFlags::NoChatChannels))
return false;
if (channel->GetFlags().HasFlag(ChatChannelFlags::OnlyInCities) && !zone->GetFlags().HasFlag(AreaFlags::AllowTradeChannel))
if (channel->GetFlags().HasFlag(ChatChannelFlags::ZoneAttackAlerts) && zone->GetFlags().HasFlag(AreaFlags::NoLocalDefenseChannel))
return false;
if (channel->GetFlags().HasFlag(ChatChannelFlags::OnlyInCities) && !zone->GetFlags().HasFlag(AreaFlags::AllowTradeChannel))
return false;
if (channel->GetFlags().HasFlag(ChatChannelFlags::GuildRecruitment) && GetGuildId())
return false;
@@ -17420,10 +17424,6 @@ void Player::ReputationChanged(FactionEntry const* factionEntry, int32 change)
UpdateQuestObjectiveProgress(QUEST_OBJECTIVE_MIN_REPUTATION, factionEntry->ID, change);
UpdateQuestObjectiveProgress(QUEST_OBJECTIVE_MAX_REPUTATION, factionEntry->ID, change);
UpdateQuestObjectiveProgress(QUEST_OBJECTIVE_INCREASE_REPUTATION, factionEntry->ID, change);
// A covenant renown gain may cross one or more renown levels -> grant their RenownRewards.
if (change > 0 && GetReputationMgr().IsRenownReputation(factionEntry))
UpdateRenownRewards(factionEntry);
}
void Player::CurrencyChanged(uint32 currencyId, int32 change)
@@ -17537,12 +17537,30 @@ void Player::UpdateQuestObjectiveProgress(QuestObjectiveType objectiveType, int3
}
}
// Collect the matching quest/objective ids before touching any quest state. A completed objective can
// immediately pay out and remove a world quest (Player::CompleteQuest -> RewardQuest ->
// RemoveActiveQuest), which erases entries from both m_questObjectiveStatus and m_QuestStatus. Holding
// iterators into either container across that call leaves dangling iterators in the loop (crash in
// Player::UpdateQuestObjectiveProgress when the next kill credit is processed).
std::vector<std::pair<uint32 /*questId*/, uint32 /*objectiveId*/>> matchingObjectives;
for (QuestObjectiveStatusMap::value_type const& objectiveItr : Trinity::Containers::MapEqualRange(m_questObjectiveStatus, { objectiveType, objectId }))
{
if (objectiveItr.second.QuestStatusItr == m_QuestStatus.end())
continue;
uint32 questId = objectiveItr.second.QuestStatusItr->first;
matchingObjectives.emplace_back(objectiveItr.second.QuestStatusItr->first, objectiveItr.second.ObjectiveId);
}
for (std::pair<uint32, uint32> const& objectiveRef : matchingObjectives)
{
uint32 questId = objectiveRef.first;
// Re-resolve the quest status for every entry: an earlier objective of this same update may have
// completed and removed the quest (world quest payout) or a script may have changed it.
auto questStatusItr = m_QuestStatus.find(questId);
if (questStatusItr == m_QuestStatus.end())
continue;
Quest const* quest = sObjectMgr->GetQuestTemplate(questId);
if (!quest)
continue;
@@ -17551,8 +17569,8 @@ void Player::UpdateQuestObjectiveProgress(QuestObjectiveType objectiveType, int3
if (GetGroup() && GetGroup()->isRaidGroup() && !quest->IsAllowedInRaid(GetMap()->GetDifficultyID()))
continue;
uint16 logSlot = objectiveItr.second.QuestStatusItr->second.Slot;
QuestObjective const* objective = sObjectMgr->GetQuestObjective(objectiveItr.second.ObjectiveId);
uint16 logSlot = questStatusItr->second.Slot;
QuestObjective const* objective = sObjectMgr->GetQuestObjective(objectiveRef.second);
if (!objective || !IsQuestObjectiveCompletable(logSlot, quest, *objective))
continue;
@@ -17657,7 +17675,7 @@ void Player::UpdateQuestObjectiveProgress(QuestObjectiveType objectiveType, int3
if (objective->ID == spawnTrackingQuestObjectiveId)
{
// Store spawn tracking to return correct state in Player::GetSpawnTrackingStateByObjective
QuestStatusData& questStatus = objectiveItr.second.QuestStatusItr->second;
QuestStatusData& questStatus = questStatusItr->second;
questStatus.SpawnTrackingList.insert(std::make_pair(objective->StorageIndex, data->spawnTrackingData->SpawnTrackingId));
// Send QuestPOIUpdateResponse for every spawn linked to same SpawnTrackingId
@@ -17709,7 +17727,7 @@ void Player::UpdateQuestObjectiveProgress(QuestObjectiveType objectiveType, int3
if (CanCompleteQuest(questId, objective->ID))
CompleteQuest(questId);
}
else if (!(objective->Flags & QUEST_OBJECTIVE_FLAG_OPTIONAL) && objectiveItr.second.QuestStatusItr->second.Status == QUEST_STATUS_COMPLETE)
else if (!(objective->Flags & QUEST_OBJECTIVE_FLAG_OPTIONAL) && questStatusItr->second.Status == QUEST_STATUS_COMPLETE)
IncompleteQuest(questId);
if (updatedObjectives)
@@ -18120,7 +18138,7 @@ void Player::SendQuestReward(Quest const* quest, Creature const* questGiver, uin
if (Quest const* rewardQuest = GetNextQuest(questGiver, quest))
packet.UseQuestReward = CanTakeQuest(rewardQuest, false);
if (questGiver->IsQuestGiver())
if (questGiver->IsQuestGiver() && !quest->HasFlagEx(QUEST_FLAGS_EX_SUPPRESS_GOSSIP_COMPLETE))
packet.LaunchQuest = !packet.UseQuestReward && (GetQuestDialogStatus(questGiver) & ~QuestGiverStatusFutureMask) != QuestGiverStatus::None;
}
@@ -34052,7 +34070,11 @@ bool Player::ModifyPerksCurrency(int32 amount)
// Use the core currency system ? this updates character_currencies and sends SetCurrency to client
if (amount > 0)
{
AddCurrency(CURRENCY_TRADERS_TENDER, static_cast<uint32>(amount));
_perksTotalEarned += amount;
_perksCurrencyDirty = true;
}
else
RemoveCurrency(CURRENCY_TRADERS_TENDER, -amount);
@@ -35277,7 +35299,7 @@ CurrencyTypesEntry const* Player::GetCovenantRenownCurrency(uint32 covenantId)
// Covenant.db2 also carries the Dragonflight and later major factions, and they publish a CurrencyTypesID
// too. Those run on renown REPUTATION (their Faction row publishes RenownCurrencyID) and are served by
// UpdateRenownRewards(FactionEntry const*); claiming them here would double-grant and would apply the
// MajorFactionMgr::GrantRenownLevelRewards; claiming them here would double-grant and would apply the
// Shadowlands-only level offset to them. Only covenants whose faction publishes no renown currency - which
// in this build is exactly the four Shadowlands covenants - are currency-driven.
FactionEntry const* faction = sFactionStore.LookupEntry(uint32(covenant->FactionID));
@@ -35468,32 +35490,6 @@ void Player::GrantRenownReward(RenownRewardsEntry const* reward)
// quests at a character would be destructive. Left until the field's meaning is confirmed in-game.
}
void Player::UpdateRenownRewards(FactionEntry const* renownFaction)
{
// Only act on live renown gains for an in-world player (avoids granting items mid-load); a player who already had
// renown before this feature is caught up on the first live renown change (all ungranted levels grant at once).
if (!renownFaction || !IsInWorld())
return;
if (!GetReputationMgr().IsRenownReputation(renownFaction))
return;
// Which covenant owns this renown faction?
uint32 covenantId = 0;
for (CovenantEntry const* covenant : sCovenantStore)
{
if (covenant->FactionID == int32(renownFaction->ID))
{
covenantId = covenant->ID;
break;
}
}
if (!covenantId)
return;
GrantRenownRewardsUpTo(covenantId, GetReputationMgr().GetRenownLevel(renownFaction));
}
void Player::UpdateCovenantRenownRewards(uint32 covenantId)
{
// Same in-world guard as the reputation path: never grant items mid-load. A character that already holds
@@ -35966,10 +35962,13 @@ void Player::GrantRenownRewardsUpTo(uint32 covenantId, int32 currentLevel)
void Player::UpdateAllRenownRewards()
{
// Reputation-driven renown (Dragonflight and later major factions).
for (CovenantEntry const* covenant : sCovenantStore)
if (FactionEntry const* faction = sFactionStore.LookupEntry(uint32(covenant->FactionID)))
UpdateRenownRewards(faction);
// Reputation-driven renown (Dragonflight and later major factions). Live level-ups dispatch through
// ReputationMgr::SetReputation; this is the in-world catch-up for renown the character already holds - either
// earned before the grant tables existed or inherited from a warband alt. GrantRenownLevelRewards skips rows
// already present in the character/warband grant tables, so replaying every level from 0 is cheap and idempotent.
if (IsInWorld())
for (uint32 factionId : sMajorFactionMgr->GetMajorFactionIDs())
sMajorFactionMgr->GrantRenownLevelRewards(this, factionId, 0, sMajorFactionMgr->GetPlayerRenownLevel(this, factionId));
// Currency-driven renown (the four Shadowlands covenants). Every covenant is walked, not just the active
// one: the per-covenant currencies 1829-1832 persist independently, so a character that switched covenants
+13 -13
View File
@@ -3186,19 +3186,19 @@ class TC_GAME_API Player final : public Unit, public GridObject<Player>
void RemoveSoulbindTraitSpells();
// Covenant renown.
//
// There are two renown engines and Covenant.db2 feeds both:
// - Dragonflight and later major factions (Covenant.db2 rows 12+) run on renown REPUTATION: their
// Faction row publishes RenownCurrencyID, ReputationMgr::IsRenownReputation is true and
// ReputationMgr::GetRenownLevel returns the level. UpdateRenownRewards(FactionEntry const*) serves those.
// - The four Shadowlands covenants (1-4) do NOT. Factions 2407/2410/2413/2465 publish
// RenownCurrencyID = 0 and RenownFactionID = 0, so IsRenownReputation is false for them and the
// reputation path can never fire for a covenant. Their renown is the per-covenant currency named by
// Covenant.db2 CurrencyTypesID (1829 Kyrian / 1830 Venthyr / 1831 Night Fae / 1832 Necrolord).
// That is also why one character can hold four independent renown tracks.
// Both paths converge on GrantRenownRewardsUpTo(), which grants each RenownRewards row exactly once.
void UpdateRenownRewards(FactionEntry const* renownFaction);
void UpdateAllRenownRewards(); // login catch-up: grant any renown rewards earned before this feature existed
//
// There are two renown engines and Covenant.db2 feeds both:
// - Dragonflight and later major factions (Covenant.db2 rows 12+) run on renown REPUTATION: their
// Faction row publishes RenownCurrencyID, ReputationMgr::IsRenownReputation is true and
// ReputationMgr::GetRenownLevel returns the level. MajorFactionMgr::GrantRenownLevelRewards serves
// those and tracks the grants per character / per warband.
// - The four Shadowlands covenants (1-4) do NOT. Factions 2407/2410/2413/2465 publish
// RenownCurrencyID = 0 and RenownFactionID = 0, so IsRenownReputation is false for them and the
// reputation path can never fire for a covenant. Their renown is the per-covenant currency named by
// Covenant.db2 CurrencyTypesID (1829 Kyrian / 1830 Venthyr / 1831 Night Fae / 1832 Necrolord).
// That is also why one character can hold four independent renown tracks; those converge on
// GrantRenownRewardsUpTo().
void UpdateAllRenownRewards(); // login catch-up: grant any renown rewards the character already holds
// The currency a Shadowlands covenant stores its renown in, or nullptr for any covenant whose renown is
// reputation-driven (and therefore not handled here).
@@ -1702,7 +1702,8 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder const& holder)
pCurrChar->SendInitialPacketsAfterAddToMap();
//WowCommunity
// Now in world: grant any covenant renown rewards earned before this character was last saved / before the feature existed.
// Now in world: grant any renown rewards the character already holds (major factions and Shadowlands covenants),
// including rewards earned before the grant tables existed or inherited from a warband alt.
pCurrChar->UpdateAllRenownRewards();
// Mythic+ weekly keystone maintenance: after a weekly reset the carried keystone is adjusted from last week's
-2
View File
@@ -58,8 +58,6 @@
#include "World.h"
#include <cstdarg>
#include <zlib.h>
#include "MajorFactionMgr.h"
#include "MajorFactionPackets.h"
#include "ReferAFriendPackets.h"
#include "ReputationMgr.h"
@@ -156,9 +156,9 @@ void WorldSession::HandlePerksProgramRequestPurchase(WorldPackets::PerksProgram:
return;
}
if (vendorItem->PacketData.Disabled)
if (!sPerksProgramMgr->IsVendorItemPurchasable(packet.VendorItemID, player->GetPerksFrozenVendorItemID()))
{
TC_LOG_DEBUG("network", "HandlePerksProgramRequestPurchase: VendorItemID {} is disabled.", packet.VendorItemID);
TC_LOG_DEBUG("network", "HandlePerksProgramRequestPurchase: VendorItemID {} is not purchasable (disabled, expired, or not in current rotation).", packet.VendorItemID);
return;
}
@@ -213,9 +213,9 @@ void WorldSession::HandlePerksProgramRequestCartCheckout(WorldPackets::PerksProg
for (int32 vendorItemID : packet.VendorItemIDs)
{
PerksProgramVendorItemData const* vendorItem = sPerksProgramMgr->GetVendorItem(vendorItemID);
if (!vendorItem || vendorItem->PacketData.Disabled)
if (!vendorItem || !sPerksProgramMgr->IsVendorItemPurchasable(vendorItemID, player->GetPerksFrozenVendorItemID()))
{
TC_LOG_DEBUG("network", "HandlePerksProgramRequestCartCheckout: VendorItemID {} invalid or disabled.", vendorItemID);
TC_LOG_DEBUG("network", "HandlePerksProgramRequestCartCheckout: VendorItemID {} invalid or not purchasable.", vendorItemID);
return;
}
if (HasAlreadyPurchased(player, vendorItemID))
@@ -275,9 +275,9 @@ void WorldSession::HandlePerksProgramSetFrozenVendorItem(WorldPackets::PerksProg
if (packet.IsFreezing)
{
PerksProgramVendorItemData const* vendorItem = sPerksProgramMgr->GetVendorItem(packet.VendorItemID);
if (!vendorItem)
if (!vendorItem || !sPerksProgramMgr->IsVendorItemPurchasable(packet.VendorItemID, player->GetPerksFrozenVendorItemID()))
{
TC_LOG_DEBUG("network", "HandlePerksProgramSetFrozenVendorItem: VendorItemID {} not found.", packet.VendorItemID);
TC_LOG_DEBUG("network", "HandlePerksProgramSetFrozenVendorItem: VendorItemID {} not found or not purchasable.", packet.VendorItemID);
return;
}
+7 -5
View File
@@ -462,11 +462,13 @@ bool InstanceScript::SetBossState(uint32 id, EncounterState state)
if (!player->IsLockedToDungeonEncounter(dungeonEncounter->ID))
player->UpdateCriteria(CriteriaType::DefeatDungeonEncounterWhileElegibleForLoot, dungeonEncounter->ID);
// Great Vault: credit the kill toward this week's raid or dungeon activity row. The
// instance difficulty stands in for the reward tier (raid difficulty / keystone level).
sWeeklyRewardsMgr.RecordActivity(player,
isRaidEncounter ? WeeklyRewards::ActivityType::Raid : WeeklyRewards::ActivityType::Dungeon,
uint32(instance->GetDifficultyID()));
// Great Vault: raid bosses credit the raid row per kill (the difficulty stands in for the
// reward tier). Dungeon/Mythic+ is NOT credited here - a normal dungeon clear is not a
// vault run and a keystone run must count once per completed run at its keystone level,
// which ChallengeMode::Complete records authoritatively.
if (isRaidEncounter)
sWeeklyRewardsMgr.RecordActivity(player, WeeklyRewards::ActivityType::Raid,
uint32(instance->GetDifficultyID()));
});
DoUpdateCriteria(CriteriaType::DefeatDungeonEncounter, dungeonEncounter->ID);
@@ -90,6 +90,26 @@ void MajorFactionMgr::IndexCovenants()
continue;
uint32 factionId = uint32(covenant->FactionID);
// Some covenant rows point at a non-major sibling faction that shares
// the major faction's renown currency (e.g. covenant 23 "Keg Leg's
// Crew" -> faction 2593, while the major faction is 2616 "Keg Leg
// Thrasher"; both use currency 2814). RenownRewards rows are keyed by
// CovenantID, so without this remap the rows would be bucketed under
// 2593 and never dispatched for 2616.
if (!_majorFactionSet.contains(factionId) && covenant->CurrencyTypesID != 0)
{
for (uint32 candidateId : _majorFactionIDs)
{
FactionEntry const* candidate = sFactionStore.LookupEntry(candidateId);
if (candidate && uint32(candidate->RenownCurrencyID) == uint32(covenant->CurrencyTypesID))
{
factionId = candidateId;
break;
}
}
}
_factionToCovenant[factionId] = covenant->ID;
_covenantToFaction[covenant->ID] = factionId;
_covenantByFaction[factionId] = covenant;
@@ -457,7 +477,11 @@ uint32 MajorFactionMgr::GetPlayerRenownLevel(Player const* player, uint32 factio
if (!faction)
return 0;
return uint32(player->GetReputationMgr().GetRenownLevel(faction));
// GetRenownLevel returns raw currency quantity as int32; it can be
// negative if a cheat/destroy path drove the currency below zero, which
// must not wrap into a huge unsigned level.
int32 level = player->GetReputationMgr().GetRenownLevel(faction);
return level > 0 ? uint32(level) : 0;
}
uint32 MajorFactionMgr::GetPlayerReputationThisLevel(Player const* player, uint32 factionId) const
@@ -469,20 +493,26 @@ uint32 MajorFactionMgr::GetPlayerReputationThisLevel(Player const* player, uint3
if (!faction)
return 0;
int32 standing = player->GetReputationMgr().GetReputation(faction);
if (standing <= 0)
// FactionState::Standing already holds the progress inside the current
// renown level for renown factions: ReputationMgr::SetReputation
// normalises it as totalReputation % threshold. The threshold comes from
// FactionEntry.ReputationMax for the character's race/class, so it must
// not be replaced by the fixed ReputationPerRenownLevel constant.
ReputationMgr const& repMgr = player->GetReputationMgr();
int32 threshold = repMgr.GetRenownLevelThreshold(faction);
if (threshold <= 0)
return 0;
uint32 perLevel = GetReputationPerRenownLevel(factionId);
if (perLevel == 0)
FactionState const* state = repMgr.GetState(faction);
if (!state || state->Standing <= 0)
return 0;
return uint32(standing) % perLevel;
return uint32(state->Standing) % uint32(threshold);
}
// ----- Reward dispatch -----------------------------------------------------
void MajorFactionMgr::GrantRenownLevelRewards(Player* player, uint32 factionId, uint32 fromLevel, uint32 toLevel, bool accountSync) const
void MajorFactionMgr::GrantRenownLevelRewards(Player* player, uint32 factionId, uint32 fromLevel, uint32 toLevel) const
{
if (!player || fromLevel >= toLevel)
return;
@@ -495,34 +525,31 @@ void MajorFactionMgr::GrantRenownLevelRewards(Player* player, uint32 factionId,
{
bool isAccountUnlock = (uint32(reward->Flags) & uint32(MajorFactions::RenownRewardFlags::AccountUnlock)) != 0;
// On account-sync (alt inherits renown from a higher toon), skip
// account-wide rewards that have already been granted on the
// original toon. Character-bound rewards still need to be granted
// because they're per-toon (e.g. Crafter's Knowledge).
if (accountSync && isAccountUnlock)
continue;
if (player->GetReputationMgr().IsRenownRewardGranted(reward->ID, isAccountUnlock))
continue;
GrantSingleRenownReward(player, reward);
player->GetReputationMgr().MarkRenownRewardGranted(reward->ID, isAccountUnlock);
// Only remember the reward when it was actually handed out: a row
// gated by a PlayerConditionID that does not hold yet must stay
// unmarked so a later pass can still grant it.
if (GrantSingleRenownReward(player, reward))
player->GetReputationMgr().MarkRenownRewardGranted(reward->ID, isAccountUnlock);
}
}
void MajorFactionMgr::GrantSingleRenownReward(Player* player, RenownRewardsEntry const* reward) const
bool MajorFactionMgr::GrantSingleRenownReward(Player* player, RenownRewardsEntry const* reward) const
{
if (!player || !reward)
return;
return false;
// PlayerConditionID gate: if set and not satisfied, skip silently. The
// client itself filters the reward row in this case so this is the
// server mirror.
// PlayerConditionID gate: if set and not satisfied, skip. The client
// filters the row in this case, so this is the server mirror. Returning
// false keeps the row eligible for a later attempt instead of marking it
// granted for a condition that may become true later.
if (reward->PlayerConditionID > 0)
{
PlayerConditionEntry const* condition = sPlayerConditionStore.LookupEntry(uint32(reward->PlayerConditionID));
if (condition && !ConditionMgr::IsPlayerMeetingCondition(player, condition))
return;
if (!condition || !ConditionMgr::IsPlayerMeetingCondition(player, condition))
return false;
}
// Item grant.
@@ -602,4 +629,6 @@ void MajorFactionMgr::GrantSingleRenownReward(Player* player, RenownRewardsEntry
TC_LOG_DEBUG("server.major-factions", "Granted RenownReward {} (Level {}, CovenantID {}) to player {} GUID {}",
reward->ID, reward->Level, reward->CovenantID, player->GetName(), player->GetGUID().ToString());
return true;
}
+14 -14
View File
@@ -189,9 +189,11 @@ public:
// ReputationMgr::GetRenownLevel via FactionEntry lookup).
uint32 GetPlayerRenownLevel(Player const* player, uint32 factionId) const;
// Reputation earned toward the next renown level (standing modulo
// ReputationPerRenownLevel). Mirror of
// MajorFactionData.renownReputationEarned.
// Reputation earned toward the next renown level. Mirror of
// MajorFactionData.renownReputationEarned. Uses the normalised
// FactionState::Standing that ReputationMgr keeps for renown factions
// and the faction's real per-level threshold (FactionEntry.ReputationMax)
// rather than a fixed constant.
uint32 GetPlayerReputationThisLevel(Player const* player, uint32 factionId) const;
// -- Reward dispatch (Phase 10C) -----------------------------------
@@ -200,18 +202,16 @@ public:
// for the given faction and dispatch each reward to the player.
// Handles multi-level jumps (e.g. catch-up). De-duplicates against
// ReputationMgr::IsRenownRewardGranted (character-scoped and
// account-scoped grant tables).
//
// If accountSync is true the call is the result of an alt logging
// in and inheriting renown from a higher-level toon: only
// character-bound rewards are granted (account-wide rewards were
// already granted on the original toon and live in
// warband_renown_rewards_granted).
void GrantRenownLevelRewards(Player* player, uint32 factionId, uint32 fromLevel, uint32 toLevel, bool accountSync = false) const;
// account-scoped grant tables), so the same span may safely be replayed
// both on a live level-up and on the login catch-up pass.
void GrantRenownLevelRewards(Player* player, uint32 factionId, uint32 fromLevel, uint32 toLevel) const;
// Dispatch a single RenownRewards row. Used both by
// GrantRenownLevelRewards and by admin/test command paths.
void GrantSingleRenownReward(Player* player, RenownRewardsEntry const* reward) const;
// Dispatch a single RenownRewards row. Returns whether the reward was
// actually handed out. A row whose PlayerConditionID is set but not
// satisfied returns false so the caller leaves it unmarked and it is
// re-evaluated on a later pass. Used both by GrantRenownLevelRewards and
// by admin/test command paths.
bool GrantSingleRenownReward(Player* player, RenownRewardsEntry const* reward) const;
private:
void IndexFactions();
@@ -894,7 +894,7 @@ enum SpellAttr12 : uint32
SPELL_ATTR12_UNK14 = 0x00004000, // TITLE Unknown attribute 14@Attr12
SPELL_ATTR12_UNK15 = 0x00008000, // TITLE Unknown attribute 15@Attr12
SPELL_ATTR12_UNK16 = 0x00010000, // TITLE Unknown attribute 16@Attr12
SPELL_ATTR12_UNK17 = 0x00020000, // TITLE Unknown attribute 17@Attr12
SPELL_ATTR12_NOT_IN_PROVING_GROUNDS = 0x00020000, // TITLE Not In Proving Grounds
SPELL_ATTR12_UNK18 = 0x00040000, // TITLE Unknown attribute 18@Attr12
SPELL_ATTR12_UNK19 = 0x00080000, // TITLE Unknown attribute 19@Attr12
SPELL_ATTR12_UNK20 = 0x00100000, // TITLE Unknown attribute 20@Attr12
@@ -1842,7 +1842,7 @@ namespace Trinity::Impl::EnumUtilsImpl
case SPELL_ATTR12_UNK14: return { "SPELL_ATTR12_UNK14", "Unknown attribute 14@Attr12", "" };
case SPELL_ATTR12_UNK15: return { "SPELL_ATTR12_UNK15", "Unknown attribute 15@Attr12", "" };
case SPELL_ATTR12_UNK16: return { "SPELL_ATTR12_UNK16", "Unknown attribute 16@Attr12", "" };
case SPELL_ATTR12_UNK17: return { "SPELL_ATTR12_UNK17", "Unknown attribute 17@Attr12", "" };
case SPELL_ATTR12_NOT_IN_PROVING_GROUNDS: return { "SPELL_ATTR12_NOT_IN_PROVING_GROUNDS", "Not In Proving Grounds", "" };
case SPELL_ATTR12_UNK18: return { "SPELL_ATTR12_UNK18", "Unknown attribute 18@Attr12", "" };
case SPELL_ATTR12_UNK19: return { "SPELL_ATTR12_UNK19", "Unknown attribute 19@Attr12", "" };
case SPELL_ATTR12_UNK20: return { "SPELL_ATTR12_UNK20", "Unknown attribute 20@Attr12", "" };
@@ -1886,7 +1886,7 @@ namespace Trinity::Impl::EnumUtilsImpl
case 14: return SPELL_ATTR12_UNK14;
case 15: return SPELL_ATTR12_UNK15;
case 16: return SPELL_ATTR12_UNK16;
case 17: return SPELL_ATTR12_UNK17;
case 17: return SPELL_ATTR12_NOT_IN_PROVING_GROUNDS;
case 18: return SPELL_ATTR12_UNK18;
case 19: return SPELL_ATTR12_UNK19;
case 20: return SPELL_ATTR12_UNK20;
@@ -1927,7 +1927,7 @@ namespace Trinity::Impl::EnumUtilsImpl
case SPELL_ATTR12_UNK14: return 14;
case SPELL_ATTR12_UNK15: return 15;
case SPELL_ATTR12_UNK16: return 16;
case SPELL_ATTR12_UNK17: return 17;
case SPELL_ATTR12_NOT_IN_PROVING_GROUNDS: return 17;
case SPELL_ATTR12_UNK18: return 18;
case SPELL_ATTR12_UNK19: return 19;
case SPELL_ATTR12_UNK20: return 20;
+107 -12
View File
@@ -17,11 +17,15 @@
#include "OmniumFolioMgr.h"
#include "DatabaseEnv.h"
#include "DB2Stores.h"
#include "DBCEnums.h"
#include "Log.h"
#include "ObjectAccessor.h"
#include "ObjectGuid.h"
#include "Player.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include <algorithm>
// The five weekly-unlock achievements that each source +1 "Mote of Omnial Inquiry"
// (TraitCurrency 4230) via DB2 TraitCurrencySource. Kept here for reference; the
@@ -30,6 +34,41 @@
namespace
{
[[maybe_unused]] constexpr uint32 MoteAchievements[5] = { 62606, 62607, 62608, 62609, 62610 };
// The schedule row must name a trait tree/system the client DB2 actually contains, and the
// tree must belong to that system: the minted config is recognised by TraitSystemId
// (HasFolioConfig / IsFolioTraitSystem) while the unlock spell creates it from its own
// effect misc value (TraitTreeId).
bool IsScheduleValid(int32 traitTreeId, int32 traitSystemId, uint32 unlockSpellId)
{
if (!traitTreeId || !traitSystemId || !unlockSpellId)
return false;
TraitTreeEntry const* traitTree = sTraitTreeStore.LookupEntry(uint32(traitTreeId));
if (!traitTree || !sTraitSystemStore.LookupEntry(uint32(traitSystemId))
|| traitTree->TraitSystemID != uint32(traitSystemId))
return false;
// The unlock spell must actually create this tree's config. Spell::EffectCreateTraitTreeConfig
// calls AssertEntry(effectInfo->MiscValue), so a spell whose effect misc value is not a
// valid TraitTree aborts the server rather than merely failing to mint.
SpellInfo const* unlockSpell = sSpellMgr->GetSpellInfo(unlockSpellId, DIFFICULTY_NONE);
if (!unlockSpell)
return false;
return std::ranges::any_of(unlockSpell->GetEffects(), [traitTreeId](SpellEffectInfo const& effect)
{
return effect.Effect == SPELL_EFFECT_CREATE_TRAIT_TREE_CONFIG && effect.MiscValue == traitTreeId;
});
}
void LogInvalidSchedule(uint32 seasonId, int32 traitTreeId, int32 traitSystemId, uint32 unlockSpellId)
{
TC_LOG_ERROR("server.loading", ">> Omnium Folio: season {} has an invalid schedule (trait tree {}, trait system {}, "
"unlock spell {}); system idle until the row is fixed. The row must name a tree and system that exist in "
"client DB2, the tree must belong to that system, and the unlock spell must create that tree's config.",
seasonId, traitTreeId, traitSystemId, unlockSpellId);
}
}
OmniumFolioMgr* OmniumFolioMgr::instance()
@@ -41,11 +80,12 @@ OmniumFolioMgr* OmniumFolioMgr::instance()
bool OmniumFolioMgr::ReadSeasonSchedule()
{
// Optional per-fork schedule: a single row keyed by descending SeasonId, newest row wins.
// Absent table/row leaves the season/flag at zero/false, restores the folio identity
// columns to their DB2-anchored defaults and clears _schedulePresent, so the shared realm
// never carries stale state forward -- and never polls a table it does not have (that
// would put one "table doesn't exist" error per poll in the log).
_schedulePresent = false;
// Every call resets the season/flag to zero/false and restores the folio identity columns
// to their DB2-anchored defaults, so the shared realm never carries stale state forward
// when the row disappears. _schedulePollActive is sticky: once the table has been read,
// Update() keeps polling so a re-added row (or a transient query failure) recovers without
// a restart. A table that was absent at startup stays unpolled, which keeps one
// "table doesn't exist" error per poll out of the log.
_seasonId = 0;
_enabled = false;
_traitTreeId = TRAIT_TREE_ID;
@@ -65,7 +105,10 @@ bool OmniumFolioMgr::ReadSeasonSchedule()
_traitTreeId = fields[2].GetInt32();
_traitSystemId = fields[3].GetInt32();
_unlockSpellId = fields[4].GetUInt32();
_schedulePresent = true;
_schedulePollActive = true;
// Parse only. Validation needs client DB2 and is done by the caller (LoadFromDB /
// Update), so a bad row does not log once per 60s poll.
return true;
}
@@ -84,6 +127,17 @@ void OmniumFolioMgr::LoadFromDB()
return;
}
// A row that names the wrong tree/system would mint a config this manager can never
// recognise: HasFolioConfig() keys off TraitSystemId while the unlock spell creates the
// config from its own effect misc value (TraitTreeId). Stay idle (but keep polling) until
// the row is fixed.
if (!IsScheduleValid(_traitTreeId, _traitSystemId, _unlockSpellId))
{
LogInvalidSchedule(_seasonId, _traitTreeId, _traitSystemId, _unlockSpellId);
_enabled = false;
return;
}
TC_LOG_INFO("server.loading", ">> Omnium Folio: season {} loaded (enabled={}); trait tree {}, trait system {}, unlock spell {}.",
_seasonId, uint32(_enabled), _traitTreeId, _traitSystemId, _unlockSpellId);
}
@@ -91,9 +145,10 @@ void OmniumFolioMgr::LoadFromDB()
void OmniumFolioMgr::Update(uint32 diff)
{
// Poll even while disabled so an operator flipping Enabled (or bumping SeasonId to open a
// new season) takes effect without a server restart -- but only once the schedule table is
// known to exist. Creating it later requires a restart, same as any other core table.
if (!_schedulePresent)
// new season) takes effect without a server restart -- but only once the schedule table has
// been read at least once. Creating it later requires a restart, same as any other core
// table; once it has been seen, polling is sticky so a deleted/re-added row recovers too.
if (!_schedulePollActive)
return;
_seasonPollTimer += diff;
@@ -108,6 +163,12 @@ void OmniumFolioMgr::Update(uint32 diff)
ReadSeasonSchedule();
// Re-validate after every poll. A row edited into an invalid state disables the system
// without a restart, and stays disabled (but keeps polling) until it is fixed.
bool const scheduleValid = IsScheduleValid(_traitTreeId, _traitSystemId, _unlockSpellId);
if (!scheduleValid)
_enabled = false;
if (_seasonId == previousSeasonId && _enabled == previousEnabled
&& _traitSystemId == previousTraitSystemId && _unlockSpellId == previousUnlockSpellId)
return;
@@ -116,6 +177,12 @@ void OmniumFolioMgr::Update(uint32 diff)
previousSeasonId, _seasonId, uint32(previousEnabled), uint32(_enabled),
previousTraitSystemId, _traitSystemId, previousUnlockSpellId, _unlockSpellId);
if (!scheduleValid)
{
LogInvalidSchedule(_seasonId, _traitTreeId, _traitSystemId, _unlockSpellId);
return;
}
if (!_enabled)
return;
@@ -180,7 +247,8 @@ void OmniumFolioMgr::EnsureFolioForPlayer(Player* player)
// * Node runes apply through Player::ApplyTraitConfig -> LearnSpell on each
// node's TraitDefinition.SpellID (already implemented).
// * Motes (TraitCurrency 4230) are computed live from TraitCurrencySource
// (achievements 62606..62610 + level-1 base) inside TraitMgr -- no store.
// (one per achievement 62606..62610; the level-1 row is Amount 0) inside
// TraitMgr -- no store.
//
// This coordinator only decides WHETHER to mint: season active + player eligible
// + no existing folio config. Everything it calls already exists in core.
@@ -213,7 +281,25 @@ void OmniumFolioMgr::EnsureFolioForPlayer(Player* player)
// No folio config yet -> mint it via stock trait code. The effect itself also
// guards against duplicating a config for this TraitSystemId, so this stays
// idempotent even if bookkeeping and update-fields ever disagree.
player->CastSpell(player, _unlockSpellId, true);
if (!_unlockSpellId)
{
TC_LOG_ERROR("entities.player", "Omnium Folio: season {} has no unlock spell; cannot mint the folio config for {}.",
_seasonId, player->GetGUID().ToString());
return;
}
uint32 const castResult = uint32(player->CastSpell(player, _unlockSpellId, true));
// Only mark the season as minted once the config really exists. A failed cast, or the
// "traits not loaded yet" early-out inside EffectCreateTraitTreeConfig, would otherwise
// record a successful mint for a character that still has no folio.
if (!HasFolioConfig(player))
{
TC_LOG_ERROR("entities.player", "Omnium Folio: unlock spell {} (cast result {}) did not create the trait config "
"(system {}) for {}; season {} bookkeeping not updated.",
_unlockSpellId, castResult, _traitSystemId, player->GetGUID().ToString(), _seasonId);
return;
}
SaveSeasonBookkeeping(player->GetGUID(), _seasonId);
}
@@ -233,8 +319,17 @@ void OmniumFolioMgr::ResetForNewSeason(Player* player)
// has none) and advance the season bookkeeping so the new season's achievement
// motes become spendable on the existing ledger. This is realm-safe and
// non-lossy; a confirmed wipe can be layered on later behind the same seam.
if (!HasFolioConfig(player))
if (!HasFolioConfig(player) && _unlockSpellId)
player->CastSpell(player, _unlockSpellId, true);
// Same rule as EnsureFolioForPlayer: never advance the season counter for a character
// that still has no folio config (for example when the unlock spell could not be cast).
if (!HasFolioConfig(player))
{
TC_LOG_ERROR("entities.player", "Omnium Folio: could not provision season {} for {} (trait system {} missing); "
"bookkeeping not updated.", _seasonId, player->GetGUID().ToString(), _traitSystemId);
return;
}
SaveSeasonBookkeeping(player->GetGUID(), _seasonId);
}
+20 -13
View File
@@ -28,14 +28,15 @@ class ObjectGuid;
// Omnium Folio -- Midnight (patch 12.0.7 "Revelations") Season 1 seasonal
// "rune ledger" power system. Characters are measurably weaker without it.
//
// Evidence anchors (client build 12.0.7.68887, wago.tools DB2 + fork source):
// Evidence anchors (client build 12.1.5.70077 on disk; the same ids are present in
// 12.0.7.68887, wago.tools DB2 + fork source):
// * TraitTree 1186 / TraitSystem 48 (WidgetSetID 2200) = the folio rune tree.
// 5 nodes = 5 weekly rows; node 110273 is a no-choice (type 0) row.
// * TraitCurrency 4230 ("Mote of Omnial Inquiry", Type 2 = TraitSourced) =
// the ledger currency. It is COMPUTED, never stored: TraitMgr derives
// the balance live from TraitCurrencySource rows 37084/37158..37162:
// PlayerLevel-1 base + 1 mote per completed achievement 62606..62610
// (the five weekly-unlock gates).
// the balance live from TraitCurrencySource rows 37084/37158..37162.
// Row 37084 (PlayerLevel 1) has Amount 0, so all motes come from the
// five weekly achievements 62606..62610 (1 each), not from the level.
// * Spell 1279717 carries SPELL_EFFECT_CREATE_TRAIT_TREE_CONFIG (303) with
// MiscValue_0 = 1186, i.e. casting it mints the generic TraitConfig
// (Spell::EffectCreateTraitTreeConfig -> Player::CreateTraitConfig).
@@ -50,7 +51,8 @@ class ObjectGuid;
// already implemented for TraitConfigType::Generic). This manager is therefore
// a thin coordinator / seam covering only what the stock trait system does not:
// (1) per-character eligibility + config-ensure on login,
// (2) the seasonal-reset hook (wipe & re-mint the generic config on rollover).
// (2) the seasonal-reset hook (guarantee the generic config and advance the
// per-character season bookkeeping on rollover; non-destructive today).
// The heavy lifting (power grant, persistence, opcodes) stays in TraitMgr.
//
// Realm-safety: LoadFromDB() tolerates an absent seasonal table (no-op), so this
@@ -88,17 +90,18 @@ public:
void LoadFromDB();
// Seasonal-reset tick. Re-reads the schedule row at SEASON_POLL_INTERVAL and, when the
// season or the enabled flag changes, re-provisions every online character immediately --
// otherwise a rollover would only take effect on the next relog.
// season, enabled flag, trait system or unlock spell changes, re-provisions every online
// character immediately -- otherwise a rollover would only take effect on the next relog.
// An invalid row disables the system without a restart and is re-checked on every poll.
void Update(uint32 diff);
// Player load-path seam (called from Player::LoadFromDB after traits apply).
void OnPlayerLogin(Player* player);
// Power-grant seam. Delegates to the trait system: when the player is eligible (unlock
// achievement 62606 completed) and has no folio config yet, casting the schedule row's
// UnlockSpellId mints the generic config. Idempotent -- safe to call on every schedule
// change.
// achievement 62606 or quest 96410 rewarded) and has no folio config yet, casting the
// schedule row's UnlockSpellId mints the generic config. Idempotent -- safe to call on
// every schedule change.
void EnsureFolioForPlayer(Player* player);
// Seasonal-reset hook: guarantees a generic folio config exists and advances the
@@ -131,15 +134,19 @@ private:
static void SaveSeasonBookkeeping(ObjectGuid guid, uint32 seasonId);
// Reads omnium_folio_season into _seasonId / _enabled and the three schedule-driven
// folio identity columns. Returns false when no row (or no table) exists, in which
// case every member is reset to its zero/false/default state.
// folio identity columns. Returns false when no row (or no table) exists, in which case
// every member is reset to its zero/false/default state. A successful read arms the
// sticky Update() poll flag.
bool ReadSeasonSchedule();
// How often Update() re-reads the schedule row (1 minute: a single-row query).
static constexpr uint32 SEASON_POLL_INTERVAL = 60 * IN_MILLISECONDS;
bool _enabled = false;
bool _schedulePresent = false;
// Sticky: set once the optional schedule table has been read successfully. While set,
// Update() keeps polling so a deleted/re-added row (or a transient query failure) recovers
// without a restart. A table absent at startup leaves it false -> no per-poll query errors.
bool _schedulePollActive = false;
uint32 _seasonId = 0;
uint32 _seasonPollTimer = 0;
@@ -135,8 +135,16 @@ std::vector<PerksProgramVendorItemData const*> PerksProgramMgr::GetCurrentRotati
{
if (now >= entry.MonthStart && now < entry.MonthEnd)
{
if (PerksProgramVendorItemData const* item = GetVendorItem(entry.VendorItemID))
items.push_back(item);
PerksProgramVendorItemData const* item = GetVendorItem(entry.VendorItemID);
if (!item)
continue;
// Hide items whose own availability window has passed unless they never expire.
time_t availableUntil = item->PacketData.AvailableUntil;
if (!item->PacketData.DoesNotExpire && availableUntil != 0 && now >= uint32(availableUntil))
continue;
items.push_back(item);
}
}
@@ -300,28 +308,40 @@ PerksProgramActivityLists PerksProgramMgr::GetCurrentMonthActivityLists() const
void PerksProgramMgr::BuildCriteriaTreeMap()
{
_criteriaTreeToThresholdActivity.clear();
_criteriaTreeToMainActivity.clear();
uint32 now = uint32(GameTime::GetGameTime());
std::unordered_set<uint32> mainIntervals;
std::unordered_set<uint32> thresholdIntervals;
for (ActivityIntervalEntry const& entry : _activityIntervals)
if (entry.IsThreshold && now >= entry.MonthStart && now < entry.MonthEnd)
thresholdIntervals.insert(entry.IntervalID);
{
if (now < entry.MonthStart || now >= entry.MonthEnd)
continue;
if (thresholdIntervals.empty())
if (entry.IsThreshold)
thresholdIntervals.insert(entry.IntervalID);
else
mainIntervals.insert(entry.IntervalID);
}
if (mainIntervals.empty() && thresholdIntervals.empty())
return;
for (PerksActivityXIntervalEntry const* xiv : sPerksActivityXIntervalStore)
{
if (!thresholdIntervals.count(xiv->IntervalID))
PerksActivityEntry const* activity = sPerksActivityStore.LookupEntry(uint32(xiv->PerksActivityID));
if (!activity || activity->CriteriaTreeID == 0)
continue;
if (PerksActivityEntry const* activity = sPerksActivityStore.LookupEntry(uint32(xiv->PerksActivityID)))
if (activity->CriteriaTreeID != 0)
_criteriaTreeToThresholdActivity[uint32(activity->CriteriaTreeID)] = xiv->PerksActivityID;
if (thresholdIntervals.count(xiv->IntervalID))
_criteriaTreeToThresholdActivity[uint32(activity->CriteriaTreeID)] = xiv->PerksActivityID;
else if (mainIntervals.count(xiv->IntervalID))
_criteriaTreeToMainActivity[uint32(activity->CriteriaTreeID)] = xiv->PerksActivityID;
}
TC_LOG_INFO("server.loading", ">> Built perks criteria tree map: {} threshold activities mapped.", uint32(_criteriaTreeToThresholdActivity.size()));
TC_LOG_INFO("server.loading", ">> Built perks criteria tree map: {} main + {} threshold activities mapped.",
uint32(_criteriaTreeToMainActivity.size()), uint32(_criteriaTreeToThresholdActivity.size()));
}
int32 PerksProgramMgr::GetThresholdActivityForCriteriaTree(uint32 criteriaTreeID) const
@@ -329,3 +349,33 @@ int32 PerksProgramMgr::GetThresholdActivityForCriteriaTree(uint32 criteriaTreeID
auto itr = _criteriaTreeToThresholdActivity.find(criteriaTreeID);
return itr != _criteriaTreeToThresholdActivity.end() ? itr->second : 0;
}
int32 PerksProgramMgr::GetMainActivityForCriteriaTree(uint32 criteriaTreeID) const
{
auto itr = _criteriaTreeToMainActivity.find(criteriaTreeID);
return itr != _criteriaTreeToMainActivity.end() ? itr->second : 0;
}
bool PerksProgramMgr::IsVendorItemPurchasable(int32 vendorItemID, int32 frozenVendorItemID) const
{
PerksProgramVendorItemData const* item = GetVendorItem(vendorItemID);
if (!item || item->PacketData.Disabled)
return false;
// Respect the item's own availability window unless flagged as permanent.
time_t availableUntil = item->PacketData.AvailableUntil;
if (!item->PacketData.DoesNotExpire && availableUntil != 0 && uint32(GameTime::GetGameTime()) >= uint32(availableUntil))
return false;
// Frozen items stay purchasable for the player who pinned them even after they
// rotate out; everything else must be part of the active monthly rotation.
if (vendorItemID == frozenVendorItemID)
return true;
uint32 now = uint32(GameTime::GetGameTime());
for (PerksProgramRotationEntry const& entry : _rotationEntries)
if (now >= entry.MonthStart && now < entry.MonthEnd && entry.VendorItemID == vendorItemID)
return true;
return false;
}
@@ -57,6 +57,12 @@ public:
static PerksProgramMgr* Instance();
// Trader's Tender awarded per completed perks activity and per threshold milestone.
// The retail reward amounts are not exposed in any DB2/hotfix table on this build,
// so these are tunable constants until capture data provides exact values.
static constexpr int32 PERKS_TENDER_PER_ACTIVITY = 100;
static constexpr int32 PERKS_TENDER_PER_MILESTONE = 250;
void LoadVendorItems();
void LoadMonthlyRotation();
void LoadActivityIntervals();
@@ -72,6 +78,8 @@ public:
std::vector<PerksProgramVendorItemData const*> GetCurrentRotationItems() const;
PerksProgramActivityLists GetCurrentMonthActivityLists() const;
int32 GetThresholdActivityForCriteriaTree(uint32 criteriaTreeID) const;
int32 GetMainActivityForCriteriaTree(uint32 criteriaTreeID) const;
bool IsVendorItemPurchasable(int32 vendorItemID, int32 frozenVendorItemID = 0) const;
uint32 GetCurrentMonthStart() const { return _currentMonthStart; }
uint32 GetCurrentMonthEnd() const { return _currentMonthEnd; }
@@ -91,6 +99,7 @@ private:
std::vector<PerksProgramRotationEntry> _rotationEntries;
std::vector<ActivityIntervalEntry> _activityIntervals;
std::unordered_map<uint32, int32> _criteriaTreeToThresholdActivity;
std::unordered_map<uint32, int32> _criteriaTreeToMainActivity;
uint32 _currentMonthStart = 0;
uint32 _currentMonthEnd = 0;
std::vector<uint32> _directMainActivities;
+7 -8
View File
@@ -599,7 +599,7 @@ bool ReputationMgr::SetOneFactionReputation(FactionEntry const* factionEntry, in
// Phase 10C: dispatch renown rewards for every level crossed (only on increase).
if (newRenownLevel > oldRenownLevel && sMajorFactionMgr->IsMajorFaction(factionEntry))
sMajorFactionMgr->GrantRenownLevelRewards(_player, factionEntry->ID, uint32(oldRenownLevel), uint32(newRenownLevel), false);
sMajorFactionMgr->GrantRenownLevelRewards(_player, factionEntry->ID, uint32(oldRenownLevel), uint32(newRenownLevel));
}
}
}
@@ -935,17 +935,16 @@ void ReputationMgr::LoadAccountWideFromDB(PreparedQueryResult result)
if (shouldSync)
{
// Set renown currency to account level
// Set renown currency to account level. The warband renown
// carry-over is intentionally not dispatched here: this runs
// during Player::LoadFromDB, before inventory exists, so item
// rewards would be lost. Player::UpdateAllRenownRewards()
// replays the full span once the character is in world, with
// the grant tables acting as the de-duplicator.
if (accountRenownLevel != charRenownLevel)
{
if (CurrencyTypesEntry const* currency = sCurrencyTypesStore.LookupEntry(factionEntry->RenownCurrencyID))
_player->ModifyCurrency(currency->ID, accountRenownLevel - charRenownLevel, CurrencyGainSource::RenownRepGain, CurrencyDestroyReason::Cheat);
// Phase 10C: dispatch character-bound rewards for the inherited renown
// span. accountSync=true skips account-wide rewards which were already
// granted on the original toon and live in warband_renown_rewards_granted.
if (sMajorFactionMgr->IsMajorFaction(factionEntry))
sMajorFactionMgr->GrantRenownLevelRewards(_player, factionEntry->ID, uint32(charRenownLevel), uint32(accountRenownLevel), true);
}
state->Standing = accountStanding;
@@ -57,7 +57,7 @@ namespace Covenant
std::vector<int32> BountyIDs;
};
// CMSG_COVENANT_RENOWN_REQUEST_CATCHUP_STATE (0x3B0111). Empty payload; the client asks whether accelerated
// CMSG_COVENANT_RENOWN_REQUEST_CATCHUP_STATE (0x3E0113). Empty payload; the client asks whether accelerated
// renown catch-up is currently active for the player.
class CovenantRenownRequestCatchupState final : public ClientPacket
{
@@ -67,7 +67,7 @@ namespace Covenant
void Read() override {}
};
// SMSG_COVENANT_RENOWN_SEND_CATCHUP_STATE (0x42030D). Wire (client reader, all_smsg_layouts): a single Bits<1>.
// SMSG_COVENANT_RENOWN_SEND_CATCHUP_STATE (0x45030F). Wire (client reader, all_smsg_layouts): a single Bits<1>.
// Core does not implement accelerated renown catch-up, so the answer is false (no catch-up active).
class CovenantRenownSendCatchupState final : public ServerPacket
{
@@ -25,7 +25,18 @@ namespace WorldPackets
{
namespace MajorFactions
{
// CMSG_COVENANT_RENOWN_REQUEST_CATCHUP_STATE (0x3B0111).
// DEPRECATED / UNVERIFIED WIRE FORMAT - DO NOT WIRE UP.
//
// This multi-entry catch-up reply is dead code. The live build answers
// CMSG_COVENANT_RENOWN_REQUEST_CATCHUP_STATE through
// WorldPackets::Covenant::CovenantRenownSendCatchupState, which is a
// single Bits<1> and is the only shape confirmed in-game. The layout
// below (length-prefixed array of faction/percent records) could not be
// verified and must not be sent. Kept only until the real multi-entry
// format is captured; remove together with MajorFactionPackets.cpp once
// CMake has been re-run (the source glob has no CONFIGURE_DEPENDS).
// CMSG_COVENANT_RENOWN_REQUEST_CATCHUP_STATE (0x3E0113).
// The client sends this when opening the Renown UI (covenant or major
// faction). Empty payload - the server replies with the current
// catchup state for every applicable faction.
@@ -37,7 +48,7 @@ namespace WorldPackets
void Read() override { }
};
// SMSG_COVENANT_RENOWN_SEND_CATCHUP_STATE (0x42030D).
// SMSG_COVENANT_RENOWN_SEND_CATCHUP_STATE (0x45030F). UNVERIFIED wire.
//
// Wire format derived from IDA decomp of ParseCovenantRenownCatchupState
// (sub_7FF75C0EB140) at build 12.0.5.67186:
-5
View File
@@ -826,11 +826,6 @@ namespace WorldPackets
class FetchBleepProxies;
}
namespace MajorFactions
{
class RequestCatchupState;
}
namespace PerksProgram
{
class RequestStoreFrontInfoUpdate;
+4
View File
@@ -6587,6 +6587,10 @@ SpellCastResult Spell::CheckCast(bool strict, int32* param1 /*= nullptr*/, int32
if (target->HasSummonPending())
return SPELL_FAILED_SUMMON_PENDING;
for (AreaTableEntry const* area = sAreaTableStore.LookupEntry(m_caster->GetAreaId()); area; area = sAreaTableStore.LookupEntry(area->ParentAreaID))
if (area->GetFlags().HasFlag(AreaFlags::NoPlayerSummoning))
return SPELL_FAILED_NOT_HERE;
// check if our map is dungeon
if (InstanceMap const* map = m_caster->GetMap()->ToInstanceMap())
{
+14 -3
View File
@@ -1071,11 +1071,22 @@ void Spell::EffectTeleportToLFGDungeon()
if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET)
return;
Player* player = Object::ToPlayer(unitTarget);
if (!player)
Player* player = unitTarget ? unitTarget->ToPlayer() : nullptr;
if (!player || player->IsInFlight())
return;
sLFGMgr->TeleportPlayer(player, false);
// MiscValueB is the LFGDungeons id; its entrance comes from lfg_dungeon_template or the map's entrance areatrigger
lfg::LFGDungeonData const* dungeon = sLFGMgr->GetLFGDungeon(effectInfo->MiscValueB);
if (!dungeon || (dungeon->x == 0.0f && dungeon->y == 0.0f && dungeon->z == 0.0f))
{
TC_LOG_ERROR("spells.effect.nospell", "Spell::EffectTeleportToLFGDungeon: spell {} names LFG dungeon {}, which has no teleport location (lfg_dungeon_template or an entrance areatrigger).",
m_spellInfo->Id, effectInfo->MiscValueB);
return;
}
// as LFGMgr::TeleportPlayer does: the dungeon id goes with the teleport, so the instance knows its LFG dungeon and
// ScenarioMgr can take that dungeon's ScenarioID when no scenario row matches the map's difficulty (ScenarioMgr.cpp:41-45)
player->TeleportTo({ .Location = WorldLocation(dungeon->map, dungeon->x, dungeon->y, dungeon->z, dungeon->o), .LfgDungeonsId = dungeon->id });
}
class DelayedSpellTeleportEvent : public BasicEvent
+7
View File
@@ -2255,6 +2255,13 @@ SpellCastResult SpellInfo::CheckLocation(uint32 map_id, uint32 zone_id, uint32 a
return SPELL_FAILED_NOT_IN_BATTLEGROUND;
}
if (HasAttribute(SPELL_ATTR12_NOT_IN_PROVING_GROUNDS))
{
MapEntry const* mapEntry = sMapStore.LookupEntry(map_id);
if (mapEntry && mapEntry->GetFlags().HasFlag(MapFlags::ProvingGrounds))
return SPELL_FAILED_NOT_HERE;
}
// DB base check (if non empty then must fit at least single for allow)
SpellAreaMapBounds saBounds = sSpellMgr->GetSpellAreaMapBounds(Id);
if (saBounds.first != saBounds.second)
+152 -16
View File
@@ -28,6 +28,7 @@
#include "QuaternionData.h"
#include "TemporarySummon.h"
#include "Timer.h"
#include "World.h"
#include "WorldStateMgr.h"
#include <algorithm>
#include <limits>
@@ -95,8 +96,12 @@ void VoidAssaultMgr::LoadFromDB()
VoidAssaultState& state = _states[tmpl.Id];
state.TemplateId = tmpl.Id;
// Schedule the first activation at the next period boundary from server start.
state.NextStart = now + static_cast<time_t>(tmpl.PeriodSeconds);
// Schedule the first activation. Weekly windows snap to the server's weekly
// reset boundary (ComputeNextStart); ComputeNextStart returns 0 here because
// LoadFromDB runs before InitQuestResetTimes, so Update() re-derives it on the
// first tick once the weekly reset time is populated. Non-weekly windows get
// a one-period offset from now.
state.NextStart = ComputeNextStart(tmpl, now);
state.Active = false;
++count;
@@ -150,6 +155,28 @@ void VoidAssaultMgr::LoadSpawns()
TC_LOG_INFO("server.loading", ">> Loaded {} Void assault spawns", _spawns.size());
}
// Weekly-cadence windows (the 12.0.5 assault swap and the 12.0.7 portal-world
// escalation) open on the realm's weekly reset boundary. We reuse the existing
// weekly-reset time source -- World::GetNextWeeklyQuestsResetTime() -- rather than
// counting a raw week from server boot, so the assault window tracks the same
// reset the weekly quests roll over on. That value is 0 until
// World::InitQuestResetTimes() runs (which is AFTER VoidAssaultMgr::LoadFromDB in
// SetInitialWorldSettings); when it is not yet available we return 0 and Update()
// retries on a later tick.
time_t VoidAssaultMgr::ComputeNextStart(VoidAssaultTemplate const& tmpl, time_t now) const
{
if (IsWeeklyCadence(tmpl))
{
time_t const weeklyReset = sWorld->GetNextWeeklyQuestsResetTime();
if (weeklyReset > now)
return weeklyReset; // next weekly reset boundary
return 0; // not initialised yet -> Update() re-derives it
}
// Sub-weekly strike rotations key off the current time.
return now + static_cast<time_t>(tmpl.PeriodSeconds);
}
void VoidAssaultMgr::Update(uint32 diff)
{
// Throttle: 1 Hz is sufficient for the second-resolution countdown worldstate.
@@ -172,6 +199,17 @@ void VoidAssaultMgr::Update(uint32 diff)
if (!state.Active)
{
// Weekly windows seeded with NextStart == 0 (weekly reset time was not
// yet available at LoadFromDB) are snapped to the reset boundary here,
// once.
if (state.NextStart == 0)
{
state.NextStart = ComputeNextStart(tmpl, now);
if (state.NextStart == 0)
continue; // reset time still not ready -> retry next tick
BroadcastTimers(tmpl, state); // publish the newly derived next-event clock
}
if (now >= state.NextStart)
ActivateAssault(state, tmpl, now);
}
@@ -220,7 +258,10 @@ void VoidAssaultMgr::ActivateAssault(VoidAssaultState& state, VoidAssaultTemplat
void VoidAssaultMgr::DeactivateAssault(VoidAssaultState& state, VoidAssaultTemplate const& tmpl, time_t now)
{
state.Active = false;
state.NextStart = now + static_cast<time_t>(tmpl.PeriodSeconds);
// Reschedule. Weekly windows snap to the next weekly reset (by now the reset
// framework has advanced GetNextWeeklyQuestsResetTime() past this window);
// other windows advance one period. A 0 here is re-derived by Update().
state.NextStart = ComputeNextStart(tmpl, now);
state.Meter = 0;
state.StrikesDone = 0;
state.IncursionPhase = false;
@@ -241,9 +282,15 @@ void VoidAssaultMgr::DeactivateAssault(VoidAssaultState& state, VoidAssaultTempl
void VoidAssaultMgr::BroadcastTimers(VoidAssaultTemplate const& tmpl, VoidAssaultState const& state)
{
// WS 22984 carries the next-event unix timestamp (confirmed on wire).
// WS 22984 carries the next-event unix timestamp (confirmed on wire). While a
// window is open the next transition is its EndTime; NextStart is only advanced
// when the window deactivates, so broadcasting it here would publish a stale
// (already-past) clock for the whole active window.
if (tmpl.TimerWorldStateId)
WorldStateMgr::SetValue(tmpl.TimerWorldStateId, static_cast<int32>(state.NextStart), false, nullptr);
{
time_t const nextTransition = state.Active ? state.EndTime : state.NextStart;
WorldStateMgr::SetValue(tmpl.TimerWorldStateId, static_cast<int32>(nextTransition), false, nullptr);
}
// WS 28763 carries the 1 Hz countdown while the window is active.
if (tmpl.CountdownWorldStateId && state.Active)
@@ -267,7 +314,14 @@ void VoidAssaultMgr::RotatePortalWorld(VoidAssaultState& state, VoidAssaultTempl
return;
}
state.ActiveWorld = (state.Phase % 2 == 0) ? VoidPortalWorld::Naigtal : VoidPortalWorld::Val;
// Respect a partially configured template (only one world seeded) instead of
// handing back the missing world on the wrong phase parity.
if (!tmpl.PortalWorldMapB)
state.ActiveWorld = VoidPortalWorld::Naigtal;
else if (!tmpl.PortalWorldMapA)
state.ActiveWorld = VoidPortalWorld::Val;
else
state.ActiveWorld = (state.Phase % 2 == 0) ? VoidPortalWorld::Naigtal : VoidPortalWorld::Val;
// Heroic World Tier: CAPTURE-BLOCKED. The retail toggle is a per-player
// Normal/Heroic choice at the portal that re-scales the world via a
@@ -287,6 +341,22 @@ VoidAssaultTemplate const* VoidAssaultMgr::GetTemplate(uint32 id) const
return itr != _templates.end() ? &itr->second : nullptr;
}
VoidAssaultState const* VoidAssaultMgr::GetState(uint32 id) const
{
auto itr = _states.find(id);
return itr != _states.end() ? &itr->second : nullptr;
}
std::vector<uint32> VoidAssaultMgr::GetAssaultIds() const
{
std::vector<uint32> ids;
ids.reserve(_templates.size());
for (auto const& entry : _templates)
ids.push_back(entry.first);
std::ranges::sort(ids);
return ids;
}
bool VoidAssaultMgr::IsAssaultActive(uint32 id) const
{
auto itr = _states.find(id);
@@ -313,9 +383,9 @@ bool VoidAssaultMgr::IsHeroicWorldTier(uint32 id) const
// ---------------------------------------------------------------------------
// Escalation-meter mechanism (WS 29616). LIVE. The +500 step and the 1,000,000
// cap are confirmed on the wire; the completion FLIP semantics at cap (what runs
// besides the meter reset) are CAPTURE-BLOCKED, so at cap we run the documented
// default: fire the reward hook and end the window (reschedule).
// cap are confirmed on the wire. At cap the window flips into its climactic Void
// Incursion phase (FlipToIncursion) and stays open until the Incursion is
// completed; the scenario spin-up / completion wire is CAPTURE-BLOCKED.
// ---------------------------------------------------------------------------
void VoidAssaultMgr::AddAssaultProgress(uint32 templateId, int32 amount)
{
@@ -355,7 +425,8 @@ void VoidAssaultMgr::OnVoidStrikeCompleted(uint32 templateId)
VoidAssaultTemplate const& tmpl = tmplItr->second;
// Feed the fill-meter directly for every strike (drives the 29616 UI bar).
AddAssaultProgress(templateId, tmpl.MeterCap ? VoidAssault::METER_STEP : 0);
if (tmpl.MeterCap > 0)
AddAssaultProgress(templateId, VoidAssault::METER_STEP);
if (tmpl.StrikesPerIncursion == 0)
return; // this window is not strike-driven
@@ -363,9 +434,15 @@ void VoidAssaultMgr::OnVoidStrikeCompleted(uint32 templateId)
++state.StrikesDone;
TC_LOG_DEBUG("misc", "VoidAssaultMgr: assault {} strikes {}/{}", tmpl.Id, state.StrikesDone, tmpl.StrikesPerIncursion);
// Enough Strikes -> flip the meter to cap to trigger the Incursion phase.
if (state.StrikesDone >= tmpl.StrikesPerIncursion && tmpl.MeterCap > 0)
if (state.StrikesDone < tmpl.StrikesPerIncursion)
return;
// Enough Strikes -> flip the meter to cap (or flip directly for a window with
// a strike counter but no fill meter) to trigger the Incursion phase.
if (tmpl.MeterCap > 0)
AddAssaultProgress(templateId, tmpl.MeterCap);
else if (!state.IncursionPhase)
FlipToIncursion(tmpl, state);
}
// Player-facing Void Strike entry point. Resolves the primary meter-driven assault
@@ -420,22 +497,33 @@ void VoidAssaultMgr::FlipToIncursion(VoidAssaultTemplate const& tmpl, VoidAssaul
// currency path, advances the escalation/rotation state, and closes the window.
// Today invoked by the temporary .voidassault debug command; at integration by the
// real Void Incursion completion.
void VoidAssaultMgr::CompleteAssault(Player* player)
bool VoidAssaultMgr::CompleteAssault(Player* player)
{
if (!IsEnabled() || !player)
return;
return false;
uint32 const id = GetPrimaryAssaultId();
if (!id)
return;
return false;
auto stateItr = _states.find(id);
auto tmplItr = _templates.find(id);
if (stateItr == _states.end() || tmplItr == _templates.end())
return;
return false;
VoidAssaultState& state = stateItr->second;
VoidAssaultTemplate const& tmpl = tmplItr->second;
// Rewards belong only to a window that actually reached its climactic Void
// Incursion phase. Without this guard a debug "complete" (or a stray script
// call) could mint Field Accolade / Voidlight Marl from an idle or still-filling
// window.
if (!state.Active || !state.IncursionPhase)
{
TC_LOG_DEBUG("misc", "VoidAssaultMgr: assault {} completion ignored (active {}, incursionPhase {})",
tmpl.Id, state.Active, state.IncursionPhase);
return false;
}
// --- Reward tail (LIVE mechanism, PLACEHOLDER amounts) ----------------------
// Grant the Field Accolade (3405) named in the Void Assaults POI reward text
// via the stock ModifyCurrency path (CurrencyGainSource::Script; ModifyCurrency
@@ -463,6 +551,7 @@ void VoidAssaultMgr::CompleteAssault(Player* player)
// reschedules the next activation (which advances the rotation phase / portal
// world on the next ActivateAssault).
DeactivateAssault(state, tmpl, GameTime::GetGameTime());
return true;
}
// DEBUG/DEV stand-in for the CAPTURE-BLOCKED portal-world activation wire.
@@ -484,6 +573,53 @@ void VoidAssaultMgr::DebugForceActivatePrimary()
ActivateAssault(stateItr->second, tmplItr->second, GameTime::GetGameTime());
}
// DEBUG/DEV -- unwind a forced test activation: close the window if it is open
// (running the normal despawn/reschedule path) or clear its runtime state and
// re-schedule it off the normal cadence if it is already idle.
void VoidAssaultMgr::DebugResetPrimary()
{
if (!IsEnabled())
return;
uint32 const id = GetPrimaryAssaultId();
if (!id)
return;
auto stateItr = _states.find(id);
auto tmplItr = _templates.find(id);
if (stateItr == _states.end() || tmplItr == _templates.end())
return;
VoidAssaultState& state = stateItr->second;
VoidAssaultTemplate const& tmpl = tmplItr->second;
time_t const now = GameTime::GetGameTime();
if (state.Active)
{
DeactivateAssault(state, tmpl, now);
return;
}
state.Meter = 0;
state.StrikesDone = 0;
state.IncursionPhase = false;
state.IncursionScenarioId = 0;
state.NextStart = ComputeNextStart(tmpl, now);
if (tmpl.StateWorldStateId && tmpl.MeterCap)
WorldStateMgr::SetValue(tmpl.StateWorldStateId, 0, false, nullptr);
if (tmpl.CountdownWorldStateId)
WorldStateMgr::SetValue(tmpl.CountdownWorldStateId, 0, false, nullptr);
// A 0 here means the weekly reset source is not ready yet; Update() will derive
// it and publish the clock on a later tick (do not broadcast a bogus 1970 stamp).
if (state.NextStart)
BroadcastTimers(tmpl, state);
TC_LOG_DEBUG("misc", "VoidAssaultMgr: reset assault {} (idle); next start {}",
tmpl.Id, static_cast<long long>(state.NextStart));
}
// Resolve the primary meter-driven assault: the lowest Id whose window carries a
// fill-meter (MeterCap>0). That is the Void Strike -> Incursion window the core
// loop feeds. 0 if none configured.
+25 -4
View File
@@ -49,6 +49,7 @@
// spawning, world-boss handoff, Heroic World Tier scaling and completion rewards
// are stubbed and marked CAPTURE-BLOCKED where wire/DB2 evidence is not in hand.
#include "Common.h"
#include "Define.h"
#include "ObjectGuid.h"
#include <ctime>
@@ -260,6 +261,8 @@ public:
// --- accessors (used by scripts / debug commands) ---
VoidAssaultTemplate const* GetTemplate(uint32 id) const;
VoidAssaultState const* GetState(uint32 id) const;
std::vector<uint32> GetAssaultIds() const;
bool IsAssaultActive(uint32 id) const;
int32 GetMeter(uint32 id) const;
VoidPortalWorld GetActiveWorld(uint32 id) const;
@@ -285,8 +288,10 @@ public:
// Void Incursion completion: grant the completion reward (Field Accolade 3405,
// + Voidlight Marl 3316 secondary) via the stock ModifyCurrency path, advance
// the escalation/rotation state, and close out the active window.
void CompleteAssault(Player* player);
// the escalation/rotation state, and close out the active window. Rewards are
// granted ONLY once the window has actually flipped into its Incursion phase
// (meter cap); returns false for an idle window or one still filling.
bool CompleteAssault(Player* player);
// DEBUG/DEV ONLY -- TEMPORARY stand-in for the CAPTURE-BLOCKED portal-world
// activation wire. Force the primary assault active immediately, off its weekly
@@ -295,10 +300,16 @@ public:
// activation wire lands.
void DebugForceActivatePrimary();
// DEBUG/DEV ONLY -- close the primary window (if open) and reschedule it off
// its normal cadence, clearing meter/strike/incursion state. Also used by the
// .voidassault reset command to unwind a forced test activation.
void DebugResetPrimary();
// --- escalation-meter mechanism (WS 29616) ---
// Advance the assault meter of window `templateId` by `amount` (defaults to
// the +500 step). Broadcasts WS 29616 and, on reaching MeterCap, drives the
// Incursion completion path. Safe no-op if inactive / no meter cap.
// the +500 step). Broadcasts WS 29616 and, on reaching MeterCap, flips the
// window into its climactic Incursion phase. Safe no-op if inactive / no
// meter cap.
void AddAssaultProgress(uint32 templateId, int32 amount = VoidAssault::METER_STEP);
// Void Strike completion hook. Increments the strike counter; when it reaches
@@ -311,6 +322,16 @@ public:
private:
// Rotation / scheduling core (implemented in skeleton).
// Next-activation scheduling. Weekly windows (PeriodSeconds == WEEK -- e.g. the
// 12.0.5 assault swap and the 12.0.7 portal-world escalation) align to the
// server's weekly quest reset boundary (World::GetNextWeeklyQuestsResetTime),
// NOT a wall-clock offset from server boot. Everything else schedules at
// now + PeriodSeconds. Returns 0 when the weekly reset time is not available
// yet (LoadFromDB runs before InitQuestResetTimes); Update() re-derives it
// lazily on a later tick.
time_t ComputeNextStart(VoidAssaultTemplate const& tmpl, time_t now) const;
static bool IsWeeklyCadence(VoidAssaultTemplate const& tmpl) { return tmpl.PeriodSeconds == uint32(WEEK); }
void ActivateAssault(VoidAssaultState& state, VoidAssaultTemplate const& tmpl, time_t now);
void DeactivateAssault(VoidAssaultState& state, VoidAssaultTemplate const& tmpl, time_t now);
void BroadcastTimers(VoidAssaultTemplate const& tmpl, VoidAssaultState const& state);
@@ -23,7 +23,6 @@
#include "DB2Stores.h"
#include "DB2Structure.h"
#include "DBCEnums.h"
#include "GameTime.h"
#include "Item.h"
#include "ItemBonusMgr.h"
#include "ItemDefines.h"
@@ -37,6 +36,7 @@
#include "StringConvert.h"
#include "Timer.h"
#include "Util.h"
#include "World.h"
#include <algorithm>
#include <sstream>
@@ -144,10 +144,13 @@ WeeklyRewardsMgr& WeeklyRewardsMgr::Instance()
uint32 WeeklyRewardsMgr::GetCurrentPeriod()
{
// Week index since the unix epoch. Monotonic and identical for every character on the realm, so all vaults
// roll over together (the real client tracks weeks since Cfg_RegionsEntry::ChallengeOrigin; the absolute base
// does not matter here, only that the index advances once per week).
return uint32(GameTime::GetGameTime() / (7 * DAY));
// Anchor the period on the realm's weekly reset boundary, exactly like ChallengeModeMgr::GetCurrentWeekIndex
// (minus the affix offset). A raw epoch week would flip on Thursday 00:00 UTC and split a realm week across two
// periods, so a player raiding on Monday and again after reset would have the second reset mid-week instead of
// at the reset. Deriving it from the reset time keeps every weekly system on the same boundary and makes the
// index advance exactly once per reset for every character on the realm.
int64 const weekStart = int64(sWorld->GetNextWeeklyQuestsResetTime()) - int64(WEEK);
return uint32(std::max<int64>(weekStart / int64(WEEK), 0));
}
void WeeklyRewardsMgr::RollPeriod(WeeklyRewards::CharacterVault& vault)
+17 -12
View File
@@ -1,7 +1,3 @@
#include "HousingBlueprintMgr.h"
#include "HousingMgr.h"
#include "InitiativeManager.h"
#include "NeighborhoodMgr.h"
/*
* This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
*
@@ -72,6 +68,7 @@
#include "LootItemStorage.h"
#include "LootMgr.h"
#include "M2Stores.h"
#include "MajorFactionMgr.h"
#include "MMapManager.h"
#include "Map.h"
#include "MapManager.h"
@@ -139,6 +136,10 @@
#include "AbyssAnglersMgr.h"
#include "TurbulentTimewaysMgr.h"
#include "DelvesRewards.h"
#include "HousingBlueprintMgr.h"
#include "HousingMgr.h"
#include "InitiativeManager.h"
#include "NeighborhoodMgr.h"
//WowCommunity
#include <zlib.h>
@@ -1391,6 +1392,9 @@ bool World::SetInitialWorldSettings()
sDB2Manager.LoadHotfixOptionalData(m_availableDbcLocaleMask);
TC_LOG_INFO("server.loading", "Indexing loaded data stores...");
sDB2Manager.IndexLoadedStores();
TC_LOG_INFO("server.loading", "Loading Major Faction data...");
sMajorFactionMgr->Load();
sMajorFactionMgr->LoadWorldData();
///- Load M2 fly by cameras
LoadM2Cameras(m_dataPath);
///- Load GameTables
@@ -3370,6 +3374,15 @@ static time_t GetNextWeeklyResetTime(time_t t)
void World::ResetWeeklyQuests()
{
// Advance the weekly boundary FIRST. Everything below (player period roll, Mythic+ rollover, delve reset, ...)
// is keyed on sWorld->GetNextWeeklyQuestsResetTime(); if we leave the old (just-passed) value in place the
// rollover captures the week that is ending instead of starting the new one.
time_t const now = GameTime::GetGameTime();
time_t const next = GetNextWeeklyResetTime(now);
ASSERT(now < next);
m_NextWeeklyQuestReset = next;
SetPersistentWorldVariable(NextWeeklyQuestResetTimeVarId, uint64(next));
// reset all saved quest status
CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_RESET_CHARACTER_QUESTSTATUS_WEEKLY);
CharacterDatabase.Execute(stmt);
@@ -3407,14 +3420,6 @@ void World::ResetWeeklyQuests()
// Update faction balance
UpdateWarModeRewardValues();
// store next reset time
time_t now = GameTime::GetGameTime();
time_t next = GetNextWeeklyResetTime(now);
ASSERT(now < next);
m_NextWeeklyQuestReset = next;
SetPersistentWorldVariable(NextWeeklyQuestResetTimeVarId, uint64(next));
TC_LOG_INFO("misc", "Weekly quests for all characters have been reset.");
}
@@ -68,6 +68,7 @@ void AddSC_shop_commandscript();
void AddSC_smallactivities_commandscript();
void AddSC_prey_commandscript();
void AddSC_scenario_commandscript();
void AddSC_voidassault_commandscript();
// The name of this function should match:
// void Add${NameOfDirectory}Scripts()
@@ -125,5 +126,6 @@ void AddCommandsScripts()
AddSC_smallactivities_commandscript();
AddSC_prey_commandscript();
AddSC_scenario_commandscript();
AddSC_voidassault_commandscript();
}
@@ -0,0 +1,229 @@
/*
* This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* ScriptData
Name: voidassault_commandscript
%Complete: 100
Comment: Inspect and drive the Void Assault open-world event rotation
Category: commandscripts
EndScriptData */
#include "ScriptMgr.h"
#include "Chat.h"
#include "ChatCommand.h"
#include "Player.h"
#include "RBAC.h"
#include "VoidAssaultMgr.h"
using namespace Trinity::ChatCommands;
namespace
{
char const* GetVoidAssaultTypeName(VoidAssaultType type)
{
switch (type)
{
case VoidAssaultType::VoidStrike: return "VoidStrike";
case VoidAssaultType::VoidIncursion: return "VoidIncursion";
case VoidAssaultType::VoidEscalation: return "VoidEscalation";
default: return "Unknown";
}
}
char const* GetVoidPortalWorldName(VoidPortalWorld world)
{
switch (world)
{
case VoidPortalWorld::Naigtal: return "Naigtal";
case VoidPortalWorld::Val: return "Val";
default: return "None";
}
}
// Force the primary assault open when it is idle so the debug verbs can be used
// without a separate .voidassault start. Returns the primary id (0 = none).
uint32 EnsurePrimaryActive()
{
uint32 const id = sVoidAssaultMgr->GetPrimaryAssaultId();
if (id && !sVoidAssaultMgr->IsAssaultActive(id))
sVoidAssaultMgr->DebugForceActivatePrimary();
return id;
}
}
class voidassault_commandscript : public CommandScript
{
public:
voidassault_commandscript() : CommandScript("voidassault_commandscript") {}
std::span<ChatCommandBuilder const> GetCommands() const override
{
static ChatCommandTable voidAssaultCommandTable =
{
{ "status", HandleVoidAssaultStatusCommand, rbac::RBAC_PERM_COMMAND_DEBUG, Console::Yes },
{ "start", HandleVoidAssaultStartCommand, rbac::RBAC_PERM_COMMAND_DEBUG, Console::Yes },
{ "strike", HandleVoidAssaultStrikeCommand, rbac::RBAC_PERM_COMMAND_DEBUG, Console::No },
{ "fill", HandleVoidAssaultFillCommand, rbac::RBAC_PERM_COMMAND_DEBUG, Console::Yes },
{ "complete", HandleVoidAssaultCompleteCommand, rbac::RBAC_PERM_COMMAND_DEBUG, Console::No },
{ "reset", HandleVoidAssaultResetCommand, rbac::RBAC_PERM_COMMAND_DEBUG, Console::Yes },
};
static ChatCommandTable commandTable =
{
{ "voidassault", voidAssaultCommandTable },
};
return commandTable;
}
// .voidassault status - configured windows and their live runtime state
static bool HandleVoidAssaultStatusCommand(ChatHandler* handler)
{
if (!sVoidAssaultMgr->IsEnabled())
{
handler->SendSysMessage("Void Assaults are not configured (void_assault_template is absent or empty).");
return true;
}
std::vector<uint32> const ids = sVoidAssaultMgr->GetAssaultIds();
handler->PSendSysMessage("Void Assaults: %u configured, primary %u.",
uint32(ids.size()), sVoidAssaultMgr->GetPrimaryAssaultId());
for (uint32 id : ids)
{
VoidAssaultTemplate const* tmpl = sVoidAssaultMgr->GetTemplate(id);
VoidAssaultState const* state = sVoidAssaultMgr->GetState(id);
if (!tmpl || !state)
continue;
handler->PSendSysMessage(" [%u] %s zone %u map %u: %s, meter %d/%d, strikes %u/%u, phase %u",
id, GetVoidAssaultTypeName(tmpl->Type), tmpl->ZoneId, tmpl->MapId,
state->Active ? "ACTIVE" : "idle", state->Meter, tmpl->MeterCap,
state->StrikesDone, tmpl->StrikesPerIncursion, uint32(state->Phase));
handler->PSendSysMessage(" next %lld, end %lld, incursion %s (scenario %u), escalations %u, world %s, heroic %s",
static_cast<long long>(state->NextStart), static_cast<long long>(state->EndTime),
state->IncursionPhase ? "yes" : "no", state->IncursionScenarioId, state->EscalationCount,
GetVoidPortalWorldName(state->ActiveWorld), state->HeroicTier ? "yes" : "no");
}
return true;
}
// .voidassault start - force the primary window open off its rotation timer
static bool HandleVoidAssaultStartCommand(ChatHandler* handler)
{
if (!sVoidAssaultMgr->IsEnabled())
{
handler->SendSysMessage("Void Assaults are not configured (void_assault_template is absent or empty).");
handler->SetSentErrorMessage(true);
return false;
}
uint32 const id = sVoidAssaultMgr->GetPrimaryAssaultId();
if (!id)
{
handler->SendSysMessage("No meter-driven Void Assault is configured.");
handler->SetSentErrorMessage(true);
return false;
}
sVoidAssaultMgr->DebugForceActivatePrimary();
handler->PSendSysMessage("Void Assault %u forced active.", id);
return HandleVoidAssaultStatusCommand(handler);
}
// .voidassault strike - credit one Void Strike for the selected player
static bool HandleVoidAssaultStrikeCommand(ChatHandler* handler)
{
Player* player = handler->getSelectedPlayerOrSelf();
if (!player)
{
handler->SendSysMessage("No player selected or in range.");
handler->SetSentErrorMessage(true);
return false;
}
if (!EnsurePrimaryActive())
{
handler->SendSysMessage("No meter-driven Void Assault is configured.");
handler->SetSentErrorMessage(true);
return false;
}
sVoidAssaultMgr->OnVoidStrikeCompleted(player);
handler->PSendSysMessage("Void Strike credited for %s.", player->GetName().c_str());
return HandleVoidAssaultStatusCommand(handler);
}
// .voidassault fill - drive the primary fill-meter straight to its cap
static bool HandleVoidAssaultFillCommand(ChatHandler* handler)
{
uint32 const id = EnsurePrimaryActive();
VoidAssaultTemplate const* tmpl = id ? sVoidAssaultMgr->GetTemplate(id) : nullptr;
if (!tmpl || tmpl->MeterCap <= 0)
{
handler->SendSysMessage("The primary Void Assault has no fill meter configured.");
handler->SetSentErrorMessage(true);
return false;
}
sVoidAssaultMgr->AddAssaultProgress(id, tmpl->MeterCap);
handler->PSendSysMessage("Void Assault %u meter forced to cap (%d).", id, tmpl->MeterCap);
return HandleVoidAssaultStatusCommand(handler);
}
// .voidassault complete - grant the Incursion reward tail and close the window
static bool HandleVoidAssaultCompleteCommand(ChatHandler* handler)
{
Player* player = handler->getSelectedPlayerOrSelf();
if (!player)
{
handler->SendSysMessage("No player selected or in range.");
handler->SetSentErrorMessage(true);
return false;
}
if (!sVoidAssaultMgr->CompleteAssault(player))
{
handler->SendSysMessage("The primary Void Assault is not in its Incursion phase; run .voidassault fill first.");
handler->SetSentErrorMessage(true);
return false;
}
handler->PSendSysMessage("Void Incursion completed for %s (placeholder rewards granted).", player->GetName().c_str());
return HandleVoidAssaultStatusCommand(handler);
}
// .voidassault reset - close/clear the primary window and reschedule it
static bool HandleVoidAssaultResetCommand(ChatHandler* handler)
{
if (!sVoidAssaultMgr->IsEnabled())
{
handler->SendSysMessage("Void Assaults are not configured (void_assault_template is absent or empty).");
handler->SetSentErrorMessage(true);
return false;
}
sVoidAssaultMgr->DebugResetPrimary();
handler->SendSysMessage("Void Assault reset to its scheduled window.");
return HandleVoidAssaultStatusCommand(handler);
}
};
void AddSC_voidassault_commandscript()
{
new voidassault_commandscript();
}
@@ -86,7 +86,7 @@ public:
return false;
}
if (botClass < static_cast<int32>(FSB_Class::Warrior) || botClass > static_cast<int32>(FSB_Class::DeathKnight))
if (botClass < static_cast<int32>(FSB_Class::Warrior) || botClass > static_cast<int32>(FSB_Class::Evoker))
{
handler->SendSysMessage("Invalid bot class value.");
handler->SetSentErrorMessage(true);
@@ -74,7 +74,9 @@ enum class FSB_Class : uint8
Warlock = 8,
Shaman = 9,
Monk = 10,
DeathKnight = 11
DeathKnight = 11,
DemonHunter = 12,
Evoker = 13,
};
enum class FSB_Race : uint8
@@ -102,6 +104,14 @@ enum class FSB_Race : uint8
EarthenHorde = 20,
HaranirAlliance = 21,
HaranirHorde = 22,
DarkIronDwarf = 23,
KulTiran = 24,
Mechagnome = 25,
MagharOrc = 26,
ZandalariTroll = 27,
Vulpera = 28,
DracthyrAlliance = 29,
DracthyrHorde = 30,
};
enum FSB_Roles
@@ -815,6 +815,9 @@ uint32 FSBMgr::GetAvailableRolesForClass(FSB_Class botClass)
case FSB_Class::Druid:
return FSB_ROLEMASK_TANK | FSB_ROLEMASK_HEALER | FSB_ROLEMASK_MELEE_DAMAGE | FSB_ROLEMASK_RANGED_DAMAGE;
case FSB_Class::DemonHunter:
return FSB_ROLEMASK_TANK | FSB_ROLEMASK_MELEE_DAMAGE;
//case FSB_Class::DeathKnight:
// return FSB_ROLEMASK_TANK | FSB_ROLEMASK_MELEE_DAMAGE;
@@ -46,17 +46,19 @@ namespace FSBUtils
{
switch (cls)
{
case FSB_Class::Warrior: return "Warrior";
case FSB_Class::Priest: return "Priest";
case FSB_Class::Mage: return "Mage";
case FSB_Class::Rogue: return "Rogue";
case FSB_Class::Druid: return "Druid";
case FSB_Class::Paladin: return "Paladin";
case FSB_Class::Warrior: return "Warrior";
case FSB_Class::Priest: return "Priest";
case FSB_Class::Mage: return "Mage";
case FSB_Class::Rogue: return "Rogue";
case FSB_Class::Druid: return "Druid";
case FSB_Class::Paladin: return "Paladin";
case FSB_Class::Hunter: return "Hunter";
case FSB_Class::Warlock: return "Warlock";
case FSB_Class::Shaman: return "Shaman";
case FSB_Class::Monk: return "Monk";
case FSB_Class::DeathKnight: return "Death Knight";
case FSB_Class::DemonHunter: return "Demon Hunter";
case FSB_Class::Evoker: return "Evoker";
default: return "Unknown";
}
}
@@ -65,21 +67,21 @@ namespace FSBUtils
{
switch (race)
{
case FSB_Race::Human: return "Human";
case FSB_Race::Dwarf: return "Dwarf";
case FSB_Race::Draenei: return "Draenei";
case FSB_Race::NightElf: return "Night Elf";
case FSB_Race::Gnome: return "Gnome";
case FSB_Race::Worgen: return "Worgen";
case FSB_Race::Pandaren: return "Pandaren";
case FSB_Race::VoidElf: return "Void Elf";
case FSB_Race::Orc: return "Orc";
case FSB_Race::Undead: return "Undead";
case FSB_Race::Tauren: return "Tauren";
case FSB_Race::Troll: return "Troll";
case FSB_Race::BloodElf: return "Blood Elf";
case FSB_Race::Goblin: return "Goblin";
case FSB_Race::PandarenHorde: return "Pandaren (Horde)";
case FSB_Race::Human: return "Human";
case FSB_Race::Dwarf: return "Dwarf";
case FSB_Race::Draenei: return "Draenei";
case FSB_Race::NightElf: return "Night Elf";
case FSB_Race::Gnome: return "Gnome";
case FSB_Race::Worgen: return "Worgen";
case FSB_Race::Pandaren: return "Pandaren";
case FSB_Race::VoidElf: return "Void Elf";
case FSB_Race::Orc: return "Orc";
case FSB_Race::Undead: return "Undead";
case FSB_Race::Tauren: return "Tauren";
case FSB_Race::Troll: return "Troll";
case FSB_Race::BloodElf: return "Blood Elf";
case FSB_Race::Goblin: return "Goblin";
case FSB_Race::PandarenHorde: return "Pandaren (Horde)";
case FSB_Race::HighmountainTauren: return "Highmountain Tauren";
case FSB_Race::Nightborne: return "Nightborne";
case FSB_Race::LightforgedDraenei: return "Lightforged Draenei";
@@ -87,6 +89,14 @@ namespace FSBUtils
case FSB_Race::EarthenHorde: return "Earthen (Horde)";
case FSB_Race::HaranirAlliance: return "Haranir (Alliance)";
case FSB_Race::HaranirHorde: return "Haranir (Horde)";
case FSB_Race::DarkIronDwarf: return "Dark Iron Dwarf";
case FSB_Race::KulTiran: return "Kul Tiran";
case FSB_Race::Mechagnome: return "Mechagnome";
case FSB_Race::MagharOrc: return "Mag'har Orc";
case FSB_Race::ZandalariTroll: return "Zandalari Troll";
case FSB_Race::Vulpera: return "Vulpera";
case FSB_Race::DracthyrAlliance: return "Dracthyr (Alliance)";
case FSB_Race::DracthyrHorde: return "Dracthyr (Horde)";
default: return "Unknown";
}
}
@@ -156,21 +166,21 @@ namespace FSBUtils
{
switch (race)
{
case FSB_Race::Human: return RACE_HUMAN;
case FSB_Race::Dwarf: return RACE_DWARF;
case FSB_Race::Draenei: return RACE_DRAENEI;
case FSB_Race::NightElf: return RACE_NIGHTELF;
case FSB_Race::Gnome: return RACE_GNOME;
case FSB_Race::Worgen: return RACE_WORGEN;
case FSB_Race::Pandaren: return RACE_PANDAREN_ALLIANCE;
case FSB_Race::VoidElf: return RACE_VOID_ELF;
case FSB_Race::Orc: return RACE_ORC;
case FSB_Race::Undead: return RACE_UNDEAD_PLAYER;
case FSB_Race::Tauren: return RACE_TAUREN;
case FSB_Race::Troll: return RACE_TROLL;
case FSB_Race::BloodElf: return RACE_BLOODELF;
case FSB_Race::Goblin: return RACE_GOBLIN;
case FSB_Race::PandarenHorde: return RACE_PANDAREN_HORDE;
case FSB_Race::Human: return RACE_HUMAN;
case FSB_Race::Dwarf: return RACE_DWARF;
case FSB_Race::Draenei: return RACE_DRAENEI;
case FSB_Race::NightElf: return RACE_NIGHTELF;
case FSB_Race::Gnome: return RACE_GNOME;
case FSB_Race::Worgen: return RACE_WORGEN;
case FSB_Race::Pandaren: return RACE_PANDAREN_ALLIANCE;
case FSB_Race::VoidElf: return RACE_VOID_ELF;
case FSB_Race::Orc: return RACE_ORC;
case FSB_Race::Undead: return RACE_UNDEAD_PLAYER;
case FSB_Race::Tauren: return RACE_TAUREN;
case FSB_Race::Troll: return RACE_TROLL;
case FSB_Race::BloodElf: return RACE_BLOODELF;
case FSB_Race::Goblin: return RACE_GOBLIN;
case FSB_Race::PandarenHorde: return RACE_PANDAREN_HORDE;
case FSB_Race::HighmountainTauren: return RACE_HIGHMOUNTAIN_TAUREN;
case FSB_Race::Nightborne: return RACE_NIGHTBORNE;
case FSB_Race::LightforgedDraenei: return RACE_LIGHTFORGED_DRAENEI;
@@ -178,6 +188,14 @@ namespace FSBUtils
case FSB_Race::EarthenHorde: return RACE_EARTHEN_DWARF_HORDE;
case FSB_Race::HaranirAlliance: return RACE_HARANIR_ALLIANCE;
case FSB_Race::HaranirHorde: return RACE_HARANIR_HORDE;
case FSB_Race::DarkIronDwarf: return RACE_DARK_IRON_DWARF;
case FSB_Race::KulTiran: return RACE_KUL_TIRAN;
case FSB_Race::Mechagnome: return RACE_MECHAGNOME;
case FSB_Race::MagharOrc: return RACE_MAGHAR_ORC;
case FSB_Race::ZandalariTroll: return RACE_ZANDALARI_TROLL;
case FSB_Race::Vulpera: return RACE_VULPERA;
case FSB_Race::DracthyrAlliance: return RACE_DRACTHYR_ALLIANCE;
case FSB_Race::DracthyrHorde: return RACE_DRACTHYR_HORDE;
default:
TC_LOG_WARN("scripts.ai.fsb", "FSB Utils BotRaceToTC has no mapping for race {}", race);
return RACE_NONE;
@@ -204,6 +222,10 @@ namespace FSBUtils
case FSB_Race::LightforgedDraenei:
case FSB_Race::EarthenAlliance:
case FSB_Race::HaranirAlliance:
case FSB_Race::DarkIronDwarf:
case FSB_Race::KulTiran:
case FSB_Race::Mechagnome:
case FSB_Race::DracthyrAlliance:
return Team::ALLIANCE;
case FSB_Race::Orc:
@@ -215,6 +237,10 @@ namespace FSBUtils
case FSB_Race::PandarenHorde:
case FSB_Race::EarthenHorde:
case FSB_Race::HaranirHorde:
case FSB_Race::MagharOrc:
case FSB_Race::ZandalariTroll:
case FSB_Race::Vulpera:
case FSB_Race::DracthyrHorde:
return Team::HORDE;
default:
@@ -305,6 +331,9 @@ namespace FSBUtils
case FSB_Class::Warlock: return CLASS_WARLOCK;
case FSB_Class::Shaman: return CLASS_SHAMAN;
case FSB_Class::Monk: return CLASS_MONK;
case FSB_Class::DemonHunter: return CLASS_DEMON_HUNTER;
case FSB_Class::Evoker: return CLASS_EVOKER;
case FSB_Class::DeathKnight: return CLASS_DEATH_KNIGHT;
case FSB_Class::None: return CLASS_NONE;
default:
break;
@@ -574,7 +574,9 @@ class spell_ulduar_stone_grip : public SpellScriptLoader
exitPosition.m_positionZ = 457.9322f;
// Remove pending passengers before exiting vehicle - might cause an Uninstall
GetTarget()->GetVehicleKit()->RemovePendingEventsForPassenger(caster);
// the vehicle kit can already be gone when the aura is removed during a grid unload (Oreocide/TrinityCore#194)
if (Vehicle* vehicle = GetTarget()->GetVehicleKit())
vehicle->RemovePendingEventsForPassenger(caster);
caster->_ExitVehicle(&exitPosition);
caster->RemoveAurasDueToSpell(GetId());
+4 -4
View File
@@ -61,7 +61,7 @@ TEST_CASE("Environment variables", "[Config]")
REQUIRE(sConfigMgr->GetIntDefault("Int.Nested", 10) == 4242);
putenv(strdup("TC_INT_NESTED=8080"));
REQUIRE(!sConfigMgr->OverrideWithEnvVariablesIfAny().empty());
REQUIRE(sConfigMgr->OverrideWithEnvVariablesIfAny().empty() == false);
REQUIRE(sConfigMgr->GetIntDefault("Int.Nested", 10) == 8080);
}
@@ -70,7 +70,7 @@ TEST_CASE("Environment variables", "[Config]")
REQUIRE(sConfigMgr->GetStringDefault("lower", "") == "simpleString");
putenv(strdup("TC_LOWER=envstring"));
REQUIRE(!sConfigMgr->OverrideWithEnvVariablesIfAny().empty());
REQUIRE(sConfigMgr->OverrideWithEnvVariablesIfAny().empty() == false);
REQUIRE(sConfigMgr->GetStringDefault("lower", "") == "envstring");
}
@@ -79,7 +79,7 @@ TEST_CASE("Environment variables", "[Config]")
REQUIRE(sConfigMgr->GetStringDefault("UPPER", "") == "simpleString");
putenv(strdup("TC_UPPER=envupperstring"));
REQUIRE(!sConfigMgr->OverrideWithEnvVariablesIfAny().empty());
REQUIRE(sConfigMgr->OverrideWithEnvVariablesIfAny().empty() == false);
REQUIRE(sConfigMgr->GetStringDefault("UPPER", "") == "envupperstring");
}
@@ -88,7 +88,7 @@ TEST_CASE("Environment variables", "[Config]")
REQUIRE(sConfigMgr->GetFloatDefault("SomeLong.NestedNameWithNumber.Like1", 0) == 1.0f);
putenv(strdup("TC_SOME_LONG_NESTED_NAME_WITH_NUMBER_LIKE_1=42"));
REQUIRE(!sConfigMgr->OverrideWithEnvVariablesIfAny().empty());
REQUIRE(sConfigMgr->OverrideWithEnvVariablesIfAny().empty() == false);
REQUIRE(sConfigMgr->GetFloatDefault("SomeLong.NestedNameWithNumber.Like1", 0) == 42.0f);
}
+4 -4
View File
@@ -92,7 +92,7 @@ TEST_CASE("Trinity::unique_weak_ptr", "[UniqueTrackablePtr]")
ptr.reset();
REQUIRE(weakRef.expired());
REQUIRE(!weakRef.lock());
REQUIRE(weakRef.lock() == nullptr);
}
SECTION("when unique_trackable_ptr is reassigned then weak cannot retrieve old value")
@@ -102,14 +102,14 @@ TEST_CASE("Trinity::unique_weak_ptr", "[UniqueTrackablePtr]")
Trinity::unique_weak_ptr<int> weakRef2 = ptr;
REQUIRE(weakRef.expired());
REQUIRE(!weakRef2.expired());
REQUIRE(weakRef2.expired() == false);
REQUIRE(weakRef.lock() != weakRef2.lock());
}
SECTION("when unique_trackable_ptr holds a value then weak can retrieve it")
{
REQUIRE(!weakRef.expired());
REQUIRE(!!weakRef.lock());
REQUIRE(weakRef.expired() == false);
REQUIRE(weakRef.lock() != nullptr);
}
}