Files
moonwell-core-vanilla/sql/migrations/20180917202657_world.sql
T
2018-09-17 23:32:37 +03:00

201 lines
52 KiB
SQL

DROP PROCEDURE IF EXISTS add_migration;
delimiter ??
CREATE PROCEDURE `add_migration`()
BEGIN
DECLARE v INT DEFAULT 1;
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20180917202657');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20180917202657');
-- Add your query below.
-- Video Source: https://www.youtube.com/watch?v=boaWcT8DWUM
-- Assign start script for quest A Crew Under Fire.
UPDATE `quest_template` SET `StartScript`=3382, `SpecialFlags`=3 WHERE `entry`=3382;
-- Captain Vanessa Beltis
UPDATE `creature_template` SET `minhealth`=2769, `maxhealth`=2769, `gossip_menu_id`=1641, `unit_flags`=4096 WHERE `entry`=8380;
INSERT INTO `gossip_menu` VALUES (1641, 2293, 0);
INSERT INTO `gossip_menu` VALUES (1641, 3073, 1012);
INSERT INTO `conditions` VALUES (1012, 36, 338200, 0, 0, 0, 0); -- Master Event running
INSERT INTO `conditions` VALUES (1013, 25, 3, 50, 0, 0, 0); -- Escort check source, target, distance.
INSERT INTO `conditions` VALUES (1015, 47, 338201, 121, 0, 0, 0); -- Map event targets all dead. (Wave 1)
INSERT INTO `conditions` VALUES (1016, 47, 338202, 121, 0, 0, 0); -- Map event targets all dead. (Wave 2)
INSERT INTO `conditions` VALUES (1017, 47, 338203, 121, 0, 0, 0); -- Map event targets all dead. (Wave 3)
INSERT INTO `conditions` VALUES (1018, 47, 338204, 121, 0, 0, 0); -- Map event targets all dead. (Wave 4)
-- Horizon Scout Crewman
DELETE FROM `creature_ai_scripts` WHERE `id` IN (838601);
DELETE FROM `creature_ai_events` WHERE `creature_id`=8386;
UPDATE `creature_template` SET `Detection`=10, `AIName`='' WHERE `entry`=8386;
-- Spitelash Raider
REPLACE INTO `creature_spells` (`entry`, `name`, `spellId_1`, `probability_1`, `castTarget_1`, `targetParam1_1`, `targetParam2_1`, `castFlags_1`, `delayInitialMin_1`, `delayInitialMax_1`, `delayRepeatMin_1`, `delayRepeatMax_1`, `scriptId_1`, `spellId_2`, `probability_2`, `castTarget_2`, `targetParam1_2`, `targetParam2_2`, `castFlags_2`, `delayInitialMin_2`, `delayInitialMax_2`, `delayRepeatMin_2`, `delayRepeatMax_2`, `scriptId_2`, `spellId_3`, `probability_3`, `castTarget_3`, `targetParam1_3`, `targetParam2_3`, `castFlags_3`, `delayInitialMin_3`, `delayInitialMax_3`, `delayRepeatMin_3`, `delayRepeatMax_3`, `scriptId_3`, `spellId_4`, `probability_4`, `castTarget_4`, `targetParam1_4`, `targetParam2_4`, `castFlags_4`, `delayInitialMin_4`, `delayInitialMax_4`, `delayRepeatMin_4`, `delayRepeatMax_4`, `scriptId_4`, `spellId_5`, `probability_5`, `castTarget_5`, `targetParam1_5`, `targetParam2_5`, `castFlags_5`, `delayInitialMin_5`, `delayInitialMax_5`, `delayRepeatMin_5`, `delayRepeatMax_5`, `scriptId_5`, `spellId_6`, `probability_6`, `castTarget_6`, `targetParam1_6`, `targetParam2_6`, `castFlags_6`, `delayInitialMin_6`, `delayInitialMax_6`, `delayRepeatMin_6`, `delayRepeatMax_6`, `scriptId_6`, `spellId_7`, `probability_7`, `castTarget_7`, `targetParam1_7`, `targetParam2_7`, `castFlags_7`, `delayInitialMin_7`, `delayInitialMax_7`, `delayRepeatMin_7`, `delayRepeatMax_7`, `scriptId_7`, `spellId_8`, `probability_8`, `castTarget_8`, `targetParam1_8`, `targetParam2_8`, `castFlags_8`, `delayInitialMin_8`, `delayInitialMax_8`, `delayRepeatMin_8`, `delayRepeatMax_8`, `scriptId_8`) VALUES (122040, 'Azshara - Spitelash Raider', 12545, 100, 1, 0, 0, 0, 6, 9, 6, 9, 0, 12548, 100, 1, 0, 0, 0, 11, 15, 11, 15, 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);
UPDATE `creature_template` SET `Detection`=10, `minhealth`=2062, `maxhealth`=2138, `minmana`=1695, `maxmana`=1750, `spells_template`=122040, `ScriptName`='' WHERE `entry`=12204;
-- Spitelash Witch
DELETE FROM `creature_ai_events` WHERE `creature_id`=12205;
INSERT INTO `creature_ai_events` (`id`, `creature_id`, `condition_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_script`, `action2_script`, `action3_script`, `comment`) VALUES (1220501, 12205, 0, 1, 0, 100, 0, 1000, 1000, 0, 0, 1220501, 0, 0, 'Spitelash Witch - Cast Lightning Shield on OOC');
DELETE FROM `creature_ai_scripts` WHERE `id`=1220501;
INSERT INTO `creature_ai_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (1220501, 0, 15, 12550, 32, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Spitelash Witch - Cast Lightning Shield');
REPLACE INTO `creature_spells` (`entry`, `name`, `spellId_1`, `probability_1`, `castTarget_1`, `targetParam1_1`, `targetParam2_1`, `castFlags_1`, `delayInitialMin_1`, `delayInitialMax_1`, `delayRepeatMin_1`, `delayRepeatMax_1`, `scriptId_1`, `spellId_2`, `probability_2`, `castTarget_2`, `targetParam1_2`, `targetParam2_2`, `castFlags_2`, `delayInitialMin_2`, `delayInitialMax_2`, `delayRepeatMin_2`, `delayRepeatMax_2`, `scriptId_2`, `spellId_3`, `probability_3`, `castTarget_3`, `targetParam1_3`, `targetParam2_3`, `castFlags_3`, `delayInitialMin_3`, `delayInitialMax_3`, `delayRepeatMin_3`, `delayRepeatMax_3`, `scriptId_3`, `spellId_4`, `probability_4`, `castTarget_4`, `targetParam1_4`, `targetParam2_4`, `castFlags_4`, `delayInitialMin_4`, `delayInitialMax_4`, `delayRepeatMin_4`, `delayRepeatMax_4`, `scriptId_4`, `spellId_5`, `probability_5`, `castTarget_5`, `targetParam1_5`, `targetParam2_5`, `castFlags_5`, `delayInitialMin_5`, `delayInitialMax_5`, `delayRepeatMin_5`, `delayRepeatMax_5`, `scriptId_5`, `spellId_6`, `probability_6`, `castTarget_6`, `targetParam1_6`, `targetParam2_6`, `castFlags_6`, `delayInitialMin_6`, `delayInitialMax_6`, `delayRepeatMin_6`, `delayRepeatMax_6`, `scriptId_6`, `spellId_7`, `probability_7`, `castTarget_7`, `targetParam1_7`, `targetParam2_7`, `castFlags_7`, `delayInitialMin_7`, `delayInitialMax_7`, `delayRepeatMin_7`, `delayRepeatMax_7`, `scriptId_7`, `spellId_8`, `probability_8`, `castTarget_8`, `targetParam1_8`, `targetParam2_8`, `castFlags_8`, `delayInitialMin_8`, `delayInitialMax_8`, `delayRepeatMin_8`, `delayRepeatMax_8`, `scriptId_8`) VALUES (122050, 'Azshara - Spitelash Witch', 20299, 100, 1, 0, 0, 0, 5, 10, 15, 20, 0, 20297, 100, 1, 0, 0, 8, 0, 1, 2, 2, 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);
UPDATE `creature_template` SET `Detection`=10, `minhealth`=1871, `maxhealth`=1939, `minmana`=4281, `maxmana`=4393, `spells_template`=122050, `AIName`='EventAI', `ScriptName`='' WHERE `entry`=12205;
-- Start script for quest A Crew Under Fire.
DELETE FROM `quest_start_scripts` WHERE `id`=3382;
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 0, 61, 338200, 600, 0, 0, 0, 0, 0, 8, 0, 0, 1013, 33820, 0, 0, 0, 0, 0, 'A Crew Under Fire: Start Master Map Event');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 0, 61, 338201, 120, 0, 0, 0, 0, 0, 8, 0, 0, 1013, 0, 0, 0, 0, 0, 0, 'A Crew Under Fire: Start Map Event for Wave 1');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 0, 4, 147, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A Crew Under Fire: Captain Vanessa Beltis - Remove Quest Giver Flag');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 0, 22, 250, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Captain Vanessa Beltis - Set Faction to Escortee');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 1, 27, 0, 0, 0, 35906, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Emote Unarmed Combat');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 1, 27, 0, 0, 0, 35900, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Emote Unarmed Combat');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 1, 27, 0, 0, 0, 35890, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Emote Unarmed Combat');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 1, 27, 0, 0, 0, 35884, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Emote Unarmed Combat');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 1, 27, 0, 0, 0, 35891, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Emote Unarmed Combat');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 1, 27, 0, 0, 0, 35904, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Emote Unarmed Combat');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 1, 27, 0, 0, 0, 35903, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Emote Unarmed Combat');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 1, 27, 0, 0, 0, 35899, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Emote Unarmed Combat');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 1, 27, 0, 0, 0, 35905, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Emote Unarmed Combat');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 22, 250, 1, 0, 0, 35906, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Set Faction to Escortee');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 22, 250, 1, 0, 0, 35900, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Set Faction to Escortee');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 22, 250, 1, 0, 0, 35890, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Set Faction to Escortee');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 22, 250, 1, 0, 0, 35884, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Set Faction to Escortee');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 22, 250, 1, 0, 0, 35891, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Set Faction to Escortee');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 22, 250, 1, 0, 0, 35904, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Set Faction to Escortee');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 22, 250, 1, 0, 0, 35903, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Set Faction to Escortee');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 22, 250, 1, 0, 0, 35899, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Set Faction to Escortee');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 1, 22, 250, 1, 0, 0, 35905, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire: Crew Member - Set Faction to Escortee');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 5, 10, 12205, 180000, 0, 0, 0, 0, 0, 0, 1, 33821, 6, 1, 2356.58, -5877.02, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Witch');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 6, 10, 12204, 180000, 0, 0, 0, 0, 0, 0, 1, 33821, 6, 1, 2356.58, -5877.02, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Raider 1');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 6, 10, 12204, 180000, 0, 0, 0, 0, 0, 0, 1, 33821, 6, 1, 2356.58, -5877.02, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Raider 2');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 6, 10, 12204, 180000, 0, 0, 0, 0, 0, 0, 1, 33821, 6, 1, 2356.58, -5877.02, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Raider 3');
INSERT INTO `quest_start_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3382, 7, 69, 338201, 0, 0, 0, 0, 0, 0, 0, 1015, 33822, -1, -1, 0, 0, 0, 0, 0, 'A Crew Under Fire: Assign Success Condition to Map Event');
-- Failure Script for quest A Crew Under Fire.
DELETE FROM `event_scripts` WHERE `id`=33820;
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 70, 3382, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A Crew Under Fire Failed: Fail Quest');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 22, 0, 0, 0, 0, 35890, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 22, 0, 0, 0, 0, 35884, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 22, 0, 0, 0, 0, 35891, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 22, 0, 0, 0, 0, 35904, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 22, 0, 0, 0, 0, 35903, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 22, 0, 0, 0, 0, 35899, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 22, 0, 0, 0, 0, 35905, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 22, 0, 0, 0, 0, 35900, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 22, 0, 0, 0, 0, 35906, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 1, 30, 0, 0, 0, 35905, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 1, 30, 0, 0, 0, 35899, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 1, 30, 0, 0, 0, 35903, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 1, 30, 0, 0, 0, 35904, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 1, 30, 0, 0, 0, 35891, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 1, 30, 0, 0, 0, 35884, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 1, 30, 0, 0, 0, 35890, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 1, 30, 0, 0, 0, 35900, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 1, 30, 0, 0, 0, 35906, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 22, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Captain Vanessa Beltis - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33820, 0, 4, 147, 2, 1, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Failed: Captain Vanessa Beltis - Add Quest Giver Flag');
-- Spawn script for Spitelash Witch and Spitelash Raider. (Wave 1)
DELETE FROM `event_scripts` WHERE `id`=33821;
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33821, 0, 63, 338201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A Crew Under Fire: Spitelash Naga - Add to Event');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33821, 0, 3, 0, 2600, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2379.149, -5905.212, 10.839, 4.7, 0, 'A Crew Under Fire: Spitelash Naga - Move to Point 1');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33821, 3, 3, 0, 0, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2373.982, -5960.542, 9.625, 4.6, 0, 'A Crew Under Fire: Spitelash Naga - Move to Point 2');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33821, 3, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2373.982, -5960.542, 9.625, 4.6, 0, 'A Crew Under Fire: Spitelash Naga - Set Home Position');
-- Delay script after Wave 1.
DELETE FROM `event_scripts` WHERE `id`=33822;
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33822, 60, 39, 33823, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 1012, 'A Crew Under Fire: Start Script for Wave 2');
-- Script to start Wave 2.
DELETE FROM `event_scripts` WHERE `id`=33823;
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33823, 0, 61, 338202, 120, 0, 0, 0, 0, 0, 0, 0, 0, 1013, 0, 0, 0, 0, 0, 0, 'A Crew Under Fire: Start Map Event for Wave 2');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33823, 5, 10, 12204, 180000, 0, 0, 0, 0, 0, 0, 1, 33824, 6, 1, 2356.585, -5877.022, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Raider 1');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33823, 5, 10, 12204, 180000, 0, 0, 0, 0, 0, 0, 1, 33824, 6, 1, 2356.585, -5877.022, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Raider 2');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33823, 5, 10, 12204, 180000, 0, 0, 0, 0, 0, 0, 1, 33824, 6, 1, 2356.585, -5877.022, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Raider 3');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33823, 6, 10, 12205, 180000, 0, 0, 0, 0, 0, 0, 1, 33824, 6, 1, 2356.585, -5877.022, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Witch 1');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33823, 6, 10, 12205, 180000, 0, 0, 0, 0, 0, 0, 1, 33824, 6, 1, 2356.585, -5877.022, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Witch 2');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33823, 7, 69, 338202, 0, 0, 0, 0, 0, 0, 0, 1016, 33825, -1, -1, 0, 0, 0, 0, 0, 'A Crew Under Fire: Assign Success Condition to Map Event');
-- Spawn script for Spitelash Witch and Spitelash Raider. (Wave 2)
DELETE FROM `event_scripts` WHERE `id`=33824;
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33824, 0, 63, 338202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A Crew Under Fire: Spitelash Naga - Add to Event');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33824, 0, 3, 0, 2600, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2379.149, -5905.212, 10.839, 4.7, 0, 'A Crew Under Fire: Spitelash Naga - Move to Point 1');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33824, 3, 3, 0, 0, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2373.982, -5960.542, 9.625, 4.6, 0, 'A Crew Under Fire: Spitelash Naga - Move to Point 2');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33824, 3, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2373.982, -5960.542, 9.625, 4.6, 0, 'A Crew Under Fire: Spitelash Naga - Set Home Position');
-- Delay script after Wave 2.
DELETE FROM `event_scripts` WHERE `id`=33825;
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33825, 60, 39, 33826, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 1012, 'A Crew Under Fire: Start Script for Wave 3');
-- Script to start Wave 3.
DELETE FROM `event_scripts` WHERE `id`=33826;
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33826, 0, 61, 338203, 120, 0, 0, 0, 0, 0, 0, 0, 0, 1013, 0, 0, 0, 0, 0, 0, 'A Crew Under Fire: Start Map Event for Wave 3');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33826, 5, 10, 12204, 180000, 0, 0, 0, 0, 0, 0, 1, 33827, 6, 1, 2356.585, -5877.022, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Raider 1');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33826, 5, 10, 12204, 180000, 0, 0, 0, 0, 0, 0, 1, 33827, 6, 1, 2356.585, -5877.022, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Raider 2');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33826, 6, 10, 12205, 180000, 0, 0, 0, 0, 0, 0, 1, 33827, 6, 1, 2356.585, -5877.022, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Witch 1');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33826, 6, 10, 12205, 180000, 0, 0, 0, 0, 0, 0, 1, 33827, 6, 1, 2356.585, -5877.022, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Witch 2');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33826, 7, 69, 338203, 0, 0, 0, 0, 0, 0, 0, 1017, 33828, -1, -1, 0, 0, 0, 0, 0, 'A Crew Under Fire: Assign Success Condition to Map Event');
-- Spawn script for Spitelash Witch and Spitelash Raider. (Wave 3)
DELETE FROM `event_scripts` WHERE `id`=33827;
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33827, 0, 63, 338203, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A Crew Under Fire: Spitelash Naga - Add to Event');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33827, 0, 3, 0, 2600, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2379.149, -5905.212, 10.839, 4.7, 0, 'A Crew Under Fire: Spitelash Naga - Move to Point 1');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33827, 3, 3, 0, 0, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2373.982, -5960.542, 9.625, 4.6, 0, 'A Crew Under Fire: Spitelash Naga - Move to Point 2');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33827, 3, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2373.982, -5960.542, 9.625, 4.6, 0, 'A Crew Under Fire: Spitelash Naga - Set Home Position');
-- Delay script after Wave 3.
DELETE FROM `event_scripts` WHERE `id`=33828;
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33828, 60, 39, 33829, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 1012, 'A Crew Under Fire: Start Script for Wave 4');
-- Script to start Wave 4.
DELETE FROM `event_scripts` WHERE `id`=33829;
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33829, 0, 61, 338204, 120, 0, 0, 0, 0, 0, 0, 0, 0, 1013, 0, 0, 0, 0, 0, 0, 'A Crew Under Fire: Start Map Event for Wave 4');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33829, 5, 10, 12204, 180000, 0, 0, 0, 0, 0, 0, 1, 33830, 6, 1, 2356.585, -5877.022, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Raider 1');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33829, 5, 10, 12204, 180000, 0, 0, 0, 0, 0, 0, 1, 33830, 6, 1, 2356.585, -5877.022, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Raider 2');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33829, 6, 10, 12205, 180000, 0, 0, 0, 0, 0, 0, 1, 33830, 6, 1, 2356.585, -5877.022, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Witch 1');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33829, 6, 10, 12205, 180000, 0, 0, 0, 0, 0, 0, 1, 33830, 6, 1, 2356.585, -5877.022, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Witch 2');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33829, 6, 10, 12205, 180000, 0, 0, 0, 0, 0, 0, 1, 33830, 6, 1, 2356.585, -5877.022, 14.464, 5.4, 0, 'A Crew Under Fire: Summon Spitelash Witch 3');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33829, 7, 69, 338204, 0, 0, 0, 0, 0, 0, 0, 1018, 33831, -1, -1, 0, 0, 0, 0, 0, 'A Crew Under Fire: Assign Success Condition to Map Event');
-- Spawn script for Spitelash Witch and Spitelash Raider. (Wave 4)
DELETE FROM `event_scripts` WHERE `id`=33830;
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33830, 0, 63, 338204, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A Crew Under Fire: Spitelash Naga - Add to Event');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33830, 0, 3, 0, 2600, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2379.149, -5905.212, 10.839, 4.7, 0, 'A Crew Under Fire: Spitelash Naga - Move to Point 1');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33830, 3, 3, 0, 0, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2373.982, -5960.542, 9.625, 4.6, 0, 'A Crew Under Fire: Spitelash Naga - Move to Point 2');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33830, 3, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2373.982, -5960.542, 9.625, 4.6, 0, 'A Crew Under Fire: Spitelash Naga - Set Home Position');
-- Completion script for quest A Crew Under Fire.
DELETE FROM `event_scripts` WHERE `id`=33831;
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 7, 3382, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A Crew Under Fire Success: Complete Quest');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 22, 0, 0, 0, 0, 35884, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 22, 0, 0, 0, 0, 35891, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 22, 0, 0, 0, 0, 35904, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 22, 0, 0, 0, 0, 35903, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 22, 0, 0, 0, 0, 35899, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 22, 0, 0, 0, 0, 35905, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 22, 0, 0, 0, 0, 35890, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 22, 0, 0, 0, 0, 35900, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 22, 0, 0, 0, 0, 35906, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 1, 30, 0, 0, 0, 35906, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 1, 30, 0, 0, 0, 35900, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 1, 30, 0, 0, 0, 35890, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 1, 30, 0, 0, 0, 35884, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 1, 30, 0, 0, 0, 35891, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 1, 30, 0, 0, 0, 35904, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 1, 30, 0, 0, 0, 35903, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 1, 30, 0, 0, 0, 35899, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 1, 30, 0, 0, 0, 35905, 0, 9, 6, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'A Crew Under Fire Success: Crew Member - Stop Emoting');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 62, 338200, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A Crew Under Fire Success: Complete Master Map Event');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 4, 147, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A Crew Under Fire Success: Captain Vanessa Beltis - Add Quest Giver Flag');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 0, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A Crew Under Fire Success: Captain Vanessa Beltis - Restore Faction');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (33831, 2, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A Crew Under Fire Success: Captain Vanessa Beltis - Emote Cheer');
-- End of migration.
END IF;
END??
delimiter ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;