Код:
-- Quest: 50456 / Hexed Hatchlings
SET @ID := 4888; -- Нужен верный VehicleId
UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='', `npcflag`=`npcflag`|16777216, `unit_flags`=33587200, `spell1`=263340/*Launch Falcon*/, `VehicleId`=@ID WHERE `entry`=134050;
UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=134051;
DELETE FROM `npc_spellclick_spells` WHERE `npc_entry`=134050;
INSERT INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `user_type`) VALUES
(134050, 46598, 1, 0); -- Holding Winston - Ride Vehicle Hardcoded
DELETE FROM `spell_linked_spell` WHERE `spell_trigger`=263339;
INSERT INTO `spell_linked_spell` (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES
(263339, 263342, 1, 'Launch Falcon - Hold Falcon');
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (134050, 134051) AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(134050, 0, 0, 1, 54, 0, 100, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Holding Winston - On Respawn - Set Immune Flags'),
(134050, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 103, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Holding Winston - On Respawn - Set Root'),
(134050, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 11, 263337, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'Holding Winston - On Respawn - Cast Hold Falcon'),
(134050, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 86, 46598, 0, 23, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Holding Winston - On Respawn - Cross Cast Ride Vehicle Hardcoded'),
(134050, 0, 4, 5, 28, 0, 100, 0, 0, 0, 0, 0, 11, 263342, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'Holding Winston - On Passenger Removed - Cast Hold Falcon'),
(134050, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 28, 263343, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'Holding Winston - On Passenger Removed - Cast Falconry'),
(134050, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 103, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Holding Winston - On Passenger Removed - Root Reset'),
(134050, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Holding Winston - On Passenger Removed - Despawn'),
(134051, 0, 0, 1, 8, 0, 100, 0, 263339, 0, 2000, 2000, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Wicker Charm - On Spellhit - Store Target'),
(134051, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 33, 134051, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Wicker Charm - On Spellhit - Killcredit'),
(134051, 0, 2, 3, 8, 0, 100, 0, 263342, 0, 2000, 2000, 41, 2000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Wicker Charm - On Spellhit - Despawn'),
(134051, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 263337, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Wicker Charm - On Spellhit - Cast Hold Falcon');