Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 1. Обновляем quest_template (Expansion = 6, AllowableRaces = 824380493)
- UPDATE `quest_template`
- SET `Expansion` = 6, `AllowableRaces` = 824380493
- WHERE `ID` IN (52750, 49737, 52787, 49757);
- DELETE FROM `creature_queststarter`
- WHERE `quest` IN (52750, 49737, 52787, 49757);
- INSERT INTO `creature_queststarter` (`id`, `quest`, `MaxExpansion`, `MinExpansion`) VALUES
- -- Моб 131048 выдает Фермерское ополчение (52750) и Воздушный налет (49737)
- (131048, 52750, 0, 6),
- (131048, 49737, 0, 6),
- -- Моб 142393 выдает Облегчить боль (52787)
- (142393, 52787, 0, 6),
- -- Моб 131654 выдает Кошка на раскаленной медной крыше (49757)
- (131654, 49757, 0, 6);
- DELETE FROM `quest_template_addon`
- WHERE `ID` IN (52750, 49737, 52787, 49757);
- INSERT INTO `quest_template_addon` (`ID`, `MaxLevel`, `AllowableClasses`, `SourceSpellID`, `PrevQuestID`, `NextQuestID`, `ExclusiveGroup`, `RewardMailTemplateID`, `RequiredSkillID`, `RequiredSkillPoints`, `RequiredMinRepFaction`, `RequiredMaxRepFaction`, `RequiredMinRepValue`, `RequiredMaxRepValue`, `ProvidedItemCount`, `SpecialFlags`, `MaxExpansion`, `MinExpansion`) VALUES
- (52750, 0, 0, 0, 49869, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6),
- (49737, 0, 0, 0, 49869, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6),
- (52787, 0, 0, 0, 49869, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6),
- (49757, 0, 0, 0, 49869, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6);
- DELETE FROM `vehicle_attachment_offset` WHERE `entry` IN (130703,131665);
- INSERT INTO `vehicle_attachment_offset` (`entry`, `seat_id`, `offsetX`, `offsetY`, `offsetZ`, `offsetO`, `description`) VALUES
- (130703, 0, 0.45, 0.1, -0.55, 3.14159, ''),
- (131665, 0, 0.45, 0.1, -0.55, 3.14159, '');
- DELETE FROM `npc_spellclick_spells` WHERE `npc_entry` IN (130703,131665);
- INSERT INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `user_type`, `add_npc_flag`) VALUES
- (130703, 258668, 1, 0, 1),
- (131665, 259768, 1, 0, 1);
- -- конд на спеллклик по квесту только
- DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 18 AND `SourceGroup` IN (130703,131665) AND `SourceEntry` IN (258668,259768);
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorTextId`, `ScriptName`, `Comment`, `MaxExpansion`, `MinExpansion`) VALUES
- (18, 130703, 258668, 0, 0, 9, 0, 49757, 0, 0, 0, 0, '', 'Required quest active for spellclick', 0, 6),
- (18, 131665, 259768, 0, 0, 9, 0, 49757, 0, 0, 0, 0, '', 'Required quest active for spellclick', 0, 6);
- UPDATE `creature_template` SET `dynamicflags` = 0, `InhabitType` = 7 WHERE `entry` IN (131665,130703);
- UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 72587;
- DELETE FROM `smart_scripts` WHERE `entryorguid` IN (-849539,-849696) 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`, `target_type`, `comment`) VALUES
- (-849539, 0, 0, 0, 1, 0, 100, 0, 7000, 9000, 7000, 9000, 11, 259763, 0, 0, 0, 1, 'OOC - CAST'),
- (-849696, 0, 0, 0, 1, 0, 100, 0, 7000, 9000, 7000, 9000, 11, 259763, 0, 0, 0, 1, 'OOC - CAST');
- -- триггер обломков
- DELETE FROM `spell_linked_spell` WHERE `spell_trigger` = 259763 AND `spell_effect` = 259766;
- INSERT INTO `spell_linked_spell` (`spell_trigger`, `spell_effect`, `type`, `caster`, `target`, `hastype`, `hastalent`, `hasparam`, `hastype2`, `hastalent2`, `hasparam2`, `chance`, `cooldown`, `duration`, `hitmask`, `removeMask`, `effectMask`, `targetCountType`, `targetCount`, `actiontype`, `group`, `param`, `randList`, `comment`, `MaxExpansion`, `MinExpansion`) VALUES
- (259763, 259766, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, '', '', 0, 6);
- DELETE FROM `spell_scripts` WHERE `id` = 92678;
- INSERT INTO `spell_scripts` (`id`, `effIndex`, `delay`, `command`, `datalong`, `datalong2`, `dataint`, `x`, `y`, `z`, `o`) VALUES
- (92678, 0, 0, 14, 258668, 0, 0, 0, 0, 0, 0);
- UPDATE `creature_template` SET `AIName` = 'SmartAI', `dynamicflags` = 0 WHERE `entry` = 130746;
- DELETE FROM `npc_spellclick_spells` WHERE `npc_entry` = 130746;
- INSERT INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `user_type`, `add_npc_flag`) VALUES
- (130746, 258717, 1, 0, 1);
- -- конд на спеллклик по квесту только
- DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 18 AND `SourceGroup` IN (130746) AND `SourceEntry` IN (258717);
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorTextId`, `ScriptName`, `Comment`, `MaxExpansion`, `MinExpansion`) VALUES
- (18, 130746, 258717, 0, 0, 9, 0, 49757, 0, 0, 0, 0, '', 'Required quest active for spellclick', 0, 6);
- DELETE FROM `smart_scripts` WHERE `entryorguid` IN (130746) AND `source_type` = 0;
- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `action_param_float`, `action_delay`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
- (130746, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 4156, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'SAY - WHEN SUMM'),
- (130746, 0, 1, 0, 8, 0, 100, 0, 258717, 0, 0, 0, 0, 11, 258718, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Spell HIT - CAST'),
- (130746, 0, 2, 0, 8, 0, 100, 0, 258717, 0, 0, 0, 0, 56, 155858, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Spell HIT - CAST COND');
- DELETE FROM conditions WHERE SourceTypeOrReferenceId IN (22) AND SourceGroup IN (2,3) and SourceEntry IN (130746) AND SourceId = 0;
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorTextId`, `ScriptName`, `Comment`, `MaxExpansion`, `MinExpansion`) VALUES
- (22, 2, 130746, 0, 0, 76, 0, 258718, 0, 0, 1, 0, '', '', 0, 6),
- (22, 3, 130746, 0, 0, 76, 0, 258718, 0, 0, 0, 0, '', '', 0, 6);
- UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 131665;
- DELETE FROM `smart_scripts` WHERE `entryorguid` IN (131665) AND `source_type` = 0;
- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `action_param_float`, `action_delay`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
- (131665, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 0, 259, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, -718.197, 626.67, 61.8379, 6.04293, 'RESET - Leave Vehicle Coord');
- UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 131654;
- DELETE FROM `smart_scripts` WHERE `entryorguid` IN (131654) AND `source_type` = 0;
- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `action_param_float`, `action_delay`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
- (131654, 0, 0, 1, 19, 0, 100, 4096, 49757, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'SAY - WHEN QUEST ACCEPTED'),
- (131654, 0, 1, 0, 61, 0, 100, 4096, 0, 0, 0, 0, 0, 220, 130746, 3, 7718, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, -720.648, 621.898, 58.5978, 1.58923, 'Link - Summ Pers Cat'),
- (131654, 0, 2, 0, 1, 0, 100, 4096, 15000, 45000, 15000, 45000, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'OOC SAY - WHEN QUEST NOT ACCEPTED'),
- (131654, 0, 3, 0, 1, 0, 100, 4096, 15000, 45000, 15000, 45000, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'OOC SAY - WHEN QUEST ACCEPTED'),
- (131654, 0, 4, 0, 20, 0, 100, 4096, 49757, 0, 0, 0, 0, 80, 131654*100, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'QREW - TS');
- DELETE FROM conditions WHERE SourceTypeOrReferenceId IN (22) AND SourceGroup IN (3,4) and SourceEntry IN (131654) AND SourceId = 0;
- INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorTextId`, `ScriptName`, `Comment`, `MaxExpansion`, `MinExpansion`) VALUES
- (22, 3, 131654, 0, 0, 92, 2, 49757, 1, 0, 0, 0, '', '', 0, 6),
- (22, 4, 131654, 0, 0, 92, 2, 49757, 8, 0, 0, 0, '', '', 0, 6);
- DELETE FROM `creature_text` WHERE `Entry` = 131654;
- INSERT INTO `creature_text` (`Entry`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextID`, `MinTimer`, `MaxTimer`, `SpellID`, `AutoType`, `TextRange`, `comment`, `MaxExpansion`, `MinExpansion`) VALUES
- (131654, 0, 0, 'Держись, Царапка! Помощь уже в пути!!!', 14, 0, 100, 0, 0, 104795, 143893, 0, 0, 0, 0, 0, 'Мередит', 0, 6),
- (131654, 1, 0, 'Цара-а-апка-а-а!!! Спускайся!!!', 14, 0, 100, 0, 0, 104798, 143890, 0, 0, 0, 0, 0, 'Мередит', 0, 6),
- (131654, 1, 1, 'Спускайся, Царапка, спускайся! Там опасно!', 14, 0, 100, 0, 0, 104800, 143892, 0, 0, 0, 0, 0, 'Мередит', 0, 6),
- (131654, 1, 2, 'Прыгай, Царапка! Я тебя поймаю!', 14, 0, 100, 0, 0, 104799, 143891, 0, 0, 0, 0, 0, 'Мередит', 0, 6),
- (131654, 2, 0, 'Мы тебя спустим, Царапка! Только будь паинькой!', 14, 0, 100, 0, 0, 104802, 143898, 0, 0, 0, 0, 0, 'Мередит', 0, 6),
- (131654, 2, 1, 'Все будет хорошо, Царапка! Держись там!', 14, 0, 100, 0, 0, 104801, 143897, 0, 0, 0, 0, 0, 'Мередит', 0, 6),
- (131654, 2, 2, 'Цара-а-апка-а! Ты еще там?! Мяукни дважды, если меня слышишь!!!', 14, 0, 100, 0, 0, 104803, 143900, 0, 0, 0, 0, 0, 'Мередит', 0, 6),
- (131654, 3, 0, 'Ура! Спасибо!', 12, 0, 100, 0, 0, 104796, 143978, 0, 0, 0, 0, 0, 'Мередит', 0, 6),
- (131654, 4, 0, 'За мной, Царапка, пошли!', 12, 0, 100, 0, 0, 104797, 143979, 0, 0, 0, 0, 0, 'Мередит', 0, 6);
- DELETE FROM `creature_text` WHERE `Entry` = 130746;
- INSERT INTO `creature_text` (`Entry`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextID`, `MinTimer`, `MaxTimer`, `SpellID`, `AutoType`, `TextRange`, `comment`, `MaxExpansion`, `MinExpansion`) VALUES
- (130746, 0, 0, 'Мрр-мяу!', 14, 0, 100, 0, 0, 116618, 143894, 0, 0, 0, 0, 0, 'Царапка to Player', 0, 6);
- UPDATE `creature_template` SET `speed_run` = 1, `speed_fly` = 1 WHERE `entry` = 131654;
- DELETE FROM `smart_scripts` WHERE `entryorguid` = 131654*100 AND `source_type` = 9;
- INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `action_param_float`, `action_delay`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
- (131654*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 220, 131654, 3, 14594, 0, 0, 1, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'СУММ'), -- СУММ),
- (131654*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 220, 131692, 3, 14594, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, -729.6007, 639.1823, 39.347057, 0.902521848678588867, 'СУММ'), -- СУММ),
- (131654*100, 9, 2, 0, 0, 0, 100, 0, 2187, 2187, 0, 0, 0, 1, 3, 0, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Ура! Спасибо!'), -- Ура! Спасибо!),
- (131654*100, 9, 3, 0, 0, 0, 100, 0, 3641, 3641, 0, 0, 0, 1, 4, 0, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'За мной, Царапка, пошли!'), -- За мной, Царапка, пошли!),
- (131654*100, 9, 4, 0, 0, 0, 100, 0, 1078, 1078, 0, 0, 0, 53, 1, 131654, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'идёт'); -- идёт);
- DELETE FROM `creature` WHERE `guid` = 849445; -- суммоном идёт, не нужен в спавнах
- DELETE FROM `waypoints` WHERE `entry` = 131654;
- INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
- (131654, 0, -723.4132, 646.0347, 39.554665, ''),
- (131654, 1, -722.72107, 646.72833, 39.294342, ''),
- (131654, 2, -718.3744, 650.73395, 39.19033, ''),
- (131654, 3, -716.3744, 652.73395, 38.94033, ''),
- (131654, 4, -715.6244, 653.23395, 38.94033, ''),
- (131654, 5, -713.6244, 653.73395, 38.69033, ''),
- (131654, 6, -710.6244, 654.23395, 38.44033, ''),
- (131654, 7, -709.6244, 654.23395, 38.19033, ''),
- (131654, 8, -707.8744, 654.48395, 37.94033, ''),
- (131654, 9, -706.8744, 654.73395, 37.94033, ''),
- (131654, 10, -706.5473, 654.80676, 37.660187, ''),
- (131654, 11, -705.7268, 655.0137, 37.659264, ''),
- (131654, 12, -704.7268, 655.0137, 37.659264, ''),
- (131654, 13, -702.7268, 655.2637, 37.409264, ''),
- (131654, 14, -701.7268, 655.5137, 37.159264, ''),
- (131654, 15, -699.7268, 655.7637, 36.659264, ''),
- (131654, 16, -695.7268, 656.5137, 36.409264, ''),
- (131654, 17, -694.2268, 656.7637, 36.159264, ''),
- (131654, 18, -693.4768, 656.0137, 35.909264, ''),
- (131654, 19, -692.2268, 654.5137, 35.409264, ''),
- (131654, 20, -691.4768, 653.7637, 35.159264, ''),
- (131654, 21, -691.2268, 653.0137, 34.909264, ''),
- (131654, 22, -689.7268, 651.5137, 34.659264, ''),
- (131654, 23, -688.9768, 650.7637, 34.409264, ''),
- (131654, 24, -687.7268, 649.5137, 34.159264, ''),
- (131654, 25, -686.9768, 648.7637, 33.659264, ''),
- (131654, 26, -685.7268, 647.2637, 33.409264, ''),
- (131654, 27, -684.2268, 646.0137, 33.159264, ''),
- (131654, 28, -682.9768, 644.5137, 32.659264, ''),
- (131654, 29, -682.2268, 643.7637, 32.159264, ''),
- (131654, 30, -680.9768, 642.2637, 31.909264, ''),
- (131654, 31, -680.2268, 641.5137, 31.409264, ''),
- (131654, 32, -678.9768, 640.2637, 30.909264, ''),
- (131654, 33, -677.4768, 638.7637, 29.909264, ''),
- (131654, 34, -676.40625, 637.2205, 29.158339, '');
Advertisement
Add Comment
Please, Sign In to add comment