What's new

12637 Near Miss

eyerobot

Gold Supporter
Superior Member
916
2015
24
Location
Barryton Michigan USA
Code:
-- 12637 Near Miss

-- 28532 Bloodrose Datura
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 28532;

DELETE FROM `gossip_menu` WHERE `entry`=21232 AND `text_id`=13289;
INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES (21232, 13289);

DELETE FROM `npc_text` WHERE `ID`=13289;
INSERT INTO `npc_text` (`ID`, `text0_0`, `text0_1`, `lang0`, `prob0`, `em0_0`, `em0_1`, `em0_2`, `em0_3`, `em0_4`, `em0_5`, `text1_0`, `text1_1`, `lang1`, `prob1`, `em1_0`, `em1_1`, `em1_2`, `em1_3`, `em1_4`, `em1_5`, `text2_0`, `text2_1`, `lang2`, `prob2`, `em2_0`, `em2_1`, `em2_2`, `em2_3`, `em2_4`, `em2_5`, `text3_0`, `text3_1`, `lang3`, `prob3`, `em3_0`, `em3_1`, `em3_2`, `em3_3`, `em3_4`, `em3_5`, `text4_0`, `text4_1`, `lang4`, `prob4`, `em4_0`, `em4_1`, `em4_2`, `em4_3`, `em4_4`, `em4_5`, `text5_0`, `text5_1`, `lang5`, `prob5`, `em5_0`, `em5_1`, `em5_2`, `em5_3`, `em5_4`, `em5_5`, `text6_0`, `text6_1`, `lang6`, `prob6`, `em6_0`, `em6_1`, `em6_2`, `em6_3`, `em6_4`, `em6_5`, `text7_0`, `text7_1`, `lang7`, `prob7`, `em7_0`, `em7_1`, `em7_2`, `em7_3`, `em7_4`, `em7_5`, `BroadcastTextID0`, `BroadcastTextID1`, `BroadcastTextID2`, `BroadcastTextID3`, `BroadcastTextID4`, `BroadcastTextID5`, `BroadcastTextID6`, `BroadcastTextID7`, `BroadcastTextID8`, `WDBVerified`) VALUES (13289, '', 'Move along. Nothing to see here.', 0, 1, 1, 0, 0, 0, 0, 0, '', '', 0, 0, 0, 0, 0, 0, 0, 0, '', '', 0, 0, 0, 0, 0, 0, 0, 0, '', '', 0, 0, 0, 0, 0, 0, 0, 0, '', '', 0, 0, 0, 0, 0, 0, 0, 0, '', '', 0, 0, 0, 0, 0, 0, 0, 0, '', '', 0, 0, 0, 0, 0, 0, 0, 0, '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15595);

DELETE FROM `gossip_menu_option` WHERE `menu_id`=21232 AND `id`=0;
INSERT INTO `gossip_menu_option` (`menu_id`, `id`, `option_icon`, `option_text`, `option_id`, `npc_option_npcflag`, `action_menu_id`, `action_poi_id`, `box_coded`, `box_money`, `box_text`, `OptionbroadCastTextId`, `BoxBroadcastTextId`) VALUES (21232, 0, 0, 'Stefan told me you would demonstrate the purpose of this item.', 1, 1, 0, 0, 0, 0, NULL, NULL, NULL);

DELETE FROM `smart_scripts` WHERE (`entryorguid`=28532 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 
(28532, 0, 0, 1, 62, 0, 100, 0, 21232, 0, 0, 0, 11, 51949, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Bloodrose Datura - On Gossip Option 0 Selected - Cast 'Margarita Kill Credit'"),
(28532, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Bloodrose Datura - On Gossip Option 0 Selected - Close Gossip"),
(28532, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 2853200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Bloodrose Datura - On Gossip Option 0 Selected - Run Script");

DELETE FROM `smart_scripts` WHERE (`entryorguid`=2853200 AND `source_type`=9);
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES 
(2853200, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Bloodrose Datura - On Script - Remove Npc Flag Gossip"),
(2853200, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Bloodrose Datura - On Script - Say Line 0"),
(2853200, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Bloodrose Datura - On Script - Set Run Off"),
(2853200, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 5202.6, -1317.19, 242.642, 0, "Bloodrose Datura - On Script - Move To Position"),
(2853200, 9, 4, 0, 0, 0, 100, 0, 2400, 2400, 0, 0, 11, 51925, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Bloodrose Datura - On Script - Cast 'Throw'"),
(2853200, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Bloodrose Datura - On Script - Say Line 1"),
(2853200, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 11, 28541, 10, 0, 0, 0, 0, 0, "Bloodrose Datura - On Script - Set Data 0 1"),
(2853200, 9, 7, 0, 0, 0, 100, 0, 19000, 19000, 0, 0, 11, 51927, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Bloodrose Datura - On Script - Cast 'Death_Decay Visual'"),
(2853200, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Bloodrose Datura - On Script - Say Line 2"),
(2853200, 9, 9, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 5203.73, -1313.08, 242.767, 0, "Bloodrose Datura - On Script - Move To Position"),
(2853200, 9, 10, 0, 0, 0, 100, 0, 2500, 2500, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0.419, "Bloodrose Datura - On Script - Set Orientation 0"),
(2853200, 9, 11, 0, 0, 0, 100, 0, 500, 500, 0, 0, 82, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Bloodrose Datura - On Script - Add Npc Flag Gossip");

-- 28541 Captured Drakkari Scout
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 28541;

DELETE FROM `smart_scripts` WHERE (`entryorguid`=28541 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 
(28541, 0, 0, 0, 6, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Captured Drakkari Scout - On Just Died - Despawn Instant"),
(28541, 0, 1, 2, 11, 0, 100, 0, 0, 0, 0, 0, 91, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Captured Drakkari Scout - On Respawn - Remove Flag Standstate Dead"),
(28541, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 96, 32, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Captured Drakkari Scout - On Respawn - Remove Dynamic Flag Dead"),
(28541, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 28, 40148, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Captured Drakkari Scout - On Respawn - Remove Aura 'Immolation'"),
(28541, 0, 4, 0, 38, 0, 100, 0, 0, 1, 0, 0, 80, 2854100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Captured Drakkari Scout - On Data Set 0 1 - Run Script");

DELETE FROM `smart_scripts` WHERE (`entryorguid`=2854100 AND `source_type`=9);
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES 
(2854100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1.653, "Captured Drakkari Scout - On Script - Set Orientation 2"),
(2854100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Captured Drakkari Scout - On Script - Say Line 0"),
(2854100, 9, 2, 0, 0, 0, 100, 0, 3600, 3600, 0, 0, 1, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Captured Drakkari Scout - On Script - Say Line 1"),
(2854100, 9, 3, 0, 0, 0, 100, 0, 3500, 3500, 0, 0, 11, 43327, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Captured Drakkari Scout - On Script - Cast 'Vomit'"),
(2854100, 9, 4, 0, 0, 0, 100, 0, 2500, 2500, 0, 0, 11, 51929, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Captured Drakkari Scout - On Script - Cast 'Bloody Explosion (Green)'"),
(2854100, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 51930, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Captured Drakkari Scout - On Script - Cast 'Scourge Troll Transform'"),
(2854100, 9, 6, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 11, 40148, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Captured Drakkari Scout - On Script - Cast 'Immolation'"),
(2854100, 9, 7, 0, 0, 0, 100, 0, 500, 500, 0, 0, 90, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Captured Drakkari Scout - On Script - Set Flag Standstate Dead"),
(2854100, 9, 8, 0, 0, 0, 100, 0, 1500, 1500, 0, 0, 95, 32, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Captured Drakkari Scout - On Script - Add Dynamic Flag Dead"),
(2854100, 9, 9, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 37, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Captured Drakkari Scout - On Script - Kill Self");

DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId`=15 AND `SourceGroup`=21232 AND `SourceEntry`=0);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES 
(15, 21232, 0, 0, 0, 9, 0, 12637, 0, 0, 0, 0, "0", "If Quest 12637 Taken - Show Gossip ");
 
Last edited:
Top