quest fixes

This commit is contained in:
luis
2026-11-11 14:09:02 -03:00
parent 6655599454
commit 0b63002964
@@ -0,0 +1,337 @@
-- Tarelin smart ai
SET @ENTRY := 244474;
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, 39468, 0, 0, 0, 0, 33, 245289, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 39468 selected - Gossip player: Give kill credit Kill Credit: Speak to Dockmaster (245289)', ''),
(@ENTRY, 0, 1, 0, 62, 0, 100, 0, 39468, 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 39468 selected - Gossip player: Close gossip', ''),
(@ENTRY, 0, 2, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 171, 90821, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Force complete quest', ''),
(@ENTRY, 0, 3, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 171, 90822, 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` = 244474 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
(22, 3, 244474, 0, 0, 9, 0, 90821, 0, 0, '', 0, 'Action invoker has quest Murder Row: Harbored Secrets (90821) active'),
(22, 4, 244474, 0, 0, 9, 0, 90822, 0, 0, '', 0, 'Action invoker has quest Murder Row: One Fel Swoop (90822) active');
-- Tiff smart ai
SET @ENTRY := 257255;
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, 94012, 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` = 257255 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
(22, 1, 257255, 0, 0, 9, 0, 94012, 0, 0, '', 0, 'Action invoker has quest Lost Lil\' Strider (94012) active');
DELETE FROM `creature_template` WHERE `entry`=247163;
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 (247163, 247297, 0, 'Magistrix Emberlash', NULL, NULL, NULL, NULL, 0, 0, 14, 0, 1, 1.14286, 1, 0, 0, 0, 0, 1, 1, 2, 0, 2048, 0, 0, 0, 7, 0, '', 0, 1, 0, 0, 0, 0, 1, 0, 0, '', NULL, 69933);
DELETE FROM `creature` WHERE `guid`=905074;
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 (905074, 247163, 0, 15968, 15968, '0', 0, 0, 0, -1, 0, 0, 5663.61, -5514, 154.575, 3.17768, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
-- Magistrix Emberlash smart ai
SET @ENTRY := 247163;
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, 6, 0, 100, 0, 0, 0, 0, 0, 0, 171, 91594, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On death - Killer: Force complete quest', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 247163 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
(22, 1, 247163, 0, 0, 9, 0, 91594, 0, 0, '', 0, 'Action invoker has quest Prey: Endurance Hunter (91594) active');
DELETE FROM `creature` WHERE `guid`=905075;
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 (905075, 237400, 0, 15968, 15995, '0', 0, 0, 0, -1, 0, 0, 7361.27, -4259.12, 82.8456, 5.88196, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905076;
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 (905076, 237400, 0, 15968, 15995, '0', 0, 0, 0, -1, 0, 0, 7367.99, -4251.06, 79.2115, 0.892817, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905077;
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 (905077, 237400, 0, 15968, 15995, '0', 0, 0, 0, -1, 0, 0, 7377.16, -4212.55, 74.2232, 1.2849, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905078;
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 (905078, 237400, 0, 15968, 15995, '0', 0, 0, 0, -1, 0, 0, 7370.35, -4192.39, 74.8452, 1.90081, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905079;
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 (905079, 237400, 0, 15968, 15995, '0', 0, 0, 0, -1, 0, 0, 7382.21, -4188.33, 70.2733, 1.90081, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905080;
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 (905080, 237400, 0, 15968, 15995, '0', 0, 0, 0, -1, 0, 0, 7378.06, -4176.21, 69.7075, 1.90081, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905081;
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 (905081, 237400, 0, 15968, 15995, '0', 0, 0, 0, -1, 0, 0, 7385.67, -4173.6, 68.8225, 1.90081, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905082;
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 (905082, 237400, 0, 15968, 15995, '0', 0, 0, 0, -1, 0, 0, 7381.33, -4152.99, 68.1119, 1.7786, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905083;
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 (905083, 237400, 0, 15968, 15995, '0', 0, 0, 0, -1, 0, 0, 7396.26, -4149.84, 66.8646, 1.7786, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905084;
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 (905084, 237400, 0, 15968, 15995, '0', 0, 0, 0, -1, 0, 0, 7428.43, -4123.26, 63.5986, 0.627506, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905085;
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 (905085, 237400, 0, 15968, 15995, '0', 0, 0, 0, -1, 0, 0, 7428.85, -4104.37, 62.5621, 1.54863, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905086;
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 (905086, 237400, 0, 15968, 15995, '0', 0, 0, 0, -1, 0, 0, 7412.67, -4096.98, 64.1676, 1.54863, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224395;
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 (224395, 527209, 0, 15968, 15995, '0', 0, 0, 0, -1, 7280.52, -4276.02, 86.14, 3.51921, 0, 0, 0.982229, -0.187688, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224396;
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 (224396, 517146, 0, 15968, 15995, '0', 0, 0, 0, -1, 7252.17, -4280.03, 88.9221, 4.10591, 0, 0, 0.885996, -0.463693, 300, 255, 1, 0, '', NULL, 0);
UPDATE `gameobject_template` SET `Data1`=517146, `Data30`=0 WHERE `entry`=517146;
DELETE FROM `gameobject_loot_template` WHERE `Entry`=517146 AND `ItemType`=0 AND `Item`=237722 AND `Chance`=100 AND `QuestRequired`=1 AND `LootMode`=1 AND `GroupId`=0 AND `MinCount`=1 AND `MaxCount`=1 AND `Comment` IS NULL;
INSERT INTO `gameobject_loot_template` (`Entry`, `ItemType`, `Item`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES (517146, 0, 237722, 100, 1, 1, 0, 1, 1, NULL);
DELETE FROM `gameobject` WHERE `guid`=224397;
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 (224397, 528303, 0, 15968, 15994, '0', 0, 0, 0, -1, 7387.89, -3687.49, 4.94748, 1.9389, 0, 0, 0.824574, 0.565754, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224398;
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 (224398, 528308, 0, 15968, 15994, '0', 0, 0, 0, -1, 7319.66, -3567.45, 75.4247, 0.0430621, 0, 0, 0.0215294, 0.999768, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224399;
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 (224399, 528309, 0, 15968, 15994, '0', 0, 0, 0, -1, 7392.64, -3587.88, 4.97709, 6.05026, 0, 0, 0.116202, -0.993226, 300, 255, 1, 0, '', NULL, 0);
-- Arcane Recorder smart ai
SET @ENTRY := 528309;
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, 1, 64, 0, 100, 0, 0, 0, 0, 0, 0, 33, 242072, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Give kill credit Front Camera Q0b Kill Credit (242072)', ''),
(@ENTRY, 1, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 33, 242073, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Give kill credit Conduct Surveillance Q2b Kill Credit (242073)', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 528309 AND `SourceId` = 1;
DELETE FROM `creature` WHERE `guid`=905087;
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 (905087, 239547, 0, 15968, 15994, '0', 0, 0, 0, -1, 0, 0, 7353.16, -3553.68, 5.07352, 2.00842, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905088;
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 (905088, 239547, 0, 15968, 15994, '0', 0, 0, 0, -1, 0, 0, 7351.8, -3516.91, 5.26203, 2.76288, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905089;
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 (905089, 239547, 0, 15968, 15994, '0', 0, 0, 0, -1, 0, 0, 7298.52, -3480.52, 5.34065, 2.76288, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905090;
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 (905090, 239547, 0, 15968, 15994, '0', 0, 0, 0, -1, 0, 0, 7303.3, -3442.53, 5.00848, 2.76288, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905091;
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 (905091, 239547, 0, 15968, 15994, '0', 0, 0, 0, -1, 0, 0, 7316.83, -3438.6, 4.96211, 0.572239, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905092;
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 (905092, 239547, 0, 15968, 15994, '0', 0, 0, 0, -1, 0, 0, 7317.4, -3439.48, 4.95978, 0.572239, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905093;
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 (905093, 239547, 0, 15968, 15994, '0', 0, 0, 0, -1, 0, 0, 7320.93, -3419.86, 4.96679, 0.936828, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905094;
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 (905094, 239547, 0, 15968, 15994, '0', 0, 0, 0, -1, 0, 0, 7316.25, -3416.42, 4.98172, 0.936828, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905095;
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 (905095, 239547, 0, 15968, 15994, '0', 0, 0, 0, -1, 0, 0, 7339.29, -3338.12, 4.96646, 5.88784, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905096;
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 (905096, 239547, 0, 15968, 15994, '0', 0, 0, 0, -1, 0, 0, 7334.32, -3476.67, 5.10358, 4.61157, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905097;
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 (905097, 239547, 0, 15968, 15994, '0', 0, 0, 0, -1, 0, 0, 7340.44, -3485.52, 4.91604, 4.02645, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905098;
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 (905098, 239547, 0, 15968, 15994, '0', 0, 0, 0, -1, 0, 0, 7321.13, -3513.62, 4.97844, 6.09032, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905099;
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 (905099, 239547, 0, 15968, 15994, '0', 0, 0, 0, -1, 0, 0, 7380.15, -3601.14, 4.91369, 2.79951, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905100;
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 (905100, 239547, 0, 15968, 15994, '0', 0, 0, 0, -1, 0, 0, 7376.98, -3610.04, 5.10474, 2.79951, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905101;
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 (905101, 239547, 0, 15968, 15994, '0', 0, 0, 0, -1, 0, 0, 7362.64, -3622.47, 4.97965, 2.69678, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905102;
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 (905102, 239547, 0, 15968, 15994, '0', 0, 0, 0, -1, 0, 0, 7362.64, -3622.47, 4.97965, 2.69678, 300, 0, 0, 100, 0, NULL, 32768, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905103;
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 (905103, 241042, 0, 15968, 15995, '0', 0, 0, 0, -1, 0, 0, 7218.81, -4104.52, 106.112, 4.84002, 300, 0, 0, 100, 0, NULL, NULL, 67143680, NULL, '', NULL, 0);
-- Halduron Brightwing smart ai
SET @ENTRY := 237343;
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, 62, 0, 100, 0, 38640, 0, 0, 0, 0, 143, 28747, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 38640 selected - Gossip player: Start conversation 28747', ''),
(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 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 38640 selected - Gossip player: Close gossip', ''),
(@ENTRY, 0, 2, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 33, 237343, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Give kill credit Halduron Brightwing (237343)', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 237343 AND `SourceId` = 0;
DELETE FROM `creature` WHERE `guid`=905104;
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 (905104, 239525, 2694, 15355, 15917, '0', 0, 0, 0, -1, 0, 0, -74.7687, -1724.84, 1068.38, 4.55614, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905105;
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 (905105, 237483, 2694, 15355, 15917, '0', 0, 0, 0, -1, 0, 0, -77.4222, -1724.47, 1068.39, 4.85397, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905106;
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 (905106, 237345, 2694, 15355, 15936, '0', 0, 0, 0, -1, 0, 0, -57.0832, -571.001, 887.67, 4.49379, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905107;
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 (905107, 237332, 2694, 15355, 15936, '0', 0, 0, 0, -1, 0, 0, -61.8573, -568.562, 888.536, 3.89075, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905108;
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 (905108, 237567, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 147.56, 634.984, 1180.65, 5.03925, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905109;
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 (905109, 237857, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 120.029, 745.074, 1161.3, 1.98626, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
-- Hagar smart ai
SET @ENTRY := 237857;
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, 33, 237857, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Give kill credit Hagar (237857)', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 237857 AND `SourceId` = 0;
DELETE FROM `creature_template_gossip` WHERE `CreatureID`=237857 AND `MenuID`=1;
INSERT INTO `creature_template_gossip` (`CreatureID`, `MenuID`, `VerifiedBuild`) VALUES (237857, 1, 47936);
DELETE FROM `creature` WHERE `guid`=905110;
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 (905110, 237837, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 116.956, 744.911, 1161.31, 1.54531, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905111;
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 (905111, 243305, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 124.806, 747.715, 1161.41, 1.56355, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=16777216, `speed_walk`=0.400000005960464477, `speed_run`=0.142857149243354797, `BaseAttackTime`=2000 WHERE `entry`=243305; -- Ancient Visionstone
REPLACE INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `user_type`) VALUES
(243305, 1251777, 1, 1);
-- Zur'ashar Kassameh smart ai
SET @ENTRY := 237837;
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, 37955, 0, 0, 0, 0, 33, 237837, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 37955 selected - Gossip player: Give kill credit Zur\'ashar Kassameh (237837)', ''),
(@ENTRY, 0, 1, 0, 62, 0, 100, 0, 37955, 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 37955 selected - Gossip player: Close gossip', ''),
(@ENTRY, 0, 2, 0, 64, 0, 100, 0, 0, 0, 0, 0, 0, 171, 86911, 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` = 237837 AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
(22, 3, 237837, 0, 0, 9, 0, 86911, 0, 0, '', 0, 'Action invoker has quest Echoes and Memories (86911) active');
DELETE FROM `gameobject` WHERE `guid`=224400;
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 (224400, 527117, 2694, 15355, 15930, '0', 0, 0, 0, -1, 146.83, 782.402, 1151.29, 0.630797, 0, 0, 0.310195, 0.950673, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224401;
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 (224401, 527117, 2694, 15355, 15930, '0', 0, 0, 0, -1, 153.71, 781.153, 1150.39, 0.507337, 0, 0, 0.250957, 0.967998, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224402;
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 (224402, 527117, 2694, 15355, 15930, '0', 0, 0, 0, -1, 160.054, 782.601, 1150.58, 0.507337, 0, 0, 0.250957, 0.967998, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224403;
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 (224403, 527117, 2694, 15355, 15930, '0', 0, 0, 0, -1, 166.068, 785.944, 1150.87, 0.507337, 0, 0, 0.250957, 0.967998, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224404;
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 (224404, 527117, 2694, 15355, 15930, '0', 0, 0, 0, -1, 167.234, 790.319, 1150.74, 0.507337, 0, 0, 0.250957, 0.967998, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224405;
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 (224405, 527117, 2694, 15355, 15930, '0', 0, 0, 0, -1, 170.439, 795.848, 1150.54, 0.507337, 0, 0, 0.250957, 0.967998, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224406;
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 (224406, 527117, 2694, 15355, 15930, '0', 0, 0, 0, -1, 188.635, 805.962, 1149.23, 0.507337, 0, 0, 0.250957, 0.967998, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224407;
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 (224407, 527117, 2694, 15355, 15930, '0', 0, 0, 0, -1, 194.876, 809.431, 1149.97, 0.507337, 0, 0, 0.250957, 0.967998, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224408;
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 (224408, 527117, 2694, 15355, 15930, '0', 0, 0, 0, -1, 201.806, 813.284, 1150.76, 0.507337, 0, 0, 0.250957, 0.967998, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `gameobject` WHERE `guid`=224409;
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 (224409, 527117, 2694, 15355, 15930, '0', 0, 0, 0, -1, 197.642, 817.384, 1150.33, 0.507337, 0, 0, 0.250957, 0.967998, 300, 255, 1, 0, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905112;
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 (905112, 239650, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 286.516, 841.949, 1165.83, 2.51541, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905113;
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 (905113, 243306, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 291.645, 846.815, 1165.84, 2.60621, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=16777216 WHERE `entry`=243306;
DELETE FROM `npc_spellclick_spells` WHERE `npc_entry`=243306 AND `spell_id`=1233432;
INSERT INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `user_type`) VALUES (243306, 1233432, 1, 1);
REPLACE INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `user_type`) VALUES
(243307, 1233433, 1, 1);
-- Ancient Visionstone smart ai
SET @ENTRY := 243306;
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, 243306, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On spellclick - Clicker: Give kill credit Ancient Visionstone (243306)', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 243306 AND `SourceId` = 0;
UPDATE `quest_objectives` SET `Type`=0 WHERE `ID`=460698;
DELETE FROM `creature` WHERE `guid`=905114;
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 (905114, 239668, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 236.972, 844.572, 1151.84, 3.58444, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905115;
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 (905115, 239668, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 217.883, 841.471, 1149.45, 3.10928, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905116;
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 (905116, 239668, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 198.331, 843.757, 1148.14, 3.10928, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905117;
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 (905117, 239668, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 197.818, 827.89, 1149.93, 3.10928, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905118;
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 (905118, 239668, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 197.396, 814.821, 1150.3, 3.10928, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905119;
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 (905119, 239668, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 182.588, 800.018, 1149.03, 3.10928, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905120;
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 (905120, 239668, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 170.126, 798.716, 1150.3, 3.10928, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905121;
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 (905121, 239668, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 158.456, 799.093, 1150.02, 3.10928, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905122;
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 (905122, 239668, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 146.853, 809.518, 1150.03, 3.10928, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905123;
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 (905123, 239668, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 135.388, 821.749, 1150.59, 3.10928, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=239668;
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=239744;
DELETE FROM `creature` WHERE `guid`=905124;
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 (905124, 239744, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 144.953, 801.44, 1151.21, 4.83316, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905125;
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 (905125, 239744, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 159.793, 779.076, 1150.68, 5.29482, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905126;
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 (905126, 239744, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 119.493, 816.399, 1149.41, 1.95971, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905127;
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 (905127, 239744, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 158.849, 844.604, 1148.22, 1.07393, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905128;
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 (905128, 239744, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 167.302, 877.584, 1147.39, 1.18561, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905129;
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 (905129, 239795, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 365.638, 943.924, 1177.51, 3.86148, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905130;
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 (905130, 243307, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 364.694, 941.048, 1177.52, 2.79665, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=16777216 WHERE `entry`=243307;
-- Ancient Visionstone smart ai
SET @ENTRY := 243307;
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, 243307, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On spellclick - Clicker: Give kill credit Ancient Visionstone (243307)', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 243307 AND `SourceId` = 0;
UPDATE `quest_objectives` SET `Type`=0 WHERE `ID`=460701;
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=240749;
DELETE FROM `creature` WHERE `guid`=905131;
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 (905131, 240749, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 315.882, 992.196, 1177.21, 4.50378, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
DELETE FROM `creature` WHERE `guid`=905132;
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 (905132, 243884, 2694, 15355, 15930, '0', 0, 0, 0, -1, 0, 0, 269.585, 1007.99, 1177.47, 0.18409, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
-- Arator smart ai
SET @ENTRY := 244644;
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, 33, 244644, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player opened gossip - Gossip player: Give kill credit Arator (244644)', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 244644 AND `SourceId` = 0;
-- Stalkers of the Stars
SET @ENTRY := 96049;
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, 33, 263928, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On quest accepted - Player who accepted: Give kill credit Kill Credit: Meet up in Murder Row (263928)', '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 96049 AND `SourceId` = 5;
DELETE FROM `creature` WHERE `guid`=905133;
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 (905133, 263525, 0, 15969, 16082, '0', 0, 0, 0, -1, 0, 0, 8624.05, -4782.51, 71.4532, 3.36705, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
UPDATE `creature_template` SET `npcflag`=1 WHERE `entry`=263525;
UPDATE `creature_template` SET `faction`=14 WHERE `entry`=263668;
DELETE FROM `world_quest_template` WHERE `QuestID`=66696;
INSERT INTO `world_quest_template` (`QuestID`, `Duration`, `VariableID`, `Value`) VALUES
(66696, 604800, 21925, 1); -- Tempting Fate: Fate of the Shadowlands