DB Updates

This commit is contained in:
hondacrx
2021-10-08 10:36:20 -04:00
parent 5de61110b3
commit c73060fde0
10 changed files with 761 additions and 9 deletions
+1 -1
View File
@@ -3721,7 +3721,7 @@ INSERT INTO `updates` VALUES
('2021_07_04_00_characters.sql','E0E7AD664DDB553E96B457DD9ED8976665E94007','ARCHIVED','2021-07-04 22:23:24',0),
('2021_08_11_00_characters.sql','2137A52A45B045104B97D39626CE3C0214625B17','ARCHIVED','2021-08-11 21:48:57',0),
('2021_08_18_00_characters.sql','5BA1326EE8EC907CDE82E6E8BCB38EA2E661F10A','ARCHIVED','2021-08-18 15:14:17',0),
('2021_10_02_00_characters.sql','C6831D3ED03F6BD390A5E5E403FA402D6DC0E95D','RELEASED','2021-10-02 21:21:37',0),
('2021_10_02_00_characters.sql','31CEACE4E9A4BE58A659A2BDE4A7C51D2DB8AC41','RELEASED','2021-10-02 21:21:37',0),
('2021_10_02_01_characters.sql','F97B956F3B5F909294CA399F75B5795A07C4D8EC','RELEASED','2021-10-02 21:47:38',0);
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
UNLOCK TABLES;
@@ -1,12 +1,42 @@
ALTER TABLE `characters`
ADD `createTime` bigint(20) NOT NULL DEFAULT '0' AFTER `online`,
ADD `createMode` tinyint(4) NOT NULL DEFAULT '0' AFTER `createTime`;
-- THIS SQL UPDATE HAS BEEN EDITED TO FIX MYSQL 5.7 COMPATIBILITY
-- ADD COLUMN IF NOT EXISTS
SET @dbname = DATABASE();
SET @preparedStatement = (SELECT IF(
(
SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS
WHERE
(table_name = 'characters')
AND (table_schema = @dbname)
AND (column_name = 'createTime')
) > 0,
"SELECT 'Skipped adding column, already exists.'",
CONCAT("ALTER TABLE characters ADD `createTime` bigint(20) NOT NULL DEFAULT '0' AFTER `online`, ADD `createMode` tinyint(4) NOT NULL DEFAULT '0' AFTER `createTime`")
));
PREPARE alterIfNotExists FROM @preparedStatement;
EXECUTE alterIfNotExists;
DEALLOCATE PREPARE alterIfNotExists;
-- EDITED NOTE: updates safe to reapply unconditionally
-- AT_LOGIN_FIRST: Characters that have never logged in have accurate creation timestamp in `logout_time`
UPDATE `characters` SET `createTime`=`logout_time` WHERE (`at_login` & 0x20) != 0;
-- attempt to find lowest criteria timestamp for characters that have logged in already
UPDATE `characters` SET `createTime`=(SELECT COALESCE(MIN(candidates.`date`), UNIX_TIMESTAMP()) FROM (
SELECT MIN(cap.`date`) `date` FROM `character_achievement_progress` cap WHERE cap.`guid`=`characters`.`guid`
UNION
SELECT MIN(ca.`date`) `date` FROM `character_achievement` ca WHERE ca.`guid`=`characters`.`guid`
) candidates) WHERE (`at_login` & 0x20) = 0;
UPDATE `characters` c
INNER JOIN
(
SELECT cap.`guid` `guid`, COALESCE(MIN(cap.`date`), UNIX_TIMESTAMP()) `date`
FROM `character_achievement_progress` cap
GROUP BY cap.`guid`
) criteria ON criteria.`guid` = c.`guid`
INNER JOIN
(
SELECT ca.`guid` `guid`, COALESCE(MIN(ca.`date`), UNIX_TIMESTAMP()) `date`
FROM `character_achievement` ca
GROUP BY ca.`guid`
) achievement ON achievement.`guid` = c.`guid`
SET
`createTime` = IF(criteria.`date` < achievement.`date`,
criteria.`date`,
achievement.`date`)
WHERE
(`at_login` & 0x20) = 0;
@@ -0,0 +1,199 @@
-- Pygmy Venom Web Spider
DELETE FROM `smart_scripts` WHERE `entryorguid`=539 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(539,0,0,0,25,0,100,0,0,0,0,0,0,11,3616,0,0,0,0,0,1,0,0,0,0,0,0,0,"Pygmy Venom Web Spider - On Reset - Cast 'Poison Proc'");
-- Venom Web Spider
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=217 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (217,0,0,0,25,0,100,0,0,0,0,0,0,11,3616,0,0,0,0,0,1,0,0,0,0,0,0,0,"Venom Web Spider - On Reset - Cast 'Poison Proc'"),
-- (217,0,1,0,0,0,100,0,2000,12000,13000,23000,0,11,745,0,0,0,0,0,2,0,0,0,0,0,0,0,"Venom Web Spider - In Combat - Cast 'Web'");
-- Green Recluse
DELETE FROM `smart_scripts` WHERE `entryorguid`=569 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(569,0,0,0,25,0,100,0,0,0,0,0,0,11,3616,0,0,0,0,0,1,0,0,0,0,0,0,0,"Green Recluse - On Reset - Cast 'Poison Proc'");
-- Rabid Dire Wolf
DELETE FROM `smart_scripts` WHERE `entryorguid`=565 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(565,0,0,0,0,0,100,0,6000,12000,12000,18000,0,11,3150,0,0,0,0,0,2,0,0,0,0,0,0,0,"Rabid Dire Wolf - In Combat - Cast 'Rabies'");
-- Black Ravager
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=628 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (628,0,0,0,0,0,100,0,5000,9000,16000,20000,0,11,13443,0,0,0,0,0,2,0,0,0,0,0,0,0,"Black Ravager - In Combat - Cast 'Rend'");
-- Nightbane Shadow Weaver
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=533 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (533,0,0,0,0,0,100,0,0,0,3000,5000,0,11,9613,64,0,0,0,0,2,0,0,0,0,0,0,0,"Nightbane Shadow Weaver - In Combat - Cast 'Shadow Bolt'"),
-- (533,0,1,0,0,0,100,0,6000,9000,18000,21000,0,11,992,0,0,0,0,0,5,0,0,0,0,0,0,0,"Nightbane Shadow Weaver - In Combat - Cast 'Shadow Word: Pain'");
-- Fenros
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=507 AND `source_type`=0 AND `id` IN (1,2);
-- 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (507,0,1,0,0,0,100,0,2000,5000,12000,18000,0,11,6725,0,0,0,0,0,2,0,0,0,0,0,0,0,"Fenros - In Combat - Cast 'Flame Spike'"),
-- (507,0,2,0,0,0,100,0,11000,13000,15000,17000,0,11,865,0,0,0,0,0,1,0,0,0,0,0,0,0,"Fenros - In Combat - Cast 'Frost Nova'");
-- Fetid Corpse
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=1270 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (1270,0,0,0,11,0,100,0,0,0,0,0,0,11,26047,0,0,0,0,0,1,0,0,0,0,0,0,0,"Fetid Corpse - On Respawn - Cast 'Birth'"),
-- (1270,0,1,0,0,0,100,0,5000,11000,16000,22000,0,11,7102,2,0,0,0,0,2,0,0,0,0,0,0,0,"Fetid Corpse - In Combat - Cast 'Contagion of Rot'");
-- Black Widow Hatchling
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=930 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (930,0,0,0,25,0,100,0,0,0,0,0,0,11,3616,0,0,0,0,0,1,0,0,0,0,0,0,0,"Black Widow Hatchling - On Reset - Cast 'Poison Proc'"),
-- (930,0,1,0,0,0,100,0,5000,13000,14000,18000,0,11,7367,32,0,0,0,0,2,0,0,0,0,0,0,0,"Black Widow Hatchling - In Combat - Cast 'Infected Bite'");
-- Insane Ghoul
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=511 AND `source_type`=0 AND `id`=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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (511,0,0,0,11,0,100,0,0,0,0,0,0,11,26047,0,0,0,0,0,1,0,0,0,0,0,0,0,"Insane Ghoul - On Respawn - Cast 'Birth'");
-- Nightbane Vile Fang
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=206 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (206,0,0,0,0,0,100,0,2000,16000,8000,20000,0,11,3427,0,0,0,0,0,2,0,0,0,0,0,0,0,"Nightbane Vile Fang - In Combat - Cast 'Infected Wound'");
-- Nightbane Tainted One
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=920 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (920,0,0,0,25,0,100,0,0,0,0,0,0,11,3616,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nightbane Tainted One - On Reset - Cast 'Poison Proc'"),
-- (920,0,1,0,0,0,100,0,11000,16000,19000,24000,0,11,3424,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nightbane Tainted One - In Combat - Cast 'Tainted Howl'");
-- Gutspill
DELETE FROM `smart_scripts` WHERE `entryorguid`=6170 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(6170,0,0,0,25,0,100,0,0,0,0,0,0,11,3616,0,0,0,0,0,1,0,0,0,0,0,0,0,"Gutspill - On Reset - Cast 'Poison Proc'"),
(6170,0,1,0,0,0,100,0,11000,16000,19000,24000,0,11,3424,0,0,0,0,0,1,0,0,0,0,0,0,0,"Gutspill - In Combat - Cast 'Tainted Howl'");
-- Defias Night Blade
DELETE FROM `smart_scripts` WHERE `entryorguid`=909 AND `source_type`=0 AND `id` IN (0,1,2);
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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(909,0,0,0,25,0,100,0,0,0,0,0,0,11,3616,0,0,0,0,0,1,0,0,0,0,0,0,0,"Defias Night Blade - On Reset - Cast 'Poison Proc'"),
(909,0,1,0,25,0,100,0,0,0,0,0,0,11,8601,0,0,0,0,0,1,0,0,0,0,0,0,0,"Defias Night Blade - On Reset - Cast 'Slowing Poison'"),
(909,0,2,0,0,0,100,0,3000,6000,5000,8000,0,11,2589,0,0,0,0,0,1,0,0,0,0,0,0,0,"Defias Night Blade - In Combat - Cast 'Backstab'");
-- Defias Enchanter
UPDATE `smart_scripts` SET `action_param2`=0, `event_param4`=26000 WHERE `entryorguid`=910 AND `source_type`=0 AND `id`=2;
-- Bone Chewer
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=210 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (210,0,0,0,11,0,100,0,0,0,0,0,0,11,26047,0,0,0,0,0,1,0,0,0,0,0,0,0,"Bone Chewer - On Respawn - Cast 'Birth'"),
-- (210,0,1,0,0,0,100,0,5000,12000,16000,23000,0,11,6016,2,0,0,0,0,2,0,0,0,0,0,0,0,"Bone Chewer - In Combat - Cast 'Pierce Armor'");
-- Rotted One
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=948 AND `source_type`=0 AND `id`=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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (948,0,0,0,11,0,100,0,0,0,0,0,0,11,26047,0,0,0,0,0,1,0,0,0,0,0,0,0,"Rotted One - On Respawn - Cast 'Birth'");
-- Flesh Eating Worm
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=2462;
DELETE FROM `smart_scripts` WHERE `entryorguid`=2462 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(2462,0,0,0,54,0,100,0,0,0,0,0,0,49,0,0,0,0,0,0,21,20,0,0,0,0,0,0,"Flesh Eating Worm - Just Summoned - Start Attacking");
-- Plague Spreader
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=604 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (604,0,0,0,11,0,100,0,0,0,0,0,0,11,26047,0,0,0,0,0,1,0,0,0,0,0,0,0,"Plague Spreader - On Respawn - Cast 'Birth'"),
-- (604,0,1,0,0,0,100,0,5000,9000,12000,18000,0,11,3436,32,0,0,0,0,5,0,0,0,0,0,0,0,"Plague Spreader - In Combat - Cast 'Wandering Plague'");
-- Carrion Recluse
DELETE FROM `smart_scripts` WHERE `entryorguid`=949 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(949,0,0,0,0,0,100,0,8000,16000,14000,30000,0,11,3609,0,0,0,0,0,2,0,0,0,0,0,0,0,"Carrion Recluse - In Combat - Cast 'Paralyzing Poison'");
-- Skeletal Raider
DELETE FROM `smart_scripts` WHERE `entryorguid`=1110 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(1110,0,0,0,25,0,100,0,0,0,0,0,0,11,8601,0,0,0,0,0,1,0,0,0,0,0,0,0,"Skeletal Raider - On Reset - Cast 'Slowing Poison'");
-- Skeletal Healer
DELETE FROM `smart_scripts` WHERE `entryorguid`=787 AND `source_type`=0 AND `id`=1;
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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(787,0,1,0,14,0,100,1,360,40,0,0,0,11,2054,0,0,0,0,0,7,0,0,0,0,0,0,0,"Skeletal Healer - Friendly At 360 Health - Cast 'Heal' (No Repeat)");
-- Mor'Ladim
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=522 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (522,0,0,0,0,0,100,0,6000,8000,10000,26000,0,11,3547,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mor'Ladim - In Combat - Cast 'Enraging Memories'");
-- Brain Eater
DELETE FROM `smart_scripts` WHERE `entryorguid`=570 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(570,0,0,0,11,0,100,0,0,0,0,0,0,11,26047,0,0,0,0,0,1,0,0,0,0,0,0,0,"Brain Eater - On Respawn - Cast 'Birth'"),
(570,0,1,0,0,0,100,0,2000,8000,16000,24000,0,11,3429,0,0,0,0,0,5,0,0,0,0,0,0,0,"Brain Eater - In Combat - Cast 'Plague Mind'");
-- Lord Malathrom
DELETE FROM `smart_scripts` WHERE `entryorguid`=503 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(503,0,0,0,11,0,100,0,0,0,0,0,0,11,26047,0,0,0,0,0,1,0,0,0,0,0,0,0,"Lord Malathrom - On Respawn - Cast 'Birth'"),
(503,0,1,0,0,0,100,0,2000,4000,7000,9000,0,11,2767,32,0,0,0,0,5,0,0,0,0,0,0,0,"Lord Malathrom - In Combat - Cast 'Shadow Word: Pain'"),
(503,0,2,0,0,0,100,0,5000,11000,22000,30000,0,11,3537,0,0,0,0,0,1,0,0,0,0,0,0,0,"Lord Malathrom - In Combat - Cast 'Minions of Malathrom'");
-- Sludge
DELETE FROM `smart_scripts` WHERE `entryorguid`=2479 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(2479,0,0,0,25,0,100,0,0,0,0,0,0,11,3512,0,0,0,0,0,1,0,0,0,0,0,0,0,"Sludge - On Reset - Cast 'Sludge Passive'"),
(2479,0,1,0,54,0,100,0,0,0,0,0,0,49,0,0,0,0,0,0,21,20,0,0,0,0,0,0,"Sludge - Just Summoned - Start Attacking");
-- Sloth
DELETE FROM `smart_scripts` WHERE `entryorguid`=2475 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(2475,0,0,0,25,0,100,0,0,0,0,0,0,11,3509,0,0,0,0,0,1,0,0,0,0,0,0,0,"Sloth - On Reset - Cast 'Sloth Passive'"),
(2475,0,1,0,54,0,100,0,0,0,0,0,0,49,0,0,0,0,0,0,21,20,0,0,0,0,0,0,"Sloth - Just Summoned - Start Attacking");
-- Skeletal Warder
DELETE FROM `smart_scripts` WHERE `entryorguid`=785 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(785,0,0,0,0,0,100,0,10000,16000,10000,16000,0,11,4979,0,0,0,0,0,1,0,0,0,0,0,0,0,"Skeletal Warder - In Combat - Cast 'Quick Flame Ward'"),
(785,0,1,0,0,0,100,0,2000,9000,20000,27000,0,11,8699,0,0,0,0,0,1,0,0,0,0,0,0,0,"Skeletal Warder - In Combat - Cast 'Unholy Frenzy'");
-- Splinter Fist Ogre
UPDATE `smart_scripts` SET `event_chance`=15 WHERE `entryorguid` IN (212,892,1251,891,889) AND `source_type`=0 AND `id`=0;
-- Splinter Fist Warrior
-- ELETE FROM `smart_scripts` WHERE `entryorguid`=212 AND `source_type`=0 AND `id`=1;
-- NSERT 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- 212,0,1,0,0,0,100,0,3000,7000,14000,21000,0,11,5242,2,0,0,0,0,1,0,0,0,0,0,0,0,"Splinter Fist Warrior - In Combat - Cast 'Battle Shout'");
-- Splinter Fist Fire Weaver
DELETE FROM `smart_scripts` WHERE `entryorguid`=891 AND `source_type`=0 AND `id`=2;
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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(891,0,2,0,0,0,100,0,5000,8000,12000,18000,0,11,20296,0,0,0,0,0,5,0,0,0,0,0,0,0,"Splinter Fist Fire Weaver - In Combat - Cast 'Flamestrike'");
-- Splinter Fist Enslaver
DELETE FROM `smart_scripts` WHERE `entryorguid`=1487 AND `source_type`=0 AND `id` IN (1,2);
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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(1487,0,1,0,0,0,100,0,1000,3000,13000,17000,0,11,6533,0,0,0,0,0,2,0,0,0,0,0,0,0,"Splinter Fist Enslaver - In Combat - Cast 'Net'"),
(1487,0,2,0,4,0,15,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Splinter Fist Enslaver - On Aggro - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=1487;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(1487,0,0,"Raaar!!! Me smash $r!",12,0,100,0,0,0,1925,0,"Splinter Fist Enslaver"),
(1487,0,1,"Me smash! You die!",12,0,100,0,0,0,1926,0,"Splinter Fist Enslaver"),
(1487,0,2,"I'll crush you!",12,0,100,0,0,0,1927,0,"Splinter Fist Enslaver");
-- Zzarc' Vul
-- DELETE FROM `smart_scripts` WHERE `entryorguid`=300 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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
-- (300,0,0,0,4,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Zzarc' Vul - On Aggro - Say Line 0"),
-- (300,0,1,0,0,0,100,0,5000,7000,11000,15000,0,11,8716,0,0,0,0,0,2,0,0,0,0,0,0,0,"Zzarc' Vul - In Combat - Cast 'Low Swipe'");
-- DELETE FROM `creature_text` WHERE `CreatureID`=300;
-- INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- (300,0,0,"Raaar!!! Me smash $r!",12,0,100,0,0,0,1925,0,"Zzarc' Vul"),
-- (300,0,1,"Me smash! You die!",12,0,100,0,0,0,1926,0,"Zzarc' Vul"),
-- (300,0,2,"I'll crush you!",12,0,100,0,0,0,1927,0,"Zzarc' Vul");
-- Morbent Fel
-- UPDATE `creature_template` SET `unit_class`=2 WHERE `entry`=24782;
DELETE FROM `smart_scripts` WHERE `entryorguid`=1200 AND `source_type`=0 AND `id` IN (2,3);
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`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(1200,0,2,0,0,0,100,0,0,0,3000,5000,0,11,3108,64,0,0,0,0,2,0,0,0,0,0,0,0,"Morbent Fel - In Combat - Cast 'Touch of Death'"),
(1200,0,3,0,0,0,100,0,3000,6000,18000,24000,0,11,3109,0,0,0,0,0,1,0,0,0,0,0,0,0,"Morbent Fel - In Combat - Cast 'Presence of Death'");
@@ -0,0 +1,359 @@
-- Quest "Look To The Stars"
DELETE FROM `quest_details` WHERE `ID`=174;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(174,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=174;
UPDATE `quest_offer_reward` SET `Emote1`=21 WHERE `ID`=174;
-- Quest "Look To The Stars (Part 2)"
DELETE FROM `quest_details` WHERE `ID`=175;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(175,1,0,0,0,0,0,0,0,0);
-- Quest "Look To The Stars (Part 3)"
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=177;
UPDATE `quest_offer_reward` SET `Emote1`=2 WHERE `ID`=177;
-- Quest "Look To The Stars (Part 4)"
DELETE FROM `quest_details` WHERE `ID`=181;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(181,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=181;
UPDATE `quest_offer_reward` SET `Emote1`=4 WHERE `ID`=181;
-- Quest "The Totem of Infliction"
DELETE FROM `quest_details` WHERE `ID`=101;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(101,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=1 WHERE `ID`=101;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=101;
-- Quest "The Legend of Stalvan"
DELETE FROM `quest_details` WHERE `ID`=66;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(66,5,1,1,25,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=66;
-- Quest "The Legend of Stalvan (Part 2)"
DELETE FROM `quest_details` WHERE `ID`=67;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(67,6,1,5,1,0,0,0,0,0);
-- Quest "The Legend of Stalvan (Part 3)"
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=68;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=68;
-- Quest "The Legend of Stalvan (Part 4)"
DELETE FROM `quest_details` WHERE `ID`=69;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(69,5,1,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=6 WHERE `ID`=69;
-- Quest "The Legend of Stalvan (Part 5)"
DELETE FROM `quest_details` WHERE `ID`=70;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(70,1,1,25,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=70;
UPDATE `quest_offer_reward` SET `Emote1`=14 WHERE `ID`=70;
-- Quest "The Legend of Stalvan (Part 6)"
DELETE FROM `quest_details` WHERE `ID`=72;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(72,1,1,0,0,0,0,0,0,0);
-- Quest "The Legend of Stalvan (Part 7)"
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=74;
-- Quest "The Legend of Stalvan (Part 8)"
DELETE FROM `quest_details` WHERE `ID`=75;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(75,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=75;
-- Quest "The Legend of Stalvan (Part 9)"
DELETE FROM `quest_details` WHERE `ID`=78;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(78,1,25,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=78;
UPDATE `quest_offer_reward` SET `Emote1`=5 WHERE `ID`=78;
-- Quest "The Legend of Stalvan (Part 10)"
DELETE FROM `quest_details` WHERE `ID`=79;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(79,1,1,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=79;
-- Quest "The Legend of Stalvan (Part 11)"
DELETE FROM `quest_details` WHERE `ID`=80;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(80,1,1,1,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=80;
UPDATE `quest_offer_reward` SET `Emote1`=5 WHERE `ID`=80;
-- Quest "The Legend of Stalvan (Part 12)"
DELETE FROM `quest_details` WHERE `ID`=97;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(97,25,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=5 WHERE `ID`=97;
-- Quest "The Legend of Stalvan (Part 13)"
DELETE FROM `quest_details` WHERE `ID`=98;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(98,1,1,25,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=98;
UPDATE `quest_offer_reward` SET `Emote1`=1, `Emote2`=1, `Emote3`=16 WHERE `ID`=98;
-- Quest "Seasoned Wolf Kabobs"
DELETE FROM `quest_details` WHERE `ID`=90;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(90,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=90;
UPDATE `quest_offer_reward` SET `Emote1`=2 WHERE `ID`=90;
-- Quest "The Night Watch"
DELETE FROM `quest_details` WHERE `ID`=56;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(56,1,5,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6 WHERE `ID`=56;
UPDATE `quest_offer_reward` SET `Emote1`=21 WHERE `ID`=56;
-- Quest "The Night Watch (Part 2)"
DELETE FROM `quest_details` WHERE `ID`=57;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(57,5,25,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=25 WHERE `ID`=57;
UPDATE `quest_offer_reward` SET `Emote1`=21 WHERE `ID`=57;
-- Quest "The Night Watch (Part 3)"
DELETE FROM `quest_details` WHERE `ID`=58;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(58,5,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=25 WHERE `ID`=58;
UPDATE `quest_offer_reward` SET `Emote1`=66 WHERE `ID`=58;
-- Quest "Crime and Punishment"
DELETE FROM `quest_details` WHERE `ID`=377;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(377,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=5, `EmoteOnComplete`=5 WHERE `ID`=377;
UPDATE `quest_offer_reward` SET `Emote1`=1, `Emote2`=5 WHERE `ID`=377;
-- Quest "Worgen in the Woods (Part 4)"
DELETE FROM `quest_details` WHERE `ID`=223;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(223,66,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=223;
-- Quest "The Hermit"
DELETE FROM `quest_details` WHERE `ID`=165;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(165,1,0,0,0,0,0,0,0,0);
-- Quest "Supplies from Darkshire"
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=148;
-- Quest "Ghost Hair Thread"
DELETE FROM `quest_details` WHERE `ID`=149;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(149,1,1,0,0,0,0,0,0,0);
-- Quest "Return the Comb"
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=154;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=154;
-- Quest "Deliver the Thread"
DELETE FROM `quest_details` WHERE `ID`=157;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(157,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=157;
-- Quest "Gather Rot Blossoms"
DELETE FROM `quest_details` WHERE `ID`=156;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(156,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=156;
UPDATE `quest_offer_reward` SET `Emote1`=2 WHERE `ID`=156;
-- Quest "Juice Delivery"
DELETE FROM `quest_details` WHERE `ID`=159;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(159,1,5,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=159;
-- Quest "Ghoulish Effigy"
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=133;
-- Quest "Ogre Thieves"
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=134;
-- Quest "Note to the Mayor"
DELETE FROM `quest_details` WHERE `ID`=160;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(160,11,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=6 WHERE `ID`=160;
UPDATE `quest_offer_reward` SET `Emote1`=6 WHERE `ID`=160;
-- Quest "Translate Abercrombie's Note"
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=251;
-- Quest "Translation to Ello"
DELETE FROM `quest_details` WHERE `ID`=252;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(252,5,0,0,0,0,0,0,0,0);
-- Quest "Bride of the Embalmer"
DELETE FROM `quest_details` WHERE `ID`=253;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(253,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=253;
UPDATE `quest_offer_reward` SET `Emote1`=4 WHERE `ID`=253;
-- Quest "Wolves at Our Heels"
DELETE FROM `quest_details` WHERE `ID`=226;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(226,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6 WHERE `ID`=226;
UPDATE `quest_offer_reward` SET `Emote1`=2 WHERE `ID`=226;
-- Quest "Deliveries to Sven"
DELETE FROM `quest_details` WHERE `ID`=164;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(164,6,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=6 WHERE `ID`=164;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=164;
-- Quest "Sven's Revenge"
DELETE FROM `quest_details` WHERE `ID`=95;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(95,1,1,0,0,0,0,0,0,0);
-- Quest "Sven's Revenge"
UPDATE `quest_request_items` SET `EmoteOnComplete`=5 WHERE `ID`=230;
-- Quest "The Shadowy Figure"
DELETE FROM `quest_details` WHERE `ID`=262;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(262,1,20,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=1, `Emote2`=1 WHERE `ID`=262;
-- Quest "The Shadowy Search Continues"
DELETE FROM `quest_details` WHERE `ID`=265;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(265,1,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=265;
-- Quest "Inquire at the Inn"
DELETE FROM `quest_details` WHERE `ID`=266;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(266,1,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=1, `Emote2`=1 WHERE `ID`=266;
-- Quest "Finding the Shadowy Figure"
DELETE FROM `quest_details` WHERE `ID`=453;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(453,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=5 WHERE `ID`=453;
-- Quest "Return to Sven"
DELETE FROM `quest_details` WHERE `ID`=268;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(268,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=268;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=268;
-- Quest "Proving Your Worth"
DELETE FROM `quest_details` WHERE `ID`=323;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(323,1,1,1,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=1 WHERE `ID`=323;
UPDATE `quest_offer_reward` SET `Emote1`=21 WHERE `ID`=323;
-- Quest "Seeking Wisdom"
DELETE FROM `quest_details` WHERE `ID`=269;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(269,1,1,0,0,0,0,0,0,0);
-- Quest "The Doomed Fleet"
DELETE FROM `quest_details` WHERE `ID`=270;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(270,1,1,1,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=1, `Emote2`=1 WHERE `ID`=270;
-- Quest "Lightforge Iron"
DELETE FROM `quest_details` WHERE `ID`=321;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(321,1,1,0,0,0,0,0,0,0);
-- Quest "The Lost Ingots"
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=324;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=324;
-- Quest "Blessed Arm"
DELETE FROM `quest_details` WHERE `ID`=322;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(322,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6, `EmoteOnComplete`=6 WHERE `ID`=322;
UPDATE `quest_offer_reward` SET `Emote1`=1, `Emote2`=2 WHERE `ID`=322;
-- Quest "Armed and Ready"
DELETE FROM `quest_details` WHERE `ID`=325;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(325,1,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=21 WHERE `ID`=325;
-- Quest "Morbent Fel"
DELETE FROM `quest_details` WHERE `ID`=55;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(55,1,1,5,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=5, `EmoteOnComplete`=5 WHERE `ID`=55;
UPDATE `quest_offer_reward` SET `Emote1`=1, `Emote2`=1, `Emote3`=2 WHERE `ID`=55;
-- Quest "The Weathered Grave"
UPDATE `quest_offer_reward` SET `Emote1`=6, `Emote2`=1, `Emote3`=1 WHERE `ID`=225;
-- Quest "The Weathered Grave"
UPDATE `quest_offer_reward` SET `Emote1`=274, `Emote2`=6, `Emote3`=1, `Emote4`=1 WHERE `ID`=227;
-- Quest "Mor'Ladim"
DELETE FROM `quest_details` WHERE `ID`=228;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(228,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=1 WHERE `ID`=228;
UPDATE `quest_offer_reward` SET `Emote1`=6, `Emote2`=66 WHERE `ID`=228;
-- Quest "The Daughter Who Lived"
DELETE FROM `quest_details` WHERE `ID`=229;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(229,1,1,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=6, `Emote2`=1 WHERE `ID`=229;
-- Quest "A Daughter's Love"
DELETE FROM `quest_details` WHERE `ID`=231;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(231,1,2,0,0,0,1000,0,0,0);
-- Quest "Raven Hill"
DELETE FROM `quest_details` WHERE `ID`=163;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(163,1,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=430 WHERE `ID`=163;
-- Quest "Jitters' Growling Gut"
DELETE FROM `quest_details` WHERE `ID`=5;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(5,5,1,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=6 WHERE `ID`=5;
-- Quest "Dusky Crab Cakes"
DELETE FROM `quest_details` WHERE `ID`=93;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(93,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=3, `EmoteOnComplete`=3 WHERE `ID`=93;
UPDATE `quest_offer_reward` SET `Emote1`=273, `Emote2`=1 WHERE `ID`=93;
-- Quest "Return to Jitters"
DELETE FROM `quest_details` WHERE `ID`=240;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(240,4,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=5, `EmoteOnComplete`=5 WHERE `ID`=240;
UPDATE `quest_offer_reward` SET `Emote1`=2, `Emote2`=1 WHERE `ID`=240;
@@ -0,0 +1,63 @@
-- Captain Auric Sunchaser
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=18745;
DELETE FROM `smart_scripts` WHERE `entryorguid`=18745 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
(18745,0,0,0,38,0,100,0,1,1,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,3.58753,"Captain Auric Sunchaser - On Data Set - Set Orientation"),
(18745,0,1,0,38,0,100,0,2,2,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,4.53786,"Captain Auric Sunchaser - On Data Set - Set Orientation");
-- Lieutenant Gravelhammer
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=18713;
DELETE FROM `smart_scripts` WHERE `entryorguid`=18713 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (1871300,1871301,1871302) 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
(18713,0,0,0,1,0,100,0,5000,15000,300000,900000,80,1871300,0,0,0,0,0,1,0,0,0,0,0,0,0,"Lieutenant Gravelhammer - OOC - Run Script"),
(18713,0,1,0,40,0,100,0,4,18713,0,0,80,1871301,2,0,0,0,0,1,0,0,0,0,0,0,0,"Lieutenant Gravelhammer - On Waypoint 4 Reached - Run Script"),
(18713,0,2,0,40,0,100,0,7,18713,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,4.153880,"Lieutenant Gravelhammer - On Waypoint 7 Reached - Set Orientation"),
(1871300,9,0,0,0,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Lieutenant Gravelhammer - On Script - Say Line 0"),
(1871300,9,1,0,0,0,100,0,11000,11000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Lieutenant Gravelhammer - On Script - Say Line 1"),
(1871300,9,2,0,0,0,100,0,5000,5000,0,0,53,0,18713,0,0,0,0,1,0,0,0,0,0,0,0,"Lieutenant Gravelhammer - On Script - Start Waypoint"),
(1871301,9,0,0,0,0,100,0,0,0,0,0,54,35000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Lieutenant Gravelhammer - On Script - Pause Waypoint"),
(1871301,9,1,0,0,0,100,0,0,0,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,0.259758,"Lieutenant Gravelhammer - On Script - Set Orientation"),
(1871301,9,2,0,0,0,100,0,200,200,0,0,45,1,1,0,0,0,0,19,18745,0,0,0,0,0,0,"Lieutenant Gravelhammer - On Script - Set Data to Captain Auric Sunchaser"),
(1871301,9,3,0,0,0,100,0,200,200,0,0,5,66,0,0,0,0,0,1,0,0,0,0,0,0,0,"Lieutenant Gravelhammer - On Script - Play Emote 'Salute'"),
(1871301,9,4,0,0,0,100,0,3000,3000,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Lieutenant Gravelhammer - On Script - Say Line 2"),
(1871301,9,5,0,0,0,100,0,5000,5000,0,0,1,5,0,0,0,0,0,19,18745,0,0,0,0,0,0,"Lieutenant Gravelhammer - On Script - Say Line 5 (Captain Auric Sunchaser)"),
(1871301,9,6,0,0,0,100,0,6000,6000,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0,"Lieutenant Gravelhammer - On Script - Say Line 3"),
(1871301,9,7,0,0,0,100,0,8000,8000,0,0,1,6,0,0,0,0,0,19,18745,0,0,0,0,0,0,"Lieutenant Gravelhammer - On Script - Say Line 6 (Captain Auric Sunchaser)"),
(1871301,9,8,0,0,0,100,0,8000,8000,0,0,1,4,0,0,0,0,0,1,0,0,0,0,0,0,0,"Lieutenant Gravelhammer - On Script - Say Line 4"),
(1871301,9,9,0,0,0,100,0,3000,3000,0,0,45,2,2,0,0,0,0,19,18745,0,0,0,0,0,0,"Lieutenant Gravelhammer - On Script - Set Data to Captain Auric Sunchaser");
DELETE FROM `creature_text` WHERE `CreatureID` IN (18713,18745);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(18713,0,0,"Rifling through the stacks of books and scrolls on the table, Lieutenant Gravelhammer begins to examine one in particular with interest.",16,0,100,0,0,0,15827,0,"Lieutenant Gravelhammer"),
(18713,1,0,"What? What's this?!",12,7,100,5,0,0,15829,0,"Lieutenant Gravelhammer"),
(18713,1,1,"That is not even remotely imaginable!",12,7,100,5,0,0,15830,0,"Lieutenant Gravelhammer"),
(18713,1,2,"Looks like I picked a bad day to stop drinking.",12,7,100,5,0,0,15831,0,"Lieutenant Gravelhammer"),
(18713,1,3,"How did this get missed?!",12,7,100,5,0,0,15832,0,"Lieutenant Gravelhammer"),
(18713,2,0,"Cap'n, sir, we have a slight problem.",12,7,100,1,0,0,15833,0,"Lieutenant Gravelhammer"),
(18713,3,0,"As you say, sir. It would appear that someone failed to mention to me that the druids at the Cenarion Thicket have been wiped out!",12,7,100,1,0,0,15838,0,"Lieutenant Gravelhammer"),
(18713,3,1,"Bad news. We've been hit again. They're gone, but the front sentry tower is on fire.",12,7,100,1,0,0,15839,0,"Lieutenant Gravelhammer"),
(18713,3,2,"One of our merchants has gone missing!",12,7,100,1,0,0,15840,0,"Lieutenant Gravelhammer"),
(18713,3,3,"That group that recently arrived from Honor Hold -- they're mercs! They're starting to stir up trouble. Maybe I should have a talk with them?",12,7,100,1,0,0,15842,0,"Lieutenant Gravelhammer"),
(18713,3,4,"One of our scouts is reporting that a shadowy group has moved into the ruins of Grangol'var Village. Oops, this report is over a week old.",12,7,100,1,0,0,15843,0,"Lieutenant Gravelhammer"),
(18713,3,5,"We have reports from a scout in the field that one of the Cenarion druids has been taken captive up at Firewing Point.",12,7,100,1,0,0,15844,0,"Lieutenant Gravelhammer"),
(18713,4,0,"Aye, aye, sir. Right away!",12,7,100,66,0,0,15853,0,"Lieutenant Gravelhammer"),
(18745,5,0,"At ease, lieutenant. Go on.",12,7,100,66,0,0,15834,0,"Captain Auric Sunchaser"),
(18745,5,1,"What is it now, Gravel?",12,7,100,6,0,0,15835,0,"Captain Auric Sunchaser"),
(18745,5,2,"What else could possibly go wrong?",12,7,100,6,0,0,15836,0,"Captain Auric Sunchaser"),
(18745,5,3,"Yes, lieutenant? Report.",12,7,100,1,0,0,15837,0,"Captain Auric Sunchaser"),
(18745,6,0,"That's troubling news indeed. See to it that it's taken care of immediately!",12,7,100,1,0,0,15849,0,"Captain Auric Sunchaser"),
(18745,6,1,"I don't have time for this, lieutenant. Make sure that you handle it.",12,7,100,1,0,0,15850,0,"Captain Auric Sunchaser"),
(18745,6,2,"If we're to help with that in any way we'll need more people. Call some of the scouts in to help with that.",12,7,100,1,0,0,15851,0,"Captain Auric Sunchaser"),
(18745,6,3,"Lieutenant, I want you to make that your top priority. Notify anyone that you think can help.",12,7,100,1,0,0,15852,0,"Captain Auric Sunchaser");
-- WP
DELETE FROM `waypoints` WHERE `entry`=18713;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(18713,1,-3012.45019,3983.69726,3.10552,""),
(18713,2,-3011.6,3991.66,3.43526,""),
(18713,3,-3011.15,3993.25,4.07544,""),
(18713,4,-3010.1184,3994.7478,4.46475,""),
(18713,5,-3010.28,3994.08,4.46465,""),
(18713,6,-3012.069,3984.185,3.10552,""),
(18713,7,-3007.9,3978.22,3.10527,"");
@@ -0,0 +1,41 @@
--
DELETE FROM `creature` WHERE `guid` IN (73432,73433,84486,84487,84489,84490,84503,84505);
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseId`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `VerifiedBuild`) VALUES
(73432, 33710, 530, 0, 0, '', 0, 0, 0, 8548.1, -7754.100, 118.607, 1.40439, 300, 8, 0, 156, 0, 1, 0, 0, 0, 0),
(73433, 33710, 530, 0, 0, '', 0, 0, 0, 8594.34, -7815.63, 140.119, 1.56563, 300, 8, 0, 156, 0, 1, 0, 0, 0, 0),
(84486, 33710, 530, 0, 0, '', 0, 0, 0, 8586.59, -7770.78, 136.252, 2.92054, 300, 8, 0, 156, 0, 1, 0, 0, 0, 0),
(84487, 33710, 530, 0, 0, '', 0, 0, 0, 8523.49, -7711.34, 145.702, 3.74723, 300, 8, 0, 156, 0, 1, 0, 0, 0, 0),
(84489, 33710, 530, 0, 0, '', 0, 0, 0, 8593.53, -7706.91, 138.27, 0.817381, 300, 8, 0, 156, 0, 1, 0, 0, 0, 0),
(84490, 33711, 530, 0, 0, '', 0, 0, 0, 6978.07, -7336.59, 40.9312, 5.48650, 600, 0, 0, 273, 0, 2, 0, 0, 0, 0),
(84503, 33711, 530, 0, 0, '', 0, 0, 0, 7623.59, -7638.87, 128.367, 5.14092, 600, 0, 0, 273, 0, 2, 0, 0, 0, 0),
(84505, 33711, 530, 0, 0, '', 0, 0, 0, 7989.65, -7596.35, 126.338, 4.20237, 600, 0, 0, 273, 0, 2, 0, 0, 0, 0);
UPDATE `creature_template` SET `unit_flags`=32768 WHERE `entry` IN (33710,33711);
DELETE FROM `creature_addon` WHERE `guid` IN (84490,84503,84505);
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`) VALUES
(84490, 844900, 0, 0, 1), (84503, 845030, 0, 0, 1), (84505, 845050, 0, 0, 1);
DELETE FROM `waypoint_data` WHERE `id` IN (844900,845030,845050);
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`) VALUES
(844900, 1, 6982.59, -7340.89, 38.8286, 5.6781),
(844900, 2, 6998.68, -7352.41, 36.3988, 5.6977),
(844900, 3, 7021.79, -7361.33, 35.6609, 6.0943),
(844900, 4, 7049.16, -7357.21, 31.9638, 0.1088),
(844900, 5, 7078.58, -7364.78, 37.4213, 5.5438),
(844900, 6, 7059.98, -7377.15, 35.6663, 3.5057),
(844900, 7, 7032.39, -7366.72, 35.1236, 3.0109),
(844900, 8, 7008.51, -7368.13, 37.2217, 3.5929),
(844900, 9, 6987.21, -7359.86, 37.6881, 2.5231),
(845030, 1, 7624.13, -7648.26, 128.025, 4.7058),
(845030, 2, 7630.63, -7666.89, 129.355, 5.2854),
(845030, 3, 7646.15, -7674.99, 127.317, 5.7873),
(845030, 4, 7655.93, -7670.98, 126.257, 1.0003),
(845030, 5, 7642.45, -7651.94, 126.725, 2.0197),
(845050, 1, 7987.38, -7604.32, 123.664, 4.3209),
(845050, 2, 7975.17, -7633.94, 119.96, 4.3641),
(845050, 3, 7959.57, -7657.42, 121.599, 3.9589),
(845050, 4, 7929.47, -7653.83, 117.318, 3.0690),
(845050, 5, 7908.85, -7632.77, 120.138, 2.3849),
(845050, 6, 7926.49, -7617.92, 119.668, 0.1795),
(845050, 7, 7950.33, -7612.84, 118.945, 0.4552),
(845050, 8, 7974.45, -7595.02, 122.506, 0.9288);
@@ -0,0 +1,17 @@
-- Freed Sha'tar Warrior
UPDATE `creature_template` SET `unit_flags`=`unit_flags`|768, `AIName`="SmartAI" WHERE `entry`=22459;
DELETE FROM `smart_scripts` WHERE `entryorguid`=22459 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (2245900) 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
(22459,0,0,0,54,0,100,0,0,0,0,0,80,2245900,0,0,0,0,0,1,0,0,0,0,0,0,0,"Freed Sha'tar Warrior - On Just sumoned - Run Script"),
(2245900,9,0,0,0,0,100,0,2000,2000,0,0,66,0,0,0,0,0,0,21,50,0,0,0,0,0,0,"Freed Sha'tar Warrior - On Script - Set Orientation"),
(2245900,9,1,0,0,0,100,0,1000,1000,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,"Freed Sha'tar Warrior - On Script - Say One Line from group 1"),
(2245900,9,2,0,0,0,100,0,5000,5000,0,0,69,1,0,0,0,0,0,8,0,0,0,-3801.0559,4318.7333,5.0761,0,"Freed Sha'tar Warrior - On Script - Move To Position"),
(22459,0,1,0,34,0,100,0,0,1,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Freed Sha'tar Warrior - On movement informer - despawn");
DELETE FROM `creature_text` WHERE `CreatureID`=22459;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(22459,1,0,"Praise the naaru, I'm saved. I will try to make it clear on my own.",12,7,100,5,0,0,20143,0,"Freed Sha'tar Warrior"),
(22459,1,1,"I'm hurt, but I can still run. Thank you, stranger.",12,7,100,5,0,0,20144,0,"Freed Sha'tar Warrior"),
(22459,1,2,"My thanks, stranger.",12,7,100,5,0,0,20145,0,"Freed Sha'tar Warrior"),
(22459,1,3,"I'm too weak to fight with you. Please find my friends.",12,7,100,5,0,0,20146,0,"Freed Sha'tar Warrior");
@@ -0,0 +1,12 @@
-- Sand Gnome
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=22483;
DELETE FROM `smart_scripts` WHERE `entryorguid`=22483 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
(22483,0,0,0,54,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Sand Gnome - On Just summoned - Say One Line from group 0");
DELETE FROM `creature_text` WHERE `CreatureID`=22483;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(22483,0,0,"AAAAEEEEEEIIIIIIII!!!!",12,7,100,5,0,0,20308,0,"Sand Gnome"),
(22483,0,1,"AHHHH-YAAA-YAAA-YAAA!!!",12,7,100,5,0,0,20309,0,"Sand Gnome"),
(22483,0,2,"AWOOOOGAAAA!",12,7,100,5,0,0,20310,0,"Sand Gnome"),
(22483,0,3,"AYYAYAAYAA!",12,7,100,5,0,0,20311,0,"Sand Gnome");
@@ -0,0 +1,19 @@
-- Cursed Ooze SAI
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=7086;
DELETE FROM `smart_scripts` WHERE `entryorguid`=7086 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
(7086, 0, 0, 0, 8, 0, 100, 1, 15698, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Cursed Ooze - On Spell Hit (Filling Empty Jar) - Despawn');
-- Tainted Ooze SAI
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=7092;
DELETE FROM `smart_scripts` WHERE `entryorguid`=7092 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
(7092, 0, 0, 0, 8, 0, 100, 1, 15699, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tainted Ooze - On Spell Hit (Filling Empty Jar) - Despawn'),
(7092, 0, 1, 0, 9, 0, 100, 0, 0, 5, 180000, 180000,11,3335,0,0,0,0,0,2,0,0,0,0,0,0,0,"Tainted Ooze - Within 0-5 Range - Cast 'Dark Sludge'");
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=17 AND `SourceEntry` IN (15698,15699);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(17, 0, 15698, 0, 0, 31, 1, 3, 7086, 0, 0, 0, 0, '', "'Filling Empty Jar' must target Cursed Ooze"),
(17, 0, 15698, 0, 0, 36, 1, 0, 0, 0, 1, 0, 0, '', "'Filling Empty Jar' - Target must be dead"),
(17, 0, 15699, 0, 0, 31, 1, 3, 7092, 0, 0, 0, 0, '', "'Filling Empty Jar' must target Tainted Ooze"),
(17, 0, 15699, 0, 0, 36, 1, 0, 0, 0, 1, 0, 0, '', "'Filling Empty Jar' - Target must be dead");
@@ -0,0 +1,12 @@
-- Apothecary Renferrel
DELETE FROM `creature_text` WHERE `CreatureID`=1937;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(1937,0,0,"%s concocts a potion for $n.",16,0,100,0,0,0,885,0,"Apothecary Renferrel");
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=1937;
DELETE FROM `smart_scripts` WHERE `entryorguid`=1937 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=193700 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
(1937,0,0,0,19,0,100,0,430,0,0,0,80,193700,0,0,0,0,0,1,0,0,0,0,0,0,0,"Apothecary Renferrel - On Quest 'Return to Quinn' Taken - Run Script"),
(193700,9,0,0,0,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Apothecary Renferrel - On Script - Say Line 0"),
(193700,9,1,0,0,0,100,0,0,0,0,0,11,4508,0,0,0,0,0,1,0,0,0,0,0,0,0,"Apothecary Renferrel - On Script - Cast 'Discolored Healing Potion'");