ported double tracking from TC

This commit is contained in:
mikx
2020-10-30 23:45:46 -04:00
commit 44b1f31c23
4914 changed files with 4961129 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
Please read [this](http://www.azerothcore.org/wiki/Dealing-with-SQL-files) before adding new SQL-update files.

View File

View File

@@ -0,0 +1,26 @@
-- DB update 2019_02_08_00 -> 2019_02_17_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_auth' AND COLUMN_NAME = '2019_02_08_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_auth CHANGE COLUMN 2019_02_08_00 2019_02_17_00 bit;
SELECT sql_rev INTO OK FROM version_db_auth WHERE sql_rev = 'xxx'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
-- Placeholder
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2019_02_17_00 -> 2019_04_13_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_auth' AND COLUMN_NAME = '2019_02_17_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_auth CHANGE COLUMN 2019_02_17_00 2019_04_13_00 bit;
SELECT sql_rev INTO OK FROM version_db_auth WHERE sql_rev = '1554142988374631100'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_auth` (`sql_rev`) VALUES ('1554142988374631100');
ALTER TABLE `account` CHANGE COLUMN `online` `online` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `last_login`;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,77 @@
-- DB update 2019_04_13_00 -> 2020_02_07_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_auth' AND COLUMN_NAME = '2019_04_13_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_auth CHANGE COLUMN 2019_04_13_00 2020_02_07_00 bit;
SELECT sql_rev INTO OK FROM version_db_auth WHERE sql_rev = '1579213352894781043'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_auth` (`sql_rev`) VALUES ('1579213352894781043');
-- ADD NEW COLUMN
ALTER TABLE `account_access` ADD COLUMN `comment` VARCHAR(255) DEFAULT '';
-- UPDATE ACCOUNTS
/*!40000 ALTER TABLE `account_access` DISABLE KEYS */;
/*!40000 ALTER TABLE `account` DISABLE KEYS */;
-- UPDATE ACCOUNTS test1 test2
UPDATE `account`
INNER JOIN `account_access`
ON `account`.`id` = `account_access`.`id`
SET `account_access`.`comment` = 'Test account - Console Admin'
WHERE (`account`.`username` = 'test1' AND `account`.`sha_pass_hash` = '047ce22643f9b0bd6baeb18d51bf1075a4d43fc6') OR
(`account`.`username` = 'test2' AND `account`.`sha_pass_hash` = '10eb1ff16cf5380147e8281cd8080a210ecb3c53');
-- UPDATE ACCOUNTS test3 test4
UPDATE `account`
INNER JOIN `account_access`
ON `account`.`id` = `account_access`.`id`
SET `account_access`.`gmlevel` = 3, `account_access`.`comment` = 'Test account - Ingame Admin'
WHERE (`account`.`username` = 'test3' AND `account`.`sha_pass_hash` = 'e546bbf9ca93ae5291f0b441bb9ea2fa0c466176') OR
(`account`.`username` = 'test4' AND `account`.`sha_pass_hash` = '61015d83b456a9c6a7defdff07f55265f24097af');
-- UPDATE ACCOUNTS test5 test6
UPDATE `account`
INNER JOIN `account_access`
ON `account`.`id` = `account_access`.`id`
SET `account_access`.`gmlevel` = 2, `account_access`.`comment` = 'Test account - Major Game Master'
WHERE (`account`.`username` = 'test5' AND `account`.`sha_pass_hash` = 'dddeac4ffe5f286ec57b7a1ed63bf3a859debe1e') OR
(`account`.`username` = 'test6' AND `account`.`sha_pass_hash` = 'f1f94cdffd83c8c4182d66689077f92c807ab579');
-- UPDATE ACCOUNTS test7 test8
UPDATE `account`
INNER JOIN `account_access`
ON `account`.`id` = `account_access`.`id`
SET `account_access`.`gmlevel` = 1, `account_access`.`comment` = 'Test account - Minor Game Master'
WHERE (`account`.`username` = 'test7' AND `account`.`sha_pass_hash` = '6fcd35c35b127be1d9ca040b2b478eb366506ce2') OR
(`account`.`username` = 'test8' AND `account`.`sha_pass_hash` = '484332ccb02e284e4e0a04573c3fa417f4745fdf');
-- UPDATE ACCOUNTS test9 test10
UPDATE `account`
INNER JOIN `account_access`
ON `account`.`id` = `account_access`.`id`
SET `account_access`.`gmlevel` = 0, `account_access`.`comment` = 'Test account - Player'
WHERE (`account`.`username` = 'test9' AND `account`.`sha_pass_hash` = '4fce15ed251721f02754d5381ae9d0137b6a6a30') OR
(`account`.`username` = 'test10' AND `account`.`sha_pass_hash` = 'b22d249228e84ab493b39a2bd765bee9b7c0b350');
/*!40000 ALTER TABLE `account_access` ENABLE KEYS */;
/*!40000 ALTER TABLE `account` ENABLE KEYS */;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

View File

@@ -0,0 +1,26 @@
-- DB update 2019_01_06_00 -> 2019_02_17_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_characters' AND COLUMN_NAME = '2019_01_06_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_characters CHANGE COLUMN 2019_01_06_00 2019_02_17_00 bit;
SELECT sql_rev INTO OK FROM version_db_characters WHERE sql_rev = 'xxx'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
-- Placeholder
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,29 @@
-- DB update 2019_02_17_00 -> 2019_05_12_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_characters' AND COLUMN_NAME = '2019_02_17_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_characters CHANGE COLUMN 2019_02_17_00 2019_05_12_00 bit;
SELECT sql_rev INTO OK FROM version_db_characters WHERE sql_rev = '1557608218190967100'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_characters` (`sql_rev`) VALUES ('1557608218190967100');
ALTER TABLE `characters`
ADD COLUMN `creation_date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `grantableLevels`;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,31 @@
-- DB update 2019_05_12_00 -> 2019_05_15_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_characters' AND COLUMN_NAME = '2019_05_12_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_characters CHANGE COLUMN 2019_05_12_00 2019_05_15_00 bit;
SELECT sql_rev INTO OK FROM version_db_characters WHERE sql_rev = '1557226918417685700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_characters` (`sql_rev`) VALUES ('1557226918417685700');
ALTER TABLE `character_arena_stats`
MODIFY `guid` int(10) unsigned NOT NULL DEFAULT '0',
MODIFY `slot` tinyint(3) unsigned NOT NULL DEFAULT '0',
MODIFY `matchMakerRating` smallint(5) unsigned NOT NULL DEFAULT '0';
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,33 @@
-- DB update 2019_05_15_00 -> 2019_11_22_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_characters' AND COLUMN_NAME = '2019_05_15_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_characters CHANGE COLUMN 2019_05_15_00 2019_11_22_00 bit;
SELECT sql_rev INTO OK FROM version_db_characters WHERE sql_rev = '1572030074009407852'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_characters` (`sql_rev`) VALUES ('1572030074009407852');
UPDATE `worldstates` SET `comment`='NextArenaPointDistributionTime' WHERE `entry`=20001;
UPDATE `worldstates` SET `comment`='NextWeeklyQuestResetTime' WHERE `entry`=20002;
UPDATE `worldstates` SET `comment`='NextBGRandomDailyResetTime' WHERE `entry`=20003;
UPDATE `worldstates` SET `comment`='cleaning_flags' WHERE `entry`=20005;
UPDATE `worldstates` SET `comment`='NextGuildDailyResetTime' WHERE `entry`=20006;
UPDATE `worldstates` SET `comment`='NextMonthlyQuestResetTime' WHERE `entry`=20007;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,35 @@
-- DB update 2019_11_22_00 -> 2019_12_09_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_characters' AND COLUMN_NAME = '2019_11_22_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_characters CHANGE COLUMN 2019_11_22_00 2019_12_09_00 bit;
SELECT sql_rev INTO OK FROM version_db_characters WHERE sql_rev = '1575656087867346414'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_characters` (`sql_rev`) VALUES ('1575656087867346414');
CREATE TABLE IF NOT EXISTS `recovery_item` (
`Id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`Guid` int(11) unsigned NOT NULL DEFAULT 0,
`ItemEntry` mediumint(8) unsigned NOT NULL DEFAULT 0,
`Count` int(11) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`Id`),
KEY `idx_guid` (`Guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,30 @@
-- DB update 2019_12_09_00 -> 2020_01_04_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_characters' AND COLUMN_NAME = '2019_12_09_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_characters CHANGE COLUMN 2019_12_09_00 2020_01_04_00 bit;
SELECT sql_rev INTO OK FROM version_db_characters WHERE sql_rev = '1572815191193825836'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_characters` (`sql_rev`) VALUES ('1572815191193825836');
UPDATE `worldstates` SET `comment`='NextDailyQuestResetTime' WHERE `entry`=20005;
DELETE FROM `worldstates` WHERE `entry`=20004;
INSERT INTO `worldstates` (`entry`, `value`, `comment`) VALUES(20004, 0, 'cleaning_flags');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

View File

@@ -0,0 +1,26 @@
-- DB update 2019_02_17_00 -> 2019_02_17_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_02_17_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_02_17_00 2019_02_17_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = 'xxx'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
-- Placeholder
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,39 @@
-- DB update 2019_02_17_01 -> 2019_02_17_02
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_02_17_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_02_17_01 2019_02_17_02 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1550318643525669100'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO version_db_world (`sql_rev`) VALUES ('1550318643525669100');
-- Scattered Crate drop Lost Supplies should have 100 drop chance
UPDATE `gameobject_loot_template` SET `Chance`='100' WHERE `Entry`=3597 AND `Item`=6172;
-- Creature "Flanis Swiftwing" should be dead.
UPDATE `creature_template_addon` SET `emote`=65 WHERE `entry`=21727;
UPDATE `creature_template` SET `flags_extra`=2 WHERE `entry`=21727;
UPDATE `creature_template` SET `unit_flags`=536904450 WHERE `entry`=21727;
UPDATE `creature_template` SET `dynamicflags`=32 WHERE `entry`=21727;
-- Duplicate creature Commander Jordan
DELETE FROM `creature` WHERE `guid`=105029;
DELETE FROM `creature_addon` WHERE `guid`=105029;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2019_02_17_02 -> 2019_02_21_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_02_17_02';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_02_17_02 2019_02_21_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1550522508793114100'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1550522508793114100');
UPDATE `creature_queststarter` SET `id` = '4217' WHERE `quest` = '3803';
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2019_02_21_00 -> 2019_02_23_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_02_21_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_02_21_00 2019_02_23_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1550523799764580600'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1550523799764580600');
UPDATE `item_template` SET `ammo_type` = '2', `RangedModRange` = '100' WHERE `entry` = '42489';
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,39 @@
-- DB update 2019_02_23_00 -> 2019_02_24_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_02_23_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_02_23_00 2019_02_24_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1549320792563626100'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1549320792563626100');
DELETE FROM `command` WHERE `name`='taxicheat';
DELETE FROM `command` WHERE `name`='waterwalk';
DELETE FROM `command` WHERE `name`='cheat' OR `name` LIKE 'cheat%';
INSERT INTO `command` (`name`, `security`, `help`) VALUES
('cheat', 2, 'Syntax: .cheat $subcommand\r\nType .cheat to see the list of possible subcommands or .help cheat $subcommand to see info on subcommands'),
('cheat god', 2, 'Syntax: .cheat god [on/off]\r\nTurn the user invulnerable.'),
('cheat casttime', 2, 'Syntax: .cheat casttime [on/off]\r\nRemove spells\' casting time.'),
('cheat cooldown', 2, 'Syntax: .cheat cooldown [on/off]\r\nDisable spells\' cooldowns.'),
('cheat power', 2, 'Syntax: .cheat power [on/off]\r\nRemove spells\' cost (mana, energy, rage...).'),
('cheat waterwalk', 2, 'Syntax: .cheat waterwalk on/off\r\nAllow to walk on water (self or selected character).'),
('cheat taxi', 2, 'Syntax: .cheat taxi on/off\r\nTemporary grant access to all taxi routes for the selected character.\r\n If no character is selected, hide or reveal all routes to you. Visited taxi nodes are still accessible after removing access.');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,38 @@
-- DB update 2019_02_24_00 -> 2019_02_25_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_02_24_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_02_24_00 2019_02_25_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1550874957572075786'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1550874957572075786');
UPDATE `creature_text`
SET `BroadcastTextID` = 37093, `Sound` = 16747, `Text` = 'Intruders have entered the master''s domain. Signal the alarms!', `comment` = 'tyrannus SAY_TYRANNUS_INTRO_1'
WHERE `CreatureID` = 36794 AND `groupid` = 1;
UPDATE `creature_text`
SET `BroadcastTextID` = 37392, `Sound` = 17045, `Text` = 'Soldiers of the Horde, attack!', `comment` = 'sylvanas SAY_SYLVANAS_INTRO_1'
WHERE `CreatureID` = 36990 AND `groupid` = 3;
UPDATE `creature_text`
SET `BroadcastTextID` = 37087, `Sound` = 16626, `Text` = 'Heroes of the Alliance, attack!', `comment` = 'jaina SAY_JAINA_INTRO_1'
WHERE `CreatureID` = 36993 AND `groupid` = 2;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,28 @@
-- DB update 2019_02_27_00 -> 2019_02_28_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_02_27_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_02_27_00 2019_02_28_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1551043636375824487'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1551043636375824487');
UPDATE creature SET `phaseMask` = 4 WHERE `guid` = 1973070;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,29 @@
-- DB update 2019_02_28_00 -> 2019_03_03_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_02_28_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_02_28_00 2019_03_03_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1550445883342398700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1550445883342398700');
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (33701,3370100);
UPDATE `creature_template` SET `AIName` = '' WHERE `entry` = 33701;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,33 @@
-- DB update 2019_03_03_00 -> 2019_03_07_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_03_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_03_00 2019_03_07_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1551539925032805900'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1551539925032805900');
DELETE FROM `trinity_string` WHERE `entry` = 1031;
INSERT INTO `trinity_string` (`entry`, `content_default`) VALUES
(1031, 'An account password can NOT be longer than 16 characters (client limit). Account NOT created.');
UPDATE `trinity_string` SET `content_default` = 'Account name can\'t be longer than 20 characters (client limit), account not created!' WHERE (`entry` = '1005');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,46 @@
-- DB update 2019_03_07_00 -> 2019_03_14_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_07_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_07_00 2019_03_14_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1552517697995597395'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1552517697995597395');
DELETE FROM `creature_text` WHERE `CreatureID` = 28948;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`)
VALUES
(28948,0,0,'Ahh... there you are. The master told us you''d be arriving soon.',12,0,100,1,0,0,29127,0,'Malmortis text'),
(28948,1,0,'Please, follow me, $N. There is much for you to see...',12,0,100,1,0,0,29128,0,'Malmortis text'),
(28948,2,0,'You should feel honored. You are the first of the master''s prospects to be shown our operation.',12,0,100,1,0,0,29171,0,'Malmortis text'),
(28948,2,1,'Ever since his arrival from Drak''Tharon, the master has spoken of the time you would be joining him here.',12,0,100,1,0,0,29172,0,'Malmortis text'),
(28948,3,0,'The things I show you now must never be spoken of outside Voltarus. The world shall come to know our secret soon enough!',12,0,100,1,0,0,29173,0,'Malmortis text'),
(28948,4,0,'Here lie our stores of blight crystal, without which our project would be impossible.',12,0,100,1,0,0,29174,0,'Malmortis text'),
(28948,5,0,'I understand that you are to thank for the bulk of our supply.',12,0,100,1,0,0,29175,0,'Malmortis text'),
(28948,6,0,'These trolls are among those you exposed on the battlefield. Masterfully done, indeed....',12,0,100,1,0,0,29176,0,'Malmortis text'),
(28948,7,0,'We feel it best to position them here, where they might come in terms with their impending fate.',12,0,100,1,0,0,29433,0,'Malmortis text'),
(28948,8,0,'This is their destiny....',12,0,100,1,0,0,29434,0,'Malmortis text'),
(28948,9,0,'The blight slowly seeps into their bodies, gradually preparing them for their conversion.',12,0,100,1,0,0,29435,0,'Malmortis text'),
(28948,10,0,'This special preparation grants them unique powers far greater than they would otherwise know.',12,0,100,1,0,0,29436,0,'Malmortis text'),
(28948,11,0,'Soon, the master will grant them the dark gift, making them fit to server the Lich King for eternity!',12,0,100,1,0,0,29437,0,'Malmortis text'),
(28948,12,0,'Stay for as long as you like, $N. Glory in the fruits of your labor!',12,0,100,1,0,0,29438,0,'Malmortis text'),
(28948,13,0,'Your service has been invaluable in fulfilling the master''s plan. May you forever grow in power....',12,0,100,1,0,0,29439,0,'Malmortis text'),
(28948,14,0,'Farewell.',12,0,100,1,0,0,29440,0,'Malmortis text');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,38 @@
-- DB update 2019_03_14_00 -> 2019_03_14_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_14_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_14_00 2019_03_14_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1550579754213080400'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1550579754213080400');
UPDATE `creature_template` SET `speed_walk` = 1.20000004768372, `speed_run` = 1 WHERE `entry` IN (27755, 27756, 27692);
UPDATE `creature_template` SET `ScriptName` = 'npc_centrifuge_construct' WHERE `entry` = 27641;
-- Spells of the dragons
DELETE FROM `spell_script_names` WHERE spell_id IN (50241, 50325, 49460, 49464, 49346, 53797);
INSERT INTO `spell_script_names` VALUES
(50241, 'spell_oculus_evasive_charges'),
(50325, 'spell_oculus_soar'),
(49460, 'spell_oculus_rider_aura'),
(49464, 'spell_oculus_rider_aura'),
(49346, 'spell_oculus_rider_aura'),
(53797, 'spell_oculus_drake_flag');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2019_03_14_01 -> 2019_03_18_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_14_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_14_01 2019_03_18_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1552778052775198017'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1552778052775198017');
DELETE FROM `gossip_menu_option` WHERE `MenuID` IN (1969,1971);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,49 @@
-- DB update 2019_03_18_00 -> 2019_03_18_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_18_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_18_00 2019_03_18_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1552778845262248351'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1552778845262248351');
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` IN (18733,24812);
DELETE FROM `smart_scripts` WHERE `entryorguid` = 18733 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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`)
VALUES
(18733,0,0,0,11,0,100,0,0,0,0,0,0,48,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fel Reaver - On Respawn - Set Active On');
DELETE FROM `smart_scripts` WHERE `entryorguid` = 24812 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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`)
VALUES
(24812,0,0,0,11,0,100,0,0,0,0,0,0,48,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Storm Giant - On Respawn - Set Active On');
DELETE FROM `smart_scripts` WHERE `entryorguid` = 18411 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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`)
VALUES
(18411,0,2,0,11,0,100,0,0,0,0,0,0,48,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Durn the Hungerer - On Respawn - Set Active On');
UPDATE `creature_addon` SET `auras` = '44385' WHERE `guid` = 118191;
UPDATE `creature` SET `position_x` = 457.723, `position_y` = -4256.85, `position_z` = 235.1 WHERE `guid` = 118191;
DELETE FROM `waypoint_scripts` WHERE `id` IN (1160,1161,1162,1163);
UPDATE `waypoint_data` SET `delay` = 0, `action` = 0 WHERE `id` = 1181770;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,32 @@
-- DB update 2019_03_19_00 -> 2019_03_19_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_19_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_19_00 2019_03_19_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1552864578895131621'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1552864578895131621');
DELETE FROM `creature_template_addon` WHERE `entry` = 24747;
DELETE FROM `creature_addon` WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE `id` = 24747 AND `MovementType` = 0);
INSERT INTO `creature_addon` (`guid`,`bytes1`) SELECT `guid`, 1 as `bytes1` FROM `creature` WHERE `id` = 24747 AND `MovementType` = 0;
UPDATE `creature` SET `spawndist` = 5, `MovementType` = 1 WHERE `id` = 24746;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,132 @@
-- DB update 2019_03_19_01 -> 2019_03_21_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_19_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_19_01 2019_03_21_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1552232377246845400'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1552232377246845400');
DELETE FROM `skill_extra_item_template` WHERE `spellId` IN
('53831', '53832', '53834', '53835', '53843', '53844', '53845', '53852', '53853',
'53854', '53855', '53856', '53857', '53859', '53860', '53861', '53862', '53863',
'53864', '53865', '53866', '53867', '53868', '53869', '53870', '53871', '53872',
'53873', '53874', '53875', '53876', '53877', '53878', '53879', '53880', '53881',
'53882', '53883', '53884', '53885', '53886', '53887', '53888', '53889', '53890',
'53891', '53892', '53893', '53894', '53916', '53917', '53918', '53919', '53920',
'53921', '53922', '53923', '53924', '53925', '53926', '53927', '53928', '53929',
'53930', '53931', '53932', '53933', '53934', '53940', '53941', '53943', '54017');
ALTER TABLE `skill_extra_item_template` CHANGE COLUMN `newMaxOrEntry` `additionalMaxNum` TINYINT(3) NOT NULL DEFAULT '0' ;
DROP TABLE IF EXISTS `skill_perfect_item_template`;
CREATE TABLE `skill_perfect_item_template` (
`spellId` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT 'SpellId of the item creation spell',
`requiredSpecialization` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT 'Specialization spell id',
`perfectCreateChance` float NOT NULL DEFAULT '0' COMMENT 'chance to create the perfect item instead',
`perfectItemType` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT 'perfect item type to create instead',
PRIMARY KEY (`spellId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Crafting Perfection System';
START TRANSACTION;
INSERT INTO `skill_perfect_item_template` (`spellId`, `requiredSpecialization`, `perfectCreateChance`, `perfectItemType`)
VALUES
/* Bloodstone */
(53831,55534,20,41432), -- Bold
(53835,55534,20,41433), -- Bright
(53832,55534,20,41434), -- Delicate
(53844,55534,20,41435), -- Flashing
(53845,55534,20,41436), -- Fractured
(54017,55534,20,41437), -- Precise
(53834,55534,20,41438), -- Runed
(53843,55534,20,41439), -- Subtle
/* Sun Crystal */
(53852,55534,20,41444), -- Brilliant
(53857,55534,20,41445), -- Mystic
(53856,55534,20,41446), -- Quick
(53854,55534,20,41447), -- Rigid
(53853,55534,20,41448), -- Smooth
(53855,55534,20,41449), -- Thick
/* Chalcedony */
(53941,55534,20,41440), -- Lustrous
(53934,55534,20,41441), -- Solid
(53940,55534,20,41442), -- Sparkling
(53943,55534,20,41443), -- Stormy
/* Dark Jade */
(53926,55534,20,41463), -- Dazzling
(53918,55534,20,41464), -- Enduring
(53930,55534,20,41465), -- Energized
(53920,55534,20,41466), -- Forceful
(53925,55534,20,41467), -- Intricate
(53916,55534,20,41468), -- Jagged
(53928,55534,20,41469), -- Lambent
(53922,55534,20,41470), -- Misty
(53929,55534,20,41471), -- Opaque
(53931,55534,20,41472), -- Radiant
(53921,55534,20,41473), -- Seer's
(53933,55534,20,41474), -- Shattered
(53923,55534,20,41475), -- Shining
(53919,55534,20,41476), -- Steady
(53927,55534,20,41477), -- Sundered
(53932,55534,20,41478), -- Tense
(53894,55534,20,41479), -- Timeless
(53924,55534,20,41480), -- Turbid
(53917,55534,20,41481), -- Vivid
/* Huge Citrine */
(53886,55534,20,41429), -- Wicked
(53892,55534,20,41482), -- Accurate
(53874,55534,20,41483), -- Champion's
(53877,55534,20,41484), -- Deadly
(53880,55534,20,41485), -- Deft
(53884,55534,20,41486), -- Durable
(53888,55534,20,41487), -- Empowered
(53873,55534,20,41488), -- Etched
(53876,55534,20,41489), -- Fierce
(53891,55534,20,41490), -- Glimmering
(53878,55534,20,41491), -- Glinting
(53872,55534,20,41492), -- Inscribed
(53879,55534,20,41493), -- Lucent
(53881,55534,20,41494), -- Luminous
(53882,55534,20,41495), -- Potent
(53887,55534,20,41496), -- Pristine
(53885,55534,20,41497), -- Reckless
(53893,55534,20,41498), -- Resolute
(53875,55534,20,41499), -- Resplendent
(53890,55534,20,41500), -- Stalwart
(53889,55534,20,41501), -- Stark
(53883,55534,20,41502), -- Veiled
/* Shadow Crystal */
(53866,55534,20,41450), -- Balanced
(53869,55534,20,41451), -- Defender's
(53862,55534,20,41452), -- Glowing
(53871,55534,20,41453), -- Guardian's
(53867,55534,20,41454), -- Infused
(53865,55534,20,41455), -- Mysterious
(53870,55534,20,41456), -- Puissant
(53863,55534,20,41457), -- Purified
(53868,55534,20,41458), -- Regal
(53864,55534,20,41459), -- Royal
(53860,55534,20,41460), -- Shifting
(53859,55534,20,41461), -- Sovereign
(53861,55534,20,41462); -- Tenuous
COMMIT;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2019_03_21_00 -> 2019_03_22_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_21_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_21_00 2019_03_22_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553037475996903400'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553037475996903400');
UPDATE `quest_template` SET `AllowableRaces`='690' WHERE `ID`=9820;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,36 @@
-- DB update 2019_03_22_00 -> 2019_03_22_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_22_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_22_00 2019_03_22_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553131188458998104'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553131188458998104');
-- achievement_reward
ALTER TABLE `achievement_reward` CHANGE `entry` `ID` mediumint(8) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `achievement_reward` CHANGE `title_A` `TitleA` mediumint(8) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `achievement_reward` CHANGE `title_H` `TitleH` mediumint(8) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `achievement_reward` CHANGE `item` `ItemID` mediumint(8) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `achievement_reward` CHANGE `sender` `Sender` mediumint(8) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `achievement_reward` CHANGE `subject` `Subject` varchar(255) DEFAULT NULL;
ALTER TABLE `achievement_reward` CHANGE `text` `Body` text;
ALTER TABLE `achievement_reward` CHANGE `mailTemplate` `MailTemplateID` mediumint(8) unsigned DEFAULT '0';
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,54 @@
-- DB update 2019_03_22_01 -> 2019_03_22_02
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_22_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_22_01 2019_03_22_02 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553120573757251500'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553120573757251500');
-- NPC "Emerald Skytalon" entering/leaving combat and doesn't fly down to attack player (Fix)
DELETE FROM `creature` WHERE `guid` = 105757;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES(105757, 27244, 571, 0, 0, 1, 1, 24453, 0, 2801.95, 7.25871, 4.26567, 4.96257, 300, 0, 0, 9940, 0, 0, 0, 0, 0, '', 0);
-- NPC "Geirrvif" flying too high. The players cant interact with NPC (Fix)
DELETE FROM `creature` WHERE `guid`= 123494;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES(123494, 31135, 571, 0, 0, 1, 1, 27074, 0, 8216.64, 3516.06, 624.996, 3.57661, 300, 0, 0, 12600, 0, 0, 0, 0, 0, '', 0);
-- The Wastewander Rogue should be in stealth while patroling there (Fix)
SET @ENTRY := 5615;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 1, 0, 100, 1, 1000, 1000, 0, 0, 11, 8218, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 1000 and 1000 ms (and later repeats every 0 and 0 ms) - Self: Cast spell Sneak (8218) on Self"),
(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 3000, 6000, 6000, 10000, 11, 8721, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 3000 and 6000 ms (and later repeats every 6000 and 10000 ms) - Self: Cast spell Backstab (8721) on Victim");
-- NPC Sunfury Nethermancer" doesn't have/missing attack Ai (Fix)
SET @ENTRY := 20248;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 1, 0, 100, 0, 1000, 1000, 300000, 300000, 11, 36477, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 1000 and 1000 ms (and later repeats every 300000 and 300000 ms) - Self: Cast spell Summon Mana Beast (36477) on Self. Sunfury Nethermancer - Out of Combat - Disable Combat Movement"),
(@ENTRY, 0, 1, 0, 9, 0, 100, 0, 0, 30, 3400, 4800, 11, 9613, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When victim in range 0 - 30 yards (check every 3400 - 4800 ms) - Self: Cast spell Shadow Bolt (9613) on Victim. Sunfury Nethermancer - Out of Combat - Cast 'Summon Mana Beast'"),
(@ENTRY, 0, 2, 0, 0, 0, 100, 0, 0, 0, 30000, 35000, 11, 35778, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 0 and 0 ms (and later repeats every 30000 and 35000 ms) - Self: Cast spell Bloodcrystal Surge (35778) on Self. Sunfury Nethermancer - On Aggro - Cast 'Bloodcrystal Surge' (No Repeat)"),
(@ENTRY, 0, 3, 0, 2, 0, 100, 0, 0, 75, 15000, 20000, 11, 17173, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When health between 0% and 75% (check every 15000 - 20000 ms) - Self: Cast spell Drain Life (17173) on Victim. Sunfury Nethermancer - On Aggro - Cast 'Shadow Bolt' (No Repeat)"),
(@ENTRY, 0, 4, 0, 2, 0, 100, 1, 0, 15, 0, 0, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "When health between 0% and 15% (check every 0 - 0 ms) - Self: Flee for assist. Sunfury Nethermancer - On Aggro - Increment Phase By 1 (No Repeat)"),
(@ENTRY, 0, 5, 0, 1, 0, 50, 0, 10000, 20000, 15000, 30000, 11, 34397, 0, 0, 0, 0, 0, 19, 19421, 30, 0, 0, 0, 0, 0, "When out of combat and timer at the begining between 10000 and 20000 ms (and later repeats every 15000 and 30000 ms) (50% chance) - Self: Cast spell Red Beam (34397) on Closest alive creature Netherstorm Crystal Target (19421) in 30 yards. 20248 - Ooc - Cast Red Beam");
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,619 @@
-- DB update 2019_03_22_02 -> 2019_03_22_03
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_22_02';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_22_02 2019_03_22_03 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553133787666600978'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553133787666600978');
RENAME TABLE `game_graveyard_zone` TO `graveyard_zone`;
ALTER TABLE `graveyard_zone` CHANGE `id` `ID` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `graveyard_zone` CHANGE `ghost_zone` `GhostZone` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `graveyard_zone` CHANGE `faction` `Faction` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `graveyard_zone` ADD COLUMN `Comment` TEXT AFTER `Faction`;
DELETE FROM command WHERE name = 'reload game_graveyard_zone';
INSERT INTO command(name, security, help) VALUES ('reload graveyard_zone', 3, 'Syntax: .reload graveyard_zone');
UPDATE `graveyard_zone` SET `Comment`='Redridge Mountains - Redridge Mountains' WHERE `ID`=2;
UPDATE `graveyard_zone` SET `Comment`='Duskwood, Darkshire - Duskwood' WHERE `ID`=3;
UPDATE `graveyard_zone` SET `Comment`='Westfall, Sentinel Hill GY - Westfall' WHERE `ID`=4;
UPDATE `graveyard_zone` SET `Comment`='Loch Modan, Thelsamar - Loch Modan' WHERE `ID`=6;
UPDATE `graveyard_zone` SET `Comment`='Wetlands, Crossroads GY' WHERE `ID`=7;
UPDATE `graveyard_zone` SET `Comment`='Badlands, Graveyard NE' WHERE `ID`=8;
UPDATE `graveyard_zone` SET `Comment`='The Barrens, The Crossroads - Northern Barrens' WHERE `ID`=10;
UPDATE `graveyard_zone` SET `Comment`='Desolace, Ethel Rethor GY' WHERE `ID`=31;
UPDATE `graveyard_zone` SET `Comment`='Durotar, Razor Hill GY' WHERE `ID`=32;
UPDATE `graveyard_zone` SET `Comment`='Mulgore, Red Cloud Mesa GY - Mulgore' WHERE `ID`=34;
UPDATE `graveyard_zone` SET `Comment`='Darkshore, New Auberdine GY - Darkshore' WHERE `ID`=35;
UPDATE `graveyard_zone` SET `Comment`='Deadwind Pass, Morgan''s Plot' WHERE `ID`=36;
UPDATE `graveyard_zone` SET `Comment`='Silithus, Valor''s Rest - Silithus' WHERE `ID`=70;
UPDATE `graveyard_zone` SET `Comment`='Mulgore, Bloodhoof Village GY - Mulgore' WHERE `ID`=89;
UPDATE `graveyard_zone` SET `Comment`='Teldrassil, Darnassus GY' WHERE `ID`=90;
UPDATE `graveyard_zone` SET `Comment`='Teldrassil, Dolanaar GY - Teldrassil' WHERE `ID`=91;
UPDATE `graveyard_zone` SET `Comment`='Ashenvale, Astranaar GY - Ashenvale' WHERE `ID`=92;
UPDATE `graveyard_zone` SET `Comment`='Teldrassil, Aldrassil GY - Teldrassil' WHERE `ID`=93;
UPDATE `graveyard_zone` SET `Comment`='Tirisfal Glades, Deathknell - Tirisfal Glades' WHERE `ID`=94;
UPDATE `graveyard_zone` SET `Comment`='Tirisfal Glades, Undercity' WHERE `ID`=96;
UPDATE `graveyard_zone` SET `Comment`='Silverpine Forest, The Sepulcher - Silverpine Forest' WHERE `ID`=97;
UPDATE `graveyard_zone` SET `Comment`='Hillsbrad Foothills, Tarren Mill - Hillsbrad Foothills' WHERE `ID`=98;
UPDATE `graveyard_zone` SET `Comment`='Arathi Highlands, Eastern Road - Arathi Highlands' WHERE `ID`=99;
UPDATE `graveyard_zone` SET `Comment`='Dun Morogh, Anvilmar - Dun Morogh' WHERE `ID`=100;
UPDATE `graveyard_zone` SET `Comment`='Dun Morogh, Kharanos' WHERE `ID`=101;
UPDATE `graveyard_zone` SET `Comment`='Badlands, Kargath - Badlands' WHERE `ID`=103;
UPDATE `graveyard_zone` SET `Comment`='Redridge Mountains, Lakeshire' WHERE `ID`=104;
UPDATE `graveyard_zone` SET `Comment`='Elwynn Forest, Northshire - Elwynn Forest' WHERE `ID`=105;
UPDATE `graveyard_zone` SET `Comment`='Elwynn Forest, Goldshire - Elwynn Forest' WHERE `ID`=106;
UPDATE `graveyard_zone` SET `Comment`='Elwynn Forest, Stormwind' WHERE `ID`=107;
UPDATE `graveyard_zone` SET `Comment`='Swamp of Sorrows, Stonard GY' WHERE `ID`=108;
UPDATE `graveyard_zone` SET `Comment`='Stranglethorn Vale, Booty Bay GY - Stranglethorn Vale' WHERE `ID`=109;
UPDATE `graveyard_zone` SET `Comment`='Teldrassil, Rut''theran Village GY - Teldrassil' WHERE `ID`=129;
UPDATE `graveyard_zone` SET `Comment`='Hillsbrad Foothills, Southshore' WHERE `ID`=149;
UPDATE `graveyard_zone` SET `Comment`='Alterac Valley, Snowfall Graveyard (Mid) - Alterac Valley' WHERE `ID`=169;
UPDATE `graveyard_zone` SET `Comment`='Dustwallow Marsh, Theramore Isle GY - Dustwallow Marsh' WHERE `ID`=189;
UPDATE `graveyard_zone` SET `Comment`='Tanaris, Gadgetzan GY' WHERE `ID`=209;
UPDATE `graveyard_zone` SET `Comment`='The Barrens, Camp Taurajo GY - Southern Barrens' WHERE `ID`=229;
UPDATE `graveyard_zone` SET `Comment`='The Barrens, Ratchet' WHERE `ID`=249;
UPDATE `graveyard_zone` SET `Comment`='Tirisfal Glades, Brill - Tirisfal Glades' WHERE `ID`=289;
UPDATE `graveyard_zone` SET `Comment`='Feralas, New Feathermoon Stronghold GY (A) - Feralas' WHERE `ID`=309;
UPDATE `graveyard_zone` SET `Comment`='Feralas, Camp Mojache GY (H) - Feralas' WHERE `ID`=310;
UPDATE `graveyard_zone` SET `Comment`='Thousand Needles, Splithoof Heights GY (MOVED) - Thousand Needles' WHERE `ID`=329;
UPDATE `graveyard_zone` SET `Comment`='The Hinterlands, Aerie Peak - The Hinterlands' WHERE `ID`=349;
UPDATE `graveyard_zone` SET `Comment`='Azshara, Northern Azshara GY - Azshara' WHERE `ID`=369;
UPDATE `graveyard_zone` SET `Comment`='Blasted Lands, Dreadmaul Hold GY - Blasted Lands' WHERE `ID`=370;
UPDATE `graveyard_zone` SET `Comment`='Blasted Lands, Dreadmaul Hold GY - Swamp of Sorrows' WHERE `ID`=370;
UPDATE `graveyard_zone` SET `Comment`='Stranglethorn Vale, Northern Stranglethorn GY - Stranglethorn Vale' WHERE `ID`=389;
UPDATE `graveyard_zone` SET `Comment`='Stonetalon Mountains, Webwinder Path GY - Stonetalon Mountains' WHERE `ID`=409;
UPDATE `graveyard_zone` SET `Comment`='Felwood, Morlos''Aran - Felwood' WHERE `ID`=449;
UPDATE `graveyard_zone` SET `Comment`='Un''Goro Crater, The Marshlands - Un''Goro Crater' WHERE `ID`=450;
UPDATE `graveyard_zone` SET `Comment`='Darkshore, Twilight Vale GY' WHERE `ID`=469;
UPDATE `graveyard_zone` SET `Comment`='Wetlands, Baradin Bay GY - Wetlands' WHERE `ID`=489;
UPDATE `graveyard_zone` SET `Comment`='Western Plaguelands, Chillwind Camp - Western Plaguelands' WHERE `ID`=509;
UPDATE `graveyard_zone` SET `Comment`='Eastern Plaguelands, Pestilent Scar - Eastern Plaguelands' WHERE `ID`=510;
UPDATE `graveyard_zone` SET `Comment`='Winterspring, Everlook GY - Winterspring' WHERE `ID`=511;
UPDATE `graveyard_zone` SET `Comment`='Ashenvale, Kargathia GY' WHERE `ID`=512;
UPDATE `graveyard_zone` SET `Comment`='Programmer Isle - Programmer Isle' WHERE `ID`=529;
UPDATE `graveyard_zone` SET `Comment`='Western Plaguelands, Bulwark' WHERE `ID`=569;
UPDATE `graveyard_zone` SET `Comment`='Azshara, (Overlooks) The Shattered Strand GY - Azshara' WHERE `ID`=609;
UPDATE `graveyard_zone` SET `Comment`='Alterac Valley, Horde Safe - Alterac Valley' WHERE `ID`=610;
UPDATE `graveyard_zone` SET `Comment`='Alterac Valley, Alliance Safe - Alterac Valley' WHERE `ID`=611;
UPDATE `graveyard_zone` SET `Comment`='TEST for GM Client Only - Do Not Bug - Tirisfal Glades' WHERE `ID`=629;
UPDATE `graveyard_zone` SET `Comment`='Azshara, Bitter Reaches GY - Azshara' WHERE `ID`=630;
UPDATE `graveyard_zone` SET `Comment`='Dustwallow Marsh, Brackenwall Village GY - Dustwallow Marsh' WHERE `ID`=631;
UPDATE `graveyard_zone` SET `Comment`='Moonglade GY - Moonglade' WHERE `ID`=633;
UPDATE `graveyard_zone` SET `Comment`='Eastern Plaguelands, Darrowshire - Eastern Plaguelands' WHERE `ID`=634;
UPDATE `graveyard_zone` SET `Comment`='Felwood, Irontree Woods - Felwood' WHERE `ID`=635;
UPDATE `graveyard_zone` SET `Comment`='Searing Gorge, Thorium Point - Searing Gorge' WHERE `ID`=636;
UPDATE `graveyard_zone` SET `Comment`='Durotar, Sen''jin Village GY - Durotar' WHERE `ID`=649;
UPDATE `graveyard_zone` SET `Comment`='Programmer Isle, Bucklers Cemetery 2 - Programmer Isle' WHERE `ID`=669;
UPDATE `graveyard_zone` SET `Comment`='Programmer Isle, Bucklers Cemetery 1 - Programmer Isle' WHERE `ID`=670;
UPDATE `graveyard_zone` SET `Comment`='Programmer Isle, Bucklers Cemetery 3 - Programmer Isle' WHERE `ID`=671;
UPDATE `graveyard_zone` SET `Comment`='Alterac Valley, Stormpike Graveyard (Hi) - Alterac Valley' WHERE `ID`=689;
UPDATE `graveyard_zone` SET `Comment`='Durotar, Valley of Trials GY - Durotar' WHERE `ID`=709;
UPDATE `graveyard_zone` SET `Comment`='Alterac Valley, PvP Alliance Choke Graveyard (A-choke) - Alterac Valley' WHERE `ID`=729;
UPDATE `graveyard_zone` SET `Comment`='Alterac Valley, PvP Horde Choke Graveyard (H-choke) - Alterac Valley' WHERE `ID`=749;
UPDATE `graveyard_zone` SET `Comment`='Alterac Valley, Frostwolf Relief Hut (H-base) - Alterac Valley' WHERE `ID`=750;
UPDATE `graveyard_zone` SET `Comment`='Alterac Valley, Stormpike Aid Station (A-base) - Alterac Valley' WHERE `ID`=751;
UPDATE `graveyard_zone` SET `Comment`='Warsong Gulch - Alliance Enter Loc - Warsong Gulch' WHERE `ID`=769;
UPDATE `graveyard_zone` SET `Comment`='Warsong Gulch - Horde Enter Loc - Warsong Gulch' WHERE `ID`=770;
UPDATE `graveyard_zone` SET `Comment`='Warsong Gulch - Alliance Rez Loc - Warsong Gulch' WHERE `ID`=771;
UPDATE `graveyard_zone` SET `Comment`='Warsong Gulch - Horde Rez Loc - Warsong Gulch' WHERE `ID`=772;
UPDATE `graveyard_zone` SET `Comment`='The Hinterlands, The Overlook Cliffs - The Hinterlands' WHERE `ID`=789;
UPDATE `graveyard_zone` SET `Comment`='Warsong Gulch - Horde Exit Loc - Warsong Gulch' WHERE `ID`=809;
UPDATE `graveyard_zone` SET `Comment`='Warsong Gulch - Alliance Exit Loc - Warsong Gulch' WHERE `ID`=810;
UPDATE `graveyard_zone` SET `Comment`='Alterac Valley, Alliance Exit' WHERE `ID`=829;
UPDATE `graveyard_zone` SET `Comment`='Alterac Valley, Horde Exit - Alterac Valley' WHERE `ID`=830;
UPDATE `graveyard_zone` SET `Comment`='Feralas, Dire Maul Stonemaul Hold GY - Feralas' WHERE `ID`=849;
UPDATE `graveyard_zone` SET `Comment`='Durotar, Northern Durotar GY' WHERE `ID`=850;
UPDATE `graveyard_zone` SET `Comment`='Mulgore, Thunder Bluff GY' WHERE `ID`=851;
UPDATE `graveyard_zone` SET `Comment`='Dun Morogh, Gates of Ironforge - Dun Morogh' WHERE `ID`=852;
UPDATE `graveyard_zone` SET `Comment`='Elwynn Forest, Eastvale Logging Camp' WHERE `ID`=854;
UPDATE `graveyard_zone` SET `Comment`='Western Plaguelands, Caer Darrow - Western Plaguelands' WHERE `ID`=869;
UPDATE `graveyard_zone` SET `Comment`='Arathi Basin - Horde Entrance - Arathi Basin' WHERE `ID`=889;
UPDATE `graveyard_zone` SET `Comment`='Arathi Basin - Alliance Entrance - Arathi Basin' WHERE `ID`=890;
UPDATE `graveyard_zone` SET `Comment`='Arathi Basin - Horde Exit - Arathi Basin' WHERE `ID`=891;
UPDATE `graveyard_zone` SET `Comment`='Arathi Basin - Alliance Exit - Arathi Basin' WHERE `ID`=892;
UPDATE `graveyard_zone` SET `Comment`='Arathi Basin - Graveyard, H-Mid (Farm) - Arathi Basin' WHERE `ID`=893;
UPDATE `graveyard_zone` SET `Comment`='Arathi Basin - Graveyard, Mid (Blacksmith) - Arathi Basin' WHERE `ID`=894;
UPDATE `graveyard_zone` SET `Comment`='Arathi Basin - Graveyard, A-Mid (Stables) - Arathi Basin' WHERE `ID`=895;
UPDATE `graveyard_zone` SET `Comment`='Arathi Basin - Graveyard, ALT-N (Gold Mine) - Arathi Basin' WHERE `ID`=896;
UPDATE `graveyard_zone` SET `Comment`='Arathi Basin - Graveyard, ALT-S (Lumber Mill) - Arathi Basin' WHERE `ID`=897;
UPDATE `graveyard_zone` SET `Comment`='Arathi Basin - Graveyard, A-Base (Trollbane Hall) - Arathi Basin' WHERE `ID`=898;
UPDATE `graveyard_zone` SET `Comment`='Arathi Basin - Graveyard, H-Base (Defiler''s Den) - Arathi Basin' WHERE `ID`=899;
UPDATE `graveyard_zone` SET `Comment`='Eastern Plaguelands, Blackwood Lake - Eastern Plaguelands' WHERE `ID`=909;
UPDATE `graveyard_zone` SET `Comment`='Eastern Plaguelands, Blackwood Lake - Stratholme' WHERE `ID`=909;
UPDATE `graveyard_zone` SET `Comment`='Silithus, Cenarion Hold - Ruins of Ahn''Qiraj' WHERE `ID`=910;
UPDATE `graveyard_zone` SET `Comment`='Silithus, Cenarion Hold - Silithus' WHERE `ID`=910;
UPDATE `graveyard_zone` SET `Comment`='Duskwood, Ravenhill - Duskwood' WHERE `ID`=911;
UPDATE `graveyard_zone` SET `Comment`='Eversong Woods, Sunstrider Isle - Eversong Woods' WHERE `ID`=912;
UPDATE `graveyard_zone` SET `Comment`='Silithus, Scarab Wall (AQ Only)' WHERE `ID`=913;
UPDATE `graveyard_zone` SET `Comment`='Eversong Woods, Farstrider Lodge GY - Eversong Woods' WHERE `ID`=914;
UPDATE `graveyard_zone` SET `Comment`='Ghostlands, Tranquillien - Ghostlands' WHERE `ID`=915;
UPDATE `graveyard_zone` SET `Comment`='Ghostlands, Sanctum - Ghostlands' WHERE `ID`=916;
UPDATE `graveyard_zone` SET `Comment`='Ghostlands, Amani Pass' WHERE `ID`=917;
UPDATE `graveyard_zone` SET `Comment`='Azuremyst Isle, Ammen Vale' WHERE `ID`=918;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Thrallmar' WHERE `ID`=919;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Honor Hold' WHERE `ID`=920;
UPDATE `graveyard_zone` SET `Comment`='Eversong Woods, Silvermoon City' WHERE `ID`=921;
UPDATE `graveyard_zone` SET `Comment`='Azuremyst, Azure Watch GY - Azuremyst Isle' WHERE `ID`=923;
UPDATE `graveyard_zone` SET `Comment`='Azuremyst, Stillpine GY' WHERE `ID`=924;
UPDATE `graveyard_zone` SET `Comment`='Bloodmyst, Blood Watch GY - Bloodmyst Isle' WHERE `ID`=925;
UPDATE `graveyard_zone` SET `Comment`='Bloodmyst, Wilderness GY' WHERE `ID`=926;
UPDATE `graveyard_zone` SET `Comment`='Eastern Plaguelands, Graveyard CG Tower - Eastern Plaguelands' WHERE `ID`=927;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Zabra''jin GY' WHERE `ID`=928;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, SE Graveyard - Nagrand' WHERE `ID`=930;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Temple - Hellfire Peninsula' WHERE `ID`=933;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Falcon Watch - Hellfire Peninsula' WHERE `ID`=934;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 001 - Twisting Nether' WHERE `ID`=942;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 002 - Twisting Nether' WHERE `ID`=943;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 003 - Twisting Nether' WHERE `ID`=944;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 005 - Twisting Nether' WHERE `ID`=945;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 006 - Twisting Nether' WHERE `ID`=946;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 007 - Twisting Nether' WHERE `ID`=947;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 008 - Twisting Nether' WHERE `ID`=948;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 009 - Twisting Nether' WHERE `ID`=949;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 010 - Twisting Nether' WHERE `ID`=950;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 011 - Twisting Nether' WHERE `ID`=951;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 012 - Twisting Nether' WHERE `ID`=952;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 013 - Twisting Nether' WHERE `ID`=953;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 014 - Twisting Nether' WHERE `ID`=954;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 015 - Twisting Nether' WHERE `ID`=955;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 016 - Twisting Nether' WHERE `ID`=956;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 017 - Twisting Nether' WHERE `ID`=957;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 018 - Twisting Nether' WHERE `ID`=958;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 019 - Twisting Nether' WHERE `ID`=959;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 020 - Twisting Nether' WHERE `ID`=960;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 021 - Twisting Nether' WHERE `ID`=961;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 022 - Twisting Nether' WHERE `ID`=962;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 023 - Twisting Nether' WHERE `ID`=963;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 024 - Twisting Nether' WHERE `ID`=964;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 025 - Twisting Nether' WHERE `ID`=965;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 026 - Twisting Nether' WHERE `ID`=966;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 027 - Twisting Nether' WHERE `ID`=967;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Corpse Location 028 - Twisting Nether' WHERE `ID`=968;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, PvP GY' WHERE `ID`=969;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Telredor GY' WHERE `ID`=970;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 006 - Twisting Nether' WHERE `ID`=972;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Cenarion GY - Zangarmarsh' WHERE `ID`=973;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 001 - Twisting Nether' WHERE `ID`=974;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 002 - Twisting Nether' WHERE `ID`=975;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 003 - Twisting Nether' WHERE `ID`=976;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 004 - Twisting Nether' WHERE `ID`=977;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 008 - Twisting Nether' WHERE `ID`=978;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 005 - Twisting Nether' WHERE `ID`=979;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 007 - Twisting Nether' WHERE `ID`=980;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 009 - Twisting Nether' WHERE `ID`=981;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 011 - Twisting Nether' WHERE `ID`=982;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 010 - Twisting Nether' WHERE `ID`=983;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 012 - Twisting Nether' WHERE `ID`=984;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 013 - Twisting Nether' WHERE `ID`=985;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 014 - Twisting Nether' WHERE `ID`=986;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 016 - Twisting Nether' WHERE `ID`=987;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 015 - Twisting Nether' WHERE `ID`=988;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 017 - Twisting Nether' WHERE `ID`=989;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 018 - Twisting Nether' WHERE `ID`=990;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Corpse Location 019 - Twisting Nether' WHERE `ID`=991;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Northwind Cleft - Nagrand' WHERE `ID`=992;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Halaa GY - Nagrand' WHERE `ID`=993;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Shattrath GY' WHERE `ID`=994;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Wilderness GY - Terokkar Forest' WHERE `ID`=995;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Corpse Location 001 - Twisting Nether' WHERE `ID`=999;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Corpse Location 002 - Twisting Nether' WHERE `ID`=1000;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Corpse Location 003 - Twisting Nether' WHERE `ID`=1001;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Corpse Location 004 - Twisting Nether' WHERE `ID`=1002;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Corpse Location 005 - Twisting Nether' WHERE `ID`=1003;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Corpse Location 006 - Twisting Nether' WHERE `ID`=1004;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Corpse Location 007 - Twisting Nether' WHERE `ID`=1005;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Corpse Location 008 - Twisting Nether' WHERE `ID`=1006;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Corpse Location 009 - Twisting Nether' WHERE `ID`=1007;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Corpse Location 010 - Twisting Nether' WHERE `ID`=1008;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Corpse Location 011 - Twisting Nether' WHERE `ID`=1009;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Corpse Location 012 - Twisting Nether' WHERE `ID`=1010;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Corpse Location 013 - Twisting Nether' WHERE `ID`=1011;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Corpse Location 014 - Twisting Nether' WHERE `ID`=1012;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 001 - Twisting Nether' WHERE `ID`=1013;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 002 - Twisting Nether' WHERE `ID`=1014;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 003 - Twisting Nether' WHERE `ID`=1015;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 004 - Twisting Nether' WHERE `ID`=1016;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 005 - Twisting Nether' WHERE `ID`=1017;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 006 - Twisting Nether' WHERE `ID`=1018;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 007 - Twisting Nether' WHERE `ID`=1019;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 008 - Twisting Nether' WHERE `ID`=1020;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 009 - Twisting Nether' WHERE `ID`=1021;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 010 - Twisting Nether' WHERE `ID`=1022;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 011 - Twisting Nether' WHERE `ID`=1023;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 001 - Twisting Nether' WHERE `ID`=1024;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 002 - Twisting Nether' WHERE `ID`=1025;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 003 - Twisting Nether' WHERE `ID`=1026;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 004 - Twisting Nether' WHERE `ID`=1027;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 016 - Twisting Nether' WHERE `ID`=1028;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 017 - Twisting Nether' WHERE `ID`=1029;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 018 - Twisting Nether' WHERE `ID`=1030;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 019 - Twisting Nether' WHERE `ID`=1031;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 020 - Twisting Nether' WHERE `ID`=1032;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 021 - Twisting Nether' WHERE `ID`=1033;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 022 - Twisting Nether' WHERE `ID`=1034;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Corpse Location 023 - Twisting Nether' WHERE `ID`=1035;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Portal Plateau - Nagrand' WHERE `ID`=1037;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, Elemental Plateau - Nagrand' WHERE `ID`=1038;
UPDATE `graveyard_zone` SET `Comment`='Nagrand, SW Graveyard - Nagrand' WHERE `ID`=1039;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Throne of Kil''Jaedan - Hellfire Peninsula' WHERE `ID`=1040;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Dark Portal - Hellfire Peninsula' WHERE `ID`=1041;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Bone Wastes GY' WHERE `ID`=1042;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Harborage GY - Zangarmarsh' WHERE `ID`=1043;
UPDATE `graveyard_zone` SET `Comment`='Zangarmarsh, Sporeggar GY - Zangarmarsh' WHERE `ID`=1044;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm, Stormspire GY - Netherstorm' WHERE `ID`=1045;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm, Area 52 GY - Netherstorm' WHERE `ID`=1046;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon Valley, Shadowmoon Village GY - Shadowmoon Valley' WHERE `ID`=1047;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon Valley, Wildhammer GY - Shadowmoon Valley' WHERE `ID`=1048;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Sylvanaar GY - Blade''s Edge Mountains' WHERE `ID`=1049;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Thunderlord GY - Blade''s Edge Mountains' WHERE `ID`=1050;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Skettis GY - Terokkar Forest' WHERE `ID`=1051;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 005 - Twisting Nether' WHERE `ID`=1052;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 006 - Twisting Nether' WHERE `ID`=1053;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 007 - Twisting Nether' WHERE `ID`=1054;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 008 - Twisting Nether' WHERE `ID`=1055;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 009 - Twisting Nether' WHERE `ID`=1056;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 010 - Twisting Nether' WHERE `ID`=1057;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 011 - Twisting Nether' WHERE `ID`=1058;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 012 - Twisting Nether' WHERE `ID`=1059;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 013 - Twisting Nether' WHERE `ID`=1060;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 014 - Twisting Nether' WHERE `ID`=1061;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 015 - Twisting Nether' WHERE `ID`=1062;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 016 - Twisting Nether' WHERE `ID`=1063;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 017 - Twisting Nether' WHERE `ID`=1064;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 018 - Twisting Nether' WHERE `ID`=1065;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 019 - Twisting Nether' WHERE `ID`=1066;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 020 - Twisting Nether' WHERE `ID`=1067;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 021 - Twisting Nether' WHERE `ID`=1068;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 022 - Twisting Nether' WHERE `ID`=1069;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon, Corpse Location 023 - Twisting Nether' WHERE `ID`=1070;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 000 - Twisting Nether' WHERE `ID`=1072;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 001 - Twisting Nether' WHERE `ID`=1073;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 002 - Twisting Nether' WHERE `ID`=1074;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 003 - Twisting Nether' WHERE `ID`=1075;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 004 - Twisting Nether' WHERE `ID`=1076;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 005 - Twisting Nether' WHERE `ID`=1077;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 006 - Twisting Nether' WHERE `ID`=1078;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 007 - Twisting Nether' WHERE `ID`=1079;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 008 - Twisting Nether' WHERE `ID`=1080;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 009 - Twisting Nether' WHERE `ID`=1081;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 010 - Twisting Nether' WHERE `ID`=1082;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 011 - Twisting Nether' WHERE `ID`=1083;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 012 - Twisting Nether' WHERE `ID`=1084;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 013 - Twisting Nether' WHERE `ID`=1085;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 014 - Twisting Nether' WHERE `ID`=1086;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 015 - Twisting Nether' WHERE `ID`=1087;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 016 - Twisting Nether' WHERE `ID`=1088;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 017 - Twisting Nether' WHERE `ID`=1089;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 018 - Twisting Nether' WHERE `ID`=1090;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 019 - Twisting Nether' WHERE `ID`=1091;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 020 - Twisting Nether' WHERE `ID`=1092;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 021 - Twisting Nether' WHERE `ID`=1093;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 022 - Twisting Nether' WHERE `ID`=1094;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 023 - Twisting Nether' WHERE `ID`=1095;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 024 - Twisting Nether' WHERE `ID`=1096;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 025 - Twisting Nether' WHERE `ID`=1097;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 026 - Twisting Nether' WHERE `ID`=1098;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 027 - Twisting Nether' WHERE `ID`=1099;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 028 - Twisting Nether' WHERE `ID`=1100;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 029 - Twisting Nether' WHERE `ID`=1101;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Corpse Location 030 - Twisting Nether' WHERE `ID`=1102;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 000 - Twisting Nether' WHERE `ID`=1134;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 001 - Twisting Nether' WHERE `ID`=1135;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 002 - Twisting Nether' WHERE `ID`=1136;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 003 - Twisting Nether' WHERE `ID`=1137;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 004 - Twisting Nether' WHERE `ID`=1138;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 005 - Twisting Nether' WHERE `ID`=1139;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 006 - Twisting Nether' WHERE `ID`=1140;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 007 - Twisting Nether' WHERE `ID`=1141;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 008 - Twisting Nether' WHERE `ID`=1142;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 009 - Twisting Nether' WHERE `ID`=1143;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 010 - Twisting Nether' WHERE `ID`=1144;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 011 - Twisting Nether' WHERE `ID`=1145;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 012 - Twisting Nether' WHERE `ID`=1146;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 013 - Twisting Nether' WHERE `ID`=1147;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 014 - Twisting Nether' WHERE `ID`=1148;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 015 - Twisting Nether' WHERE `ID`=1149;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 016 - Twisting Nether' WHERE `ID`=1150;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 017 - Twisting Nether' WHERE `ID`=1151;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 018 - Twisting Nether' WHERE `ID`=1152;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 019 - Twisting Nether' WHERE `ID`=1153;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 020 - Twisting Nether' WHERE `ID`=1154;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 021 - Twisting Nether' WHERE `ID`=1155;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 022 - Twisting Nether' WHERE `ID`=1156;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 023 - Twisting Nether' WHERE `ID`=1157;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 024 - Twisting Nether' WHERE `ID`=1158;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 025 - Twisting Nether' WHERE `ID`=1159;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 026 - Twisting Nether' WHERE `ID`=1160;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 027 - Twisting Nether' WHERE `ID`=1161;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 028 - Twisting Nether' WHERE `ID`=1162;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 029 - Twisting Nether' WHERE `ID`=1163;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 030 - Twisting Nether' WHERE `ID`=1164;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 031 - Twisting Nether' WHERE `ID`=1165;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 032 - Twisting Nether' WHERE `ID`=1166;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 033 - Twisting Nether' WHERE `ID`=1167;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 034 - Twisting Nether' WHERE `ID`=1168;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 035 - Twisting Nether' WHERE `ID`=1169;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 036 - Twisting Nether' WHERE `ID`=1170;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 037 - Twisting Nether' WHERE `ID`=1171;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 038 - Twisting Nether' WHERE `ID`=1172;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 039 - Twisting Nether' WHERE `ID`=1173;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 040 - Twisting Nether' WHERE `ID`=1174;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 041 - Twisting Nether' WHERE `ID`=1175;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 042 - Twisting Nether' WHERE `ID`=1176;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 043 - Twisting Nether' WHERE `ID`=1177;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 044 - Twisting Nether' WHERE `ID`=1178;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 045 - Twisting Nether' WHERE `ID`=1179;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 046 - Twisting Nether' WHERE `ID`=1180;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 047 - Twisting Nether' WHERE `ID`=1181;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 048 - Twisting Nether' WHERE `ID`=1182;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 049 - Twisting Nether' WHERE `ID`=1183;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 050 - Twisting Nether' WHERE `ID`=1184;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 051 - Twisting Nether' WHERE `ID`=1185;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 052 - Twisting Nether' WHERE `ID`=1186;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 053 - Twisting Nether' WHERE `ID`=1187;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 054 - Twisting Nether' WHERE `ID`=1188;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 055 - Twisting Nether' WHERE `ID`=1189;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 056 - Twisting Nether' WHERE `ID`=1190;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 057 - Twisting Nether' WHERE `ID`=1191;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 058 - Twisting Nether' WHERE `ID`=1192;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 059 - Twisting Nether' WHERE `ID`=1193;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 060 - Twisting Nether' WHERE `ID`=1194;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 061 - Twisting Nether' WHERE `ID`=1195;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 062 - Twisting Nether' WHERE `ID`=1196;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 063 - Twisting Nether' WHERE `ID`=1197;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 064 - Twisting Nether' WHERE `ID`=1198;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 065 - Twisting Nether' WHERE `ID`=1199;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 066 - Twisting Nether' WHERE `ID`=1200;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 067 - Twisting Nether' WHERE `ID`=1201;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 068 - Twisting Nether' WHERE `ID`=1202;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 069 - Twisting Nether' WHERE `ID`=1203;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 070 - Twisting Nether' WHERE `ID`=1204;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 071 - Twisting Nether' WHERE `ID`=1205;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 072 - Twisting Nether' WHERE `ID`=1206;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 073 - Twisting Nether' WHERE `ID`=1207;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 074 - Twisting Nether' WHERE `ID`=1208;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 075 - Twisting Nether' WHERE `ID`=1209;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 076 - Twisting Nether' WHERE `ID`=1210;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 077 - Twisting Nether' WHERE `ID`=1211;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 078 - Twisting Nether' WHERE `ID`=1212;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 079 - Twisting Nether' WHERE `ID`=1213;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 080 - Twisting Nether' WHERE `ID`=1214;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 081 - Twisting Nether' WHERE `ID`=1215;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 082 - Twisting Nether' WHERE `ID`=1216;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 083 - Twisting Nether' WHERE `ID`=1217;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 084 - Twisting Nether' WHERE `ID`=1218;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 085 - Twisting Nether' WHERE `ID`=1219;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 086 - Twisting Nether' WHERE `ID`=1220;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 087 - Twisting Nether' WHERE `ID`=1221;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 088 - Twisting Nether' WHERE `ID`=1222;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 089 - Twisting Nether' WHERE `ID`=1223;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 090 - Twisting Nether' WHERE `ID`=1224;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 091 - Twisting Nether' WHERE `ID`=1225;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 092 - Twisting Nether' WHERE `ID`=1226;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 093 - Twisting Nether' WHERE `ID`=1227;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 094 - Twisting Nether' WHERE `ID`=1228;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 095 - Twisting Nether' WHERE `ID`=1229;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 096 - Twisting Nether' WHERE `ID`=1230;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 097 - Twisting Nether' WHERE `ID`=1231;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 098 - Twisting Nether' WHERE `ID`=1232;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 099 - Twisting Nether' WHERE `ID`=1233;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 100 - Twisting Nether' WHERE `ID`=1234;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 101 - Twisting Nether' WHERE `ID`=1235;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 102 - Twisting Nether' WHERE `ID`=1236;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 103 - Twisting Nether' WHERE `ID`=1237;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 104 - Twisting Nether' WHERE `ID`=1238;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm - Corpse Catcher 105 - Twisting Nether' WHERE `ID`=1239;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Force Camps (Alliance) - Hellfire Peninsula' WHERE `ID`=1240;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Evergrove GY' WHERE `ID`=1241;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, North Ridge GY - Blade''s Edge Mountains' WHERE `ID`=1242;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, West Ridge GY - Blade''s Edge Mountains' WHERE `ID`=1243;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, East Ridge GY - Blade''s Edge Mountains' WHERE `ID`=1244;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm, Cosmowrench GY' WHERE `ID`=1247;
UPDATE `graveyard_zone` SET `Comment`='Hellfire Peninsula, Spinebreaker GY - Hellfire Peninsula' WHERE `ID`=1248;
UPDATE `graveyard_zone` SET `Comment`='Tanaris, CoT GY' WHERE `ID`=1249;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon Valley, Altar GY - Shadowmoon Valley' WHERE `ID`=1250;
UPDATE `graveyard_zone` SET `Comment`='Shadowmoon Valley, Sanctum GY - Shadowmoon Valley' WHERE `ID`=1251;
UPDATE `graveyard_zone` SET `Comment`='Netherstorm, Kirin''Var GY - Netherstorm' WHERE `ID`=1252;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Toshley GY - Blade''s Edge Mountains' WHERE `ID`=1253;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, Raven Wood GY - Blade''s Edge Mountains' WHERE `ID`=1254;
UPDATE `graveyard_zone` SET `Comment`='Blade''s Edge, NE Ridge GY - Blade''s Edge Mountains' WHERE `ID`=1255;
UPDATE `graveyard_zone` SET `Comment`='Silverpine Forest, South GY - Silverpine Forest' WHERE `ID`=1256;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Ogre GY - Terokkar Forest' WHERE `ID`=1257;
UPDATE `graveyard_zone` SET `Comment`='Black Temple, Alliance GY - Black Temple' WHERE `ID`=1261;
UPDATE `graveyard_zone` SET `Comment`='Black Temple, Horde GY - Black Temple' WHERE `ID`=1262;
UPDATE `graveyard_zone` SET `Comment`='Dustwallow Marsh, Tabetha''s GY - Dustwallow Marsh' WHERE `ID`=1264;
UPDATE `graveyard_zone` SET `Comment`='Dustwallow Marsh, Mudsprocket GY - Onyxia''s Lair' WHERE `ID`=1265;
UPDATE `graveyard_zone` SET `Comment`='Dustwallow Marsh, Mudsprocket GY - Dustwallow Marsh' WHERE `ID`=1265;
UPDATE `graveyard_zone` SET `Comment`='Howling Fjord, Northwest GY - Howling Fjord' WHERE `ID`=1266;
UPDATE `graveyard_zone` SET `Comment`='Howling Fjord, Tuskarr GY - Howling Fjord' WHERE `ID`=1267;
UPDATE `graveyard_zone` SET `Comment`='Howling Fjord, Island GY - Howling Fjord' WHERE `ID`=1268;
UPDATE `graveyard_zone` SET `Comment`='Howling Fjord, Central GY - Howling Fjord' WHERE `ID`=1269;
UPDATE `graveyard_zone` SET `Comment`='Howling Fjord, North GY - Howling Fjord' WHERE `ID`=1270;
UPDATE `graveyard_zone` SET `Comment`='Howling Fjord, Vengance GY - Howling Fjord' WHERE `ID`=1271;
UPDATE `graveyard_zone` SET `Comment`='Howling Fjord, Southeast GY - Howling Fjord' WHERE `ID`=1272;
UPDATE `graveyard_zone` SET `Comment`='Howling Fjord, South Beach GY - Howling Fjord' WHERE `ID`=1273;
UPDATE `graveyard_zone` SET `Comment`='Howling Fjord, South GY - Howling Fjord' WHERE `ID`=1274;
UPDATE `graveyard_zone` SET `Comment`='Howling Fjord, Valgarde GY - Howling Fjord' WHERE `ID`=1275;
UPDATE `graveyard_zone` SET `Comment`='Howling Fjord, Northeast GY - Howling Fjord' WHERE `ID`=1276;
UPDATE `graveyard_zone` SET `Comment`='Un''Goro Crater, Central GY - Un''Goro Crater' WHERE `ID`=1277;
UPDATE `graveyard_zone` SET `Comment`='Un''Goro Crater, Marshal''s GY - Un''Goro Crater' WHERE `ID`=1278;
UPDATE `graveyard_zone` SET `Comment`='Stonetalon Mountains, Charred Vale GY - Stonetalon Mountains' WHERE `ID`=1279;
UPDATE `graveyard_zone` SET `Comment`='Stonetalon Mountains, Peak GY - Stonetalon Mountains' WHERE `ID`=1280;
UPDATE `graveyard_zone` SET `Comment`='Tanaris, Pirate GY - Tanaris' WHERE `ID`=1281;
UPDATE `graveyard_zone` SET `Comment`='Tanaris, Central GY - Tanaris' WHERE `ID`=1282;
UPDATE `graveyard_zone` SET `Comment`='Winterspring, South GY - Winterspring' WHERE `ID`=1283;
UPDATE `graveyard_zone` SET `Comment`='Winterspring, West GY - Winterspring' WHERE `ID`=1284;
UPDATE `graveyard_zone` SET `Comment`='Western Plaguelands, Central GY - Western Plaguelands' WHERE `ID`=1286;
UPDATE `graveyard_zone` SET `Comment`='Searing Gorge, SE GY - Searing Gorge' WHERE `ID`=1287;
UPDATE `graveyard_zone` SET `Comment`='Badlands, South GY - Badlands' WHERE `ID`=1288;
UPDATE `graveyard_zone` SET `Comment`='The Barrens, South GY - Southern Barrens' WHERE `ID`=1289;
UPDATE `graveyard_zone` SET `Comment`='Borean Tundra, Tuskar GY - Borean Tundra' WHERE `ID`=1290;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Razorthorn Rise GY - Terokkar Forest' WHERE `ID`=1291;
UPDATE `graveyard_zone` SET `Comment`='Isle of Quel''Danas, Staging Area GY - Isle of Quel''Danas' WHERE `ID`=1292;
UPDATE `graveyard_zone` SET `Comment`='Isle of Quel''Danas, Staging Area GY - Magisters'' Terrace' WHERE `ID`=1293;
UPDATE `graveyard_zone` SET `Comment`='Isle of Quel''Danas, Staging Area GY - Sunwell Plateau' WHERE `ID`=1293;
UPDATE `graveyard_zone` SET `Comment`='Terokkar Forest, Lake Jorune GY - Terokkar Forest' WHERE `ID`=1298;
UPDATE `graveyard_zone` SET `Comment`='Grizzly Hills, Vileprey GY - Grizzly Hills' WHERE `ID`=1300;
UPDATE `graveyard_zone` SET `Comment`='Grizzly Hills, Amberpine GY - Grizzly Hills' WHERE `ID`=1301;
UPDATE `graveyard_zone` SET `Comment`='Grizzly Hills, Westfall GY - Grizzly Hills' WHERE `ID`=1302;
UPDATE `graveyard_zone` SET `Comment`='Grizzly Hills, Eastern GY - Grizzly Hills' WHERE `ID`=1303;
UPDATE `graveyard_zone` SET `Comment`='Grizzly Hills, Northwestern GY - Grizzly Hills' WHERE `ID`=1304;
UPDATE `graveyard_zone` SET `Comment`='Grizzly Hills, Southwestern GY - Grizzly Hills' WHERE `ID`=1305;
UPDATE `graveyard_zone` SET `Comment`='Grizzly Hills, Central GY - Grizzly Hills' WHERE `ID`=1306;
UPDATE `graveyard_zone` SET `Comment`='Dragonblight, Northeastern GY - Dragonblight' WHERE `ID`=1307;
UPDATE `graveyard_zone` SET `Comment`='Dragonblight, Wintergarde GY - Naxxramas' WHERE `ID`=1308;
UPDATE `graveyard_zone` SET `Comment`='Dragonblight, Wintergarde GY - Dragonblight' WHERE `ID`=1308;
UPDATE `graveyard_zone` SET `Comment`='Dragonblight, Forsaken East GY - Naxxramas' WHERE `ID`=1309;
UPDATE `graveyard_zone` SET `Comment`='Dragonblight, Agmar''s Hammer GY - Dragonblight' WHERE `ID`=1310;
UPDATE `graveyard_zone` SET `Comment`='Dragonblight, Star''s Rest GY - Dragonblight' WHERE `ID`=1311;
UPDATE `graveyard_zone` SET `Comment`='Dragonblight, Moa''ki Harbor GY - Dragonblight' WHERE `ID`=1312;
UPDATE `graveyard_zone` SET `Comment`='Dragonblight, Borean Border GY - Dragonblight' WHERE `ID`=1313;
UPDATE `graveyard_zone` SET `Comment`='Dragonblight, Wyrmrest GY - Dragonblight' WHERE `ID`=1314;
UPDATE `graveyard_zone` SET `Comment`='Dragonblight, Wrathgate Horde GY - Dragonblight' WHERE `ID`=1315;
UPDATE `graveyard_zone` SET `Comment`='Dragonblight, Wrathgate Alliance GY - Dragonblight' WHERE `ID`=1316;
UPDATE `graveyard_zone` SET `Comment`='Borean Tundra, Warsong Hold GY - Borean Tundra' WHERE `ID`=1317;
UPDATE `graveyard_zone` SET `Comment`='Borean Tundra, Riplash GY - Borean Tundra' WHERE `ID`=1318;
UPDATE `graveyard_zone` SET `Comment`='Borean Tundra, Coldarra GY' WHERE `ID`=1319;
UPDATE `graveyard_zone` SET `Comment`='Borean Tundra, Amber Ledge GY - Borean Tundra' WHERE `ID`=1320;
UPDATE `graveyard_zone` SET `Comment`='Borean Tundra, Fizzcrank GY - Borean Tundra' WHERE `ID`=1321;
UPDATE `graveyard_zone` SET `Comment`='Borean Tundra, Bor''Gorok GY - Borean Tundra' WHERE `ID`=1322;
UPDATE `graveyard_zone` SET `Comment`='Borean Tundra, Death''s Stand GY - Borean Tundra' WHERE `ID`=1323;
UPDATE `graveyard_zone` SET `Comment`='Borean Tundra, Taunka''le GY - Borean Tundra' WHERE `ID`=1324;
UPDATE `graveyard_zone` SET `Comment`='Borean Tundra, Coast of Echoes GY - Borean Tundra' WHERE `ID`=1325;
UPDATE `graveyard_zone` SET `Comment`='Borean Tundra, Valiance Keep GY - Borean Tundra' WHERE `ID`=1326;
UPDATE `graveyard_zone` SET `Comment`='Wintergrasp, Fortress (West) - Wintergrasp' WHERE `ID`=1328;
UPDATE `graveyard_zone` SET `Comment`='Wintergrasp, Siege Factory (Defense NE) - Wintergrasp' WHERE `ID`=1329;
UPDATE `graveyard_zone` SET `Comment`='Wintergrasp, Siege Factory (Defense NW) - Wintergrasp' WHERE `ID`=1330;
UPDATE `graveyard_zone` SET `Comment`='Wintergrasp, Horde Starting Area - Wintergrasp' WHERE `ID`=1331;
UPDATE `graveyard_zone` SET `Comment`='Wintergrasp, Alliance Starting Area - Wintergrasp' WHERE `ID`=1332;
UPDATE `graveyard_zone` SET `Comment`='Wintergrasp, Siege Factory (SE) - Wintergrasp' WHERE `ID`=1333;
UPDATE `graveyard_zone` SET `Comment`='Wintergrasp, Siege Factory (SW) - Wintergrasp' WHERE `ID`=1334;
UPDATE `graveyard_zone` SET `Comment`='Sholazar Basin, South GY - Sholazar Basin' WHERE `ID`=1336;
UPDATE `graveyard_zone` SET `Comment`='Howling Fjord, Utgarde GY - Utgarde Pinnacle' WHERE `ID`=1337;
UPDATE `graveyard_zone` SET `Comment`='Sholazar Basin, Nesingwary GY - Sholazar Basin' WHERE `ID`=1341;
UPDATE `graveyard_zone` SET `Comment`='Sholazar Basin, Central GY - Sholazar Basin' WHERE `ID`=1342;
UPDATE `graveyard_zone` SET `Comment`='Sholazar Basin, Northwest GY - Sholazar Basin' WHERE `ID`=1343;
UPDATE `graveyard_zone` SET `Comment`='Sholazar Basin, Northeast GY - Sholazar Basin' WHERE `ID`=1344;
UPDATE `graveyard_zone` SET `Comment`='Sholazar Basin, East GY - Sholazar Basin' WHERE `ID`=1345;
UPDATE `graveyard_zone` SET `Comment`='Zul''Drak, Western GY - Zul''Drak' WHERE `ID`=1352;
UPDATE `graveyard_zone` SET `Comment`='Zul''Drak, Northwestern GY - Zul''Drak' WHERE `ID`=1353;
UPDATE `graveyard_zone` SET `Comment`='Zul''Drak, Southwestern GY - Zul''Drak' WHERE `ID`=1354;
UPDATE `graveyard_zone` SET `Comment`='Zul''Drak, Southern GY - Zul''Drak' WHERE `ID`=1355;
UPDATE `graveyard_zone` SET `Comment`='Zul''Drak, Central GY - Zul''Drak' WHERE `ID`=1356;
UPDATE `graveyard_zone` SET `Comment`='Zul''Drak, Southeastern GY - Zul''Drak' WHERE `ID`=1357;
UPDATE `graveyard_zone` SET `Comment`='Zul''Drak, Gun''Drak GY - Zul''Drak' WHERE `ID`=1358;
UPDATE `graveyard_zone` SET `Comment`='Crystalsong Forest, Dalaran GY' WHERE `ID`=1359;
UPDATE `graveyard_zone` SET `Comment`='Ebon Hold GY - Chapter I - Plaguelands: The Scarlet Enclave' WHERE `ID`=1360;
UPDATE `graveyard_zone` SET `Comment`='Eastern Plaguelands, Ebon Hold GY - Eastern Plaguelands' WHERE `ID`=1369;
UPDATE `graveyard_zone` SET `Comment`='Ebon Hold GY - Chapter II/III - Plaguelands: The Scarlet Enclave' WHERE `ID`=1370;
UPDATE `graveyard_zone` SET `Comment`='Ebon Hold GY - Chapter IV - Plaguelands: The Scarlet Enclave' WHERE `ID`=1371;
UPDATE `graveyard_zone` SET `Comment`='Un''Goro Crater, Shaper''s Terrace GY - Un''Goro Crater' WHERE `ID`=1372;
UPDATE `graveyard_zone` SET `Comment`='Howling Fjord, Utgarde 2 GY - Utgarde Keep' WHERE `ID`=1376;
UPDATE `graveyard_zone` SET `Comment`='Sholazar Basin, Stormwright GY - Sholazar Basin' WHERE `ID`=1379;
UPDATE `graveyard_zone` SET `Comment`='Crystalsong Forest, Alliance GY - Crystalsong Forest' WHERE `ID`=1380;
UPDATE `graveyard_zone` SET `Comment`='Icecrown, Argent Vanguard - Icecrown' WHERE `ID`=1381;
UPDATE `graveyard_zone` SET `Comment`='Storm Peaks, Valkyrion GY - The Storm Peaks' WHERE `ID`=1383;
UPDATE `graveyard_zone` SET `Comment`='Storm Peaks, Ulduar GY - The Storm Peaks' WHERE `ID`=1384;
UPDATE `graveyard_zone` SET `Comment`='Storm Peaks, Temple East GY - The Storm Peaks' WHERE `ID`=1385;
UPDATE `graveyard_zone` SET `Comment`='Storm Peaks, Temple West GY - The Storm Peaks' WHERE `ID`=1387;
UPDATE `graveyard_zone` SET `Comment`='Storm Peaks, Frostfield GY - The Storm Peaks' WHERE `ID`=1388;
UPDATE `graveyard_zone` SET `Comment`='Crystalsong Forest, West GY - Crystalsong Forest' WHERE `ID`=1391;
UPDATE `graveyard_zone` SET `Comment`='Crystalsong Forest, Horde GY - Crystalsong Forest' WHERE `ID`=1392;
UPDATE `graveyard_zone` SET `Comment`='Dragonblight, Naxxramas GY - Dragonblight' WHERE `ID`=1393;
UPDATE `graveyard_zone` SET `Comment`='Dragonblight, Icemist GY - Dragonblight' WHERE `ID`=1394;
UPDATE `graveyard_zone` SET `Comment`='Icecrown Glacier, Quarry GY - Icecrown' WHERE `ID`=1395;
UPDATE `graveyard_zone` SET `Comment`='Icecrown Glacier, Vrykul Central GY - Icecrown' WHERE `ID`=1396;
UPDATE `graveyard_zone` SET `Comment`='Icecrown Glacier, Northeast Ice GY - Icecrown' WHERE `ID`=1397;
UPDATE `graveyard_zone` SET `Comment`='Grizzly Hills, Drak''tharon GY - Grizzly Hills' WHERE `ID`=1398;
UPDATE `graveyard_zone` SET `Comment`='Storm Peaks, Temple of the Makers GY - The Storm Peaks' WHERE `ID`=1400;
UPDATE `graveyard_zone` SET `Comment`='Storm Peaks, Snowdrift GY - The Storm Peaks' WHERE `ID`=1401;
UPDATE `graveyard_zone` SET `Comment`='Storm Peaks, Temple of Storms GY - The Storm Peaks' WHERE `ID`=1402;
UPDATE `graveyard_zone` SET `Comment`='Storm Peaks, K3 GY - The Storm Peaks' WHERE `ID`=1403;
UPDATE `graveyard_zone` SET `Comment`='Sholazar Basin, Frenzyheart GY - Sholazar Basin' WHERE `ID`=1404;
UPDATE `graveyard_zone` SET `Comment`='Eastern Plaguelands: Acherus - Eastern Plaguelands' WHERE `ID`=1405;
UPDATE `graveyard_zone` SET `Comment`='Icecrown Glacier, Jotunheim GY - Icecrown' WHERE `ID`=1407;
UPDATE `graveyard_zone` SET `Comment`='Storm Peaks, Foot Steppes GY - The Storm Peaks' WHERE `ID`=1408;
UPDATE `graveyard_zone` SET `Comment`='Undercity - Alliance - Wrath Gate - Tirisfal Glades' WHERE `ID`=1409;
UPDATE `graveyard_zone` SET `Comment`='Alterac Mountains - Central GY - Hillsbrad Foothills' WHERE `ID`=1411;
UPDATE `graveyard_zone` SET `Comment`='Winterspring, Wintersaber GY - Winterspring' WHERE `ID`=1416;
UPDATE `graveyard_zone` SET `Comment`='Winterspring, Crossroad GY - Winterspring' WHERE `ID`=1417;
UPDATE `graveyard_zone` SET `Comment`='Winterspring, Darkwhisper GY - Winterspring' WHERE `ID`=1418;
UPDATE `graveyard_zone` SET `Comment`='Azshara, Southern Azshara GY - Azshara' WHERE `ID`=1419;
UPDATE `graveyard_zone` SET `Comment`='Azshara, Bilgewater Harbor GY - Azshara' WHERE `ID`=1420;
UPDATE `graveyard_zone` SET `Comment`='Desolace, Ghost Walker Post GY - Desolace' WHERE `ID`=1421;
UPDATE `graveyard_zone` SET `Comment`='Desolace, Sar''theris Strand GY - Desolace' WHERE `ID`=1422;
UPDATE `graveyard_zone` SET `Comment`='Desolace, Mannoroc Coven GY - Desolace' WHERE `ID`=1423;
UPDATE `graveyard_zone` SET `Comment`='Desolace, Magram Village GY - Desolace' WHERE `ID`=1424;
UPDATE `graveyard_zone` SET `Comment`='Desolace, Roadside GY - Desolace' WHERE `ID`=1425;
UPDATE `graveyard_zone` SET `Comment`='Ashenvale, Shrine of Aessina GY - Ashenvale' WHERE `ID`=1426;
UPDATE `graveyard_zone` SET `Comment`='Ashenvale, Nightsong GY - Ashenvale' WHERE `ID`=1427;
UPDATE `graveyard_zone` SET `Comment`='Stonetalon Mountains, Windshear Crag GY - Stonetalon Mountains' WHERE `ID`=1428;
UPDATE `graveyard_zone` SET `Comment`='Stonetalon Mountains, Mirkfallon GY - Stonetalon Mountains' WHERE `ID`=1429;
UPDATE `graveyard_zone` SET `Comment`='The Barrens, Forgotten Pools - Northern Barrens' WHERE `ID`=1430;
UPDATE `graveyard_zone` SET `Comment`='The Barrens, North GY - Northern Barrens' WHERE `ID`=1431;
UPDATE `graveyard_zone` SET `Comment`='The Barrens, Raptor Grounds - Southern Barrens' WHERE `ID`=1432;
UPDATE `graveyard_zone` SET `Comment`='The Barrens, Central GY - Southern Barrens' WHERE `ID`=1433;
UPDATE `graveyard_zone` SET `Comment`='The Barrens, East GY - Northern Barrens' WHERE `ID`=1434;
UPDATE `graveyard_zone` SET `Comment`='Mulgore, Southeast GY - Mulgore' WHERE `ID`=1435;
UPDATE `graveyard_zone` SET `Comment`='Mulgore, Red Rocks GY - Mulgore' WHERE `ID`=1436;
UPDATE `graveyard_zone` SET `Comment`='Thousand Needles, Freewind Post GY (MOVED) - Thousand Needles' WHERE `ID`=1437;
UPDATE `graveyard_zone` SET `Comment`='Thousand Needles, Speed Barge GY (MOVED) - Thousand Needles' WHERE `ID`=1438;
UPDATE `graveyard_zone` SET `Comment`='Tanaris, Southwest GY - Tanaris' WHERE `ID`=1439;
UPDATE `graveyard_zone` SET `Comment`='Tanaris, Abyssal Sands GY - Tanaris' WHERE `ID`=1440;
UPDATE `graveyard_zone` SET `Comment`='Feralas, Ruins of Isildien GY - Feralas' WHERE `ID`=1441;
UPDATE `graveyard_zone` SET `Comment`='Feralas, Lower Wilds GY - Feralas' WHERE `ID`=1442;
UPDATE `graveyard_zone` SET `Comment`='Feralas, Twin Colossals GY - Feralas' WHERE `ID`=1443;
UPDATE `graveyard_zone` SET `Comment`='Silithus, Hive''Regal - Silithus' WHERE `ID`=1444;
UPDATE `graveyard_zone` SET `Comment`='Silithus, Twilight Base Camp - Silithus' WHERE `ID`=1445;
UPDATE `graveyard_zone` SET `Comment`='Arathi Highlands, Stromgarde - Arathi Highlands' WHERE `ID`=1446;
UPDATE `graveyard_zone` SET `Comment`='Hillsbrad Foothills, Thoradin''s Wall - Hillsbrad Foothills' WHERE `ID`=1447;
UPDATE `graveyard_zone` SET `Comment`='Eastern Plaguelands, Northdale - Eastern Plaguelands' WHERE `ID`=1448;
UPDATE `graveyard_zone` SET `Comment`='Eastern Plaguelands, Stratholme - Eastern Plaguelands' WHERE `ID`=1449;
UPDATE `graveyard_zone` SET `Comment`='Eastern Plaguelands, West GY - Eastern Plaguelands' WHERE `ID`=1450;
UPDATE `graveyard_zone` SET `Comment`='Western Plaguelands, Hearthglen - Eastern Plaguelands' WHERE `ID`=1451;
UPDATE `graveyard_zone` SET `Comment`='Hillsbrad Foothills, Hillsbrad Fields GY - Hillsbrad Foothills' WHERE `ID`=1452;
UPDATE `graveyard_zone` SET `Comment`='The Hinterlands, Seradane - The Hinterlands' WHERE `ID`=1453;
UPDATE `graveyard_zone` SET `Comment`='The Hinterlands, Shadra''Alor - The Hinterlands' WHERE `ID`=1454;
UPDATE `graveyard_zone` SET `Comment`='Wetlands, Sundown Marsh GY - Wetlands' WHERE `ID`=1455;
UPDATE `graveyard_zone` SET `Comment`='Wetlands, South Road GY - Wetlands' WHERE `ID`=1456;
UPDATE `graveyard_zone` SET `Comment`='Wetlands, Raptor Ridge GY - Wetlands' WHERE `ID`=1457;
UPDATE `graveyard_zone` SET `Comment`='AAA - Arena (Dev Test) - Stranglethorn Vale' WHERE `ID`=1458;
UPDATE `graveyard_zone` SET `Comment`='Stranglethorn Vale, Central GY - Stranglethorn Vale' WHERE `ID`=1459;
UPDATE `graveyard_zone` SET `Comment`='Stranglethorn Vale, Savage Coast GY - Stranglethorn Vale' WHERE `ID`=1460;
UPDATE `graveyard_zone` SET `Comment`='Duskwood, Central GY - Duskwood' WHERE `ID`=1461;
UPDATE `graveyard_zone` SET `Comment`='Westfall, Dagger Hills GY - Westfall' WHERE `ID`=1462;
UPDATE `graveyard_zone` SET `Comment`='Westfall, Longshore - Westfall' WHERE `ID`=1463;
UPDATE `graveyard_zone` SET `Comment`='Blasted Lands, Dark Portal GY - Blasted Lands' WHERE `ID`=1464;
UPDATE `graveyard_zone` SET `Comment`='Swamp of Sorrows, Alliance Hub GY - Swamp of Sorrows' WHERE `ID`=1465;
UPDATE `graveyard_zone` SET `Comment`='Swamp of Sorrows, Splinterspear GY - Swamp of Sorrows' WHERE `ID`=1466;
UPDATE `graveyard_zone` SET `Comment`='Redridge Mountains, Stonewatch - Redridge Mountains' WHERE `ID`=1467;
UPDATE `graveyard_zone` SET `Comment`='Elwynn Forest, Tower of Azora - Elwynn Forest' WHERE `ID`=1468;
UPDATE `graveyard_zone` SET `Comment`='Burning Steppes, Blackrock Mountain - Blackrock Mountain' WHERE `ID`=1469;
UPDATE `graveyard_zone` SET `Comment`='Burning Steppes, East GY - Burning Steppes' WHERE `ID`=1470;
UPDATE `graveyard_zone` SET `Comment`='Dun Morogh, Iceflow Lake - Dun Morogh' WHERE `ID`=1471;
UPDATE `graveyard_zone` SET `Comment`='Dun Morogh, East Road - Dun Morogh' WHERE `ID`=1472;
UPDATE `graveyard_zone` SET `Comment`='Loch Modan, The Loch - Loch Modan' WHERE `ID`=1473;
UPDATE `graveyard_zone` SET `Comment`='Wintergrasp, Fortress Graveyard (Indoors) - Vault of Archavon' WHERE `ID`=1474;
UPDATE `graveyard_zone` SET `Comment`='Icecrown, Argent Tournament GY' WHERE `ID`=1478;
UPDATE `graveyard_zone` SET `Comment`='Icecrown Glacier, Citadel GY' WHERE `ID`=1682;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2019_03_22_03 -> 2019_03_23_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_22_03';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_22_03 2019_03_23_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553299513274743300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553299513274743300');
UPDATE `gameobject_template_addon` SET `faction`='35' WHERE `entry`=160840;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,32 @@
-- DB update 2019_03_23_00 -> 2019_03_23_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_23_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_23_00 2019_03_23_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553343090705922800'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553343090705922800');
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` =25291;
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid =25291);
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
(25291, 0, 0, 0, 62, 0, 100, 0, 9761, 0, 0, 0, 11, 52909, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On click - Cast water breathing');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,29 @@
-- DB update 2019_03_23_01 -> 2019_03_24_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_23_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_23_01 2019_03_24_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553372596303652700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553372596303652700');
DELETE FROM `creature_template_addon` WHERE `entry` = 33691;
INSERT INTO `creature_template_addon` (`entry`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES
(33691,0,0,0,0,0,'62019'); -- Rune of Summoning
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,34 @@
-- DB update 2019_03_24_00 -> 2019_03_24_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_24_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_24_00 2019_03_24_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553294024713457200'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553294024713457200');
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 7750;
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 7750);
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
(7750, 0, 0, 0, 20, 0, 100, 0, 2701, 0, 0, 0, 41, 3000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ''),
(7750, 0, 1, 2, 19, 0, 100, 0, 2701, 0, 0, 0, 70, 0, 0, 0, 0, 0, 0, 14, 44733, 141980, 0, 0, 0, 0, 0, ''),
(7750, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 70, 0, 0, 0, 0, 0, 0, 14, 44732, 141981, 0, 0, 0, 0, 0, '');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,40 @@
-- DB update 2019_03_24_01 -> 2019_03_25_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_24_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_24_01 2019_03_25_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1552751401332509400'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1552751401332509400');
-- Delete old
DELETE FROM `trinity_string` WHERE `entry` IN (11002, 11003, 11004, 11005, 11006, 11007, 11017, 11018);
-- Add rus and replace eng
INSERT INTO `trinity_string`(`entry`, `content_default`, `content_loc8`) VALUES
(11002, 'Server: %s has kicked %s, reason: %s', 'Server: %s кикнул %s, причина: %s'),
(11003, 'Server: %s has muted %s for %u minutes, reason: %s', 'Server: %s замутил %s на %u минут, причина: %s'),
(11004, 'Server: %s has banned character %s for %s, reason: %s', 'Server: %s забанил персонажа %s на %s, причина: %s'),
(11005, 'Server: %s has banned character %s permanetly, reason: %s', 'Server: %s забанил персонажа %s permanetly, reason: %s'),
(11006, 'Server: %s has banned account %s for %s, reason: %s', 'Server: %s забанил аккаунт %s на %s, причина: %s'),
(11007, 'Server: %s has banned account %s permanetly, reason: %s', 'Server: %s забанил аккаунт %s навсегда, причина: %s'),
(11017, 'Server: %s has banned ip %s for %s, reason: %s', 'Server: %s забанил айпи %s на %s, причина: %s'),
(11018, 'Server: %s has banned ip %s permanetly, reason: %s', 'Server: %s забанил айпи %s навсегда, причина: %s');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,91 @@
-- DB update 2019_03_25_00 -> 2019_03_25_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_25_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_25_00 2019_03_25_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553383116284680300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553383116284680300');
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 2435;
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 2435);
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
(2435, 0, 0, 0, 11, 0, 100, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ''),
(2435, 0, 1, 0, 1, 0, 100, 1, 120000, 120000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ''),
(2435, 0, 2, 0, 1, 0, 100, 1, 126000, 126000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ''),
(2435, 0, 3, 0, 1, 0, 100, 1, 130000, 130000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ''),
(2435, 0, 4, 0, 1, 0, 100, 1, 140000, 140000, 0, 0, 12, 2434, 6, 60000, 0, 0, 0, 8, 0, 0, 0, -780.091248, -530.876099, 20.693323, 0.205787, ''),
(2435, 0, 5, 0, 1, 0, 100, 1, 142000, 142000, 0, 0, 12, 2434, 6, 60000, 0, 0, 0, 8, 0, 0, 0, -793.784363, -572.725769, 16.075451, 5.450406, ''),
(2435, 0, 6, 0, 1, 0, 100, 1, 144000, 144000, 0, 0, 12, 2434, 6, 60000, 0, 0, 0, 8, 0, 0, 0, -851.030151, -518.15387, 12.146384, 2.463797, ''),
(2435, 0, 7, 0, 1, 0, 100, 1, 146000, 146000, 0, 0, 12, 2434, 6, 60000, 0, 0, 0, 8, 0, 0, 0, -830.228943, -530.124084, 13.691698, 5.620338, ''),
(2435, 0, 8, 0, 1, 0, 100, 1, 148000, 148000, 0, 0, 12, 2434, 6, 60000, 0, 0, 0, 8, 0, 0, 0, -859.666992, -544.375977, 10.144335, 1.15192, ''),
(2435, 0, 9, 0, 1, 0, 100, 1, 150000, 150000, 0, 0, 12, 2434, 6, 60000, 0, 0, 0, 8, 0, 0, 0, -805.856506, -479.743591, 15.871011, 5.608394, ''),
(2435, 0, 10, 0, 1, 0, 100, 1, 152000, 152000, 0, 0, 12, 2434, 6, 60000, 0, 0, 0, 8, 0, 0, 0, -887.816284, -545.123413, 7.047425, 0.609322, ''),
(2435, 0, 11, 0, 1, 0, 100, 1, 154000, 154000, 0, 0, 12, 2434, 6, 60000, 0, 0, 0, 8, 0, 0, 0, -893.224487, -590.699219, 7.445801, 1.06091, ''),
(2435, 0, 12, 0, 1, 0, 100, 1, 156000, 156000, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ''),
(2435, 0, 13, 0, 11, 0, 100, 1, 0, 0, 0, 0, 41, 180000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, '');
DELETE FROM `creature` WHERE `guid` IN(2054680, 2054762, 2054790, 2054758, 2054765);
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES
(2054680, 2435, 0, 0, 0, 1, 1, 0, 1, -743.976, -521.674, 21.6875, 0.356982, 300, 0, 0, 2033, 0, 0, 0, 0, 0, '', 0),
(2054762, 2386, 0, 0, 0, 1, 1, 0, 1, -830.2, -530.016, 13.5798, 5.58997, 300, 0, 0, 2310, 0, 2, 0, 0, 0, '', 0),
(2054790, 2386, 0, 0, 0, 1, 1, 0, 1, -820.187, -587.001, 15.1409, 0.337865, 300, 0, 0, 2310, 0, 2, 0, 0, 0, '', 0),
(2054758, 2386, 0, 0, 0, 1, 1, 0, 1, -851.274, -514.767, 12.3157, 4.75353, 300, 0, 0, 2310, 0, 2, 0, 0, 0, '', 0),
(2054765, 2386, 0, 0, 0, 1, 1, 0, 1, -894.552, -593.034, 8.03216, 0.822596, 300, 0, 0, 2310, 0, 0, 0, 0, 0, '', 0);
DELETE FROM `creature_template` WHERE `entry` IN(2435, 2386, 2436);
INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES
(2435, 0, 0, 0, 0, 0, 3664, 0, 0, 0, 'Southshore Crier', NULL, NULL, 0, 45, 45, 0, 96, 0, 1.09, 1.14286, 1, 0, 45, 60, 0, 108, 5, 2000, 2000, 1, 0, 2048, 0, 0, 0, 0, 0, 0, 31, 46, 10, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'SmartAI', 0, 3, 1, 1.1, 1, 1, 0, 0, 1, 0, 0, '', 12340),
(2386, 0, 0, 0, 0, 0, 3705, 3708, 0, 0, 'Southshore Guard', NULL, NULL, 0, 45, 45, 0, 96, 0, 1, 1.42857, 1, 0, 76, 100, 0, 184, 1, 2000, 2000, 1, 0, 2048, 0, 0, 0, 0, 0, 0, 52, 76, 17, 7, 0, 2386, 2386, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'SmartAI', 0, 3, 1, 1.25, 1, 1, 0, 144, 1, 0, 0, '', 12340),
(2436, 0, 0, 0, 0, 0, 3667, 0, 0, 0, 'Farmer Kent', NULL, NULL, 0, 45, 45, 0, 96, 0, 1, 1.14286, 1, 0, 35, 48, 0, 86, 5, 2000, 2000, 1, 4096, 2048, 0, 0, 0, 0, 0, 0, 24, 36, 6, 7, 0, 2436, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 3, 1, 1.02, 1, 1, 0, 0, 1, 0, 0, '', 12340);
DELETE FROM `creature_addon` WHERE `guid` IN(2054762, 2054790, 2054758);
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
(2054762, 20547620, 0, 0, 0, 0, NULL),
(2054790, 20547900, 0, 0, 0, 0, NULL),
(2054758, 20547580, 0, 0, 0, 0, NULL);
DELETE FROM `waypoint_data` WHERE `id` IN(20547620, 20547900, 20547580);
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(20547620, 5, -820.391, -533.587, 15.0998, 0, 0, 0, 0, 100, 0),
(20547620, 4, -811.54, -537.426, 15.5707, 0, 0, 0, 0, 100, 0),
(20547620, 3, -812.723, -542.349, 15.7681, 0, 0, 0, 0, 100, 0),
(20547620, 2, -818.293, -536.134, 15.4268, 0, 0, 0, 0, 100, 0),
(20547620, 1, -824.617, -532.774, 14.6419, 0, 0, 0, 0, 100, 0),
(20547620, 6, -827.359, -531.308, 14.2184, 0, 0, 0, 0, 100, 0),
(20547900, 1, -811.639, -584.494, 15.1499, 0, 0, 0, 0, 100, 0),
(20547900, 2, -800.046, -581.489, 15.2147, 0, 0, 0, 0, 100, 0),
(20547900, 3, -800.833, -572.892, 15.257, 0, 0, 0, 0, 100, 0),
(20547900, 4, -801.21, -563.578, 15.4117, 0, 0, 0, 0, 100, 0),
(20547900, 5, -803.931, -564.6, 15.2881, 0, 0, 0, 0, 100, 0),
(20547900, 6, -801.668, -574.03, 15.2231, 0, 0, 0, 0, 100, 0),
(20547900, 7, -803.813, -581.047, 15.1528, 0, 0, 0, 0, 100, 0),
(20547900, 8, -816.032, -584.642, 15.1528, 0, 0, 0, 0, 100, 0),
(20547580, 9, -859.389, -518.092, 11.0379, 0, 0, 0, 0, 100, 0),
(20547580, 8, -858.511, -524.652, 10.5177, 0, 0, 0, 0, 100, 0),
(20547580, 7, -852.398, -526.75, 10.4794, 0, 0, 0, 0, 100, 0),
(20547580, 6, -840.13, -523.399, 11.2839, 0, 0, 0, 0, 100, 0),
(20547580, 5, -839.172, -527.138, 11.2478, 0, 0, 0, 0, 100, 0),
(20547580, 4, -854.201, -532.857, 9.89841, 0, 0, 0, 0, 100, 0),
(20547580, 3, -852.599, -541.857, 10.5971, 0, 0, 0, 0, 100, 0),
(20547580, 2, -856.708, -542.947, 10.352, 0, 0, 0, 0, 100, 0),
(20547580, 1, -860.698, -518.619, 10.9982, 0, 0, 0, 0, 100, 0);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,49 @@
-- DB update 2019_03_25_01 -> 2019_03_26_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_25_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_25_01 2019_03_26_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553553710022065730'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553553710022065730');
DELETE FROM `gameobject` WHERE `guid` IN (29727, 29728, 29729, 29730, 29731, 29732, 29733, 29734, 29735, 29736, 29737, 29738, 29739, 29740, 29741);
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `ScriptName`, `VerifiedBuild`) VALUES
(29727, 20919, 47, 0, 0, 1, 1, 2082.74, 1671.82, 61.2396, 3.66079, 0, 0, 0.966493, -0.256693, 300, 0, 1, '', 0),
(29728, 20919, 47, 0, 0, 1, 1, 2159.43, 1687.49, 57.5433, 3.66079, 0, 0, 0.966493, -0.256693, 300, 0, 1, '', 0),
(29729, 20919, 47, 0, 0, 1, 1, 2080.89, 1703.36, 56.6447, 0.553757, 0, 0, 0.273354, 0.961913, 300, 0, 1, '', 0),
(29730, 20919, 47, 0, 0, 1, 1, 2055.28, 1767.7, 58.4559, 2.98378, 0, 0, 0.996889, 0.0788245, 300, 0, 1, '', 0),
(29731, 20919, 47, 0, 0, 1, 1, 2196.64, 1827.96, 61.4706, 2.11277, 0, 0, 0.870583, 0.492022, 300, 0, 1, '', 0),
(29732, 20919, 47, 0, 0, 1, 1, 2030.32, 1867.61, 56.2866, 5.6777, 0, 0, 0.298139, -0.954522, 300, 0, 1, '', 0),
(29733, 20919, 47, 0, 0, 1, 1, 2091.33, 1861.73, 51.0341, 1.25355, 0, 0, 0.586536, 0.809923, 300, 0, 1, '', 0),
(29734, 20919, 47, 0, 0, 1, 1, 2200.15, 1897.64, 71.3191, 2.6492, 0, 0, 0.969846, 0.243717, 300, 0, 1, '', 0),
(29735, 20919, 47, 0, 0, 1, 1, 2075.75, 1742.04, 76.7184, 1.33994, 0, 0, 0.620962, 0.78384, 300, 0, 1, '', 0),
(29736, 20919, 47, 0, 0, 1, 1, 2126, 1661.15, 82.4824, 0.0220437, 0, 0, 0.0110216, 0.999939, 300, 0, 1, '', 0),
(29737, 20919, 47, 0, 0, 1, 1, 2207.92, 1596.91, 80.7375, 3.60582, 0, 0, 0.973182, -0.230035, 300, 0, 1, '', 0),
(29738, 20919, 47, 0, 0, 1, 1, 2156.98, 1542.26, 72.849, 2.43086, 0, 0, 0.937519, 0.347934, 300, 0, 1, '', 0),
(29739, 20919, 47, 0, 0, 1, 1, 2179.95, 1514.06, 69.0709, 0.778385, 0, 0, 0.379441, 0.925216, 300, 0, 1, '', 0),
(29740, 20919, 47, 0, 0, 1, 1, 2000.85, 1533.93, 80.3971, 4.919, 0, 0, 0.630419, -0.776255, 300, 0, 1, '', 0),
(29741, 20919, 47, 0, 0, 1, 1, 1991.49, 1608.53, 81.1601, 1.1004, 0, 0, 0.522858, 0.85242, 300, 0, 1, '', 0);
UPDATE smart_scripts SET action_param1 = 1, comment = "Snufflenose Gopher - Script - Set Deffensive" WHERE entryorguid = 478100 AND id = 4;
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 17 AND `SourceEntry` = 6918;
INSERT INTO `conditions` VALUES (17, 0, 6918, 0, 0, 29, 0, 4781, 5, 0, 1, 0, 0, '', 'Blueleaf Tubers: Only spawn one Snufflenose Gopher');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,318 @@
-- DB update 2019_03_26_00 -> 2019_03_26_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_26_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_26_00 2019_03_26_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553536152748153223'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553536152748153223');
-- Cleanup the complete phasing/auras for all quests related to the Battle for the Undercity
DELETE FROM `spell_area` WHERE `quest_start` IN (13242,13257,13266,13267,13347,13369,13370,13371,13377) OR `quest_end` IN (13242,13257,13266,13267,13347,13369,13370,13371,13377);
INSERT INTO `spell_area` (`spell`,`area`,`quest_start`,`quest_end`,`aura_spell`,`racemask`,`gender`,`autocast`,`quest_start_status`,`quest_end_status`)
VALUES
(60943,4129,13257,0,0,690,2,1,2,0), -- Warsong Hold - Mod Invisibility Detection (7) - Detect Orgrimmar Portal - Only for Quest "Herald of War"
(60943,1637,13266,0,0,690,2,1,2,0), -- Orgrimmar - Mod Invisibility Detection (7) - Detect Undercity Portal - Only for Quest "A Life Without Regret"
(60943,1519,13371,0,0,1101,2,1,2,0), -- Stormwind - Mod Invisibility Detection (7) - Detect Undercity Portal - Only for Quest "The Killing Time"
(60877,1519,13347,13377,0,1101,2,1,74,11), -- Stormwind City - Mod Invisibility Detection (10) - Detect Jaina Proudmoore - From Quest "Reborn From The Ashes" until "Battle for the Undercity"
(59062,14,13257,13267,0,690,2,1,74,11), -- Durotar - Phasing for the Horde - From Quest "Herald of War" until "Battle for the Undercity"
(59062,1637,13257,13267,0,690,2,1,74,11), -- Orgrimmar - Phasing for the Horde - From Quest "Herald of War" until "Battle for the Undercity"
(60815,14,13369,13377,0,1101,2,1,74,11), -- Durotar - Phasing for the Alliance - From Quest "Fate,Up Against Your Will" until "Battle for the Undercity"
(60815,1637,13369,13377,0,1101,2,1,74,11), -- Orgrimmar - Phasing for the Alliance - From Quest "Fate,Up Against Your Will" until "Battle for the Undercity"
(59062,85,13266,13267,0,690,2,1,74,11), -- Tirisfal Glades - Phasing for the Horde - From Quest "A Life Without Regret" until "Battle for the Undercity"
(59062,1497,13266,13267,0,690,2,1,74,11), -- Undercity - Phasing for the Horde - From Quest "A Life Without Regret" until "Battle for the Undercity"
(60815,85,13371,13377,0,1101,2,1,74,11), -- Tirisfal Glades - Phasing for the Alliance - From Quest "The Killing Time" until "Battle for the Undercity"
(60815,1497,13371,13377,0,1101,2,1,74,11); -- Undercity - Phasing for the Alliance - From Quest "The Killing Time" until "Battle for the Undercity"
-- Portals
DELETE FROM `gameobject` WHERE `guid` BETWEEN 2133392 AND 2133395;
INSERT INTO `gameobject` (`guid`,`id`,`map`,`zoneId`,`areaId`,`spawnMask`,`phaseMask`,`position_x`,`position_y`,`position_z`,`orientation`,`rotation0`,`rotation1`,`rotation2`,`rotation3`,`spawntimesecs`,`animprogress`,`state`,`VerifiedBuild`)
VALUES
(2133392,193206,571,3537,4129,1,1,2830.01,6179.37,84.66,4.16,0,0,0,0,120,100,1,0), -- Portal from Warsong Hold to Orgrimmar
(2133393,193425,1,1637,1637,1,64,1932.9,-4145.64,40.5929,3.37621,0,0,0,0,120,100,1,0), -- Portal from Grommash Hold to Undercity
(2133394,193425,1,1637,1637,1,64,1909.87,-4147.81,40.6327,0.268081,0,0,0,0,120,100,1,0), -- Portal from Grommash Hold to Undercity
(2133395,193955,0,1519,1519,1,1,-8448.49,323.76,121.33,0.686877,0,0,0,0,120,100,1,0); -- Portal from Stormwind to Undercity
DELETE FROM `gameobject_addon` WHERE `guid` BETWEEN 2133392 AND 2133395;
INSERT INTO `gameobject_addon` (`guid`,`invisibilityType`,`invisibilityValue`)
VALUES
(2133392,7,1000), -- Portal from Warsong Hold to Orgrimmar - Needs Mod Invisibility Detection (7)
(2133393,7,1000), -- Portal from Grommash Hold to Undercity - Needs Mod Invisibility Detection (7)
(2133394,7,1000), -- Portal from Grommash Hold to Undercity - Needs Mod Invisibility Detection (7)
(2133395,7,1000); -- Portal from Stormwind to Undercity - Needs Mod Invisibility Detection (7)
DELETE FROM `spell_scripts` WHERE `id` IN (59064,59439,60940);
INSERT INTO `spell_scripts` (`id`,`command`,`datalong`,`x`,`y`,`z`,`o`)
VALUES
(59064,6,1,1333.489,-4375.514,26.204,0.104), -- Portal from Warsong Hold to Orgrimmar - Teleport destination
(59439,6,0,1969.03,237.55,38.39,3.21), -- Portal from Orgrimmar to Undercity - Teleport destination
(60940,6,0,1769.13,772.25,56.22,3.97); -- Portal from Stormwind to Undercity - Teleport destination
-- Thrall (Horde version): End quest "Herald of War"
DELETE FROM `creature_questender` WHERE `id` = 31412;
INSERT INTO `creature_questender` (`id`,`quest`)
VALUES
(31412,13257);
-- These game objects and creatures can be used in both phases (64: Horde / 128: Alliance)
UPDATE `gameobject` SET `phaseMask` = 192 WHERE `phaseMask` = 128 AND `id` IN (193219,193217,193218,193216,193215);
UPDATE `creature` SET `phaseMask` = 192 WHERE `phaseMask` = 128 AND `id` IN (31564,31416,31420,31421,31422,31423,31424,31425,31426,31427,31429,31430,31431,31437,31467);
-- Creature text for both Thrall versions (Horde and Alliance phase)
DELETE FROM `creature_text` WHERE `CreatureID` IN (31412,32363);
INSERT INTO `creature_text` (`CreatureID`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`BroadcastTextId`,`comment`)
VALUES
(31412,0,0,'Kor''kron, stand down!',12,0,100,5,0,16222,32286,'Thrall - Phased Orgrimmar (Horde)'),
(31412,1,0,'Jaina...',12,0,100,1,0,16223,32287,'Thrall - Phased Orgrimmar (Horde)'),
(31412,2,0,'Jaina, what happened at the Wrathgate. It was a betrayal from within...',12,0,100,1,0,16224,32289,'Thrall - Phased Orgrimmar (Horde)'),
(31412,3,0,'The Horde has lost the Undercity.',12,0,100,1,0,16225,32292,'Thrall - Phased Orgrimmar (Horde)'),
(31412,4,0,'We now prepare to lay siege to the city and bring the perpetrators of this unforgivable crime to justice.',12,0,100,1,0,16226,32293,'Thrall - Phased Orgrimmar (Horde)'),
(31412,5,0,'If we are forced into a conflict, the Lich King will destroy our divided forces in Northrend.',12,0,100,1,0,16227,32294,'Thrall - Phased Orgrimmar (Horde)'),
(31412,6,0,'We will make this right, Jaina. Tell your king all that you have learned here.',12,0,100,1,0,16228,32295,'Thrall - Phased Orgrimmar (Horde)'),
(31412,7,0,'Kor''kron, prepare transport to the Undercity.',12,0,100,1,0,16229,32300,'Thrall - Phased Orgrimmar (Horde)'),
(32363,0,0,'Kor''kron, stand down!',12,0,100,5,0,16222,32286,'Thrall - Phased Orgrimmar (Alliance)'),
(32363,1,0,'Jaina...',12,0,100,1,0,16223,32287,'Thrall - Phased Orgrimmar (Alliance)'),
(32363,2,0,'Jaina, what happened at the Wrathgate. It was a betrayal from within...',12,0,100,1,0,16224,32289,'Thrall - Phased Orgrimmar (Alliance)'),
(32363,3,0,'The Horde has lost the Undercity.',12,0,100,1,0,16225,32292,'Thrall - Phased Orgrimmar (Alliance)'),
(32363,4,0,'We now prepare to lay siege to the city and bring the perpetrators of this unforgivable crime to justice.',12,0,100,1,0,16226,32293,'Thrall - Phased Orgrimmar (Alliance)'),
(32363,5,0,'If we are forced into a conflict, the Lich King will destroy our divided forces in Northrend.',12,0,100,1,0,16227,32294,'Thrall - Phased Orgrimmar (Alliance)'),
(32363,6,0,'We will make this right, Jaina. Tell your king all that you have learned here.',12,0,100,1,0,16228,32295,'Thrall - Phased Orgrimmar (Alliance)'),
(32363,7,0,'Kor''kron, prepare transport to the Undercity.',12,0,100,1,0,16229,32300,'Thrall - Phased Orgrimmar (Alliance)');
-- Add "talk" emote to Sylvanas' creature text
UPDATE `creature_text` SET `Emote` = 1 WHERE `CreatureID` = 31419;
-- Creature text for the Forsaken Refugees
DELETE FROM `creature_text` WHERE `CreatureID` IN (31437,31467);
INSERT INTO `creature_text` (`CreatureID`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`BroadcastTextId`,`comment`)
VALUES
(31437,0,0,'We''ve lost Undercity. Nothing but demons and Putress'' apothecaries left there...',12,1,100,0,0,0,32226,'Forsaken Refugee'),
(31437,0,1,'They killed hundreds! We barely escaped with our lives! Help!',12,1,100,0,0,0,32229,'Forsaken Refugee'),
(31437,0,2,'The Dark Lady fought off as many as she could,but in the end... I hope she survived. Please help!',12,1,100,0,0,0,32230,'Forsaken Refugee'),
(31437,0,3,'You must help! We''re homeless!',12,1,100,0,0,0,32227,'Forsaken Refugee'),
(31437,0,4,'Help us! Please!',12,1,100,0,0,0,32225,'Forsaken Refugee'),
(31437,0,5,'Could you spare a gold?',12,1,100,0,0,0,32228,'Forsaken Refugee'),
(31467,0,0,'We''ve lost Undercity. Nothing but demons and Putress'' apothecaries left there...',12,1,100,0,0,0,32226,'Forsaken Refugee'),
(31467,0,1,'They killed hundreds! We barely escaped with our lives! Help!',12,1,100,0,0,0,32229,'Forsaken Refugee'),
(31467,0,2,'The Dark Lady fought off as many as she could,but in the end... I hope she survived. Please help!',12,1,100,0,0,0,32230,'Forsaken Refugee'),
(31467,0,3,'You must help! We''re homeless!',12,1,100,0,0,0,32227,'Forsaken Refugee'),
(31467,0,4,'Help us! Please!',12,1,100,0,0,0,32225,'Forsaken Refugee'),
(31467,0,5,'Could you spare a gold?',12,1,100,0,0,0,32228,'Forsaken Refugee');
UPDATE `creature_text` SET `language` = 1 WHERE `CreatureID` IN (31423,31425,31426,31427,31429,31430,31431,31433);
-- Runthak
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 31431;
-- Jaina,Gamon,Karus,Koma,Soran,Kaja,Olvia,Doras,Felika,Sana,Auctioneer Thathung,Overlord Runthak,Forsaken Refugee (2x),Innkeeper Gryshka,Orc Commoner,Sylvanas
UPDATE `creature_template` SET `unit_flags` = 768 WHERE `entry` IN (31418,31424,31420,31421,31422,31423,31425,31426,31427,31429,31430,31431,31437,31467,31433,31434,31419);
-- Thrall (Horde), Sylvanas (Horde/Alliance), Jaina (Horde), Jaina (Alliance), Kor'kron Elite
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` IN (31412,31419,31418,32364,32367);
-- Randomize the behaviour of the Forsaken Refugees
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` IN (31437,31467);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(22,1,31437,0,0,21,1,16,0,0,0,0,0,'','Forsaken Refugee Roaming - Enable Talk Script'),
(22,2,31437,0,0,21,1,16,0,0,1,0,0,'','Forsaken Refugee Not Roaming - Enable Sit/Sleep Script'),
(22,1,31467,0,0,21,1,16,0,0,0,0,0,'','Forsaken Refugee Roaming - Enable Talk Script'),
(22,2,31467,0,0,21,1,16,0,0,1,0,0,'','Forsaken Refugee Not Roaming - Enable Sit/Sleep Script');
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (31437,31467) 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(31437,0,0,0,60,0,70,0,1000,15000,20000,60000,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Forsaken Refugee - On Update - Talk'),
(31437,0,1,0,63,0,70,0,0,0,0,0,0,87,3143700,3143701,3143701,0,0,0,1,0,0,0,0,0,0,0,0,'Forsaken Refugee - On Create - Run Random Script (Sit/Sleep)'),
(31467,0,0,0,60,0,70,0,1000,15000,20000,60000,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Forsaken Refugee - On Update - Talk'),
(31467,0,1,0,63,0,70,0,0,0,0,0,0,87,3146700,3146701,3146701,0,0,0,1,0,0,0,0,0,0,0,0,'Forsaken Refugee - On Create - Run Random Script (Sit/Sleep)');
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (3143700,3143701,3146700,3146701) AND `source_type` = 9;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(3143700,9,0,0,0,0,100,0,0,0,0,0,0,75,42648,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Forsaken Refugee - On Script - Add Aura ''Sleeping Sleep'' (42648)'),
(3146700,9,0,0,0,0,100,0,0,0,0,0,0,75,42648,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Forsaken Refugee - On Script - Add Aura ''Sleeping Sleep'' (42648)'),
(3143701,9,0,0,0,0,100,0,0,0,0,0,0,90,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Forsaken Refugee - On Script - Set ''UNIT_STAND_STATE_SIT'''),
(3146701,9,0,0,0,0,100,0,0,0,0,0,0,90,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Forsaken Refugee - On Script - Set ''UNIT_STAND_STATE_SIT''');
-- Additional creatures
DELETE FROM `creature` WHERE `guid` BETWEEN 3108763 AND 3108775;
INSERT INTO `creature` (`guid`,`id`,`map`,`zoneId`,`areaId`,`spawnMask`,`phaseMask`,`modelid`,`equipment_id`,`position_x`,`position_y`,`position_z`,`orientation`,`spawntimesecs`,`spawndist`,`currentwaypoint`,`curhealth`,`curmana`,`MovementType`,`npcflag`,`unit_flags`,`dynamicflags`,`VerifiedBuild`)
VALUES
(3108763,31412,1,1637,1637,1,64,0,0,1913.81,-4127.87,43.23,0.147480,300,0,0,1,0,0,0,0,0,0), -- Thrall
(3108764,31419,1,1637,1637,1,64,0,0,1920.589233,-4130.980469,43.090080,1.741838,300,0,0,1,0,0,0,0,0,0), -- Sylvanas
(3108765,32367,1,1637,1637,1,64,0,0,1909.64,-4139.34,40.6099,6.04237,300,0,0,1,0,0,0,0,0,0), -- Kor'kron Elite
(3108766,32367,1,1637,1637,1,64,0,0,1931.32,-4136.56,40.6125,4.01604,300,0,0,1,0,0,0,0,0,0), -- Kor'kron Elite
(3108767,32367,1,1637,1637,1,64,0,0,1931.97,-4154.32,40.6246,1.6245,300,0,0,1,0,0,0,0,0,0), -- Kor'kron Elite
(3108768,32367,1,1637,1637,1,64,0,0,1910.9,-4154.71,40.6308,1.58916,300,0,0,1,0,0,0,0,0,0), -- Kor'kron Elite
(3108769,31433,1,1637,1637,1,192,0,1,1597.02,-4395.84,8.61465,0.664267,300,0,0,1003,0,0,0,0,0,0), -- Gryshka
(3108770,31434,1,1637,1637,1,192,0,0,1596.92,-4404.38,7.44287,0.664267,300,0,0,1395,0,0,0,0,0,0), -- Orc Commoners
(3108771,31434,1,1637,1637,1,192,0,0,1599.55,-4403.68,8.18324,0.664267,300,0,0,2292,0,0,0,0,0,0),
(3108772,31434,1,1637,1637,1,192,0,0,1594.69,-4402.98,6.7853,0.764151,300,0,0,1110,0,0,0,0,0,0),
(3108773,31434,1,1637,1637,1,192,0,0,1594.08,-4399.7,6.717,0.664267,300,0,0,955,0,0,0,0,0,0),
(3108774,31434,1,1637,1637,1,192,0,0,1597.56,-4400.02,7.71554,0.862326,300,0,0,247,0,0,0,0,0,0),
(3108775,31434,1,1637,1637,1,192,0,0,1595.05,-4397.02,7.80377,0.622779,300,0,0,71,0,0,0,0,0,0);
-- Waypoints for Runthak and Thrall (Horde phase)
DELETE FROM `waypoints` WHERE `entry` IN (314310,314120);
INSERT INTO `waypoints`
(`entry`,`pointid`,`position_x`,`position_y`,`position_z`,`point_comment`)
VALUES
(314310,1,1601.677856,-4390.092773,10.024803,'Runthak'),
(314310,2,1607.239624,-4397.162109,10.247937,'Runthak'),
(314120,1,1923.388672,-4126.897949,43.180893,'Thrall'),
(314120,2,1916.156494,-4127.158691,43.197136,'Thrall');
-- Runthak
DELETE FROM `smart_scripts` WHERE `entryorguid` = 31431 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(31431,0,0,0,63,0,100,1,0,0,0,0,0,53,0,314310,1,0,0,2,1,0,0,0,0,0,0,0,0,'Runthak - On Created - Start Waypoint Movement'),
(31431,0,1,0,10,0,100,1,1,20,0,0,1,80,3143100,2,0,0,0,0,1,0,0,0,0,0,0,0,0,'Runthak - On OOC LoS Player Only - Run Script - No Repeat'),
(31431,0,2,0,10,0,100,0,1,20,80000,80000,1,80,3143100,2,0,0,0,0,1,0,0,0,0,0,0,0,0,'Runthak - On OOC LoS Player Only - Run Script (Cooldown 80s)');
DELETE FROM `smart_scripts` WHERE `entryorguid` = 3143100 AND `source_type` = 9;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(3143100,9,0,0,0,0,100,0,2000,2000,0,0,0,1,0,0,0,0,0,0,11,31433,50,0,0,0,0,0,0,'Runthak - On Script - Say Line 0 (Gryshka)'),
(3143100,9,1,0,0,0,100,0,0,0,0,0,0,54,55000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Runthak - On Script - Pause Waypoint Movement'),
(3143100,9,2,0,0,0,100,0,0,0,0,0,0,66,0,0,0,0,0,0,11,31433,50,0,0,0,0,0,0,'Runthak - On Script - Set Orientation (Gryshka)'),
(3143100,9,3,0,0,0,100,0,4500,4500,0,0,0,1,0,0,0,0,0,0,11,31425,50,0,0,0,0,0,0,'Runthak - On Script - Say Line 0 (Olvia)'),
(3143100,9,4,0,0,0,100,0,4500,4500,0,0,0,1,0,0,0,0,0,0,11,31427,50,0,0,0,0,0,0,'Runthak - On Script - Say Line 0 (Felika)'),
(3143100,9,5,0,0,0,100,0,4500,4500,0,0,0,1,0,0,0,0,0,0,11,31430,50,0,0,0,0,0,0,'Runthak - On Script - Say Line 0 (Thathung)'),
(3143100,9,6,0,0,0,100,0,4500,4500,0,0,0,1,0,0,0,0,0,0,11,31429,50,0,0,0,0,0,0,'Runthak - On Script - Say Line 0 (Sana)'),
(3143100,9,7,0,0,0,100,0,4500,4500,0,0,0,1,1,0,0,0,0,0,11,31433,50,0,0,0,0,0,0,'Runthak - On Script - Say Line 1 (Gryshka)'),
(3143100,9,8,0,0,0,100,0,4500,4500,0,0,0,1,0,0,0,0,0,0,11,31423,50,0,0,0,0,0,0,'Runthak - On Script - Say Line 0 (Kaja)'),
(3143100,9,9,0,0,0,100,0,4500,4500,0,0,0,1,1,0,0,0,0,0,11,31427,50,0,0,0,0,0,0,'Runthak - On Script - Say Line 1 (Felika)'),
(3143100,9,10,0,0,0,100,0,4500,4500,0,0,0,1,1,0,0,0,0,0,11,31425,50,0,0,0,0,0,0,'Runthak - On Script - Say Line 1 (Olvia)'),
(3143100,9,11,0,0,0,100,0,4500,4500,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Runthak - On Script - Say Line 0'),
(3143100,9,12,0,0,0,100,0,1500,1500,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Runthak - On Script - Say Line 1'),
(3143100,9,13,0,0,0,100,0,4500,4500,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Runthak - On Script - Say Line 2'),
(3143100,9,14,0,0,0,100,0,4500,4500,0,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Runthak - On Script - Say Line 3');
-- Sylvanas
DELETE FROM `smart_scripts` WHERE `entryorguid` = 31419 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(31419,0,0,0,25,0,100,0,0,0,0,0,0,90,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Sylvanas - On Reset - Set ''UNIT_STAND_STATE_KNEEL'''),
(31419,0,1,0,34,0,100,0,8,2,0,0,0,90,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Sylvanas - On Movement Inform - Set ''UNIT_STAND_STATE_KNEEL''');
DELETE FROM `smart_scripts` WHERE `entryorguid` = 3141900 AND `source_type` = 9;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(3141900,9,0,0,0,0,100,0,5000,5000,0,0,0,66,0,0,0,0,0,0,11,32364,50,0,0,0,0,0,0,'Sylvanas - On Script - Set Orientation (Jaina)'),
(3141900,9,1,0,0,0,100,0,1000,1000,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Sylvanas - On Script - Say Line 0'),
(3141900,9,2,0,0,0,100,0,10000,10000,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Sylvanas - On Script - Say Line 1');
-- Assign the correct Sylvanas creature template
UPDATE `creature` SET `id` = 31419 WHERE `guid` = 1976217;
-- Prevent executing the event after the quests "Herald of War" (Horde) or "Fate,Up Against Your Will" (Alliance) are finished
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` IN (31412,32363);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(22,2,31412,0,0,28,0,13257,0,0,0,0,0,'','Quest ''Herald of War'' complete, but not yet rewarded - Enable Thrall Event Script (Horde)'),
(22,3,31412,0,0,28,0,13257,0,0,0,0,0,'','Quest ''Herald of War'' complete, but not yet rewarded - Enable Thrall Event Script (Horde)'),
(22,1,32363,0,0,28,0,13369,0,0,0,0,0,'','Quest ''Fate,Up Against Your Will'' complete, but not yet rewarded - Enable Thrall Event Script (Alliance)'),
(22,2,32363,0,0,28,0,13369,0,0,0,0,0,'','Quest ''Fate,Up Against Your Will'' complete, but not yet rewarded - Enable Thrall Event Script (Alliance)');
-- Thrall / Jaina Event - Horde version
DELETE FROM `smart_scripts` WHERE `entryorguid` = 31412 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(31412,0,0,0,25,0,100,1,0,0,0,0,0,53,0,314120,1,0,0,2,1,0,0,0,0,0,0,0,0,'Thrall - On Reset - Start Waypoint Movement'),
(31412,0,1,0,10,0,100,1,1,5,0,0,1,80,3141200,2,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On OOC LoS Player Only - Run Script - No Repeat'),
(31412,0,2,0,10,0,100,0,1,5,170000,170000,1,80,3141200,2,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On OOC LoS Player Only - Run Script (Cooldown 170s)');
DELETE FROM `smart_scripts` WHERE `entryorguid` = 3141200 AND `source_type` = 9;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(3141200,9,0,0,0,0,100,0,0,0,0,0,0,54,142000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Pause Waypoint Movement'),
(3141200,9,1,0,0,0,100,0,0,0,0,0,0,48,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Set Active On'), -- Set active or otherwise the event won't be updated if no player is near
(3141200,9,2,0,0,0,100,0,0,0,0,0,0,59,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Set Run On'),
(3141200,9,3,0,0,0,100,0,0,0,0,0,0,201,1,0,0,0,0,0,1,0,0,0,0,1920.71,-4136.74,40.5393,4.84791,'Thrall - On Script - Move To Pos'),
(3141200,9,4,0,0,0,100,0,0,0,0,0,0,12,31640,3,132000,0,0,0,8,0,0,0,0,1921.34,-4146.44,40.4888,1.67552,'Thrall - On Script - Summon Portal to Stormwind'),
(3141200,9,5,0,0,0,100,0,0,0,0,0,0,12,32364,3,130000,0,0,0,8,0,0,0,0,1921.34,-4146.44,40.4888,1.67552,'Thrall - On Script - Summon Jaina'),
(3141200,9,6,0,0,0,100,0,0,0,0,0,0,86,55761,0,11,32364,50,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Cross Cast ''Jaina'' (Air Revenant Entrance)'),
(3141200,9,7,0,0,0,100,0,0,0,0,0,0,59,1,0,0,0,0,0,11,32367,50,0,0,0,0,0,0,'Thrall - On Script - Set Run On (Kor''kron Elite)'),
(3141200,9,8,0,0,0,100,0,0,0,0,0,0,59,0,0,0,0,0,0,11,32364,50,0,0,0,0,0,0,'Thrall - On Script - Set Run Off (Jaina)'),
(3141200,9,9,0,0,0,100,0,0,0,0,0,0,59,0,0,0,0,0,0,11,31419,50,0,0,0,0,0,0,'Thrall - On Script - Set Run Off (Sylvanas)'),
(3141200,9,10,0,0,0,100,0,0,0,0,0,0,201,1,0,0,0,0,0,11,32367,50,0,0,1921.34,-4146.44,40.4888,1.67552,'Thrall - On Script - Move To Pos (Kor''kron Elite)'),
(3141200,9,11,0,0,0,100,0,2000,2000,0,0,0,59,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Set Run Off'),
(3141200,9,12,0,0,0,100,0,0,0,0,0,0,91,8,0,0,0,0,0,11,31419,50,0,0,0,0,0,0,'Thrall - On Script - Remove ''UNIT_STAND_STATE_KNEEL'' (Sylvanas)'),
(3141200,9,13,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Say Line 0'),
(3141200,9,14,0,0,0,100,0,700,700,0,0,0,24,0,0,0,0,0,0,11,32367,50,0,0,0,0,0,0,'Thrall - On Script - Enter Evade Target (Kor''kron Elite)'),
(3141200,9,15,0,0,0,100,0,1000,1000,0,0,0,66,0,0,0,0,0,0,11,32364,50,0,0,0,0,0,0,'Thrall - On Script - Set Orientation (Jaina)'),
(3141200,9,16,0,0,0,100,0,4000,4000,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Say Line 1'),
(3141200,9,17,0,0,0,100,0,1000,1000,0,0,0,201,1,0,0,0,0,0,11,32364,50,0,0,1920.86,-4139.99,40.588,1.62,'Thrall - On Script - Move To Pos (Jaina)'),
(3141200,9,18,0,0,0,100,0,4000,4000,0,0,0,1,0,0,0,0,0,0,11,32364,50,0,0,0,0,0,0,'Thrall - On Script - Say Line 0 (Jaina)'),
(3141200,9,19,0,0,0,100,0,6000,6000,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Say Line 2'),
(3141200,9,20,0,0,0,100,0,6000,6000,0,0,0,201,1,0,0,0,0,0,11,31419,50,0,0,1918.1,-4137.15,40.578,4.87,'Thrall - On Script - Move To Pos (Sylvanas)'),
(3141200,9,21,0,0,0,100,0,0,0,0,0,0,80,3141900,2,0,0,0,0,11,31419,50,0,0,0,0,0,0,'Thrall - On Script - Run Script (Sylvanas)'),
(3141200,9,22,0,0,0,100,0,35000,35000,0,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Say Line 3'),
(3141200,9,23,0,0,0,100,0,5000,5000,0,0,0,1,4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Say Line 4'),
(3141200,9,24,0,0,0,100,0,9000,9000,0,0,0,1,5,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Say Line 5'),
(3141200,9,25,0,0,0,100,0,7000,7000,0,0,0,1,6,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Say Line 6'),
(3141200,9,26,0,0,0,100,0,6000,6000,0,0,0,1,1,0,0,0,0,0,11,32364,50,0,0,0,0,0,0,'Thrall - On Script - Say Line 1 (Jaina)'),
(3141200,9,27,0,0,0,100,0,4000,4000,0,0,0,1,2,0,0,0,0,0,11,32364,50,0,0,0,0,0,0,'Thrall - On Script - Say Line 2 (Jaina)'),
(3141200,9,28,0,0,0,100,0,16000,16000,0,0,0,1,3,0,0,0,0,0,11,32364,50,0,0,0,0,0,0,'Thrall - On Script - Say Line 3 (Jaina)'),
(3141200,9,29,0,0,0,100,0,11000,11000,0,0,0,1,4,0,0,0,0,0,11,32364,50,0,0,0,0,0,0,'Thrall - On Script - Say Line 4 (Jaina)'),
(3141200,9,30,0,0,0,100,0,8000,8000,0,0,0,201,1,0,0,0,0,0,11,32364,50,0,0,1921.34,-4146.44,40.4888,1.67552,'Thrall - On Script - Move To Pos (Jaina)'),
(3141200,9,31,0,0,0,100,0,9000,9000,0,0,0,1,7,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Say Line 7'),
(3141200,9,32,0,0,0,100,0,1000,1000,0,0,0,24,0,0,0,0,0,0,11,31419,50,0,0,0,0,0,0,'Thrall - On Script - Enter Evade Target (Sylvanas)'),
(3141200,9,33,0,0,0,100,0,33000,33000,0,0,0,48,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Set Active Off');
-- Thrall / Jaina Event - Alliance version
DELETE FROM `smart_scripts` WHERE `entryorguid` = 32363 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(32363,0,0,0,10,0,100,1,1,50,0,0,1,80,3236300,2,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On OOC LoS Player Only - Run Script - No Repeat'),
(32363,0,1,0,10,0,100,0,1,50,170000,170000,1,80,3236300,2,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On OOC LoS Player Only - Run Script (Cooldown 170s)');
DELETE FROM `smart_scripts` WHERE `entryorguid` = 3236300 AND `source_type` = 9;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(3236300,9,0,0,0,0,100,0,0,0,0,0,0,48,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Set Active On'), -- Set active or otherwise the event won't be updated if no player is near
(3236300,9,1,0,0,0,100,0,0,0,0,0,0,12,32364,3,128000,0,0,0,8,0,0,0,0,1921.34,-4146.44,40.4888,1.67552,'Thrall - On Script - Summon Jaina'),
(3236300,9,2,0,0,0,100,0,0,0,0,0,0,86,55761,0,11,32364,50,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Cross Cast ''Jaina'' (Air Revenant Entrance)'),
(3236300,9,3,0,0,0,100,0,0,0,0,0,0,59,1,0,0,0,0,0,11,32367,50,0,0,0,0,0,0,'Thrall - On Script - Set Run On (Kor''kron Elite)'),
(3236300,9,4,0,0,0,100,0,0,0,0,0,0,59,0,0,0,0,0,0,11,32364,50,0,0,0,0,0,0,'Thrall - On Script - Set Run Off (Jaina)'),
(3236300,9,5,0,0,0,100,0,0,0,0,0,0,59,0,0,0,0,0,0,11,31419,50,0,0,0,0,0,0,'Thrall - On Script - Set Run Off (Sylvanas)'),
(3236300,9,6,0,0,0,100,0,0,0,0,0,0,201,1,0,0,0,0,0,11,32367,50,0,0,1921.34,-4146.44,40.4888,1.67552,'Thrall - On Script - Move To Pos (Kor''kron Elite)'),
(3236300,9,7,0,0,0,100,0,0,0,0,0,0,91,8,0,0,0,0,0,11,31419,50,0,0,0,0,0,0,'Thrall - On Script - Remove ''UNIT_STAND_STATE_KNEEL'' (Sylvanas)'),
(3236300,9,8,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Say Line 0'),
(3236300,9,9,0,0,0,100,0,1700,1700,0,0,0,24,0,0,0,0,0,0,11,32367,50,0,0,0,0,0,0,'Thrall - On Script - Enter Evade Target (Kor''kron Elite)'),
(3236300,9,10,0,0,0,100,0,4000,4000,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Say Line 1'),
(3236300,9,11,0,0,0,100,0,1000,1000,0,0,0,201,1,0,0,0,0,0,11,32364,50,0,0,1920.86,-4139.99,40.588,1.62,'Thrall - On Script - Move To Pos (Jaina)'),
(3236300,9,12,0,0,0,100,0,4000,4000,0,0,0,1,0,0,0,0,0,0,11,32364,50,0,0,0,0,0,0,'Thrall - On Script - Say Line 0 (Jaina)'),
(3236300,9,13,0,0,0,100,0,6000,6000,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Say Line 2'),
(3236300,9,14,0,0,0,100,0,6000,6000,0,0,0,201,1,0,0,0,0,0,11,31419,50,0,0,1918.1,-4137.15,40.578,4.87,'Thrall - On Script - Move To Pos (Sylvanas)'),
(3236300,9,15,0,0,0,100,0,0,0,0,0,0,80,3141900,2,0,0,0,0,11,31419,50,0,0,0,0,0,0,'Thrall - On Script - Run Script (Sylvanas)'),
(3236300,9,16,0,0,0,100,0,35000,35000,0,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Say Line 3'),
(3236300,9,17,0,0,0,100,0,5000,5000,0,0,0,1,4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Say Line 4'),
(3236300,9,18,0,0,0,100,0,9000,9000,0,0,0,1,5,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Say Line 5'),
(3236300,9,19,0,0,0,100,0,7000,7000,0,0,0,1,6,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Say Line 6'),
(3236300,9,20,0,0,0,100,0,6000,6000,0,0,0,1,1,0,0,0,0,0,11,32364,50,0,0,0,0,0,0,'Thrall - On Script - Say Line 1 (Jaina)'),
(3236300,9,21,0,0,0,100,0,4000,4000,0,0,0,1,2,0,0,0,0,0,11,32364,50,0,0,0,0,0,0,'Thrall - On Script - Say Line 2 (Jaina)'),
(3236300,9,22,0,0,0,100,0,16000,16000,0,0,0,1,3,0,0,0,0,0,11,32364,50,0,0,0,0,0,0,'Thrall - On Script - Say Line 3 (Jaina)'),
(3236300,9,23,0,0,0,100,0,11000,11000,0,0,0,1,4,0,0,0,0,0,11,32364,50,0,0,0,0,0,0,'Thrall - On Script - Say Line 4 (Jaina)'),
(3236300,9,24,0,0,0,100,0,8000,8000,0,0,0,201,1,0,0,0,0,0,11,32364,50,0,0,1921.34,-4146.44,40.4888,1.67552,'Thrall - On Script - Move To Pos (Jaina)'),
(3236300,9,25,0,0,0,100,0,3000,3000,0,0,0,1,7,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Say Line 7'),
(3236300,9,26,0,0,0,100,0,1000,1000,0,0,0,24,0,0,0,0,0,0,11,31419,50,0,0,0,0,0,0,'Thrall - On Script - Enter Evade Target (Sylvanas)'),
(3236300,9,27,0,0,0,100,0,41000,41000,0,0,0,48,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Thrall - On Script - Set Active Off');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2019_03_26_01 -> 2019_03_27_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_26_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_26_01 2019_03_27_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553556583989604427'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553556583989604427');
UPDATE `creature_template` SET `InhabitType` = 7 WHERE `entry` = 25849;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,33 @@
-- DB update 2019_03_27_00 -> 2019_03_27_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_27_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_27_00 2019_03_27_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553669941222108220'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553669941222108220');
UPDATE `smart_scripts` SET `link` = 5 WHERE `entryorguid` = 25969 AND `source_type` = 0 AND `id` = 4;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 25969 AND `source_type` = 0 AND `id` = 5;
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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`)
VALUES
(25969,0,5,0,61,0,100,0,0,0,0,0,0,41,7000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Jenny - Linked - Force Despawn');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,34 @@
-- DB update 2019_03_27_01 -> 2019_03_28_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_27_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_27_01 2019_03_28_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553712779275952300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553712779275952300');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=1050;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(15, 1050, 0, 0, 0, 2, 0, 9281, 1, 0, 0, 0, 0, '', 'Display option if player has red card'),
(15, 1050, 1, 0, 0, 2, 0, 9281, 1, 0, 0, 0, 0, '', 'Display option if player has red card'),
(15, 1050, 1, 0, 0, 2, 0, 9327, 1, 0, 0, 0, 0, '', 'Display option if player has delta card'),
(15, 1050, 1, 0, 0, 25, 0, 3959, 0, 0, 1, 0, 0, '', 'Display option if player has no Discombobulator Ray spell');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,53 @@
-- DB update 2019_03_28_00 -> 2019_03_30_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_28_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_28_00 2019_03_30_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553731839786525000'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553731839786525000');
DELETE FROM `creature` WHERE `guid` IN (3110330, 35237);
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES
(3110330, 7750, 0, 0, 0, 1, 2, 0, 1, -10630.2, -2988.19, 28.8757, 4.93301, 300, 0, 0, 3399, 0, 0, 0, 0, 0, '', 0),
(35237, 7572, 0, 0, 0, 1, 1, 0, 1, -10632.3, -3009.37, 29.2653, 6.19592, 300, 0, 0, 4121, 0, 0, 0, 0, 0, '', 0);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=840 AND `SourceEntry`=2 AND `SourceId`=0 AND `ElseGroup`=1 AND `ConditionTypeOrReference`=29 AND `ConditionTarget`=0 AND `ConditionValue1`=7750 AND `ConditionValue2`=40 AND `ConditionValue3`=0;
-- Creature Corporal Thund Splithoof 7750 SAI
SET @ENTRY := 7750;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY;
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
(@ENTRY, 0, 0, 0, 20, 0, 100, 0, 2701, 0, 0, 0, 44, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'When player rewards quest 2701 - Action invoker: Set phase id to 1 // ');
-- Creature Fallen Hero of the Horde 7572 SAI
SET @ENTRY := 7572;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY;
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
(@ENTRY, 0, 0, 0, 62, 0, 100, 1, 842, 0, 0, 0, 26, 2784, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 842 selected - Action invoker: Call event happened from quest 2784 for the whole group // Fallen Hero of the Horde - On Gossip Option 0 Selected - Quest Credit \'Fall From Grace\''),
(@ENTRY, 0, 1, 0, 62, 0, 100, 1, 881, 0, 0, 0, 26, 2801, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 881 selected - Action invoker: Call event happened from quest 2801 for the whole group // Fallen Hero of the Horde - On Gossip Option 1 Selected - Quest Credit \'A Tale of Sorrow\''),
(@ENTRY, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On link - Action invoker: Close gossip // Fallen Hero of the Horde - On Gossip Option 0 Selected - Close Gossip'),
(@ENTRY, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On link - Action invoker: Close gossip // Fallen Hero of the Horde - On Gossip Option 1 Selected - Close Gossip'),
(@ENTRY, 0, 4, 0, 19, 0, 100, 0, 2702, 0, 0, 0, 44, 3, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'When player accepts quest 2702 - Action invoker: Set phase id to 3 // '),
(@ENTRY, 0, 5, 0, 62, 0, 100, 0, 840, 2, 0, 0, 44, 3, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 2 from menu 840 selected - Action invoker: Set phase id to 3 // ');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,36 @@
-- DB update 2019_03_30_00 -> 2019_04_02_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_03_30_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_03_30_00 2019_04_02_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1537830795157301100'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO version_db_world (`sql_rev`) VALUES ('1537830795157301100');
-- Shattered Sun Marksman SAI
SET @ENTRY := 24938;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,11,0,100,1,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Shattered Sun Marksman - On Respawn - Disable Combat Movement (No Repeat)'),
(@ENTRY,0,1,0,10,0,100,1,0,70,4500,8000,11,74414,0,0,0,0,0,9,25192,0,50,0,0,0,0,'Shattered Sun Marksman - Within 0-70 Range Out of Combat LoS - Cast \'Shoot\' (No Repeat)'),
(@ENTRY,0,2,0,25,0,100,0,0,0,0,0,40,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Shattered Sun Marksman - On Reset - Set Sheath Ranged');
UPDATE `smart_scripts` SET `action_param1` = 42580 WHERE `entryorguid` IN (-65694, -65695, -65696, -65697, -65698, -65699, -65700, -65702) AND `source_type` = 0;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,33 @@
-- DB update 2019_04_02_00 -> 2019_04_02_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_02_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_02_00 2019_04_02_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553973207096786300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553973207096786300');
DELETE FROM gameobject_loot_template WHERE Item=2835 AND Entry IN (18092, 1502, 1735, 2626);
INSERT INTO gameobject_loot_template (Entry, Item, Reference, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES
(18092, 2835, 0, 88, 0, 1, 0, 1, 6, NULL),
(1502, 2835, 0, 80, 0, 1, 0, 1, 11, NULL),
(1735, 2835, 0, 80, 0, 1, 0, 1, 6, NULL),
(2626, 2835, 0, 80, 0, 1, 0, 1, 6, NULL);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,38 @@
-- DB update 2019_04_02_01 -> 2019_04_02_02
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_02_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_02_01 2019_04_02_02 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553974864385673300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553974864385673300');
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` IN (1057, 6412);
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE source_type = 0 AND entryorguid IN (1057, 6412);
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
(1057, 0, 0, 0, 11, 0, 100, 1, 0, 0, 0, 0, 11, 8853, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Bonewarder - On Respawn - Cast 8853 (No Repeat)'),
(1057, 0, 1, 0, 4, 0, 100, 1, 1000, 1000, 0, 0, 11, 13787, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Bonewarder - On Aggro - Cast 13787 (No Repeat)'),
(1057, 0, 2, 0, 0, 0, 100, 0, 3000, 4000, 120000, 120000, 11, 6205, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Bonewarder - In Combat - Cast 6205'),
(1057, 0, 3, 0, 0, 0, 100, 0, 5000, 6000, 15000, 15000, 11, 707, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Bonewarder - In Combat - Cast 707'),
(6412, 0, 0, 0, 6, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skeleton - On Just Died - Despawn In 5000 ms');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,68 @@
-- DB update 2019_04_02_02 -> 2019_04_02_03
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_02_02';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_02_02 2019_04_02_03 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553769607243300300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553769607243300300');
-- Spirit of Olum SAI
DELETE FROM `gossip_menu` WHERE `MenuID`=8750 AND `TextID`=11082;
INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES (8750, 11082);
DELETE FROM `gossip_menu_option` WHERE `MenuID` IN (8750) AND `OptionID`=2;
INSERT INTO `gossip_menu_option` (`MenuID`,`OptionID`,`OptionIcon`,`OptionText`, `OptionBroadcastTextID`, `OptionType`,`OptionNpcFlag`,`ActionMenuID`) VALUES
(8750,2,0,"I'm ready. Take me to the Chamber of Command.",21879,1,1,0);
DELETE FROM `spell_target_position` WHERE `id`=41570;
INSERT INTO `spell_target_position` (`id`,`MapID`,`PositionX`,`PositionY`,`PositionZ`,`Orientation`) VALUES
(41570, 564, 603.42, 305.982, 271.9, 0);
UPDATE `creature_template` SET `ScriptName`='', `AIName`='SmartAI' WHERE `entry`=23411;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (23411) 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
(23411,0,0,1,62,0,100,0,8750,1,0,0,85,41566,0,0,0,0,0,7,0,0,0,0,0,0,0,"Spirit of Olum - On gossip select - cast spell"),
(23411,0,1,0,61,0,100,0,0,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Spirit of Olum - On gossip select - Close gossip"),
(23411,0,2,3,62,0,100,0,8750,2,0,0,85,41570,0,0,0,0,0,7,0,0,0,0,0,0,0,"Spirit of Olum - On gossip select - cast spell"),
(23411,0,3,0,61,0,100,0,0,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Spirit of Olum - On gossip select - Close gossip");
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` IN (14,15) AND `SourceGroup`=8750;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(15, 8750, 1, 0, 0, 13, 1, 1, 3, 2, 0, 0, 0, '', 'Show options for gossip only if SUPREMUS done'),
(15, 8750, 2, 0, 0, 13, 1, 7, 3, 2, 0, 0, 0, '', 'Show options for gossip only if COUNCIL done'),
(14, 8750, 11082, 0, 0, 13, 1, 1, 3, 2, 1, 0, 0, '', 'Show gossip text only if SUPREMUS not done'),
(14, 8750, 11081, 0, 0, 13, 1, 1, 3, 2, 0, 0, 0, '', 'Show gossip text only if SUPREMUS done');
-- Spirit of Udalo SAI
DELETE FROM `gossip_menu_option` WHERE `MenuID` IN (8749) AND `OptionID`=1;
INSERT INTO `gossip_menu_option` (`MenuID`,`OptionID`,`OptionIcon`,`OptionText`, `OptionBroadcastTextID`, `OptionType`,`OptionNpcFlag`,`ActionMenuID`) VALUES
(8749,1,0,"I'm ready. Take me to the Chamber of Command.",21879,1,1,0);
uPDATE `creature_template` SET `ScriptName`='', `AIName`='SmartAI' WHERE `entry`=23410;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (23410) 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
(23410,0,0,1,62,0,100,0,8749,1,0,0,85,41570,0,0,0,0,0,7,0,0,0,0,0,0,0,"Spirit of Udalo - On gossip select - cast spell"),
(23410,0,1,0,61,0,100,0,0,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Spirit of Udalo - On gossip select - Close gossip");
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` IN (15) AND `SourceGroup`=8749;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(15, 8749, 1, 0, 0, 13, 1, 7, 3, 2, 0, 0, 0, '', 'Show options for gossip only if COUNCIL done');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,37 @@
-- DB update 2019_04_02_03 -> 2019_04_05_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_02_03';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_02_03 2019_04_05_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1554143974096714000'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1554143974096714000');
-- Fallen Hero of the Horde SAI
SET @ENTRY := 7572;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=7572;
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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(7572, 0, 0, 2, 62, 0, 100, 0, 842, 0, 0, 0, 0, 26, 2784, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 842 selected - Action invoker: Call event happened from quest 2784 for the whole group // Fallen Hero of the Horde - On Gossip Option 0 Selected - Quest Credit \'Fall From Grace\''),
(7572, 0, 1, 2, 62, 0, 100, 0, 881, 0, 0, 0, 0, 26, 2801, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 0 from menu 881 selected - Action invoker: Call event happened from quest 2801 for the whole group // Fallen Hero of the Horde - On Gossip Option 1 Selected - Quest Credit \'A Tale of Sorrow\''),
(7572, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'On link - Action invoker: Close gossip // Fallen Hero of the Horde - Close Gossip'),
(7572, 0, 3, 0, 19, 0, 100, 0, 2702, 0, 0, 0, 0, 44, 3, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'When player accepts quest 2702 - Action invoker: Set phase id to 3 // '),
(7572, 0, 4, 0, 62, 0, 100, 0, 840, 2, 0, 0, 0, 44, 3, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 2 from menu 840 selected - Action invoker: Set phase id to 3 // ');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,29 @@
-- DB update 2019_04_05_00 -> 2019_04_05_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_05_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_05_00 2019_04_05_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1554472237843824900'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1554472237843824900');
DELETE FROM `smart_scripts` WHERE `entryorguid`=1439200 AND `source_type`=9 AND `id`=12 AND `link`=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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES (1439200, 9, 12, 0, 1, 0, 100, 0, 30000, 30000, 0, 0, 0, 41, 7200000, 0, 0, 0, 0, 0, 14, 0, 179881, 0, 0, 0, 0, 0, 0, 'Despawn gameobject In 7200000 ms');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,115 @@
-- DB update 2019_04_05_01 -> 2019_04_05_02
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_05_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_05_01 2019_04_05_02 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1554419361319456000'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1554419361319456000');
DELETE FROM `creature_text` WHERE `creatureid`=25514;
INSERT INTO `creature_text` (`creatureid`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(25514,0,0,'Frozen and destroyed. This is all your fleshy corpse is good for.',12,0,100,0,0,0,24727,0,'Rocknar'),
(25514,0,1,'You are not welcome here. Die!',12,0,100,0,0,0,24728,0,'Rocknar'),
(25514,0,2,'Your presence unbalances the land. You must be removed!',12,0,100,0,0,0,24729,0,'Rocknar');
-- Rocknar SAI
SET @ENTRY := 25514;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,1,25,0,100,0,0,0,0,0,11,42617,0,0,0,0,0,1,0,0,0,0,0,0,0,'Rocknar - On Reset - Cast ''Vertex Color Lt. Blue'''),
(@ENTRY,0,1,0,21,0,100,1,0,0,0,0,11,45776,0,0,0,0,0,1,0,0,0,0,0,0,0,'Rocknar - On Reached Home - Cast ''Ice Block'' (No Repeat)'),
(@ENTRY,0,2,3,4,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Rocknar - On Aggro - Say Line 0'),
(@ENTRY,0,3,0,61,0,100,0,0,0,0,0,28,45776,0,0,0,0,0,1,0,0,0,0,0,0,0,'Rocknar - On Aggro - Remove Aura ''Ice Block'''),
(@ENTRY,0,4,0,0,0,100,0,0,3000,8000,10000,11,50094,0,0,0,0,0,2,0,0,0,0,0,0,0,'Rocknar - In Combat - Cast ''Ice Spike'''),
(@ENTRY,0,5,0,11,0,100,1,0,0,0,0,11,45776,0,0,0,0,0,1,0,0,0,0,0,0,0,'Rocknar - On Respawn - Cast ''Ice Block'' (No Repeat)'),
(@ENTRY,0,6,0,0,0,100,0,4000,7000,14000,16000,11,22693,0,0,0,0,0,1,0,0,0,0,0,0,0,'Rocknar - In Combat - Cast ''Harden Skin''');
DELETE FROM `creature_text` WHERE `creatureid`=25467;
INSERT INTO `creature_text` (`creatureid`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(25467,0,0,'No hurt the lifegiver!',12,0,100,0,4000,0,24689,0,'Bloodspore Harvester'),
(25467,0,1,'Protect lifegiver!',12,0,100,0,4000,0,24691,0,'Bloodspore Harvester'),
(25467,0,2,'No touch spores!',12,0,100,0,4000,0,24690,0,'Bloodspore Harvester');
-- Bloodspore Harvester SAI
SET @ENTRY := 25467;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,11,45987,0,0,0,0,0,1,0,0,0,0,0,0,0,'Bloodspore Harvester - On Reset - Cast ''Bloodspore Malaise'''),
(@ENTRY,0,1,0,0,0,100,0,3000,6000,10000,13000,11,50380,0,0,0,0,0,2,0,0,0,0,0,0,0,'Bloodspore Harvester - In Combat - Cast ''Bloodspore Haze'''),
(@ENTRY,0,2,0,4,0,33,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Bloodspore Harvester - On Aggro - Say Line 0');
DELETE FROM `creature_text` WHERE `creatureid`=25468;
INSERT INTO `creature_text` (`creatureid`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(25468,0,0,'No hurt the lifegiver!',12,0,100,0,4000,0,24689,0,'Bloodspore Roaster'),
(25468,0,1,'Protect lifegiver!',12,0,100,0,4000,0,24691,0,'Bloodspore Roaster'),
(25468,0,2,'No touch spores!',12,0,100,0,4000,0,24690,0,'Bloodspore Roaster');
-- Bloodspore Roaster SAI
SET @ENTRY := 25468;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,1,0,100,0,1000,6000,10000,15000,11,45986,0,0,0,0,0,1,0,0,0,0,0,0,0,'Bloodspore Roaster - Out of Combat - Cast ''Spore Roast'''),
(@ENTRY,0,1,0,0,0,100,0,1000,4000,13000,15000,11,50402,0,0,0,0,0,2,0,0,0,0,0,0,0,'Bloodspore Roaster - In Combat - Cast ''Roast'''),
(@ENTRY,0,2,0,4,0,33,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Bloodspore Roaster - On Aggro - Say Line 0');
DELETE FROM `creature_text` WHERE `creatureid`=25470;
INSERT INTO `creature_text` (`creatureid`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(25470,0,0,'No hurt the lifegiver!',12,0,100,0,4000,0,24689,0,'Bloodspore Firestarter'),
(25470,0,1,'Protect lifegiver!',12,0,100,0,4000,0,24691,0,'Bloodspore Firestarter'),
(25470,0,2,'No touch spores!',12,0,100,0,4000,0,24690,0,'Bloodspore Firestarter'),
(25470,1,3,'Protect lifegiver!',14,0,100,0,4000,0,24691,0,'Bloodspore Firestarter');
-- Bloodspore Firestarter SAI
SET @ENTRY := 25470;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,1,0,100,0,1000,1000,600000,600000,11,45985,1,0,0,0,0,1,0,0,0,0,0,0,0,"Bloodspore Firestarter - Out of Combat - Cast 'Flaming Touch'"),
(@ENTRY,0,1,0,0,0,100,0,0,0,3800,6200,11,20793,0,0,0,0,0,2,0,0,0,0,0,0,0,"Bloodspore Firestarter - In Combat - Cast 'Fireball'"),
(@ENTRY,0,2,0,4,0,33,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Bloodspore Firestarter - On Aggro - Say Line 0"),
(@ENTRY,0,3,0,1,0,33,0,1000,300000,300000,600000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Bloodspore Firestarter - Out of Combat - Say Line 1");
-- Bloodspore Moth
UPDATE `creature_template` SET `InhabitType`=4 WHERE `entry`=25464;
-- D.E.H.T.A. Enforcer
UPDATE `creature_template` SET `InhabitType`=4 WHERE `entry`=25819;
UPDATE `creature` SET `MovementType`=0, `spawndist`=0 WHERE `id`=25819;
SET @NPC:=132984;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,1329840,0,0,0,0, '');
DELETE FROM `waypoint_data` WHERE `id`=1329840;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(1329840,1,3197.389, 5262.509, 59.1744, 5.665670,0,0,0,100,0),
(1329840,2,3205.473, 5261.450, 59.1744, 0.418089,0,0,0,100,0),
(1329840,3,3213.649, 5266.860, 59.1744, 0.630147,0,0,0,100,0),
(1329840,4,3220.222, 5276.440, 59.1744, 1.021275,0,0,0,100,0),
(1329840,5,3219.638, 5285.621, 59.1744, 1.939406,0,0,0,100,0),
(1329840,6,3211.313, 5295.542, 59.1744, 2.873245,0,0,0,100,0),
(1329840,7,3199.114, 5292.031, 59.1744, 3.573035,0,0,0,100,0),
(1329840,8,3193.253, 5282.330, 59.1744, 4.762128,0,0,0,100,0),
(1329840,9,3195.002, 5273.082, 59.1744, 4.700867,0,0,0,100,0);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,27 @@
-- DB update 2019_04_05_02 -> 2019_04_06_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_05_02';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_05_02 2019_04_06_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553547175438159300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553547175438159300');
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_cultist_dark_martyrdom';
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,30 @@
-- DB update 2019_04_06_00 -> 2019_04_06_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_06_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_06_00 2019_04_06_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553699751204186600'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553699751204186600');
DELETE FROM trinity_string WHERE entry IN (712, 713);
INSERT INTO `trinity_string` (`entry`, `content_default`, `content_loc1`, `content_loc2`, `content_loc3`, `content_loc4`, `content_loc5`, `content_loc6`, `content_loc7`, `content_loc8`) VALUES
(712, '|cffff0000[BG Queue Announcer]:|r %s -- [%u-%u] [%u/%u]|r', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,51 @@
-- DB update 2019_04_06_01 -> 2019_04_07_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_06_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_06_01 2019_04_07_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1554113581920680700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1554113581920680700');
-- Field Marshal Afrasiabi SAI
SET @ENTRY := 14721;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,1,20,0,100,0,7782,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,'Field Marshal Afrasiabi - On Quest The Lord of Blackrock Finished - Run Script'),
(@ENTRY,0,1,0,61,0,100,0,7782,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'Field Marshal Afrasiabi - On Quest The Lord of Blackrock Finished - Store Targetlist');
-- Actionlist SAI
SET @ENTRY := 1472100;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,1000,1000,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Field Marshal Afrasiabi - On Script - Remove Npc Flag Questgiver'),
(@ENTRY,9,1,0,0,0,100,0,5000,5000,0,0,1,0,8000,0,0,0,0,12,1,0,0,0,0,0,0,'Field Marshal Afrasiabi - On Script - Say Line 0'),
(@ENTRY,9,2,0,0,0,100,0,8000,8000,0,0,1,1,10000,0,0,0,0,12,1,0,0,0,0,0,0,'Field Marshal Afrasiabi - On Script - Say Line 1'),
(@ENTRY,9,3,0,0,0,100,0,3000,3000,0,0,50,179882,21600,0,0,0,0,8,0,0,0,-8925.57,496.042,103.767,2.42801,'Field Marshal Afrasiabi - On Script - Summon Gameobject The Severed Head of Nefarian'),
(@ENTRY,9,4,0,0,0,100,0,6000,6000,0,0,11,22888,0,0,0,0,0,1,0,0,0,0,0,0,0,'Field Marshal Afrasiabi - On Script - Cast Rallying Cry of the Dragonslayer'),
(@ENTRY,9,5,0,0,0,100,0,1000,1000,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Field Marshal Afrasiabi - On Script - Add Npc Flag Questgiver'),
(@ENTRY,9,6,0,1,0,100,0,30000,30000,0,0,41,7200000,0,0,0,0,0,14,0,179882,0,0,0,0,0,'Field Marshal Afrasiabi - Despawn In 10000 ms');
DELETE FROM `creature_text` WHERE `creatureid` IN (14721);
INSERT INTO `creature_text` (`creatureid`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`, `BroadcastTextId`) VALUES
(14721, 0, 0, 'Citizens of the Alliance, the Lord of Blackrock is slain! Nefarian has been subdued by the combined might of $N and $Ghis:her; allies!', 14, 0, 100, 0, 0, 0, 'Field Marshal Afrasiabi', 9870),
(14721, 1, 0, 'Let your spirits rise! Rally around your champion, bask in $Ghis:her; glory! Revel in the rallying cry of the dragon slayer!', 14, 0, 100, 0, 0, 0, 'Field Marshal Afrasiabi', 9872);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,147 @@
-- DB update 2019_04_07_00 -> 2019_04_09_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_07_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_07_00 2019_04_09_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1554420147566038300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1554420147566038300');
-- Gelkis Windchaser SAI
SET @ENTRY := 4649;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,0,0,100,0,500,1000,3000,4500,11,9532,32,0,0,0,0,2,0,0,0,0,0,0,0,'Gelkis Windchaser - In Combat - Cast \'Lightning Bolt\''),
(@ENTRY,0,1,0,2,0,100,0,10,35,15000,20000,11,959,32,0,0,0,0,1,0,0,0,0,0,0,0,'Gelkis Windchaser - Between 10-35% Health - Cast \'Healing Wave\''),
(@ENTRY,0,2,0,2,0,100,1,1,10,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Gelkis Windchaser - Between 1-10% Health - Flee For Assist (No Repeat)');
-- Gelkis Stamper SAI
SET @ENTRY := 4648;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,9,0,100,0,1,10,3500,5000,11,5568,0,0,0,0,0,2,0,0,0,0,0,0,0,'Gelkis Stamper - Within 1-10 Range - Cast \'Trample\''),
(@ENTRY,0,1,0,2,0,100,1,1,10,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Gelkis Stamper - Between 1-10% Health - Flee For Assist (No Repeat)');
-- Gelkis Scout SAI
SET @ENTRY := 4647;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,9,0,100,0,5,30,2000,2500,11,6660,32,0,0,0,0,2,0,0,0,0,0,0,0,'Gelkis Scout - Within 5-30 Range - Cast \'Shoot\''),
(@ENTRY,0,1,0,2,0,100,1,1,10,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Gelkis Scout - Between 1-10% Health - Flee For Assist (No Repeat)');
-- Gelkis Outrunner SAI
SET @ENTRY := 4646;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,2,0,100,1,1,10,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Gelkis Outrunner - Between 1-10% Health - Flee For Assist (No Repeat)');
-- Gelkis Mauler SAI
SET @ENTRY := 4652;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,2,0,100,1,1,10,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Gelkis Mauler - Between 1-10% Health - Flee For Assist (No Repeat)');
-- Gelkis Earthcaller SAI
SET @ENTRY := 4651;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,0,0,100,0,0,1000,3000,3500,11,20815,32,0,0,0,0,2,0,0,0,0,0,0,0,'Gelkis Earthcaller - In Combat - Cast \'Fireball\''),
(@ENTRY,0,1,0,2,0,100,1,1,10,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Gelkis Earthcaller - Between 1-10% Health - Flee For Assist (No Repeat)');
-- Gelkis Marauder SAI
SET @ENTRY := 4653;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,1,0,100,0,1000,2000,5000,5000,11,7366,32,0,0,0,0,1,0,0,0,0,0,0,0,'Gelkis Marauder - Out of Combat - Cast \'Berserker Stance\''),
(@ENTRY,0,1,0,0,0,100,0,0,1500,5000,5000,11,7366,32,0,0,0,0,1,0,0,0,0,0,0,0,'Gelkis Marauder - In Combat - Cast \'Berserker Stance\''),
(@ENTRY,0,2,0,0,0,100,0,2500,4000,3500,4500,11,15496,0,0,0,0,0,2,0,0,0,0,0,0,0,'Gelkis Marauder - In Combat - Cast \'Cleave\'');
-- Magram Marauder SAI
SET @ENTRY := 4644;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,1,0,100,0,1000,2000,5000,5000,11,7366,32,0,0,0,0,1,0,0,0,0,0,0,0,'Magram Marauder - Out of Combat - Cast \'Berserker Stance\''),
(@ENTRY,0,1,0,0,0,100,0,0,1500,5000,5000,11,7366,32,0,0,0,0,1,0,0,0,0,0,0,0,'Magram Marauder - In Combat - Cast \'Berserker Stance\''),
(@ENTRY,0,2,0,0,0,100,0,2500,4000,3500,4500,11,15496,0,0,0,0,0,2,0,0,0,0,0,0,0,'Magram Marauder - In Combat - Cast \'Cleave\'');
-- Magram Mauler SAI
SET @ENTRY := 4645;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,2,0,100,1,1,10,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Magram Mauler - Between 1-10% Health - Flee For Assist (No Repeat)');
-- Magram Outrunner SAI
SET @ENTRY := 4639;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,2,0,100,1,1,10,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Magram Outrunner - Between 1-10% Health - Flee For Assist (No Repeat)');
-- Magram Pack Runner SAI
SET @ENTRY := 4643;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,2,0,100,1,1,10,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Magram Pack Runner - Between 1-10% Health - Flee For Assist (No Repeat)');
-- Magram Scout SAI
SET @ENTRY := 4638;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,9,0,100,0,5,30,2000,2500,11,6660,32,0,0,0,0,2,0,0,0,0,0,0,0,'Magram Scout - Within 5-30 Range - Cast \'Shoot\''),
(@ENTRY,0,1,0,2,0,100,1,1,10,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Magram Scout - Between 1-10% Health - Flee For Assist (No Repeat)');
-- Magram Stormer SAI
SET @ENTRY := 4642;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,1,0,100,0,0,2000,5000,5000,11,8788,32,0,0,0,0,1,0,0,0,0,0,0,0,'Magram Stormer - Out of Combat - Cast \'Lightning Shield\''),
(@ENTRY,0,1,0,0,0,100,0,0,1000,5000,5000,11,8788,32,0,0,0,0,1,0,0,0,0,0,0,0,'Magram Stormer - In Combat - Cast \'Lightning Shield\''),
(@ENTRY,0,2,0,0,0,100,0,0,2500,7000,10000,11,6535,0,0,0,0,0,2,0,0,0,0,0,0,0,'Magram Stormer - In Combat - Cast \'Lightning Cloud\''),
(@ENTRY,0,3,0,2,0,100,1,1,10,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Magram Stormer - Between 1-10% Health - Flee For Assist (No Repeat)');
-- Magram Windchaser SAI
SET @ENTRY := 4641;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,0,0,100,0,500,1000,3000,4500,11,9532,32,0,0,0,0,2,0,0,0,0,0,0,0,'Magram Windchaser - In Combat - Cast \'Lightning Bolt\''),
(@ENTRY,0,1,0,2,0,100,0,10,35,15000,20000,11,959,32,0,0,0,0,1,0,0,0,0,0,0,0,'Magram Windchaser - Between 10-35% Health - Cast \'Healing Wave\''),
(@ENTRY,0,2,0,2,0,100,1,1,10,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Magram Windchaser - Between 1-10% Health - Flee For Assist (No Repeat)');
-- Magram Wrangler SAI
SET @ENTRY := 4640;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,0,0,100,0,1000,4500,15000,20000,11,6533,32,0,0,0,0,2,0,0,0,0,0,0,0,'Magram Wrangler - In Combat - Cast \'Net\''),
(@ENTRY,0,1,0,2,0,100,1,1,10,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Magram Wrangler - Between 1-10% Health - Flee For Assist (No Repeat)');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,253 @@
-- DB update 2019_04_09_00 -> 2019_04_11_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_09_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_09_00 2019_04_11_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1554847609374764694'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1554847609374764694');
-- Shadowmoon Darkweaver
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 22081;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 22081 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(22081,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,0,'Shadowmoon Darkweaver - In Combat - Cast ''Shadow Bolt'''),
(22081,0,1,0,9,0,100,0,0,30,15000,18000,0,11,11962,0,0,0,0,0,2,0,0,0,0,0,0,0,0,'Shadowmoon Darkweaver - Within 0-30 Range - Cast ''Immolate'''),
(22081,0,2,0,9,0,100,0,0,10,8000,11000,0,11,35373,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowmoon Darkweaver - Within 0-10 Range - Cast ''Shadowfury''');
UPDATE `creature_template_addon` SET `emote` = 468, `auras` = '38442' WHERE `entry` = 22081;
DELETE FROM `creature_addon` WHERE `guid` IN (77374,77375,77376,77379,77380,77381,77382,77383,77384,77387,77389,77390,77391,77392,77393,77394);
-- Shadowmoon Chosen
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 22084;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 22084 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(22084,0,0,0,9,0,100,0,0,5,15000,17000,0,11,38618,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowmoon Chosen - Within 0-5 Range - Cast ''Whirlwind'''),
(22084,0,1,0,0,0,100,0,8000,10000,18000,22000,0,11,10966,0,0,0,0,0,2,0,0,0,0,0,0,0,0,'Shadowmoon Chosen - In Combat - Cast ''Uppercut''');
-- Shadowmoon Slayer
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 22082;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 22082 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(22082,0,0,1,2,0,100,1,0,30,0,0,0,11,3019,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowmoon Slayer - Between 0-30% Health - Cast ''Frenzy'''),
(22082,0,1,0,61,0,100,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowmoon Slayer - Between 0-30% Health - Say Line 0'),
(22082,0,2,0,0,0,100,0,5000,7000,12000,15000,0,11,37577,0,0,0,0,0,2,0,0,0,0,0,0,0,0,'Shadowmoon Slayer - In Combat - Cast ''Debilitating Strike''');
-- Shadowsworn Drakonid
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 22072;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 22072 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(22072,0,0,0,0,0,100,0,5000,7000,11000,13000,0,11,15496,0,0,0,0,0,2,0,0,0,0,0,0,0,0,'Shadowsworn Drakonid - In Combat - Cast ''Cleave'''),
(22072,0,1,0,0,0,100,0,6000,8000,14000,16000,0,11,17547,0,0,0,0,0,2,0,0,0,0,0,0,0,0,'Shadowsworn Drakonid - In Combat - Cast ''Mortal Strike'''),
(22072,0,2,0,0,0,100,0,9000,11000,18000,22000,0,11,16145,0,0,0,0,0,2,0,0,0,0,0,0,0,0,'Shadowsworn Drakonid - In Combat - Cast ''Sunder Armor''');
-- Shadowmoon Soulstealer
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 22061;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 22061 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(22061,0,0,1,25,0,100,0,0,0,0,0,0,8,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowmoon Soulstealer - On Reset - Set Reactstate Passive'),
(22061,0,1,0,61,0,100,0,0,0,0,0,0,11,38250,0,0,0,0,0,19,22058,100,0,0,0,0,0,0,'Shadowmoon Soulstealer - Linked - Cast spell'),
(22061,0,2,0,4,0,100,0,0,0,0,0,0,11,38250,0,0,0,0,0,19,22058,100,0,0,0,0,0,0,'Shadowmoon Soulstealer - On Aggro - Cast ''Heart of Fury Siphon'''),
(22061,0,3,0,4,0,100,0,0,0,0,0,0,45,1,1,0,0,0,0,19,22006,100,0,0,0,0,0,0,'Shadowmoon Soulstealer - On Aggro - Set Data 1 1 to Shadowlord Deathwail'),
(22061,0,4,0,6,0,100,0,0,0,0,0,0,45,2,2,0,0,0,0,19,22006,100,0,0,0,0,0,0,'Shadowmoon Soulstealer - On Just Died - Set Data 2 2 to Shadowlord Deathwail');
-- Shadowmoon Retainer
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 22102;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 22102 AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (2210200,2210201,2210202,2210203,2210204) AND `source_type` = 9;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(22102,0,0,0,0,0,100,0,0,0,2000,4000,0,11,15547,64,0,0,0,0,2,0,0,0,0,0,0,0,0,'Shadowmoon Retainer - In Combat - Cast ''Shoot'''),
(22102,0,1,0,17,0,100,0,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Summoned Unit - Store Targetlist'),
(22102,0,2,0,38,0,100,0,1,1,0,0,0,80,2210200,2,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Data Set - Run Script'),
(22102,0,3,0,38,0,100,0,1,2,0,0,0,80,2210201,2,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Data Set - Run Script'),
(22102,0,4,0,38,0,100,0,1,3,0,0,0,80,2210202,2,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Data Set - Run Script'),
(22102,0,5,0,38,0,100,0,1,4,0,0,0,80,2210203,2,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Data Set - Run Script'),
(22102,0,6,0,38,0,100,0,1,5,0,0,0,80,2210204,2,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Data Set - Run Script'),
(22102,0,7,0,38,0,100,0,2,1,0,0,0,29,0,150,0,0,0,0,23,0,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Data Set - Start Follow'),
(22102,0,8,0,38,0,100,0,2,2,0,0,0,29,0,210,0,0,0,0,23,0,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Data Set - Start Follow'),
(2210200,9,0,0,0,0,100,0,0,0,0,0,0,12,22102,3,180000,0,0,0,8,0,0,0,0,-3214.73,251.193,139.047,2.36666,'Shadowmoon Retainer - On Script - Summon Creature ''Shadowmoon Retainer'''),
(2210200,9,1,0,0,0,100,0,0,0,0,0,0,45,2,1,0,0,0,0,12,1,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Script - Set Data'),
(2210200,9,2,0,0,0,100,0,0,0,0,0,0,12,22102,3,180000,0,0,0,8,0,0,0,0,-3212.19,253.787,139.047,2.36666,'Shadowmoon Retainer - On Script - Summon Creature ''Shadowmoon Retainer'''),
(2210200,9,3,0,0,0,100,0,0,0,0,0,0,45,2,2,0,0,0,0,12,1,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Script - Set Data'),
(2210200,9,4,0,0,0,100,0,0,0,0,0,0,53,1,2210200,0,0,0,2,1,0,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Script - Start Waypoint'),
(2210201,9,0,0,0,0,100,0,0,0,0,0,0,12,22102,3,180000,0,0,0,8,0,0,0,0,-3214.73,251.193,139.047,2.36666,'Shadowmoon Retainer - On Script - Summon Creature ''Shadowmoon Retainer'''),
(2210201,9,1,0,0,0,100,0,0,0,0,0,0,45,2,1,0,0,0,0,12,1,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Script - Set Data'),
(2210201,9,2,0,0,0,100,0,0,0,0,0,0,12,22102,3,180000,0,0,0,8,0,0,0,0,-3212.19,253.787,139.047,2.36666,'Shadowmoon Retainer - On Script - Summon Creature ''Shadowmoon Retainer'''),
(2210201,9,3,0,0,0,100,0,0,0,0,0,0,45,2,2,0,0,0,0,12,1,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Script - Set Data'),
(2210201,9,4,0,0,0,100,0,0,0,0,0,0,53,1,2210201,0,0,0,2,1,0,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Script - Start Waypoint'),
(2210202,9,0,0,0,0,100,0,0,0,0,0,0,12,22102,3,180000,0,0,0,8,0,0,0,0,-3259.99,257.488,137.045,1.23791,'Shadowmoon Retainer - On Script - Summon Creature ''Shadowmoon Retainer'''),
(2210202,9,1,0,0,0,100,0,0,0,0,0,0,45,2,1,0,0,0,0,12,1,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Script - Set Data'),
(2210202,9,2,0,0,0,100,0,0,0,0,0,0,12,22102,3,180000,0,0,0,8,0,0,0,0,-3256.09,256.141,137.077,1.23791,'Shadowmoon Retainer - On Script - Summon Creature ''Shadowmoon Retainer'''),
(2210202,9,3,0,0,0,100,0,0,0,0,0,0,45,2,2,0,0,0,0,12,1,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Script - Set Data'),
(2210202,9,4,0,0,0,100,0,0,0,0,0,0,53,0,2210202,0,0,0,2,1,0,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Script - Start Waypoint'),
(2210203,9,0,0,0,0,100,0,0,0,0,0,0,12,22102,3,180000,0,0,0,8,0,0,0,0,-3247.74,348.919,127.443,0.0959725,'Shadowmoon Retainer - On Script - Summon Creature ''Shadowmoon Retainer'''),
(2210203,9,1,0,0,0,100,0,0,0,0,0,0,45,2,1,0,0,0,0,12,1,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Script - Set Data'),
(2210203,9,2,0,0,0,100,0,0,0,0,0,0,12,22102,3,180000,0,0,0,8,0,0,0,0,-3247.61,344.952,127.443,0.0959725,'Shadowmoon Retainer - On Script - Summon Creature ''Shadowmoon Retainer'''),
(2210203,9,3,0,0,0,100,0,0,0,0,0,0,45,2,2,0,0,0,0,12,1,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Script - Set Data'),
(2210203,9,4,0,0,0,100,0,0,0,0,0,0,53,0,2210203,0,0,0,2,1,0,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Script - Start Waypoint'),
(2210204,9,0,0,0,0,100,0,0,0,0,0,0,12,22102,3,180000,0,0,0,8,0,0,0,0,-3247.74,348.919,127.443,0.0959725,'Shadowmoon Retainer - On Script - Summon Creature ''Shadowmoon Retainer'''),
(2210204,9,1,0,0,0,100,0,0,0,0,0,0,45,2,1,0,0,0,0,12,1,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Script - Set Data'),
(2210204,9,2,0,0,0,100,0,0,0,0,0,0,12,22102,3,180000,0,0,0,8,0,0,0,0,-3247.61,344.952,127.443,0.0959725,'Shadowmoon Retainer - On Script - Summon Creature ''Shadowmoon Retainer'''),
(2210204,9,3,0,0,0,100,0,0,0,0,0,0,45,2,2,0,0,0,0,12,1,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Script - Set Data'),
(2210204,9,4,0,0,0,100,0,0,0,0,0,0,53,0,2210204,0,0,0,2,1,0,0,0,0,0,0,0,0,'Shadowmoon Retainer - On Script - Start Waypoint');
DELETE FROM `waypoints` WHERE `entry` IN (2210200,2210201,2210202,2210203,2210204);
INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`,`point_comment`)
VALUES
(2210200,1,-3243.46,281.49,137.111,''),
(2210200,2,-3241.79,298.108,137.055,''),
(2210200,3,-3258.93,306.993,136.986,''),
(2210200,4,-3269.23,294.214,136.989,''),
(2210200,5,-3265.87,279.522,137.01,''),
(2210200,6,-3243.46,281.49,137.111,''),
(2210200,7,-3220.84,303.139,137.045,''),
(2210201,1,-3243.46,281.49,137.111,''),
(2210201,2,-3241.79,298.108,137.055,''),
(2210201,3,-3258.93,306.993,136.986,''),
(2210201,4,-3269.23,294.214,136.989,''),
(2210201,5,-3263.77,268.623,137.019,''),
(2210201,6,-3254.17,266.099,137.088,''),
(2210201,7,-3248.72,278.363,137.108,''),
(2210202,1,-3243.46,281.49,137.111,''),
(2210202,2,-3228.1,292.874,137.111,''),
(2210203,1,-3240.07,346.884,127.5,''),
(2210203,2,-3230.84,332.969,128.183,''),
(2210203,3,-3230.15,308.479,136.995,''),
(2210203,4,-3243.53,293.283,137.067,''),
(2210203,5,-3243,278.767,137.121,''),
(2210203,6,-3253.34,265.224,137.095,''),
(2210203,7,-3266.03,269.369,137,''),
(2210203,8,-3270.26,295.106,136.985,''),
(2210203,9,-3256.06,301.488,137.038,''),
(2210203,10,-3251.09,292.567,137.079,''),
(2210204,1,-3240.07,346.884,127.5,''),
(2210204,2,-3230.84,332.969,128.183,''),
(2210204,3,-3230.15,308.479,136.995,''),
(2210204,4,-3241.79,298.108,137.055,''),
(2210204,5,-3258.93,306.993,136.986,''),
(2210204,6,-3269.23,294.214,136.989,''),
(2210204,7,-3264.68,284.52,137.014,''),
(2210204,8,-3258.65,285.294,137.031,'');
-- Heart of Fury
UPDATE `creature_template_addon` SET `auras` = '38376' WHERE `entry` = 22058;
DELETE FROM `conditions` WHERE `SourceEntry` = 38250 AND `SourceTypeOrReferenceId` = 13;
INSERT INTO conditions (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`comment`)
VALUES
(13,1,38250,0,0,31,0,3,22058,0,0,0,0,'','Heart of Fury Siphon - target ''Heart of Fury Visual Trigger''');
-- Shadowlord Deathwail
UPDATE `creature` SET `position_x` = -3225.12, `position_y` = 246.817, `position_z` = 195.679, `orientation` = 4.87723, `spawndist` = 0, `MovementType` = 0 WHERE `guid` = 77084;
UPDATE `creature_template` SET `InhabitType` = 7, `AIName` = 'SmartAI' WHERE `entry` = 22006;
DELETE FROM `waypoints` WHERE `entry` = 220060;
INSERT INTO `waypoints`
(`entry`,`pointid`,`position_x`,`position_y`,`position_z`,`point_comment`)
VALUES
(220060,1,-3225.12,246.817,195.679,''),
(220060,2,-3240.03,255.9,201.579,''),
(220060,3,-3257.98,269.678,201.579,''),
(220060,4,-3274.72,279.532,201.579,''),
(220060,5,-3285.86,310.516,201.579,''),
(220060,6,-3275.1,325.252,201.579,''),
(220060,7,-3254.87,341.812,201.579,''),
(220060,8,-3227.61,331.076,201.579,''),
(220060,9,-3218.13,316.963,201.579,''),
(220060,10,-3217.59,298.951,201.579,''),
(220060,11,-3217.09,283.996,201.579,''),
(220060,12,-3207.64,260.908,203.19,''),
(220060,13,-3212.76,247.542,203.19,''),
(220060,14,-3220.4,239.538,203.19,''),
(220060,15,-3252.73,239.407,172.163,''),
(220060,16,-3266.67,280.529,161.968,''),
(220060,17,-3237.02,300.281,161.968,''),
(220060,18,-3205.82,285.144,183.413,''),
(220060,19,-3205.76,262.642,184.707,''),
(220060,20,-3213.83,246.444,194.429,'');
DELETE FROM `smart_scripts` WHERE `entryorguid` = 22006 AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 2200600 AND `source_type` = 9;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(22006,0,0,1,25,0,100,0,0,0,0,0,0,53,1,220060,1,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - On Reset - Start Waypoint Movement'),
(22006,0,1,2,61,0,100,0,0,0,0,0,0,18,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - Linked - Set Unit Flag ''Non Attackable'''),
(22006,0,2,0,61,0,100,0,0,0,0,0,0,8,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - Linked - Set React State Passive'),
(22006,0,3,0,6,4,100,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - On Just Died - Say Line 0 (Phase 3)'),
(22006,0,4,0,0,4,100,0,0,0,3000,5000,0,11,12471,64,0,0,0,0,2,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - In Combat - Cast ''Shadow Bolt'' (Phase 3)'),
(22006,0,5,0,0,4,100,0,5000,7000,15000,17000,0,11,15245,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - In Combat - Cast ''Shadow Bolt Volley'' (Phase 3)'),
(22006,0,6,0,0,4,100,0,9000,12000,18000,24000,0,11,32709,0,0,0,0,0,5,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - In Combat - Cast ''Death Coil'' (Phase 3)'),
(22006,0,7,0,0,4,100,0,14000,17000,22000,28000,0,11,27641,0,0,0,0,0,5,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - In Combat - Cast ''Fear'' (Phase 3)'),
(22006,0,8,0,17,0,100,0,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - On Summoned Unit - Store Targetlist'),
(22006,0,9,10,38,0,100,1,1,1,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - On Data Set 1 1 - Set Event Phase 1 (No Repeat)'),
(22006,0,10,0,61,0,100,0,0,0,0,0,0,80,2200600,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - Linked - Run Script'),
(22006,0,11,0,1,1,100,0,5000,5000,5000,5000,0,11,38312,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - Out of Combat - Cast ''Fel Fireball'' (Phase 1)'),
(22006,0,12,0,0,1,100,0,5000,5000,5000,5000,0,11,38312,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - In Combat - Cast ''Fel Fireball'' (Phase 1)'),
(22006,0,13,14,38,0,100,1,2,2,0,0,0,18,768,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - On Data Set 2 2 - Set Unit Flags ''Immune To Player'' & ''Immune To NPC'' (No Repeat)'),
(22006,0,14,15,61,0,100,0,0,0,0,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - Linked - Set Event Phase 2'),
(22006,0,15,16,61,0,100,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - Linked - Say Line 1'),
(22006,0,16,0,61,0,100,0,0,0,0,0,0,67,1,6000,6000,0,0,0,8,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - Linked - Create Timed Event ID 1'),
(22006,0,17,0,59,0,100,0,1,0,0,0,0,69,25,0,0,0,0,0,8,0,0,0,0,-3245.43,288.623,137.093,1.72491,'Shadowlord Deathwail - On Timed Event ID 1 - Move to Point 25'),
(22006,0,18,19,34,0,100,0,0,25,0,0,0,54,600000,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - On Point 25 Reached - Pause Waypoint Movement'),
(22006,0,19,20,61,0,100,0,0,0,0,0,0,67,2,600000,600000,0,0,0,8,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - Linked - Create Timed Event ID 2'),
(22006,0,20,21,61,0,100,0,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - Linked - Say Line 2'),
(22006,0,21,22,61,0,100,0,0,0,0,0,0,8,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - Linked - Set React State Aggressive'),
(22006,0,22,23,61,0,100,0,0,0,0,0,0,41,0,0,0,0,0,0,19,22058,0,0,0,0,0,0,0,'Shadowlord Deathwail - Linked - Despawn Creature ''Heart of Fury Visual Trigger'''),
(22006,0,23,0,61,0,100,0,0,0,0,0,0,41,0,300,0,0,0,0,14,25982,185125,0,0,0,0,0,0,'Shadowlord Deathwail - Linked - Despawn Gameobject ''Heart of Fury'''),
(22006,0,24,25,52,0,100,1,2,0,0,0,0,22,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - On Text Over - Set Event Phase 3 (No Repeat)'),
(22006,0,25,0,61,0,100,0,0,0,0,0,0,19,770,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - Linked - Remove Unit Flags ''Non Attackable'' & ''Immune To Player'' & ''Immune To NPC'''),
(22006,0,26,27,59,0,100,0,2,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - On Timed Event ID 2 - Evade'),
(22006,0,27,0,61,0,100,0,0,0,0,0,0,78,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Shadowlord Deathwail - Linked - Call Script Reset'),
(2200600,9,0,0,0,0,100,0,5000,5000,0,0,0,12,22102,3,180000,0,0,0,8,0,0,0,0,-3214.99,253.727,139.047,2.36666,'Shadowlord Deathwail - On Script - Summon Creature ''Shadowmoon Retainer'''),
(2200600,9,1,0,0,0,100,0,0,0,0,0,0,45,1,1,0,0,0,0,12,1,0,0,0,0,0,0,0,'Shadowlord Deathwail - On Script - Set Data'),
(2200600,9,2,0,0,0,100,0,16000,16000,0,0,0,12,22102,3,180000,0,0,0,8,0,0,0,0,-3214.99,253.727,139.047,2.36666,'Shadowlord Deathwail - On Script - Summon Creature ''Shadowmoon Retainer'''),
(2200600,9,3,0,0,0,100,0,0,0,0,0,0,45,1,2,0,0,0,0,12,1,0,0,0,0,0,0,0,'Shadowlord Deathwail - On Script - Set Data'),
(2200600,9,4,0,0,0,100,0,0,0,0,0,0,12,22102,3,180000,0,0,0,8,0,0,0,0,-3257.27,258.959,137.076,1.1633,'Shadowlord Deathwail - On Script - Summon Creature ''Shadowmoon Retainer'''),
(2200600,9,5,0,0,0,100,0,0,0,0,0,0,45,1,3,0,0,0,0,12,1,0,0,0,0,0,0,0,'Shadowlord Deathwail - On Script - Set Data'),
(2200600,9,6,0,0,0,100,0,10000,10000,0,0,0,12,22102,3,180000,0,0,0,8,0,0,0,0,-3245.69,346.943,127.465,6.26135,'Shadowlord Deathwail - On Script - Summon Creature ''Shadowmoon Retainer'''),
(2200600,9,7,0,0,0,100,0,0,0,0,0,0,45,1,4,0,0,0,0,12,1,0,0,0,0,0,0,0,'Shadowlord Deathwail - On Script - Set Data'),
(2200600,9,8,0,0,0,100,0,30000,30000,0,0,0,12,22102,3,180000,0,0,0,8,0,0,0,0,-3245.69,346.943,127.465,6.26135,'Shadowlord Deathwail - On Script - Summon Creature ''Shadowmoon Retainer'''),
(2200600,9,9,0,0,0,100,0,0,0,0,0,0,45,1,5,0,0,0,0,12,1,0,0,0,0,0,0,0,'Shadowlord Deathwail - On Script - Set Data');
DELETE FROM `creature_text` WHERE `CreatureID` = 22006;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`)
VALUES
(22006,0,0,'Master... I''ve failed you...',14,0,100,0,0,0,19820,0,'Shadowlord Deathwail'),
(22006,1,0,'You will never get the Heart of Fury! Its power belongs to Illidan!',14,0,100,0,0,0,19744,0,'Shadowlord Deathwail'),
(22006,2,0,'%s retrieves the Heart of Fury.',16,0,100,0,0,0,19830,0,'Shadowlord Deathwail');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 22061;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`)
VALUES
(22,5,22061,0,0,29,1,22061,100,0,1,0,0,'','SAI triggers only if all Shadowmoon Soulstealers are dead');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 13 AND `SourceEntry` = 38312;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorTextId`,`ScriptName`,`Comment`)
VALUES
(13,7,38312,0,0,31,0,4,0,0,0,0,'','Fel Fireball - target Player');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,30 @@
-- DB update 2019_04_11_00 -> 2019_04_14_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_11_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_11_00 2019_04_14_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1554941258540189300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1554941258540189300');
DELETE FROM `quest_offer_reward` WHERE `ID`= 6089;
INSERT INTO `quest_offer_reward` (`ID`,`Emote1`,`Emote2`,`Emote3`,`Emote4`,`EmoteDelay1`,`EmoteDelay2`,`EmoteDelay3`,`EmoteDelay4`,`RewardText`,`VerifiedBuild`) VALUES
(6089, 1, 0, 0, 0, 0, 0, 0, 0, 'A young $c, I see. Yes, I can bestow you with the skills you need to train and guide your pet. Not only will you be able to teach your pet new abilities, you will now be able to feed your pet, as well as revive it, should it fall in battle.$B$BNow, go forth. May the Earthmother guide you on your path. We shall speak again, at a later date.', 12340);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,34 @@
-- DB update 2019_04_14_00 -> 2019_04_15_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_14_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_14_00 2019_04_15_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1555024514010587300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1555024514010587300');
SET @ENTRY := 21291;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY, 0, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 54, 20000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grom''tor, Son of Oronok - When player opened dialog - Give Pause path for 20000 ms'),
(@ENTRY, 0, 1, 0, 11, 0, 100, 0, 0, 0, 0, 0, 53, 0, 21291, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grom''tor, Son of Oronok - On respawn - Start path, walk, repeat, Passive'),
(@ENTRY, 0, 2, 0, 1, 0, 100, 0, 10000, 30000, 240000, 240000, 80, 2129100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grom''tor, Son of Oronok - When out of combat and timer at the beginning - Start timed action list id #2129100');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,108 @@
-- DB update 2019_04_15_00 -> 2019_04_16_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_15_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_15_00 2019_04_16_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1555017745656363300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1555017745656363300');
-- Item should only drop from Riverpaw Mongrel (123)
DELETE FROM `reference_loot_template` WHERE `Item`=821;
-- Item should only drop from Sandcrawler (830)
DELETE FROM `reference_loot_template` WHERE `Item`=2087;
-- Item is from crafting and should never drop
DELETE FROM `reference_loot_template` WHERE `Item`=2300;
-- Add unique drops to appropriate NPCs
DELETE FROM `creature_loot_template` WHERE `Item` IN (821, 2087);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`) VALUES
(123, 821, 2.5),
(830, 2087, 2);
-- Kobold Vermin
DELETE FROM `creature_loot_template` WHERE `Entry`=6;
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES
(6, 755, 0, 50, 0, 1, 0, 1, 1, NULL), -- Melted Candle
(6, 4536, 0, 20, 0, 1, 0, 1, 1, NULL), -- Shiny Red Apple
(6, 159, 0, 10, 0, 1, 0, 1, 1, NULL), -- Refreshing Spring Water
(6, 24073, 24073, 10, 0, 1, 0, 1, 1, NULL), -- Junk
(6, 11111, 11111, 0.5, 0, 1, 0, 1, 1, NULL); -- Bags
-- Kobold Worker
DELETE FROM `creature_loot_template` WHERE `Entry`=257;
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES
(257, 755, 0, 50, 0, 1, 0, 1, 1, NULL), -- Melted Candle
(257, 4536, 0, 20, 0, 1, 0, 1, 1, NULL), -- Shiny Red Apple
(257, 159, 0, 10, 0, 1, 0, 1, 1, NULL), -- Refreshing Spring Water
(257, 24073, 24073, 10, 0, 1, 0, 1, 1, NULL), -- Junk
(257, 11111, 11111, 0.5, 0, 1, 0, 1, 1, NULL); -- Bags
-- Kobold Laborer
-- Also adds unique item missing from game
DELETE FROM `creature_loot_template` WHERE `Entry`=80;
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES
(80, 755, 0, 50, 0, 1, 0, 1, 1, NULL), -- Melted Candle
(80, 4536, 0, 20, 0, 1, 0, 1, 1, NULL), -- Shiny Red Apple
(80, 159, 0, 10, 0, 1, 0, 1, 1, NULL), -- Refreshing Spring Water
(80, 24073, 24073, 5, 0, 1, 0, 1, 1, NULL), -- Junk
(80, 11111, 11111, 0.5, 0, 1, 0, 1, 1, NULL), -- Bags
(80, 2055, 0, 2.5, 0, 1, 0, 1, 1, NULL); -- Small Wooden Hammer (Unique)
-- Diseased Young Wolf
-- Removed drop of level 12-13 green items
DELETE FROM `creature_loot_template` WHERE `Entry`=299;
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES
(299, 4865, 0, 5, 0, 1, 0, 1, 2, NULL), -- Ruined Pelt
(299, 7073, 0, 5, 0, 1, 0, 1, 2, NULL), -- Broken Fang
(299, 7074, 0, 5, 0, 1, 0, 1, 2, NULL), -- Chipped Claw
(299, 50432, 0, 100, 1, 1, 0, 1, 1, NULL), -- Diseased Wolf Pelt (Quest)
(299, 24073, 24073, 1, 0, 1, 0, 1, 1, NULL), -- Junk
(299, 11111, 11111, 0.1, 0, 1, 0, 1, 1, NULL); -- Bags
-- Diseased Timber Wolf
DELETE FROM `creature_loot_template` WHERE `Entry`=69;
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES
(69, 4865, 0, 5, 0, 1, 0, 1, 2, NULL), -- Ruined Pelt
(69, 7073, 0, 5, 0, 1, 0, 1, 2, NULL), -- Broken Fang
(69, 7074, 0, 5, 0, 1, 0, 1, 2, NULL), -- Chipped Claw
(69, 50432, 0, 100, 1, 1, 0, 1, 1, NULL), -- Diseased Wolf Pelt (Quest)
(69, 24073, 24073, 1, 0, 1, 0, 1, 1, NULL), -- Junk
(69, 11111, 11111, 0.1, 0, 1, 0, 1, 1, NULL); -- Bags
-- Defias Thug
DELETE FROM `creature_loot_template` WHERE `Entry`=38;
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES
(38, 752, 0, 100, 1, 1, 0, 1, 1, NULL), -- Red Burlap Bandana (Quest)
(38, 2070, 0, 15, 0, 1, 0, 1, 1, NULL), -- Darnassian Bleu
(38, 159, 0, 5, 0, 1, 0, 1, 1, NULL), -- Refreshing Spring Water
(38, 2057, 0, 1.5, 0, 1, 0, 1, 1, NULL), -- Pitted Defias Shorsword (Unique)
(38, 24073, 24073, 10, 0, 1, 0, 1, 1, NULL), -- Junk
(38, 11111, 11111, 0.5, 0, 1, 0, 1, 1, NULL); -- Bags
-- Garrick Proudfoot
DELETE FROM `creature_loot_template` WHERE `Entry`=103;
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES
(103, 182, 0, 100, 1, 1, 0, 1, 1, NULL), -- Garrick's Head
(103, 2070, 0, 15, 0, 1, 0, 1, 1, NULL), -- Darnassian Bleu
(103, 159, 0, 5, 0, 1, 0, 1, 1, NULL), -- Refreshing Spring Water
(103, 24073, 24073, 10, 0, 1, 0, 1, 1, NULL), -- Junk
(103, 11111, 11111, 0.5, 0, 1, 0, 1, 1, NULL); -- Bags
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,67 @@
-- DB update 2019_04_16_00 -> 2019_04_18_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_16_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_16_00 2019_04_18_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1555051312474328059'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1555051312474328059');
-- reduce the spawn time of the Horde / Alliance defenders
UPDATE `creature` SET `spawntimesecs` = 1 WHERE `id` IN (18972,18970,18950,18986,18948,18965,18949,18971);
-- increase the random time interval when the defenders leave their portal, so they won't run all at once when spawning the first time
UPDATE `smart_scripts` SET `action_param3` = 6500 WHERE `source_type` = 0 AND `id` = 0 AND `entryorguid` IN (18972,18970,18950,18986,18948,18965);
-- stop combat right before starting wapoint movement in order to prevent error messages in the log
DELETE FROM `smart_scripts` WHERE `id` IN (2,12) AND `source_type` = 0 AND `entryorguid` IN (18972,18970,18950,18986,18948,18965);
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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(18972,0,2,12,59,0,100,0,1,0,0,0,0,27,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Orgrimmar Shaman - On Timed Event - Stop Combat'),
(18970,0,2,12,59,0,100,0,1,0,0,0,0,27,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Darkspear Axe Thrower - On Timed Event - Stop Combat'),
(18950,0,2,12,59,0,100,0,1,0,0,0,0,27,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Orgrimmar Grunt - On Timed Event - Stop Combat'),
(18986,0,2,12,59,0,100,0,1,0,0,0,0,27,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Ironforge Paladin - On Timed Event - Stop Combat'),
(18948,0,2,12,59,0,100,0,1,0,0,0,0,27,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Stormwind Soldier - On Timed Event - Stop Combat'),
(18965,0,2,12,59,0,100,0,1,0,0,0,0,27,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Darnassian Archer - On Timed Event - Stop Combat'),
(18972,0,12,0,61,0,100,0,0,0,0,0,0,53,1,18970,0,0,0,2,1,0,0,0,0,0,0,0,0,'Orgrimmar Shaman - Linked - Start WP'),
(18970,0,12,0,61,0,100,0,0,0,0,0,0,53,1,18970,0,0,0,2,1,0,0,0,0,0,0,0,0,'Darkspear Axe Thrower - Linked - Start WP'),
(18950,0,12,0,61,0,100,0,0,0,0,0,0,53,1,18970,0,0,0,2,1,0,0,0,0,0,0,0,0,'Orgrimmar Grunt - Linked - Start WP'),
(18986,0,12,0,61,0,100,0,0,0,0,0,0,53,1,18965,0,0,0,2,1,0,0,0,0,0,0,0,0,'Ironforge Paladin - Linked - Start WP'),
(18948,0,12,0,61,0,100,0,0,0,0,0,0,53,1,18965,0,0,0,2,1,0,0,0,0,0,0,0,0,'Stormwind Soldier - Linked - Start WP'),
(18965,0,12,0,61,0,100,0,0,0,0,0,0,53,1,18965,0,0,0,2,1,0,0,0,0,0,0,0,0,'Darnassian Archer - Linked - Start WP');
-- use one of the hidden creatures "Infernal Relay (Hellfire)" to spawn an initial wave of daemons, so the battle can begin at once when the player enters the area
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 19215;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryorguid` = -68744;
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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(-68744,0,0,1,63,0,100,1,0,0,0,0,0,12,19005,3,600000,0,0,0,8,0,0,0,0,-263.628,1102.61,41.6675,4.93514,'Infernal Relay (Hellfire) - On Just Created - Summon Wrath Master (19005)'),
(-68744,0,1,2,61,0,100,0,0,0,0,0,0,12,19005,3,600000,0,0,0,8,0,0,0,0,-239.837,1103.57,41.6671,4.47176,'Infernal Relay (Hellfire) - Linked - Summon Wrath Master (19005)'),
(-68744,0,2,3,61,0,100,0,0,0,0,0,0,12,18944,3,600000,0,0,0,8,0,0,0,0,-246.118,1104.64,41.6671,4.72309,'Infernal Relay (Hellfire) - Linked - Summon Fel Soldier (18944)'),
(-68744,0,3,4,61,0,100,0,0,0,0,0,0,12,18944,3,600000,0,0,0,8,0,0,0,0,-254.605,1105.03,41.6671,4.74272,'Infernal Relay (Hellfire) - Linked - Summon Fel Soldier (18944)'),
(-68744,0,4,5,61,0,100,0,0,0,0,0,0,12,18944,3,600000,0,0,0,8,0,0,0,0,-270.904,1101.37,41.7302,5.25715,'Infernal Relay (Hellfire) - Linked - Summon Fel Soldier (18944)'),
(-68744,0,5,6,61,0,100,0,0,0,0,0,0,12,18944,3,600000,0,0,0,8,0,0,0,0,-230.616,1102.52,41.6672,4.24008,'Infernal Relay (Hellfire) - Linked - Summon Fel Soldier (18944)'),
(-68744,0,6,7,61,0,100,0,0,0,0,0,0,12,18944,3,600000,0,0,0,8,0,0,0,0,-256.508,1108.92,41.6667,4.7019,'Infernal Relay (Hellfire) - Linked - Summon Fel Soldier (18944)'),
(-68744,0,7,8,61,0,100,0,0,0,0,0,0,12,18944,3,600000,0,0,0,8,0,0,0,0,-242.871,1108.85,41.6667,4.69012,'Infernal Relay (Hellfire) - Linked - Summon Fel Soldier (18944)'),
(-68744,0,8,9,61,0,100,0,0,0,0,0,0,12,18944,3,600000,0,0,0,8,0,0,0,0,-271.232,1105.23,41.6668,5.0713,'Infernal Relay (Hellfire) - Linked - Summon Fel Soldier (18944)'),
(-68744,0,9,0,61,0,100,0,0,0,0,0,0,12,18944,3,600000,0,0,0,8,0,0,0,0,-231.023,1106.31,41.6668,4.43121,'Infernal Relay (Hellfire) - Linked - Summon Fel Soldier (18944)');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2019_04_18_00 -> 2019_04_18_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_18_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_18_00 2019_04_18_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1555073136028342544'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1555073136028342544');
UPDATE `smart_scripts` SET `action_param1` = 0 WHERE `entryorguid` = 32277 AND `source_type` = 0 AND `id` = 0;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,32 @@
-- DB update 2019_04_18_01 -> 2019_04_18_02
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_18_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_18_01 2019_04_18_02 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1554920580112420800'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1554920580112420800');
-- Actionlist SAI
SET @ENTRY := 1472100;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `id`=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`,`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
(@ENTRY,9,3,0,0,0,100,0,3000,3000,0,0,50,179882,7200,1,0,0,0,8,0,0,0,-8925.57,496.042,103.767,2.42801,'Field Marshal Afrasiabi - On Script - Summon Gameobject The Severed Head of Nefarian and despawn after 2 hours');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,36 @@
-- DB update 2019_04_18_02 -> 2019_04_18_03
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_18_02';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_18_02 2019_04_18_03 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1555327481238291012'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1555327481238291012');
DELETE FROM `creature_text` WHERE `creatureid` = 22252;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`)
VALUES
(22252,0,0,'Me so hungry! YUM!',12,0,100,0,0,0,21120,0,'Dragonmaw Peon SAY_1'),
(22252,0,1,'It put the mutton in the stomach!',12,0,100,0,0,0,21121,0,'Dragonmaw Peon SAY_1'),
(22252,0,2,'Mmmm! FOOD!',12,0,100,0,0,0,21119,0,'Dragonmaw Peon SAY_1'),
(22252,0,3,'Time for eating?',12,0,100,0,0,0,21118,0,'Dragonmaw Peon SAY_1'),
(22252,1,0,'Hey...me not feel so good.',12,0,100,0,0,0,21122,0,'Dragonmaw Peon SAY_POISONED_1'),
(22252,1,1,'You is bad orc... baaad... or... argh!',12,0,100,0,0,0,21123,0,'Dragonmaw Peon SAY_POISONED_1');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,108 @@
-- DB update 2019_04_18_03 -> 2019_04_19_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_18_03';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_18_03 2019_04_19_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1553654065143975700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1553654065143975700');
-- NPC ID 9021 Kharan Mighthammer, Quest ID 4001 'What Is Going On?' and 4342 'Kharan's Tale'
SET @Kharan := 9021;
UPDATE `creature_template` SET `AIName`= 'SmartAI', `ScriptName`= '' WHERE `entry` = @Kharan;
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = @Kharan);
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
(@Kharan,0,0,0, 10,0,100,0, 0,20,0,0, 1, 0,3000,0,0,0,0,7,0,0,0,0,0,0,0,'Kharan Mighthammer - Within 0-20 Range Out of Combat LoS - Say Line 0'),
(@Kharan,0,1,2, 62,0,100,0,1823, 0,0,0, 72, 0, 0,0,0,0,0,7,0,0,0,0,0,0,0,'Kharan Mighthammer - on Gossip option 0 selected - Close Gossip'),
(@Kharan,0,2,0, 61,0,100,0, 0, 0,0,0, 15,4342, 0,0,0,0,0,7,0,0,0,0,0,0,0,"Kharan Mighthammer - on Gossip option 0 selected - Quest Credit 'Kharan's Tale'"),
(@Kharan,0,3,4, 62,0,100,0,1839, 0,0,0, 72, 0, 0,0,0,0,0,7,0,0,0,0,0,0,0,'Kharan Mighthammer - on Gossip option 0 selected - Close Gossip'),
(@Kharan,0,4,0, 61,0,100,0, 0, 0,0,0, 15,4001, 0,0,0,0,0,7,0,0,0,0,0,0,0,"Kharan Mighthammer - on Gossip option 0 selected - Credit Quest 'What Is Going On?'");
DELETE FROM `creature_text` WHERE `CreatureID` = @Kharan;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(@Kharan,0,0,'Key... get the key... Gerstahn has... key.', 12,0,100,0,0,0,4723,0,'Kharan Mighthammer'),
(@Kharan,0,1,'Try and make yourself useful, $r. GET ME OUT OF HERE! The High Interrogator has the key.',12,0,100,0,0,0,4724,0,'Kharan Mighthammer'),
(@Kharan,0,2,'HEY! HEY YOU! $R! Get me out of here!', 12,0,100,0,0,0,4725,0,'Kharan Mighthammer'),
(@Kharan,0,3,'%s groans.', 16,0,100,0,0,0,4726,0,'Kharan Mighthammer');
DELETE FROM `gossip_menu_option` WHERE `MenuID` BETWEEN 1821 AND 1839;
INSERT INTO `gossip_menu_option` (`MenuID`,`OptionID`,`OptionIcon`,`OptionText`,`OptionBroadcastTextID`,`OptionType`,`OptionNpcFlag`,`ActionMenuID`,`ActionPoiId`,`BoxCoded`,`BoxMoney`,`BoxText`,`BoxBroadcastTextID`) VALUES
(1822,0,0,"All is not lost, Kharan!", 4734,1,1,1828,0,0,0,'',0),
(1828,1,0,"Continue...", 5256,1,1,1827,0,0,0,'',0),
(1827,0,0,"So what happened?", 4742,1,1,1826,0,0,0,'',0),
(1826,0,0,"So you suspect that someone on the inside was involved? That they were tipped off?", 4744,1,1,1825,0,0,0,'',0),
(1825,0,0,"Continue with your story please.", 4746,1,1,1824,0,0,0,'',0),
(1824,0,0,"Indeed.", 4748,1,1,1823,0,0,0,'',0),
(1823,0,0,"The door is open, Kharan. You are a free man.", 5257,1,1, 0,0,0,0,'',0),
(1822,1,0,"I am not here to harm you, Kharan. Gor'shak sent me. He told me that you would speak to me about the Princess.", 4732,1,1,1831,0,0,0,'',0),
(1831,0,0,"All is not lost, Kharan!", 4734,1,1,1832,0,0,0,'',0),
(1832,0,0,"Because you are still alive and my hands aren't gripped firmly around your stubby little neck.", 4736,1,1,1833,0,0,0,'',0),
(1833,0,0,"Nothing. My orders were to speak with you and then speak with Thrall. All I know is that Thrall is interested in saving your princess.",4738,1,1,1834,0,0,0,'',0),
(1834,0,0,"Which would explain why you're sitting in a jail cell at the bottom of a mountain, right, dwarf?", 4740,1,1,1835,0,0,0,'',0),
(1835,0,0,"So what happened?", 4742,1,1,1836,0,0,0,'',0),
(1836,0,0,"So you suspect that someone on the inside was involved? That they were tipped off?", 4744,1,1,1837,0,0,0,'',0),
(1837,0,0,"Continue with your story please.", 4746,1,1,1838,0,0,0,'',0),
(1838,0,0,"Indeed.", 4748,1,1,1839,0,0,0,'',0),
(1839,0,0,"If it's any consolation, I'll be leaving the cell door open. How you get out is your problem. Good bye, Kharan.", 4750,1,1, 0,0,0,0,'',0);
DELETE FROM `gossip_menu` WHERE `MenuID`= 1822 AND `TextID`= 2473 OR `MenuID` BETWEEN 1831 AND 1839;
INSERT INTO `gossip_menu` (`MenuID`,`TextID`) VALUES
(1822, 2473),
(1831, 2474),
(1832, 2475),
(1833, 2476),
(1834, 2477),
(1835, 2478),
(1836, 2479),
(1837, 2480),
(1838, 2481),
(1839, 2482);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` IN (14,15) AND `SourceGroup`= 1822 AND `SourceEntry` IN (0,1,2473,2474) AND `SourceId`= 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(14,1822,2473,0,1, 9,0,4001,0,0,0,0,0,'', "Show gossip menu 1822 text id 2473 if quest 'What Is Going On?' has been taken. -OR-"),
(14,1822,2474,0,2,14,0,4001,0,0,0,0,0,'', "Show gossip menu 1822 text id 2474 if quest 'What Is Going On?' has not been taken. -OR-"),
(14,1822,2474,0,3,28,0,4001,0,0,0,0,0,'', "Show gossip menu 1822 text id 2474 if quest 'What Is Going On?' has been completed. -OR-"),
(15,1822, 1,0,0, 9,0,4001,0,0,0,0,0,'', "Show gossip menu 1822 option id 1 if quest 'What Is Going On?' has been taken."),
(14,1822,2474,0,4, 9,0,4342,0,0,0,0,0,'', "Show gossip menu 1822 text id 2474 if quest 'Kharan's Tale' has been taken. -OR-"),
(14,1822,2474,0,5,14,0,4342,0,0,0,0,0,'', "Show gossip menu 1822 text id 2474 if quest 'Kharan's Tale' has not been taken. -OR-"),
(14,1822,2474,0,6,28,0,4342,0,0,0,0,0,'', "Show gossip menu 1822 text id 2474 if quest 'Kharan's Tale' has been completed. -OR-"),
(15,1822, 0,0,0, 9,0,4342,0,0,0,0,0,'', "Show gossip menu 1822 option id 0 if quest 'Kharan's Tale' has been taken.");
SET @ID := 100000; -- High ID just to be safe.
DELETE FROM `gossip_menu_option` WHERE `MenuID` IN (1945);
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`) VALUES
(1945, 0, 0, 'Teach me the art of smelting dark iron', @ID, 1, 1),
(1945, 1, 0, 'I want to pay tribute', @ID+1, 1, 1);
DELETE FROM `gossip_menu_option` WHERE `MenuID` IN (4781) AND `OptionID` = 1;
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`) VALUES
(4781, 1, 0, 'Get Thorium Brotherhood Contract', @ID+2, 1, 1);
DELETE FROM `broadcast_text` WHERE `ID` BETWEEN @ID AND @ID+2;
INSERT INTO `broadcast_text` (`ID`,`Language`,`MaleText`,`FemaleText`) VALUES
(@ID, 0, 'Teach me the art of smelting dark iron','Teach me the art of smelting dark iron'),
(@ID+1, 0, 'I want to pay tribute','I want to pay tribute'),
(@ID+2, 0, 'Get Thorium Brotherhood Contract', 'Get Thorium Brotherhood Contract');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,29 @@
-- DB update 2019_04_19_00 -> 2019_04_20_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_19_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_19_00 2019_04_20_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1554842995091120500'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1554842995091120500');
UPDATE `creature_template` SET `ScriptName`='chromatic_elite_guard', `AIName`='' WHERE `entry`= 10814;
DELETE FROM `smart_scripts` WHERE `entryorguid`= 10814;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,87 @@
-- DB update 2019_04_20_00 -> 2019_04_22_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_20_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_20_00 2019_04_22_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1555597548140620700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1555597548140620700');
-- Field Marshal Afrasiabi SAI
SET @ENTRY := 14721;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,1,20,0,100,0,7782,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,'Field Marshal Afrasiabi - On Quest The Lord of Blackrock Finished - Run Script'),
(@ENTRY,0,1,0,61,0,100,0,7782,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'Field Marshal Afrasiabi - On Quest The Lord of Blackrock Finished - Store Targetlist');
-- Actionlist SAI
SET @ENTRY := 1472100;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,48,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Field Marshal Afrasiabi - On Script - Set Active On'), -- need NPC to be active in order to be able to despawn the GO even when no player is near
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Field Marshal Afrasiabi - On Script - Remove Npc Flag Questgiver'),
(@ENTRY,9,2,0,0,0,100,0,5000,5000,0,0,1,0,8000,0,0,0,0,12,1,0,0,0,0,0,0,'Field Marshal Afrasiabi - On Script - Say Line 0'),
(@ENTRY,9,3,0,0,0,100,0,8000,8000,0,0,1,1,10000,0,0,0,0,12,1,0,0,0,0,0,0,'Field Marshal Afrasiabi - On Script - Say Line 1'),
(@ENTRY,9,4,0,0,0,100,0,3000,3000,0,0,50,179882,7200,1,0,0,0,8,0,0,0,-8925.57,496.042,103.767,2.42801,'Field Marshal Afrasiabi - On Script - Summon Gameobject ''The Severed Head of Nefarian'' and despawn after 2 hours'),
(@ENTRY,9,5,0,0,0,100,0,1000,1000,0,0,9,0,0,0,0,0,0,20,179882,100,0,0,0,0,0,'Field Marshal Afrasiabi - On Script - Activate Gameobject ''The Severed Head of Nefarian'''),
(@ENTRY,9,6,0,0,0,100,0,6000,6000,0,0,11,22888,0,0,0,0,0,1,0,0,0,0,0,0,0,'Field Marshal Afrasiabi - On Script - Cast ''Rallying Cry of the Dragonslayer'''),
(@ENTRY,9,7,0,0,0,100,0,1000,1000,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Field Marshal Afrasiabi - On Script - Add Npc Flag Questgiver'),
(@ENTRY,9,8,0,0,0,100,0,7200000,7200000,0,0,41,0,0,0,0,0,0,14,0,179882,0,0,0,0,0,'Field Marshal Afrasiabi - On Script - Force Despawn Gameobject ''The Severed Head of Nefarian'''),
(@ENTRY,9,9,0,0,0,100,0,0,0,0,0,48,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Field Marshal Afrasiabi - On Script - Set Active Off');
DELETE FROM `creature_text` WHERE `creatureid` IN (14721);
INSERT INTO `creature_text` (`creatureid`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`, `BroadcastTextId`) VALUES
(14721, 0, 0, 'Citizens of the Alliance, the Lord of Blackrock is slain! Nefarian has been subdued by the combined might of $N and $Ghis:her; allies!', 14, 0, 100, 0, 0, 0, 'Field Marshal Afrasiabi', 9870),
(14721, 1, 0, 'Let your spirits rise! Rally around your champion, bask in $Ghis:her; glory! Revel in the rallying cry of the dragon slayer!', 14, 0, 100, 0, 0, 0, 'Field Marshal Afrasiabi', 9872);
-- Overlord Runthak SAI
SET @ENTRY := 14392;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,1,20,0,100,0,7784,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,'Overlord Runthak - On Quest The Lord of Blackrock Finished - Run Script'),
(@ENTRY,0,1,2,61,0,100,0,7784,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'Overlord Runthak - On Quest The Lord of Blackrock Finished - Store Targetlist');
-- Actionlist SAI
SET @ENTRY := 1439200;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,48,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Overlord Runthak - On Script - Set Active On'), -- need NPC to be active in order to be able to despawn the GO even when no player is near
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Overlord Runthak - On Script - Remove Npc Flag Questgiver'),
(@ENTRY,9,2,0,0,0,100,0,2000,2000,0,0,59,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Overlord Runthak - On Script - Set Run Off'),
(@ENTRY,9,3,0,0,0,100,0,0,0,0,0,69,0,0,0,0,0,0,8,0,0,0,1544,-4425.87,10.9056,3.323,'Overlord Runthak - On Script - Move To Position'),
(@ENTRY,9,4,0,0,0,100,0,14000,14000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,0.6367,'Overlord Runthak - On Script - Set Orientation 0,6367'),
(@ENTRY,9,5,0,0,0,100,0,3000,3000,0,0,1,0,17000,0,0,0,0,12,1,0,0,0,0,0,0,'Overlord Runthak - On Script - Say Line 0'),
(@ENTRY,9,6,0,0,0,100,0,17000,17000,0,0,1,1,10000,0,0,0,0,12,1,0,0,0,0,0,0,'Overlord Runthak - On Script - Say Line 1'),
(@ENTRY,9,7,0,0,0,100,0,3000,3000,0,0,50,179881,7200,0,0,0,0,8,0,0,0,1540.28,-4422.19,7.0051,5.22833,'Overlord Runthak - On Script - Summon Gameobject ''The Severed Head of Nefarian'' and despawn after 2 hours'),
(@ENTRY,9,8,0,0,0,100,0,5000,5000,0,0,9,0,0,0,0,0,0,20,179881,100,0,0,0,0,0,'Overlord Runthak - On Script - Activate Gameobject ''The Severed Head of Nefarian'''),
(@ENTRY,9,9,0,0,0,100,0,5000,5000,0,0,11,22888,0,0,0,0,0,1,0,0,0,0,0,0,0,'Overlord Runthak - On Script - Cast ''Rallying Cry of the Dragonslayer'''),
(@ENTRY,9,10,0,0,0,100,0,10000,10000,0,0,69,0,0,0,0,0,0,8,0,0,0,1568,-4405.87,8.13371,0.3434,'Overlord Runthak - On Script - Move To Position'),
(@ENTRY,9,11,0,0,0,100,0,15000,15000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,3.31613,'Overlord Runthak - On Script - Set Orientation 3,31613'),
(@ENTRY,9,12,0,0,0,100,0,1000,1000,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Overlord Runthak - On Script - Add Npc Flag Questgiver'),
(@ENTRY,9,13,0,0,0,100,0,7200000,7200000,0,0,41,0,0,0,0,0,0,14,0,179881,0,0,0,0,0,'Overlord Runthak - On Script - Force Despawn Gameobject ''The Severed Head of Nefarian'''),
(@ENTRY,9,14,0,0,0,100,0,0,0,0,0,48,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Overlord Runthak - On Script - Set Active Off');
DELETE FROM `creature_text` WHERE `creatureid` IN (14392);
INSERT INTO `creature_text` (`creatureid`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`, `BroadcastTextId`) VALUES
(14392, 0, 0, 'NEFARIAN IS SLAIN! people of Orgrimmar, bow down before the might of $N and his allies for they have laid a blow against the Black Dragonflight that is sure to stir the Aspects from their malaise! This defeat shall surely be felt by the father of the Black Flight: Deathwing reels in pain and anguish this day!', 14, 0, 100, 0, 0, 0, 'Overlord Runthak', 9867),
(14392, 1, 0, 'Be lifted by $N accomplishment! Revel in his rallying cry!', 14, 0, 100, 0, 0, 0, 'Overlord Runthak', 9868);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,138 @@
-- DB update 2019_04_22_00 -> 2019_04_26_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_22_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_22_00 2019_04_26_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1555795494372087220'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1555795494372087220');
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryorguid` = 26379;
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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`)
VALUES
(26379,0,0,1,19,0,100,0,12140,0,0,0,0,48,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Overlord Agmar - On Quest Accept (All Hail Roanauk!) - Set Active on'),
(26379,0,1,2,61,0,100,0,0,0,0,0,0,81,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Overlord Agmar - On Quest Accept (All Hail Roanauk!) - Set Npc Flags'),
(26379,0,2,3,61,0,100,0,0,0,0,0,0,91,255,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Overlord Agmar - On Quest Accept (All Hail Roanauk!) - Remove Bytes 1'),
(26379,0,3,4,61,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Overlord Agmar - On Quest Accept (All Hail Roanauk!) - Say Line 1'),
(26379,0,4,0,61,0,100,0,0,0,0,0,0,53,0,26379,0,0,0,0,7,0,0,0,0,0,0,0,0,'Overlord Agmar - On Quest Accept (All Hail Roanauk!) - Start WP'),
(26379,0,5,0,40,0,100,0,10,0,0,0,0,67,1,2000,2000,0,0,0,1,0,0,0,0,0,0,0,0,'Overlord Agmar - On reached WP10 - Create Timed Event ID 1'),
(26379,0,6,7,59,0,100,0,1,0,0,0,0,66,0,0,0,0,0,0,19,26810,0,0,0,0,0,0,0,'Overlord Agmar - On Timed Event ID 1 - Set Orientation'),
(26379,0,7,0,61,0,100,0,0,0,0,0,0,67,2,180000,180000,0,0,0,1,0,0,0,0,0,0,0,0,'Overlord Agmar - Linked - Create Timed Event ID 2'),
(26379,0,8,9,38,0,100,0,1,1,0,0,0,101,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Overlord Agmar - On Data Set - Set Home Pos (Respawn)'),
(26379,0,9,0,61,0,100,0,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Overlord Agmar - On Data Set - Evade'),
(26379,0,10,11,59,0,100,0,2,0,0,0,0,101,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Overlord Agmar - On Timed Event ID 2 - Set Home Pos (Respawn)'),
(26379,0,11,0,61,0,100,0,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Overlord Agmar - Linked - Evade'),
(26379,0,12,13,21,0,100,0,0,0,0,0,0,81,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Overlord Agmar - On Reached Home - Set Unit Flags'),
(26379,0,13,0,61,0,100,0,0,0,0,0,0,48,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Overlord Agmar - On Reached Home - Set Active off');
DELETE FROM `smart_scripts` WHERE `source_type` = 9 AND `entryorguid` = 2681000;
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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`)
VALUES
(2681000,9,0,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Roanauk Icemist - Script - Say Line 1'),
(2681000,9,1,0,0,0,100,0,10000,10000,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Roanauk Icemist - Script - Say Line 2'),
(2681000,9,2,0,0,0,100,0,2000,2000,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Roanauk Icemist - Script - Say Line 3'),
(2681000,9,3,0,0,0,100,0,8000,8000,0,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Roanauk Icemist - Script - Say Line 4'),
(2681000,9,4,0,0,0,100,0,8000,8000,0,0,0,1,4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Roanauk Icemist - Script - Say Line 5'),
(2681000,9,5,0,0,0,100,0,1000,1000,0,0,0,1,1,0,0,0,0,0,19,26379,0,0,0,0,0,0,0,'Roanauk Icemist - Script - Say Line 1 on Overlord Agmar'),
(2681000,9,6,0,0,0,100,0,4000,4000,0,0,0,5,15,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Roanauk Icemist - Script - Play emote OneShotRoar'),
(2681000,9,7,0,0,0,100,0,4000,4000,0,0,0,33,26810,0,0,0,0,0,12,1,0,0,0,0,0,0,0,'Roanauk Icemist - Script - Give Kill Credit'),
(2681000,9,8,0,0,0,100,0,0,0,0,0,0,5,388,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Roanauk Icemist - Script - Play emote OneShotStomp'),
(2681000,9,9,0,0,0,100,0,0,0,0,0,0,45,2,2,0,0,0,0,9,26437,0,200,0,0,0,0,0,'Roanauk Icemist - Script - Set Data Taunka Soldier'),
(2681000,9,10,0,0,0,100,0,0,0,0,0,0,1,5,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Roanauk Icemist - Script - Say Line 6'),
(2681000,9,11,0,0,0,100,0,7000,7000,0,0,0,1,2,0,0,0,0,0,19,26379,0,0,0,0,0,0,0,'Roanauk Icemist - Script - Say Line 2 on Overlord Agmar'),
(2681000,9,12,0,0,0,100,0,5000,5000,0,0,0,1,0,0,0,0,0,0,19,26437,0,0,0,0,0,0,0,'Roanauk Icemist - Script - Say Line 0 on Taunka Soldier'),
(2681000,9,13,0,0,0,100,0,5000,5000,0,0,0,45,3,3,0,0,0,0,9,26437,0,200,0,0,0,0,0,'Roanauk Icemist - Script - Set Data Taunka Soldier'),
(2681000,9,14,0,0,0,100,0,0,0,0,0,0,45,1,1,0,0,0,0,19,26379,0,0,0,0,0,0,0,'Roanauk Icemist - Script - Set Data Overlord Agmar'),
(2681000,9,15,0,0,0,100,0,0,0,0,0,0,81,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Roanauk Icemist - Script - Set NPC Flags');
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryorguid` IN (-102326,-102327,-102328,-102329,-102330,-102333,-102341);
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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`)
VALUES
(-102326,0,0,1,38,0,100,0,1,1,0,0,0,91,65537,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Set Bytes 1'),
(-102326,0,1,0,61,0,100,0,0,0,0,0,0,53,0,2643704,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Start WP'),
(-102326,0,2,3,38,0,100,0,2,2,0,0,0,91,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Remove ''UNIT_STAND_STATE_KNEEL'''),
(-102326,0,3,0,61,0,100,0,0,0,0,0,0,5,4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Play emote Cheer'),
(-102326,0,4,5,38,0,100,0,3,3,0,0,0,101,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Set Home Pos (Respawn)'),
(-102326,0,5,0,61,0,100,0,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Evade'),
(-102326,0,6,0,40,0,100,0,1,0,0,0,0,67,1,2000,2000,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On reached WP1 - Create Timed Event ID 1'),
(-102326,0,7,8,59,0,100,0,1,0,0,0,0,66,0,0,0,0,0,0,19,26810,0,0,0,0,0,0,0,'Taunka Soldier - On Timed Event ID 1 - Set Orientation'),
(-102326,0,8,0,61,0,100,0,0,0,0,0,0,90,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Set ''UNIT_STAND_STATE_KNEEL'''),
(-102327,0,0,1,38,0,100,0,1,1,0,0,0,91,65536,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Set Bytes 1'),
(-102327,0,1,2,61,0,100,0,0,0,0,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Set Emote State 0'),
(-102327,0,2,0,61,0,100,0,0,0,0,0,0,53,0,2643706,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Start WP'),
(-102327,0,3,4,38,0,100,0,2,2,0,0,0,91,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Remove ''UNIT_STAND_STATE_KNEEL'''),
(-102327,0,4,0,61,0,100,0,0,0,0,0,0,5,4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Play emote Cheer'),
(-102327,0,5,6,38,0,100,0,3,3,0,0,0,101,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Set Home Pos (Respawn)'),
(-102327,0,6,0,61,0,100,0,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Evade'),
(-102327,0,7,0,40,0,100,0,1,0,0,0,0,67,1,2000,2000,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On reached WP1 - Create Timed Event ID 1'),
(-102327,0,8,9,59,0,100,0,1,0,0,0,0,66,0,0,0,0,0,0,19,26810,0,0,0,0,0,0,0,'Taunka Soldier - On Timed Event ID 1 - Set Orientation'),
(-102327,0,9,0,61,0,100,0,0,0,0,0,0,90,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Set ''UNIT_STAND_STATE_KNEEL'''),
(-102328,0,0,1,38,0,100,0,1,1,0,0,0,91,65536,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Set Bytes 1'),
(-102328,0,1,0,61,0,100,0,0,0,0,0,0,53,0,2643703,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Start WP'),
(-102328,0,2,3,38,0,100,0,2,2,0,0,0,91,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Remove ''UNIT_STAND_STATE_KNEEL'''),
(-102328,0,3,0,61,0,100,0,0,0,0,0,0,5,4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Play emote Cheer'),
(-102328,0,4,5,38,0,100,0,3,3,0,0,0,101,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Set Home Pos (Respawn)'),
(-102328,0,5,0,61,0,100,0,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Evade'),
(-102328,0,6,0,40,0,100,0,1,0,0,0,0,67,1,2000,2000,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On reached WP1 - Create Timed Event ID 1'),
(-102328,0,7,8,59,0,100,0,1,0,0,0,0,66,0,0,0,0,0,0,19,26810,0,0,0,0,0,0,0,'Taunka Soldier - On Timed Event ID 1 - Set Orientation'),
(-102328,0,8,0,61,0,100,0,0,0,0,0,0,90,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Set ''UNIT_STAND_STATE_KNEEL'''),
(-102329,0,0,1,38,0,100,0,1,1,0,0,0,91,65539,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Set Bytes 1'),
(-102329,0,1,0,61,0,100,0,0,0,0,0,0,53,0,2643700,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Start WP'),
(-102329,0,2,3,38,0,100,0,2,2,0,0,0,91,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Remove ''UNIT_STAND_STATE_KNEEL'''),
(-102329,0,3,0,61,0,100,0,0,0,0,0,0,5,4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Play emote Cheer'),
(-102329,0,4,5,38,0,100,0,3,3,0,0,0,101,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Set Home Pos (Respawn)'),
(-102329,0,5,0,61,0,100,0,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Evade'),
(-102329,0,6,0,40,0,100,0,1,0,0,0,0,67,1,2000,2000,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On reached WP1 - Create Timed Event ID 1'),
(-102329,0,7,8,59,0,100,0,1,0,0,0,0,66,0,0,0,0,0,0,19,26810,0,0,0,0,0,0,0,'Taunka Soldier - On Timed Event ID 1 - Set Orientation'),
(-102329,0,8,0,61,0,100,0,0,0,0,0,0,90,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Set ''UNIT_STAND_STATE_KNEEL'''),
(-102330,0,0,1,38,0,100,0,1,1,0,0,0,91,65536,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Set Bytes 1'),
(-102330,0,1,0,61,0,100,0,0,0,0,0,0,53,0,2643702,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Start WP'),
(-102330,0,2,3,38,0,100,0,2,2,0,0,0,91,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Remove ''UNIT_STAND_STATE_KNEEL'''),
(-102330,0,3,0,61,0,100,0,0,0,0,0,0,5,4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Play emote Cheer'),
(-102330,0,4,5,38,0,100,0,3,3,0,0,0,101,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Set Home Pos (Respawn)'),
(-102330,0,5,0,61,0,100,0,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Evade'),
(-102330,0,6,0,40,0,100,0,1,0,0,0,0,67,1,2000,2000,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On reached WP1 - Create Timed Event ID 1'),
(-102330,0,7,8,59,0,100,0,1,0,0,0,0,66,0,0,0,0,0,0,19,26810,0,0,0,0,0,0,0,'Taunka Soldier - On Timed Event ID 1 - Set Orientation'),
(-102330,0,8,0,61,0,100,0,0,0,0,0,0,90,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Set ''UNIT_STAND_STATE_KNEEL'''),
(-102333,0,0,1,38,0,100,0,1,1,0,0,0,91,65537,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Set Bytes 1'),
(-102333,0,1,0,61,0,100,0,0,0,0,0,0,53,0,2643705,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Start WP'),
(-102333,0,2,3,38,0,100,0,2,2,0,0,0,91,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Remove ''UNIT_STAND_STATE_KNEEL'''),
(-102333,0,3,0,61,0,100,0,0,0,0,0,0,5,4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Play emote Cheer'),
(-102333,0,4,5,38,0,100,0,3,3,0,0,0,101,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Set Home Pos (Respawn)'),
(-102333,0,5,0,61,0,100,0,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Evade'),
(-102333,0,6,0,40,0,100,0,1,0,0,0,0,67,1,2000,2000,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On reached WP1 - Create Timed Event ID 1'),
(-102333,0,7,8,59,0,100,0,1,0,0,0,0,66,0,0,0,0,0,0,19,26810,0,0,0,0,0,0,0,'Taunka Soldier - On Timed Event ID 1 - Set Orientation'),
(-102333,0,8,0,61,0,100,0,0,0,0,0,0,90,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Set ''UNIT_STAND_STATE_KNEEL'''),
(-102341,0,0,1,38,0,100,0,1,1,0,0,0,91,65539,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Set Bytes 1'),
(-102341,0,1,0,61,0,100,0,0,0,0,0,0,53,0,2643701,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Start WP'),
(-102341,0,2,3,38,0,100,0,2,2,0,0,0,91,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Remove ''UNIT_STAND_STATE_KNEEL'''),
(-102341,0,3,0,61,0,100,0,0,0,0,0,0,5,4,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Play emote Cheer'),
(-102341,0,4,5,38,0,100,0,3,3,0,0,0,101,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On Data Set - Set Home Pos (Respawn)'),
(-102341,0,5,0,61,0,100,0,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Evade'),
(-102341,0,6,0,40,0,100,0,1,0,0,0,0,67,1,2000,2000,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - On reached WP1 - Create Timed Event ID 1'),
(-102341,0,7,8,59,0,100,0,1,0,0,0,0,66,0,0,0,0,0,0,19,26810,0,0,0,0,0,0,0,'Taunka Soldier - On Timed Event ID 1 - Set Orientation'),
(-102341,0,8,0,61,0,100,0,0,0,0,0,0,90,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Taunka Soldier - Linked - Set ''UNIT_STAND_STATE_KNEEL''');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,29 @@
-- DB update 2019_04_26_00 -> 2019_04_27_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_26_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_26_00 2019_04_27_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1555929516205604900'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1555929516205604900');
-- Coilskar defender updated flag to Only Swim and remove extra flag
UPDATE `creature_template` SET `unit_flags`=32768, `flags_extra`=0 WHERE `entry`=19762;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,32 @@
-- DB update 2019_04_27_00 -> 2019_04_28_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_27_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_27_00 2019_04_28_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1555887226948080900'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1555887226948080900');
-- Fix wrong prevQuestId assignment on BE starting zone.
UPDATE `quest_template_addon` SET `PrevQuestId`=8328 WHERE `Id`=10068;
UPDATE `quest_template_addon` SET `PrevQuestId`=9676 WHERE `Id`=10069;
UPDATE `quest_template_addon` SET `PrevQuestId`=9393 WHERE `Id`=10070;
UPDATE `quest_template_addon` SET `PrevQuestId`=8564 WHERE `Id`=10072;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,42 @@
-- DB update 2019_04_28_00 -> 2019_04_30_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_28_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_28_00 2019_04_30_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1555843331078984800'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1555843331078984800');
-- Leviroth SmartAI
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=26452;
DELETE FROM `smart_scripts` WHERE `entryorguid`=26452 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
(26452, 0, 0, 1, 8, 0, 100, 0, 47170, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Leviroth - On Spellhit (Impale Leviroth) - Remove Unit flags (Immune to PC)'),
(26452, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 11, 46767, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Leviroth - On Spellhit (Impale Leviroth) - Cast Cosmetic - Underwater Blood'),
(26452, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Leviroth - On Spellhit (Impale Leviroth) - Start Attack');
-- Trident of Naz'jan item
UPDATE `item_template` SET `ScriptName`="" WHERE `entry`=35850;
UPDATE `creature_template` SET `InhabitType`=2 WHERE `entry`=26452;
DELETE FROM `conditions` WHERE `SourceEntry`=47170 AND `SourceTypeOrReferenceId`=17;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `comment`) VALUES
(17, 0, 47170, 0, 0, 29, 0, 26452, 8, 0, 0, 0, 0, "", 'Spell Impale Leviroth can only be used within 8 yards of NPC Leviroth');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,36 @@
-- DB update 2019_04_30_00 -> 2019_04_30_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_30_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_30_00 2019_04_30_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1556033703817978000'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1556033703817978000');
-- Creating a new SmartAI script for [Creature] ENTRY 15650 (name: Crazed Dragonhawk)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 15650;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 15650);
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
(15650, 0, 0, 0, 0, 0, 100, 0, 3100, 3100, 22800, 22800, 11, 29117, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Crazed Dragonhawk - In Combat - Cast \'29117\'');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,32 @@
-- DB update 2019_04_30_01 -> 2019_05_01_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_04_30_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_30_01 2019_05_01_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1556034383320746900'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1556034383320746900');
DELETE FROM `creature_text` WHERE `CreatureID` IN(32718, 32714, 32720) AND `GroupID`=0 AND `ID`=0;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(32718, 0, 0, 'Be well, champion.', 12, 0, 50, 0, 0, 0, 0, 0, 'Dalaran shamy'),
(32714, 0, 0, 'Elune bless you, champion.', 12, 0, 100, 0, 0, 0, 0, 0, 'Dalaran priest'),
(32720, 0, 0, 'Good to see you, champion.', 12, 0, 50, 0, 0, 0, 0, 0, 'Dalaran mage');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,75 @@
-- DB update 2019_05_01_00 -> 2019_05_02_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_01_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_01_00 2019_05_02_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1555998926077008658'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1555998926077008658');
-- Cleanup phasing after quest "Return To Angrathar" is rewarded
DELETE FROM `spell_area` WHERE `spell` = 58932;
INSERT INTO `spell_area` (`spell`,`area`,`quest_start`,`quest_end`,`aura_spell`,`racemask`,`gender`,`autocast`,`quest_start_status`,`quest_end_status`)
VALUES
(58932,4169,12499,0,0,0,2,1,64,0), -- Fordragon Hold - Post-Wrath Gate Phase - After Quest "Return To Angrathar" (Alliance) is Rewarded
(58932,4169,12500,0,0,0,2,1,64,0), -- Fordragon Hold - Post-Wrath Gate Phase - After Quest "Return To Angrathar" (Horde) is Rewarded
(58932,4170,12499,0,0,0,2,1,64,0), -- Kor'kron Vanguard - Post-Wrath Gate Phase - After Quest "Return To Angrathar" (Alliance) is Rewarded
(58932,4170,12500,0,0,0,2,1,64,0), -- Kor'kron Vanguard - Post-Wrath Gate Phase - After Quest "Return To Angrathar" (Horde) is Rewarded
(58932,4171,12499,0,0,0,2,1,64,0), -- The Court of Skulls - Post-Wrath Gate Phase - After Quest "Return To Angrathar" (Alliance) is Rewarded
(58932,4171,12500,0,0,0,2,1,64,0), -- The Court of Skulls - Post-Wrath Gate Phase - After Quest "Return To Angrathar" (Horde) is Rewarded
(58932,4172,12499,0,0,0,2,1,64,0), -- Angrathar the Wrathgate - Post-Wrath Gate Phase - After Quest "Return To Angrathar" (Alliance) is Rewarded
(58932,4172,12500,0,0,0,2,1,64,0); -- Angrathar the Wrathgate - Post-Wrath Gate Phase - After Quest "Return To Angrathar" (Horde) is Rewarded
-- Fleeing Horde Soldier - Run around and cower in fear
UPDATE `creature` SET `MovementType` = 1, `spawndist` = 10 WHERE `id` IN (31328,31330);
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryorguid` IN (31328,31330);
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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`)
VALUES
(31328,0,0,1,11,0,100,0,0,0,0,0,0,59,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Horde Soldier - On Spawn - Set Run On'),
(31328,0,1,0,61,0,100,0,0,0,0,0,0,17,431,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Horde Soldier - On Spawn - Set Emote State ''STATE_COWER'''),
(31328,0,2,0,1,0,100,0,0,3000,1000,3000,0,87,3131000,3131001,3131002,3131003,3131004,0,1,0,0,0,0,0,0,0,0,'Fleeing Horde Soldier - OOC - Run Random Script'),
(31328,0,3,0,1,0,100,0,1000,2000,3000,6000,0,46,10,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Horde Soldier - OOC - Move Forward'),
(31328,0,4,0,1,0,100,0,12000,24000,12000,24000,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Horde Soldier - OOC - Evade'),
(31330,0,0,1,11,0,100,0,0,0,0,0,0,59,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Horde Soldier - On Spawn - Set Run On'),
(31330,0,1,0,61,0,100,0,0,0,0,0,0,17,431,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Horde Soldier - On Spawn - Set Emote State ''STATE_COWER'''),
(31330,0,2,0,1,0,100,0,0,3000,1000,3000,0,87,3131005,3131006,3131007,3131008,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Horde Soldier - OOC - Run Random Script'),
(31330,0,3,0,1,0,100,0,1000,2000,3000,6000,0,46,10,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Horde Soldier - OOC - Move Forward'),
(31330,0,4,0,1,0,100,0,12000,24000,12000,24000,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Horde Soldier - OOC - Evade');
-- Fleeing Alliance Soldier - Run around and cower in fear
UPDATE `creature` SET `MovementType` = 1, `spawndist` = 10 WHERE `id` IN (31310,31313);
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryorguid` IN (31310,31313);
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_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`)
VALUES
(31310,0,0,1,11,0,100,0,0,0,0,0,0,59,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Alliance Soldier - On Spawn - Set Run On'),
(31310,0,1,0,61,0,100,0,0,0,0,0,0,17,431,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Alliance Soldier - On Spawn - Set Emote State ''STATE_COWER'''),
(31310,0,2,0,1,0,100,0,0,3000,1000,3000,0,87,3131000,3131001,3131002,3131003,3131004,0,1,0,0,0,0,0,0,0,0,'Fleeing Alliance Soldier - OOC - Run Random Script'),
(31310,0,3,0,1,0,100,0,1000,2000,3000,6000,0,46,10,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Alliance Soldier - OOC - Move Forward'),
(31310,0,4,0,1,0,100,0,12000,24000,12000,24000,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Alliance Soldier - OOC - Evade'),
(31313,0,0,1,11,0,100,0,0,0,0,0,0,59,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Alliance Soldier - On Spawn - Set Run On'),
(31313,0,1,0,61,0,100,0,0,0,0,0,0,17,431,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Alliance Soldier - On Spawn - Set Emote State ''STATE_COWER'''),
(31313,0,2,0,1,0,100,0,0,3000,1000,3000,0,87,3131005,3131006,3131007,3131008,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Alliance Soldier - OOC - Run Random Script'),
(31313,0,3,0,1,0,100,0,1000,2000,3000,6000,0,46,10,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Alliance Soldier - OOC - Move Forward'),
(31313,0,4,0,1,0,100,0,12000,24000,12000,24000,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Fleeing Alliance Soldier - OOC - Evade');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,29 @@
-- DB update 2019_05_02_00 -> 2019_05_03_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_02_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_02_00 2019_05_03_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1555926066020418100'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1555926066020418100');
-- Remove UNIT_FLAG_IMMUNE_TO_PC from NPC 'Ethereum guardian'
UPDATE `creature_template` SET `unit_flags`='0' WHERE `entry`=20854;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,231 @@
-- DB update 2019_05_03_00 -> 2019_05_04_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_03_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_03_00 2019_05_04_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1556033308686302400'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1556033308686302400');
DELETE FROM `creature_equip_template` WHERE `CreatureID`=17701 AND `ID`=1;
INSERT INTO `creature_equip_template` (`CreatureID`, `ID`, `ItemID1`, `ItemID2`, `ItemID3`, `VerifiedBuild`) VALUES (17701, 1, 14882, 0, 0, 0);
-- Creating a new SmartAI script for [Creature] ENTRY 17333 (name: Wrathscale Screamer)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17333;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17333);
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
(17333, 0, 0, 0, 0, 0, 100, 0, 2000, 2000, 8000, 8000, 11, 31295, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Wrathscale Screamer - In Combat - Cast \'31295\'');
-- Creating a new SmartAI script for [Creature] ENTRY 17331 (name: Wrathscale Shorestalker)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17331;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17331);
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
(17331, 0, 0, 0, 0, 0, 100, 0, 2500, 2500, 7400, 7400, 11, 11976, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Wrathscale Shorestalker - In Combat - Cast \'11976\'');
-- Creating a new SmartAI script for [Creature] ENTRY 17349 (name: Blue Flutterer)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17349;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17349);
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
(17349, 0, 0, 0, 0, 0, 100, 0, 1500, 1500, 10500, 10500, 11, 36332, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Blue Flutterer - In Combat - Cast \'36332\'');
-- Creating a new SmartAI script for [Creature] ENTRY 17327 (name: Blacksilt Tidecaller)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17327;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17327);
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
(17327, 0, 0, 0, 0, 0, 100, 0, 1000, 1000, 15000, 15000, 11, 12550, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blacksilt Tidecaller - In Combat - Cast \'12550\''),
(17327, 0, 1, 0, 0, 0, 100, 0, 5300, 5300, 19600, 19600, 11, 12160, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blacksilt Tidecaller - In Combat - Cast \'12160\'');
-- Creating a new SmartAI script for [Creature] ENTRY 17343 (name: Thistle Lasher)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17343;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17343);
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
(17343, 0, 0, 0, 0, 0, 100, 0, 1800, 1800, 20600, 20600, 11, 31286, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Thistle Lasher - In Combat - Cast \'31286\'');
-- Thistle Lasher: Link "Dropped Weapon" to "Lash" (otherwise it is not cast on the player)
DELETE FROM `spell_linked_spell` WHERE `spell_trigger` = 31286 AND `spell_effect` = 6608;
INSERT INTO `spell_linked_spell` (`spell_trigger`,`spell_effect`,`type`,`comment`) VALUES (31286,6608,1,'Lash: Cast ''Dropped Weapon'' (6608) on hit on the same target');
-- Creating a new SmartAI script for [Creature] ENTRY 17352 (name: Corrupted Treant)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17352;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17352);
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
(17352, 0, 0, 0, 0, 0, 100, 0, 3250, 3250, 10270, 10270, 11, 5810, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Corrupted Treant - In Combat - Cast \'5810\'');
-- Creating a new SmartAI script for [Creature] ENTRY 17527 (name: Enraged Ravager)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17527;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17527);
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
(17527, 0, 0, 0, 0, 0, 100, 0, 5000, 5000, 25000, 25000, 11, 3242, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Enraged Ravager - In Combat - Cast \'3242\''),
(17527, 0, 1, 0, 2, 0, 100, 0, 0, 30, 0, 0, 11, 15716, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Enraged Ravager - Between 0-30% Health - Cast \'15716\'');
-- Creating a new SmartAI script for [Creature] ENTRY 17346 (name: Mutated Tangler)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17346;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17346);
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
(17346, 0, 0, 0, 0, 0, 100, 0, 2500, 2500, 11720, 11720, 11, 31287, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Mutated Tangler - In Combat - Cast \'31287\'');
-- Creating a new SmartAI script for [Creature] ENTRY 17353 (name: Corrupted Stomper)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17353;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17353);
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
(17353, 0, 0, 0, 0, 0, 100, 0, 2500, 2500, 8900, 8900, 11, 31277, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Corrupted Stomper - In Combat - Cast \'31277\'');
-- Creating a new SmartAI script for [Creature] ENTRY 17358 (name: Fouled Water Spirit)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17358;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17358);
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
(17358, 0, 0, 0, 0, 0, 100, 0, 1000, 1000, 121000, 121000, 11, 31280, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Fouled Water Spirit - In Combat - Cast \'31280\''),
(17358, 0, 1, 0, 0, 0, 100, 0, 3100, 3100, 9600, 9600, 11, 31281, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Fouled Water Spirit - In Combat - Cast \'31281\'');
-- Creating a new SmartAI script for [Creature] ENTRY 17522 (name: Myst Spinner)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17522;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17522);
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
(17522, 0, 0, 0, 0, 0, 100, 0, 4500, 4500, 12800, 12800, 11, 745, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Myst Spinner - In Combat - Cast \'745\'');
-- Creating a new SmartAI script for [Creature] ENTRY 17523 (name: Myst Leecher)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17523;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17523);
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
(17523, 0, 0, 0, 0, 0, 100, 0, 1500, 1500, 33000, 33000, 11, 31288, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Myst Leecher - In Combat - Cast \'31288\'');
-- Creating a new SmartAI script for [Creature] ENTRY 17608 (name: Sunhawk Pyromancer)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17608;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17608);
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
(17608, 0, 0, 0, 26, 0, 100, 1, 0, 10, 0, 1, 11, 31734, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Sunhawk Pyromancer - In Combat LOS 10 yards - Cast \'31734\' (No Repeat)'),
(17608, 0, 1, 0, 0, 0, 100, 0, 1500, 1500, 25700, 25700, 11, 11962, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Sunhawk Pyromancer - In Combat - Cast \'11962\''),
(17608, 0, 2, 0, 0, 0, 100, 0, 5200, 5200, 9900, 9900, 11, 9053, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Sunhawk Pyromancer - In Combat - Cast \'9053\'');
-- Creating a new SmartAI script for [Creature] ENTRY 17607 (name: Sunhawk Defender)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17607;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17607);
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
(17607, 0, 0, 0, 26, 0, 100, 1, 0, 10, 0, 1, 11, 31734, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Sunhawk Pyromancer - In Combat LOS 10 yards - Cast \'31734\' (No Repeat)'),
(17607, 0, 1, 0, 0, 0, 100, 0, 3200, 3200, 15400, 15400, 11, 15284, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Sunhawk Defender - In Combat - Cast \'15284\''),
(17607, 0, 2, 0, 0, 0, 100, 0, 8600, 8600, 34200, 34200, 11, 31737, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Sunhawk Defender - In Combat - Cast \'31737\'');
-- Creating a new SmartAI script for [Creature] ENTRY 17610 (name: Sunhawk Agent)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17610;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17610);
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
(17610, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 5916, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Sunhawk Agent - On Reset - Cast \'5916\''),
(17610, 0, 1, 0, 0, 0, 100, 0, 2500, 2500, 8900, 8900, 11, 14873, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Sunhawk Agent - In Combat - Cast \'14873\''),
(17610, 0, 2, 0, 0, 0, 100, 0, 12850, 12850, 35700, 35700, 11, 7159, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Sunhawk Agent - In Combat - Cast \'7159\''),
(17610, 0, 3, 0, 0, 0, 100, 0, 15000, 15000, 87000, 87000, 11, 15691, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Sunhawk Agent - In Combat - Cast \'15691\'');
-- Creating a new SmartAI script for [Creature] ENTRY 17609 (name: Sunhawk Saboteur)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17609;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17609);
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
(17609, 0, 0, 0, 26, 0, 100, 1, 0, 10, 0, 1, 11, 31734, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Sunhawk Pyromancer - In Combat LOS 10 yards - Cast \'31734\' (No Repeat)'),
(17609, 0, 1, 0, 0, 0, 100, 0, 1000, 1000, 6200, 6200, 11, 6660, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Sunhawk Saboteur - In Combat - Cast \'6660\''),
(17609, 0, 2, 0, 0, 0, 100, 0, 11750, 11750, 32400, 32400, 11, 14443, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Sunhawk Saboteur - In Combat - Cast \'14443\''),
(17609, 0, 3, 0, 9, 0, 100, 0, 4, 30, 1, 1, 79, 15, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Sunhawk Saboteur - Within 4-30 Range - Set Ranged Movement'),
(17609, 0, 4, 0, 9, 0, 100, 0, 0, 4, 1, 1, 79, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Sunhawk Saboteur - Within 0-4 Range - Set Ranged Movement');
-- Creating a new SmartAI script for [Creature] ENTRY 17713 (name: Bloodcursed Naga)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17713;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 17713);
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
(17713, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 12544, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bloodcursed Naga - On Reset - Cast \'12544\''),
(17713, 0, 1, 0, 0, 0, 100, 0, 2500, 2500, 6700, 6700, 11, 20792, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Bloodcursed Naga - In Combat - Cast \'20792\'');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,80 @@
-- DB update 2019_05_04_00 -> 2019_05_04_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_04_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_04_00 2019_05_04_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1556033550219221000'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1556033550219221000');
-- Creating a new SmartAI script for [Creature] ENTRY 1998 (name: Webwood Lurker)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 1998;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 1998);
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
(1998, 0, 0, 0, 0, 0, 100, 0, 2300, 2300, 17600, 17600, 11, 744, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Webwood Lurker - In Combat - Cast \'744\'');
-- Creating a new SmartAI script for [Creature] ENTRY 2008 (name: Gnarlpine Warrior)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 2008;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 2008);
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
(2008, 0, 0, 0, 0, 0, 100, 0, 3300, 3300, 15800, 15800, 11, 11976, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Gnarlpine Warrior - In Combat - Cast \'11976\'');
-- Creating a new SmartAI script for [Creature] ENTRY 2025 (name: Timberling Bark Ripper)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 2025;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 2025);
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
(2025, 0, 0, 0, 0, 0, 50, 0, 3700, 3700, 14100, 14100, 11, 6016, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Timberling Bark Ripper - In Combat - Cast \'6016\'');
-- Creating a new SmartAI script for [Creature] ENTRY 1999 (name: Webwood Venomfang)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 1999;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 1999);
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
(1999, 0, 0, 0, 0, 0, 100, 0, 3100, 3100, 18200, 18200, 11, 744, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Webwood Venomfang - In Combat - Cast \'744\'');
-- Creating a new SmartAI script for [Creature] ENTRY 2001 (name: Giant Webwood Spider)
-- Table creature_template
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 2001;
-- Table smart_scripts
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 2001);
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
(2001, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 11, 6752, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Giant Webwood Spider - On Respawn - Cast \'6752\''),
(2001, 0, 1, 0, 0, 0, 100, 0, 6000, 6000, 12800, 12800, 11, 744, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Giant Webwood Spider - In Combat - Cast \'744\''),
(2001, 0, 2, 0, 0, 0, 100, 0, 7500, 7500, 15000, 15000, 11, 745, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Giant Webwood Spider - In Combat - Cast \'745\'');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,68 @@
-- DB update 2019_05_04_01 -> 2019_05_05_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_04_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_04_01 2019_05_05_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1556112726467897600'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1556112726467897600');
-- Frostwolf SAI
SET @ENTRY := 10981;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,0,0,100,0,8700,12700,18400,34200,11,13443,0,0,0,0,0,2,0,0,0,0,0,0,0,'Frostwolf - In Combat - Cast Rend'),
(@ENTRY,0,1,0,1,0,100,0,0,0,0,0,89,10,0,0,0,0,0,1,0,0,0,0,0,0,0,'Frostwolf - Out of Combat - Use Random movement');
-- Alterac Ram SAI
SET @ENTRY := 10990;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,4,0,100,1,0,0,0,0,11,22120,0,0,0,0,0,2,0,0,0,0,0,0,0,'Alterac Ram - On Aggro - Cast Charge'),
(@ENTRY,0,1,0,0,0,100,0,8700,12700,18400,34200,11,13443,0,0,0,0,0,2,0,0,0,0,0,0,0,'Alterac Ram - In Combat - Cast Rend'),
(@ENTRY,0,2,0,1,0,100,0,0,0,0,0,89,10,0,0,0,0,0,1,0,0,0,0,0,0,0,'Alterac Ram - Out of Combat - Use random movement');
-- Snowblind Harpy SAI
SET @ENTRY := 10986;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,0,0,100,0,3000,5000,12000,15000,11,3589,0,0,0,0,0,2,0,0,0,0,0,0,0,'Snowblind Harpy - In Combat - Cast Deafening Screech'),
(@ENTRY,0,1,0,1,0,100,0,0,0,0,0,89,10,0,0,0,0,0,1,0,0,0,0,0,0,0,'Snowblind Harpy - Out of Combat - Use Random Movement');
-- Snowblind Windcaller SAI
SET @ENTRY := 11675;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,0,0,100,2,0,0,3400,4800,11,9532,64,0,0,0,0,2,0,0,0,0,0,0,0,'Snowblind Windcaller - Combat CMC - Cast Lightning Bolt (Normal Dungeon)'),
(@ENTRY,0,1,0,0,0,100,2,5000,8000,12000,16000,11,9532,1,0,0,0,0,6,0,0,0,0,0,0,0,'Snowblind Windcaller - Combat - Cast Lightning Bolt (Normal Dungeon)'),
(@ENTRY,0,2,0,1,0,100,0,0,0,0,0,89,10,0,0,0,0,0,1,0,0,0,0,0,0,0,'Snowblind Windcaled - Out of Combat - Use random movement');
-- Frostwolf Bloodhound SAI
SET @ENTRY := 14282;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,11,8876,0,0,0,0,0,1,0,0,0,0,0,0,0,'Frostwolf Bloodhound - In Combat - Cast Thrash'),
(@ENTRY,0,1,0,1,0,100,0,0,0,0,0,89,15,0,0,0,0,0,1,0,0,0,0,0,0,0,'Frostwolf Bloodhound - Out of Combat - Use random movement');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2019_05_05_00 -> 2019_05_06_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_05_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_05_00 2019_05_06_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1556147118750847662'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1556147118750847662');
UPDATE `smart_scripts` SET `action_param1` = 38556, `comment` = REPLACE(`comment`,'Shoot','Throw') WHERE `entryorguid` = 27560 AND `action_param1` = 6660;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,164 @@
-- DB update 2019_05_06_00 -> 2019_05_07_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_06_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_06_00 2019_05_07_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1556522385066705884'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1556522385066705884');
-- Winterskorn Woodsman: Use emote 'STATE_WORK_CHOPWOOD' (234) instead of 'STATE_WORK_MINING' (233)
UPDATE `creature_addon` SET `emote` = 234 WHERE `emote` = 233 AND `guid` IN (SELECT `guid` FROM `creature` WHERE `id` = 23662);
-- Various Winterskorn Vrykul: Adjust position, orientation, emotes etc.
UPDATE `creature` SET `orientation` = 4.44648 WHERE `guid` = 106134;
UPDATE `creature` SET `orientation` = 5.32293 WHERE `guid` = 105907;
UPDATE `creature` SET `orientation` = 5.88842 WHERE `guid` = 105914;
UPDATE `creature` SET `orientation` = 6.00623 WHERE `guid` = 106157;
UPDATE `creature` SET `orientation` = 1.27587 WHERE `guid` = 106228;
UPDATE `creature` SET `orientation` = 4.80229 WHERE `guid` = 106276;
UPDATE `creature` SET `orientation` = 1.67247 WHERE `guid` = 106572;
UPDATE `creature` SET `position_x` = 2030.35, `position_y` = -4024.7, `position_z` = 221.943, `orientation` = 2.03606 WHERE `guid` = 106156;
UPDATE `creature` SET `position_x` = 1658.73, `position_y` = -4119.81, `position_z` = 274.861, `orientation` = 0.168438 WHERE `guid` = 106288;
UPDATE `creature` SET `spawndist` = 0, `MovementType` = 0 WHERE `guid` IN (106196,106283);
UPDATE `creature_addon` SET `bytes1` = 1, `bytes2` = 0, `emote` = 0 WHERE `guid` = 105907;
UPDATE `creature_addon` SET `emote` = 333 WHERE `guid` IN (106276,106211,106212);
UPDATE `creature_addon` SET `emote` = 375 WHERE `guid` = 106572;
UPDATE `creature_addon` SET `emote` = 0 WHERE `guid` = 106288;
DELETE FROM `creature_addon` WHERE `guid` = 105898;
-- Disable random movement for Winterskorn Rune-Caster (23668) and Winterskorn Oracle (23669) to prevent them from falling down the towers
UPDATE `creature` SET `spawndist` = 0, `MovementType` = 0 WHERE `id` IN (23668,23669);
-- Winterskorn Raider (riding on Proto-Drake): Increase flight speed by setting "move_type" to 1 (run)
UPDATE `waypoint_data` SET `move_type` = 1 WHERE `id` = 1063390;
UPDATE `waypoint_data` SET `move_type` = 1 WHERE `id` = 1063400;
-- Winterskorn Raider: Allow mounted combat
UPDATE `creature_template` SET `type_flags` = 2048 WHERE `entry` = 23665;
-- Winterskorn Shield-Maiden: Spar with other Vrykul
DELETE FROM `smart_scripts` WHERE `entryorguid` = 23663 AND `source_type` = 0 AND `id` BETWEEN 4 AND 11;
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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(23663,0,4,0,1,0,100,0,0,60000,15000,70000,0,1,1,0,0,0,0,0,11,23663,3,0,0,0,0,0,0,'Winterskorn Shield-Maiden - Out of Combat - Say Line 1 (Winterskorn Shield-Maiden)'),
(23663,0,5,0,1,0,100,0,0,5000,5000,10000,0,10,36,38,54,0,0,0,11,23663,3,0,0,0,0,0,0,'Winterskorn Shield-Maiden - Out of Combat - Play Emote ''ONESHOT_ATTACK1H'' (Winterskorn Shield-Maiden)'),
(23663,0,6,0,1,0,100,0,0,60000,15000,70000,0,1,1,0,0,0,0,0,11,23664,3,0,0,0,0,0,0,'Winterskorn Shield-Maiden - Out of Combat - Say Line 1 (Winterskorn Warrior)'),
(23663,0,7,0,1,0,100,0,0,5000,5000,10000,0,10,36,38,54,0,0,0,11,23664,3,0,0,0,0,0,0,'Winterskorn Shield-Maiden - Out of Combat - Play Emote ''ONESHOT_ATTACK1H'' (Winterskorn Warrior)'),
(23663,0,8,0,1,0,100,0,0,60000,15000,70000,0,1,1,0,0,0,0,0,11,23665,3,0,0,0,0,0,0,'Winterskorn Shield-Maiden - Out of Combat - Say Line 1 (Winterskorn Raider)'),
(23663,0,9,0,1,0,100,0,0,5000,5000,10000,0,10,36,38,54,0,0,0,11,23665,3,0,0,0,0,0,0,'Winterskorn Shield-Maiden - Out of Combat - Play Emote ''ONESHOT_ATTACK1H'' (Winterskorn Raider)'),
(23663,0,10,0,1,0,100,0,0,60000,15000,70000,0,1,1,0,0,0,0,0,11,23666,3,0,0,0,0,0,0,'Winterskorn Shield-Maiden - Out of Combat - Say Line 1 (Winterskorn Berserker)'),
(23663,0,11,0,1,0,100,0,0,5000,5000,10000,0,10,36,38,54,0,0,0,11,23666,3,0,0,0,0,0,0,'Winterskorn Shield-Maiden - Out of Combat - Play Emote ''ONESHOT_ATTACK1H'' (Winterskorn Berserker)');
-- Winterskorn Warrior: Spar with other Vrykul
DELETE FROM `smart_scripts` WHERE `entryorguid` = 23664 AND `source_type` = 0 AND `id` BETWEEN 3 AND 10;
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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(23664,0,3,0,1,0,100,0,0,60000,15000,70000,0,1,1,0,0,0,0,0,11,23663,3,0,0,0,0,0,0,'Winterskorn Warrior - Out of Combat - Say Line 1 (Winterskorn Shield-Maiden)'),
(23664,0,4,0,1,0,100,0,0,5000,5000,10000,0,10,36,38,54,0,0,0,11,23663,3,0,0,0,0,0,0,'Winterskorn Warrior - Out of Combat - Play Emote ''ONESHOT_ATTACK1H'' (Winterskorn Shield-Maiden)'),
(23664,0,5,0,1,0,100,0,0,60000,15000,70000,0,1,1,0,0,0,0,0,11,23664,3,0,0,0,0,0,0,'Winterskorn Warrior - Out of Combat - Say Line 1 (Winterskorn Warrior)'),
(23664,0,6,0,1,0,100,0,0,5000,5000,10000,0,10,36,38,54,0,0,0,11,23664,3,0,0,0,0,0,0,'Winterskorn Warrior - Out of Combat - Play Emote ''ONESHOT_ATTACK1H'' (Winterskorn Warrior)'),
(23664,0,7,0,1,0,100,0,0,60000,15000,70000,0,1,1,0,0,0,0,0,11,23665,3,0,0,0,0,0,0,'Winterskorn Warrior - Out of Combat - Say Line 1 (Winterskorn Raider)'),
(23664,0,8,0,1,0,100,0,0,5000,5000,10000,0,10,36,38,54,0,0,0,11,23665,3,0,0,0,0,0,0,'Winterskorn Warrior - Out of Combat - Play Emote ''ONESHOT_ATTACK1H'' (Winterskorn Raider)'),
(23664,0,9,0,1,0,100,0,0,60000,15000,70000,0,1,1,0,0,0,0,0,11,23666,3,0,0,0,0,0,0,'Winterskorn Warrior - Out of Combat - Say Line 1 (Winterskorn Berserker)'),
(23664,0,10,0,1,0,100,0,0,5000,5000,10000,0,10,36,38,54,0,0,0,11,23666,3,0,0,0,0,0,0,'Winterskorn Warrior - Out of Combat - Play Emote ''ONESHOT_ATTACK1H'' (Winterskorn Berserker)');
-- Winterskorn Raider: Spar with other Vrykul
DELETE FROM `smart_scripts` WHERE `entryorguid` = 23665 AND `source_type` = 0 AND `id` BETWEEN 4 AND 11;
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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(23665,0,4,0,1,0,100,0,0,60000,15000,70000,0,1,1,0,0,0,0,0,11,23663,3,0,0,0,0,0,0,'Winterskorn Raider - Out of Combat - Say Line 1 (Winterskorn Shield-Maiden)'),
(23665,0,5,0,1,0,100,0,0,5000,5000,10000,0,10,36,38,54,0,0,0,11,23663,3,0,0,0,0,0,0,'Winterskorn Raider - Out of Combat - Play Emote ''ONESHOT_ATTACK1H'' (Winterskorn Shield-Maiden)'),
(23665,0,6,0,1,0,100,0,0,60000,15000,70000,0,1,1,0,0,0,0,0,11,23664,3,0,0,0,0,0,0,'Winterskorn Raider - Out of Combat - Say Line 1 (Winterskorn Warrior)'),
(23665,0,7,0,1,0,100,0,0,5000,5000,10000,0,10,36,38,54,0,0,0,11,23664,3,0,0,0,0,0,0,'Winterskorn Raider - Out of Combat - Play Emote ''ONESHOT_ATTACK1H'' (Winterskorn Warrior)'),
(23665,0,8,0,1,0,100,0,0,60000,15000,70000,0,1,1,0,0,0,0,0,11,23665,3,0,0,0,0,0,0,'Winterskorn Raider - Out of Combat - Say Line 1 (Winterskorn Raider)'),
(23665,0,9,0,1,0,100,0,0,5000,5000,10000,0,10,36,38,54,0,0,0,11,23665,3,0,0,0,0,0,0,'Winterskorn Raider - Out of Combat - Play Emote ''ONESHOT_ATTACK1H'' (Winterskorn Raider)'),
(23665,0,10,0,1,0,100,0,0,60000,15000,70000,0,1,1,0,0,0,0,0,11,23666,3,0,0,0,0,0,0,'Winterskorn Raider - Out of Combat - Say Line 1 (Winterskorn Berserker)'),
(23665,0,11,0,1,0,100,0,0,5000,5000,10000,0,10,36,38,54,0,0,0,11,23666,3,0,0,0,0,0,0,'Winterskorn Raider - Out of Combat - Play Emote ''ONESHOT_ATTACK1H'' (Winterskorn Berserker)');
-- Winterskorn Berserker: Spar with other Vrykul
DELETE FROM `smart_scripts` WHERE `entryorguid` = 23666 AND `source_type` = 0 AND `id` BETWEEN 3 AND 10;
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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(23666,0,3,0,1,0,100,0,0,60000,15000,70000,0,1,1,0,0,0,0,0,11,23663,3,0,0,0,0,0,0,'Winterskorn Berserker - Out of Combat - Say Line 1 (Winterskorn Shield-Maiden)'),
(23666,0,4,0,1,0,100,0,0,5000,5000,10000,0,10,36,38,54,0,0,0,11,23663,3,0,0,0,0,0,0,'Winterskorn Berserker - Out of Combat - Play Emote ''ONESHOT_ATTACK1H'' (Winterskorn Shield-Maiden)'),
(23666,0,5,0,1,0,100,0,0,60000,15000,70000,0,1,1,0,0,0,0,0,11,23664,3,0,0,0,0,0,0,'Winterskorn Berserker - Out of Combat - Say Line 1 (Winterskorn Warrior)'),
(23666,0,6,0,1,0,100,0,0,5000,5000,10000,0,10,36,38,54,0,0,0,11,23664,3,0,0,0,0,0,0,'Winterskorn Berserker - Out of Combat - Play Emote ''ONESHOT_ATTACK1H'' (Winterskorn Warrior)'),
(23666,0,7,0,1,0,100,0,0,60000,15000,70000,0,1,1,0,0,0,0,0,11,23665,3,0,0,0,0,0,0,'Winterskorn Berserker - Out of Combat - Say Line 1 (Winterskorn Raider)'),
(23666,0,8,0,1,0,100,0,0,5000,5000,10000,0,10,36,38,54,0,0,0,11,23665,3,0,0,0,0,0,0,'Winterskorn Berserker - Out of Combat - Play Emote ''ONESHOT_ATTACK1H'' (Winterskorn Raider)'),
(23666,0,9,0,1,0,100,0,0,60000,15000,70000,0,1,1,0,0,0,0,0,11,23666,3,0,0,0,0,0,0,'Winterskorn Berserker - Out of Combat - Say Line 1 (Winterskorn Berserker)'),
(23666,0,10,0,1,0,100,0,0,5000,5000,10000,0,10,36,38,54,0,0,0,11,23666,3,0,0,0,0,0,0,'Winterskorn Berserker - Out of Combat - Play Emote ''ONESHOT_ATTACK1H'' (Winterskorn Berserker)');
-- Skorn Longhouse NW Bunny: Add fire effect (quest "Burn Skorn, Burn!")
UPDATE `smart_scripts` SET `link` = 1 WHERE `entryorguid` = 24098 AND `source_type` = 0 AND `id` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 24098 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(24098,0,1,0,61,0,100,0,0,0,0,0,0,67,1,5000,5000,0,0,0,1,0,0,0,0,0,0,0,0,'Skorn Longhouse NW Bunny - Linked - Create Timed Event ID 1'),
(24098,0,2,0,59,0,100,0,1,0,0,0,0,11,42346,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Skorn Longhouse NW Bunny - On Timed Event ID 1 - Cast \'Cosmetic - Flame Patch 2.0\' (42346)');
-- Skorn Longhouse NE Bunny: Add fire effect (quest "Burn Skorn, Burn!")
UPDATE `smart_scripts` SET `link` = 1 WHERE `entryorguid` = 24100 AND `source_type` = 0 AND `id` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 24100 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(24100,0,1,0,61,0,100,0,0,0,0,0,0,67,1,5000,5000,0,0,0,1,0,0,0,0,0,0,0,0,'Skorn Longhouse NE Bunny - Linked - Create Timed Event ID 1'),
(24100,0,2,0,59,0,100,0,1,0,0,0,0,11,42346,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Skorn Longhouse NE Bunny - On Timed Event ID 1 - Cast \'Cosmetic - Flame Patch 2.0\' (42346)');
-- Skorn Barracks Bunny: Add fire effect (quest "Burn Skorn, Burn!")
UPDATE `smart_scripts` SET `link` = 1 WHERE `entryorguid` = 24102 AND `source_type` = 0 AND `id` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 24102 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(24102,0,1,0,61,0,100,0,0,0,0,0,0,67,1,5000,5000,0,0,0,1,0,0,0,0,0,0,0,0,'Skorn Barracks Bunny - Linked - Create Timed Event ID 1'),
(24102,0,2,0,59,0,100,0,1,0,0,0,0,11,42346,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Skorn Barracks Bunny - On Timed Event ID 1 - Cast \'Cosmetic - Flame Patch 2.0\' (42346)');
-- Winterhoof Brave: Set react state to defensive; cast spell "Loan Spyglass" when selecting the gossip option "Please loan me that spyglass."
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 24130;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 24130 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(24130,0,0,0,54,0,100,0,0,0,0,0,0,8,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Winterhoof Brave - On Just Summoned - Set React State Defensive'),
(24130,0,1,0,62,0,100,0,8899,0,0,0,0,11,43103,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'Winterhoof Brave - On Gossip Select Menu ID 8899 - Cast Spell ''Loan Spyglass'' (43103)');
-- Winterhoof Brave: Only show gossip option "Please loan me that spyglass." if "Brave's Spyglass" is not in the inventory
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 15 AND `SourceGroup` = 8899;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(15,8899,0,0,0,2,0,33341,1,0,1,0,0,'','Winterhoof Brave - Loan Spyglass - Show gossip option only if ''Brave''s Spyglass'' not in inventory');
-- Westguard Sergeant: Set react state to defensive; cast spell "Loan Spyglass" when selecting the gossip option "Sergeant, loan me your spyglass."
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 24060;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 24060 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_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`)
VALUES
(24060,0,0,0,54,0,100,0,0,0,0,0,0,8,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Westguard Sergeant - On Just Summoned - Set React State Defensive'),
(24060,0,1,0,62,0,100,0,8886,0,0,0,0,11,43084,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'Westguard Sergeant - On Gossip Select Menu ID 8886 - Cast Spell ''Loan Spyglass'' (43084)');
-- Westguard Sergeant: Only show gossip option "Sergeant, loan me your spyglass." if "Sergeant's Spyglass" is not in the inventory
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 15 AND `SourceGroup` = 8886;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(15,8886,0,0,0,2,0,33336,1,0,1,0,0,'','Westguard Sergeant - Loan Spyglass - Show gossip option only if ''Sergeant''s Spyglass'' not in inventory');
-- Enable "Winterhoof Emblem" to also dismiss the Winterhoof Brave:
DELETE FROM `spell_script_names` WHERE `spell_id` = 43102;
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`)
VALUES
(43102,'spell_item_summon_or_dismiss');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2019_05_07_00 -> 2019_05_07_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_07_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_07_00 2019_05_07_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1556311512999196000'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1556311512999196000');
UPDATE `quest_template` SET `RewardFactionOverride1`=2500, `flags`=1 WHERE `ID`=13662;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,38 @@
-- DB update 2019_05_07_01 -> 2019_05_08_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_07_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_07_01 2019_05_08_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1556618006402506300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1556618006402506300');
DELETE FROM `command` WHERE `name` IN
("deserter instance add",
"deserter instance remove",
"deserter bg add",
"deserter bg remove");
INSERT INTO `command` (`name`, `security`, `help`) VALUES
("deserter instance add", 3, "Syntax: .deserter instance add $time \n\n Adds the instance deserter debuff to your target with $time duration."),
("deserter instance remove", 3, "Syntax: .deserter instance remove \n\n Removes the instance deserter debuff from your target."),
("deserter bg add", 3, "Syntax: .deserter bg add $time \n\n Adds the bg deserter debuff to your target with $time duration."),
("deserter bg remove", 3, "Syntax: .deserter bg remove \n\n Removes the bg deserter debuff from your target.");
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2019_05_08_00 -> 2019_05_09_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_08_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_08_00 2019_05_09_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1556709959826673022'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1556709959826673022');
UPDATE `gameobject_template` SET `Data3` = 8000 WHERE `entry` = 190622;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,353 @@
-- DB update 2019_05_09_00 -> 2019_05_09_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_09_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_09_00 2019_05_09_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1556735258414250700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1556735258414250700');
-- Quarry Slave
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8917;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8917 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
(8917,0,0,0,4,0,100,0,0,0,0,0,0,39,20,1,0,0,0,0,1,0,0,0,0,0,0,0,'Quarry Slave - On Aggro - Call For Help'),
(8917,0,1,0,0,0,100,0,5000,8000,5000,8000,0,11,14516,0,0,0,0,0,2,0,0,0,0,0,0,0,'Quarry Slave - In Combat - Cast Strike'),
(8917,0,2,0,0,0,100,0,7000,9000,13000,16000,0,11,9080,0,0,0,0,0,2,0,0,0,0,0,0,0,'Quarry Slave - In Combat - Cast Hamstring'),
(8917,0,3,0,2,0,100,1,0,15,0,0,0,25,1,0,0,0,0,0,0,0,0,0,0,0,0,0,'Quarry Slave - Between 0-15% Health - Flee For Assist (No Repeat)');
UPDATE `creature_addon` SET `emote`=173 WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE `id`=8917); -- Add some missing emotes
-- Anvilrage Overseer
DELETE FROM `smart_scripts` WHERE `entryorguid`=8889 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
(8889,0,1,0,25,0,100,0,0,0,0,0,0,11,13589,0,0,0,0,0,1,0,0,0,0,0,0,0,'Anvilrage Overseer - On Reset - Cast Haste Aura');
-- Anvilrage Warden
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8890;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8890 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
(8890,0,0,0,9,0,100,0,0,30,12000,18000,0,11,14030,0,0,0,0,0,2,0,0,0,0,0,0,0,'Anvilrage Warden - Within 0-30 Range - Cast Hooked Net'),
(8890,0,1,0,0,0,100,0,9000,11000,12000,16000,0,11,11972,0,0,0,0,0,2,0,0,0,0,0,0,0,'Anvilrage Warden - In Combat - Cast Shield Bash');
-- Bloodhound
DELETE FROM `smart_scripts` WHERE `entryorguid`=8921 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
(8921,0,2,0,25,0,100,0,0,0,0,0,0,11,8279,0,0,0,0,0,1,0,0,0,0,0,0,0,'Bloodhound - On Reset - Cast Stealth Detection');
-- Anvilrage Guardsman
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8891;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8891 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
(8891,0,0,0,0,0,100,0,3000,6000,13000,16000,0,11,12169,0,0,0,0,0,1,0,0,0,0,0,0,0,'Anvilrage Guardsman - In Combat - Cast Shield Block'),
(8891,0,1,0,0,0,100,0,7000,9000,12000,14000,0,11,6713,0,0,0,0,0,2,0,0,0,0,0,0,0,'Anvilrage Guardsman - In Combat - Cast Disarm'),
(8891,0,2,0,0,0,100,0,5000,7000,15000,17000,0,11,11971,0,0,0,0,0,2,0,0,0,0,0,0,0,'Anvilrage Guardsman - In Combat - Cast Sunder Armor');
-- Twilight's Hammer Torturer
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8912;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8912 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
(8912,0,0,0,25,0,100,0,0,0,0,0,0,11,13616,0,0,0,0,0,1,0,0,0,0,0,0,0,'Twilights Hammer Torturer - On Reset - Cast Wracking Pains Proc'),
(8912,0,1,0,0,0,100,0,3000,6000,14000,17000,0,11,14032,0,0,0,0,0,5,0,0,0,0,0,0,0,'Twilights Hammer Torturer - In Combat - Cast Shadow Word: Pain');
-- Anvilrage Footman
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8892;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8892 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
(8892,0,0,0,0,0,100,0,5000,8000,7000,10000,0,11,11976,0,0,0,0,0,2,0,0,0,0,0,0,0,'Anvilrage Footman - In Combat - Cast Strike'),
(8892,0,1,0,13,0,100,0,13000,15000,0,0,0,11,11978,0,0,0,0,0,2,0,0,0,0,0,0,0,'Anvilrage Footman - Target Casting - Cast Kick');
-- Fireguard
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8909;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8909 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
(8909,0,0,0,0,0,100,0,0,0,3000,5000,0,11,15242,64,0,0,0,0,2,0,0,0,0,0,0,0,'Fireguard - In Combat - Cast Fireball');
-- Lord Roccor
DELETE FROM `smart_scripts` WHERE `entryorguid`=9025 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
(9025,0,2,0,0,0,100,0,10000,13000,11000,14000,0,11,6524,0,0,0,0,0,1,0,0,0,0,0,0,0,'Lord Roccor - In Combat - Cast Ground Tremor');
-- Houndmaster Grebmar
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=9319;
DELETE FROM `smart_scripts` WHERE `entryorguid`=9319 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
(9319,0,0,0,0,0,100,0,7000,9000,22000,24000,0,11,13730,0,0,0,0,0,1,0,0,0,0,0,0,0,'Houndmaster Grebmar - In Combat - Cast Demoralizing Shout'),
(9319,0,1,0,0,0,100,0,5000,7000,12000,14000,0,11,15615,0,0,0,0,0,2,0,0,0,0,0,0,0,'Houndmaster Grebmar - In Combat - Cast Pummel'),
(9319,0,2,0,2,0,100,1,0,30,0,0,0,11,21049,0,0,0,0,0,1,0,0,0,0,0,0,0,'Houndmaster Grebmar - Between 0-30% Health - Cast Bloodlust (No Repeat)');
-- Arena Spectator
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8916;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8916 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
(8916,0,0,0,2,0,100,1,0,15,0,0,0,25,1,0,0,0,0,0,0,0,0,0,0,0,0,0,'Arena Spectator - Between 0-15% Health - Flee For Assist (No Repeat)');
-- Anvilrage Soldier
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8893;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8893 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
(8893,0,0,0,0,0,100,0,5000,7000,11000,15000,0,11,15284,0,0,0,0,0,2,0,0,0,0,0,0,0,'Anvilrage Soldier - In Combat - Cast Cleave'),
(8893,0,1,0,0,0,100,0,7000,9000,13000,15000,0,11,9080,0,0,0,0,0,2,0,0,0,0,0,0,0,'Anvilrage Soldier - In Combat - Cast Hamstring'),
(8893,0,2,0,2,0,100,0,0,30,16000,18000,0,11,13847,0,0,0,0,0,1,0,0,0,0,0,0,0,'Anvilrage Soldier - Between 0-30% Health - Cast Recklessness');
-- Anvilrage Medic
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8894;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8894 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
(8894,0,0,0,16,0,100,0,13864,1,1000,2000,0,11,13864,0,0,0,0,0,7,0,0,0,0,0,0,0,'Anvilrage Medic - On Friendly Unit Missing Buff Power Word: Fortitude - Cast Power Word: Fortitude'),
(8894,0,1,0,0,0,100,0,0,0,3000,5000,0,11,15587,64,0,0,0,0,2,0,0,0,0,0,0,0,'Anvilrage Medic - In Combat - Cast Mind Blast'),
(8894,0,2,0,0,0,100,0,12000,15000,28000,32000,0,11,15585,0,0,0,0,0,1,0,0,0,0,0,0,0,'Anvilrage Medic - In Combat - Cast Prayer of Healing'),
(8894,0,3,0,14,0,100,0,2500,40,18000,21000,0,11,15586,0,0,0,0,0,7,0,0,0,0,0,0,0,'Anvilrage Medic - Friendly At 2500 Health - Cast Heal');
-- Shadowforge Citizen
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8902;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8902 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
(8902,0,0,0,4,0,100,0,0,0,0,0,0,31,1,5,0,0,0,0,1,0,0,0,0,0,0,0,'Shadowforge Citizen - On Aggro - Set Phase Random Between 1-5'),
(8902,0,1,0,0,1,100,0,7000,9000,8000,12000,0,11,40505,0,0,0,0,0,2,0,0,0,0,0,0,0,'Shadowforge Citizen - In Combat - Cast Cleave (Phase 1)'),
(8902,0,2,0,0,1,100,0,5000,7000,7000,10000,0,11,13446,0,0,0,0,0,2,0,0,0,0,0,0,0,'Shadowforge Citizen - In Combat - Cast Strike (Phase 1)'),
(8902,0,3,0,0,2,100,0,6000,8000,15000,18000,0,11,11831,0,0,0,0,0,1,0,0,0,0,0,0,0,'Shadowforge Citizen - In Combat - Cast Frost Nova (Phase 2)'),
(8902,0,4,0,0,4,100,0,0,0,3000,4000,0,11,9613,64,0,0,0,0,2,0,0,0,0,0,0,0,'Shadowforge Citizen - In Combat - Cast Shadow Bolt (Phase 3)'),
(8902,0,5,0,0,8,100,0,3000,6000,6000,12000,0,11,13339,0,0,0,0,0,5,0,0,0,0,0,0,0,'Shadowforge Citizen - In Combat - Cast Fire Blast (Phase 4)'),
(8902,0,6,0,14,16,100,0,1200,40,18000,21000,0,11,11642,0,0,0,0,0,7,0,0,0,0,0,0,0,'Shadowforge Citizen - Friendly At 1200 Health - Cast Heal (Phase 5)'),
(8902,0,7,0,2,0,100,1,0,15,0,0,0,25,1,0,0,0,0,0,0,0,0,0,0,0,0,0,'Shadowforge Citizen - Between 0-15% Health - Flee For Assist (No Repeat)');
-- Shadowforge Peasant
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8896;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8896 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
(8896,0,0,0,4,0,100,0,0,0,0,0,0,31,1,5,0,0,0,0,1,0,0,0,0,0,0,0,'Shadowforge Peasant - On Aggro - Set Phase Random Between 1-5'),
(8896,0,1,0,0,1,100,0,7000,9000,12000,17000,0,11,6713,0,0,0,0,0,2,0,0,0,0,0,0,0,'Shadowforge Peasant - In Combat - Cast Disarm (Phase 1)'),
(8896,0,2,0,0,1,100,0,5000,7000,7000,10000,0,11,13446,0,0,0,0,0,2,0,0,0,0,0,0,0,'Shadowforge Peasant - In Combat - Cast Strike (Phase 1)'),
(8896,0,3,0,0,2,100,0,0,0,2000,4000,0,11,6660,64,0,0,0,0,2,0,0,0,0,0,0,0,'Shadowforge Peasant - In Combat - Cast Shoot (Phase 2)'),
(8896,0,4,0,9,2,100,0,0,5,18000,21000,0,11,3604,0,0,0,0,0,2,0,0,0,0,0,0,0,'Shadowforge Peasant - Within 0-5 Range - Cast Tendon Rip (Phase 2)'),
(8896,0,5,0,0,4,100,0,0,0,2000,4000,0,11,7978,64,0,0,0,0,2,0,0,0,0,0,0,0,'Shadowforge Peasant - In Combat - Cast Throw Dynamite (Phase 3)'),
(8896,0,6,0,14,8,100,0,1200,40,18000,21000,0,11,11642,0,0,0,0,0,7,0,0,0,0,0,0,0,'Shadowforge Peasant - Friendly At 1200 Health - Cast Heal (Phase 4)'),
(8896,0,7,0,0,16,100,0,0,0,3000,5000,0,11,9053,64,0,0,0,0,2,0,0,0,0,0,0,0,'Shadowforge Citizen - In Combat - Cast Fireball (Phase 5)'),
(8896,0,8,0,2,0,100,1,0,15,0,0,0,25,1,0,0,0,0,0,0,0,0,0,0,0,0,0,'Shadowforge Peasant - Between 0-15% Health - Flee For Assist (No Repeat)');
-- Anvilrage Officer
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8895;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8895 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
(8895,0,0,0,4,0,100,0,0,0,0,0,0,11,9128,0,0,0,0,0,1,0,0,0,0,0,0,0,'Anvilrage Officer - On Aggro - Cast Battle Shout'),
(8895,0,1,0,0,0,100,0,5000,7000,9000,13000,0,11,6253,0,0,0,0,0,2,0,0,0,0,0,0,0,'Anvilrage Officer - In Combat - Cast Backhand'),
(8895,0,2,0,14,0,100,0,3000,40,12000,16000,0,11,13952,0,0,0,0,0,7,0,0,0,0,0,0,0,'Anvilrage Officer - Friendly At 3000 Health - Cast Holy Light'),
(8895,0,3,0,2,0,100,0,0,20,21000,28000,0,11,13874,0,0,0,0,0,1,0,0,0,0,0,0,0,'Anvilrage Officer - Between 0-15% Health - Cast Divine Shield');
-- Shadowforge Senator
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8904;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8904 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
(8904,0,0,0,4,0,100,0,0,0,0,0,0,31,1,5,0,0,0,0,1,0,0,0,0,0,0,0,'Shadowforge Senator - On Aggro - Set Phase Random Between 1-5'),
(8904,0,1,0,0,1,100,0,0,0,3000,5000,0,11,14034,64,0,0,0,0,2,0,0,0,0,0,0,0,'Shadowforge Senator - In Combat - Cast Fireball (Phase 1)'),
(8904,0,2,0,16,1,100,0,2601,1,15000,19000,0,11,2601,0,0,0,0,0,7,0,0,0,0,0,0,0,'Shadowforge Senator - On Friendly Unit Missing Buff Fire Shield III - Cast Fire Shield III (Phase 1)'),
(8904,0,3,0,0,2,100,0,0,0,3000,5000,0,11,12471,64,0,0,0,0,2,0,0,0,0,0,0,0,'Shadowforge Senator - In Combat - Cast Shadow Bolt (Phase 2)'),
(8904,0,4,0,0,2,100,0,3000,6000,13000,19000,0,11,14868,0,0,0,0,0,5,0,0,0,0,0,0,0,'Shadowforge Senator - In Combat - Cast Curse of Agony (Phase 2)'),
(8904,0,5,0,0,4,100,0,6000,8000,15000,18000,0,11,11831,0,0,0,0,0,1,0,0,0,0,0,0,0,'Shadowforge Senator - In Combat - Cast Frost Nova (Phase 3)'),
(8904,0,6,0,0,8,100,0,3000,8000,14000,25000,0,11,11436,0,0,0,0,0,5,0,0,0,0,0,0,0,'Shadowforge Senator - In Combat - Cast Slow (Phase 4)'),
(8904,0,7,0,0,16,100,0,1000,2000,3000,5000,0,11,15498,64,0,0,0,0,2,0,0,0,0,0,0,0,'Shadowforge Senator - In Combat - Cast Holy Smite (Phase 5)'),
(8904,0,8,0,2,0,100,1,0,15,0,0,0,25,1,0,0,0,0,0,0,0,0,0,0,0,0,0,'Shadowforge Senator - Between 0-15% Health - Flee For Assist (No Repeat)');
-- Twilight Emissary
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8913;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8913 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
(8913,0,0,0,4,0,100,0,0,0,0,0,0,31,1,3,0,0,0,0,1,0,0,0,0,0,0,0,'Twilight Emissary - On Aggro - Set Phase Random Between 1-3'),
(8913,0,1,0,16,1,100,0,15288,1,8000,11000,0,11,15288,0,0,0,0,0,7,0,0,0,0,0,0,0,'Twilight Emissary - On Friendly Unit Missing Buff Fury of Ragnaros - Cast Fury of Ragnaros (Phase 1)'),
(8913,0,2,0,0,1,100,0,0,0,3000,5000,0,11,12466,64,0,0,0,0,2,0,0,0,0,0,0,0,'Twilight Emissary - In Combat - Cast Fireball (Phase 1)'),
(8913,0,3,0,0,2,100,0,0,0,3000,5000,0,11,15043,64,0,0,0,0,2,0,0,0,0,0,0,0,'Twilight Emissary - In Combat - Cast Frostbolt (Phase 2)'),
(8913,0,4,0,0,2,100,0,15000,25000,20000,25000,0,11,8364,0,0,0,0,0,5,0,0,0,0,0,0,0,'Twilight Emissary - In Combat - Cast Blizzard (Phase 2)'),
(8913,0,5,0,9,2,100,0,0,8,20000,22000,0,11,15063,0,0,0,0,0,1,0,0,0,0,0,0,0,'Twilight Emissary - Within 0-8 Range - Cast Frost Nova (Phase 2)'),
(8913,0,6,0,16,2,100,0,12544,1,1000,1000,0,11,12544,0,0,0,0,0,1,0,0,0,0,0,0,0,'Twilight Emissary - On Friendly Unit Missing Buff Frost Armor - Cast Frost Armor (Phase 2)'),
(8913,0,7,0,0,4,100,0,0,0,2000,4000,0,11,13748,64,0,0,0,0,2,0,0,0,0,0,0,0,'Twilight Emissary - In Combat - Cast Arcane Bolt (Phase 3)'),
(8913,0,8,0,9,5,100,0,0,8,16000,20000,0,11,13745,0,0,0,0,0,1,0,0,0,0,0,0,0,'Twilight Emissary - Within 0-8 Range - Cast Arcane Explosion (Phase 3)');
-- Twilight Bodyguard
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8914;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8914 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
(8914,0,0,0,13,0,100,0,15000,17000,0,0,0,11,13902,0,0,0,0,0,2,0,0,0,0,0,0,0,'Twilight Bodyguard - Target Casting - Cast Pummel'),
(8914,0,1,0,0,0,100,0,13000,15000,13000,15000,0,11,13902,0,0,0,0,0,2,0,0,0,0,0,0,0,'Twilight Bodyguard - In Combat - Cast Fist of Ragnaros'),
(8914,0,2,0,14,0,100,0,3000,40,31000,33000,0,11,13903,0,0,0,0,0,7,0,0,0,0,0,0,0,'Twilight Bodyguard - Friendly At 3000 Health - Cast Seal of Sacrifice');
-- Pyromancer Loregrain
DELETE FROM `smart_scripts` WHERE `entryorguid`=9024 AND `source_type`=0 AND `id`=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
(9024,0,3,0,0,0,100,0,2000,7000,30000,45000,0,11,15041,0,0,0,0,0,1,0,0,0,0,0,0,0,'Pyromancer Loregrain - In Combat - Cast Fire Ward');
-- Doomforge Craftsman
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8897;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8897 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
(8897,0,0,0,4,0,100,0,0,0,0,0,0,31,1,2,0,0,0,0,1,0,0,0,0,0,0,0,'Doomforge Craftsman - On Aggro - Set Phase Random Between 1-2'),
(8897,0,1,0,0,1,100,0,0,0,2000,3000,0,11,15619,64,0,0,0,0,2,0,0,0,0,0,0,0,'Doomforge Craftsman - In Combat - Cast Throw Wrench (Phase 1)'),
(8897,0,2,0,0,2,100,0,0,0,2000,3000,0,11,9143,64,0,0,0,0,2,0,0,0,0,0,0,0,'Doomforge Craftsman - In Combat - Cast Bomb (Phase 2)'),
(8897,0,3,0,2,0,100,1,0,15,0,0,0,25,1,0,0,0,0,0,0,0,0,0,0,0,0,0,'Doomforge Craftsman - Between 0-15% Health - Flee For Assist (No Repeat)');
UPDATE `creature_addon` SET `emote`=173 WHERE `guid` IN (47722,47723,47724,47731,47732,47709,47710,47711,47706,47707,47726,47715,47727,47728,47713,47714,47718,47719,47720); -- Add some missing emotes
-- Bloodhound Mastiff
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8922;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8922 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
(8922,0,0,0,0,0,100,0,5000,7000,11000,13000,0,11,7140,0,0,0,0,0,2,0,0,0,0,0,0,0,'Bloodhound Mastiff - In Combat - Cast Expose Weakness'),
(8922,0,1,0,0,0,100,0,9000,11000,20000,22000,0,11,15608,0,0,0,0,0,2,0,0,0,0,0,0,0,'Bloodhound Mastiff - In Combat - Cast Ravenous Claw'),
(8922,0,2,0,25,0,100,0,0,0,0,0,0,11,8279,0,0,0,0,0,1,0,0,0,0,0,0,0,'Bloodhound Mastiff - On Reset - Cast Stealth Detection');
-- Fireguard Destroyer
DELETE FROM `smart_scripts` WHERE `entryorguid`=8911 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
(8911,0,1,0,25,0,100,0,0,0,0,0,0,11,3417,0,0,0,0,0,1,0,0,0,0,0,0,0,'Fireguard Destroyer - On Reset - Cast Thrash');
-- Blazing Fireguard
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8910;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8910 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
(8910,0,0,0,0,0,100,0,3000,5000,6000,12000,0,11,13341,0,0,0,0,0,2,0,0,0,0,0,0,0,'Blazing Fireguard - In Combat - Cast Fire Blast'),
(8910,0,1,0,0,0,100,0,9000,11000,11000,18000,0,11,20787,0,0,0,0,0,5,0,0,0,0,0,0,0,'Blazing Fireguard - In Combat - Cast Immolate'),
(8910,0,2,0,0,0,100,0,5000,7000,3000,6000,0,11,15241,0,0,0,0,0,2,0,0,0,0,0,0,0,'Blazing Fireguard - In Combat - Cast Scorch');
-- Verek
DELETE FROM `smart_scripts` WHERE `entryorguid`=9042 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
(9042,0,0,0,0,0,100,0,3000,5000,30000,45000,0,11,15042,0,0,0,0,0,2,0,0,0,0,0,0,0,'Verek - In Combat - Cast Curse of Blood');
-- Dark Keeper Bethek
UPDATE `smart_scripts` SET `action_param2`=0 WHERE `entryorguid`=9438 AND `source_type`=0 AND `id`=1;
-- Warbringer Construct
DELETE FROM `smart_scripts` WHERE `entryorguid`=8905 AND `source_type`=0 AND `id`=6;
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
(8905,0,6,0,4,0,30,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Warbringer Construct - On Aggro - Say Line 0');
DELETE FROM `creature_text` WHERE `CreatureID`=8905;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(8905,0,0,"Intruders!!",12,0,100,0,0,0,4961,0,"Warbringer Construct");
-- Fineous Darkvire
UPDATE `smart_scripts` SET `target_type`=2 WHERE `entryorguid`=9056 AND `source_type`=0 AND `id`=3;
-- Lord Incendius
DELETE FROM `smart_scripts` WHERE `entryorguid`=9017 AND `source_type`=0 AND `id`=4;
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
(9017,0,4,0,6,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Lord Incendius - On Just Died - Say Line 0');
DELETE FROM `creature_text` WHERE `CreatureID`=9017;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(9017,0,0,'I cannot be destroyed! By the will of Ragnaros, I shall be reborn!',12,0,100,0,0,0,5061,0,'Lord Incendius');
-- Doomforge Dragoon
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8899;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8899 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
(8899,0,0,0,0,0,100,0,0,0,2000,4000,0,11,15620,64,0,0,0,0,2,0,0,0,0,0,0,0,'Doomforge Dragoon - In Combat - Cast Shoot'),
(8899,0,1,0,0,0,100,0,4000,6000,8000,12000,0,11,15495,0,0,0,0,0,2,0,0,0,0,0,0,0,'Doomforge Dragoon - In Combat - Cast Explosive Shot'),
(8899,0,2,0,0,0,100,0,5000,7000,8000,12000,0,11,15496,0,0,0,0,0,2,0,0,0,0,0,0,0,'Doomforge Dragoon - In Combat - Cast Cleave');
-- Anvilrage Marshal
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8898;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8898 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
(8898,0,0,0,4,0,100,0,0,0,0,0,0,11,8258,0,0,0,0,0,1,0,0,0,0,0,0,0,'Anvilrage Marshal - On Aggro - Cast Pummel'),
(8898,0,1,0,0,0,100,0,5000,7000,7000,9000,0,11,13953,0,0,0,0,0,2,0,0,0,0,0,0,0,'Anvilrage Marshal - In Combat - Cast Holy Strike'),
(8898,0,2,0,14,0,100,0,3000,40,12000,16000,0,11,13952,0,0,0,0,0,7,0,0,0,0,0,0,0,'Anvilrage Marshal - Friendly At 3000 Health - Cast Holy Light');
-- Weapon Technician
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8920;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8920 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
(8920,0,0,0,4,0,100,0,0,0,0,0,0,31,1,3,0,0,0,0,1,0,0,0,0,0,0,0,'Weapon Technician - On Aggro - Set Phase Random Between 1-3'),
(8920,0,1,0,0,0,100,0,0,0,2000,4000,0,11,6660,64,0,0,0,0,2,0,0,0,0,0,0,0,'Weapon Technician - In Combat - Cast Shoot'),
(8920,0,2,0,0,1,100,0,3000,6000,10000,13000,0,11,7896,0,0,0,0,0,2,0,0,0,0,0,0,0,'Weapon Technician - In Combat - Cast Exploding Shot (Phase 1)'),
(8920,0,3,0,0,2,100,0,3000,6000,10000,13000,0,11,12551,0,0,0,0,0,2,0,0,0,0,0,0,0,'Weapon Technician - In Combat - Cast Frost Shot (Phase 2)'),
(8920,0,4,0,0,4,100,0,5000,7000,13000,15000,0,11,14443,0,0,0,0,0,2,0,0,0,0,0,0,0,'Weapon Technician - In Combat - Cast Multi-Shot (Phase 3)'),
(8920,0,5,0,2,0,100,1,0,15,0,0,0,25,1,0,0,0,0,0,0,0,0,0,0,0,0,0,'Weapon Technician - Between 0-15% Health - Flee For Assist (No Repeat)');
-- Doomforge Arcanasmith
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8900;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8900 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
(8900,0,0,0,0,0,100,0,0,0,2000,4000,0,11,13748,64,0,0,0,0,2,0,0,0,0,0,0,0,'Doomforge Arcanasmith - In Combat - Cast Arcane Bolt'),
(8900,0,1,0,9,0,100,0,0,8,8000,12000,0,11,13745,0,0,0,0,0,1,0,0,0,0,0,0,0,'Doomforge Arcanasmith - Within 0-8 Range - Cast Arcane Explosion'),
(8900,0,2,0,2,0,100,1,0,15,0,0,0,25,1,0,0,0,0,0,0,0,0,0,0,0,0,0,'Doomforge Arcanasmith - Between 0-15% Health - Flee For Assist (No Repeat)');
-- Ragereaver Golem
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8906;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8906 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
(8906,0,0,0,25,0,100,0,0,0,0,0,0,11,15088,0,0,0,0,0,1,0,0,0,0,0,0,0,'Ragereaver Golem - On Reset - Cast Flurry'),
(8906,0,1,0,2,0,100,1,0,30,0,0,0,11,12795,0,0,0,0,0,1,0,0,0,0,0,0,0,'Ragereaver Golem - Between 0-30% Health - Cast Frenzy (No Repeat)'),
(8906,0,2,0,2,0,100,1,0,30,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Ragereaver Golem - Between 0-30% Health - Say Line 0 (No Repeat)');
DELETE FROM `creature_text` WHERE `CreatureID`=8906;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(8906,0,0,"%s goes into a frenzy!",16,0,100,0,0,0,2384,0,"Ragereaver Golem");
-- Mistress Nagmara
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid`=950000 AND `source_type`=9 AND `id`=0;
DELETE FROM `creature_text` WHERE `CreatureID`=9500 AND `GroupID`=0 AND `ID`=3;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(9500,0,3,"Yes $gsir:madam;.",12,0,100,0,0,0,4983,0,"Mistress Nagmara");
-- Molten War Golem
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8908;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8908 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
(8908,0,0,0,25,0,100,0,0,0,0,0,0,11,15506,0,0,0,0,0,1,0,0,0,0,0,0,0,'Molten War Golem - On Reset - Cast Immolate');
-- Shadowforge Flame Keeper
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=9956;
DELETE FROM `smart_scripts` WHERE `entryorguid`=9956 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
(9956,0,0,0,4,0,100,0,0,0,0,0,0,11,9128,1,0,0,0,0,1,0,0,0,0,0,0,0,'Shadowforge Flame Keeper - On Aggro - Cast Battle Shout'),
(9956,0,1,0,0,0,100,0,0,0,2200,3800,0,11,6660,64,0,0,0,0,2,0,0,0,0,0,0,0,'Shadowforge Flame Keeper - In Combat - Cast Shoot'),
(9956,0,2,0,0,0,100,0,4000,6000,12000,15000,0,11,9080,0,0,0,0,0,2,0,0,0,0,0,0,0,'Shadowforge Flame Keeper - In Combat - Cast Hamstring'),
(9956,0,3,0,0,0,100,0,8000,11000,6000,9000,0,11,11976,0,0,0,0,0,2,0,0,0,0,0,0,0,'Shadowforge Flame Keeper - In Combat - Cast Strike');
-- Twilight's Hammer Ambassador
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8915;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8915 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
(8915,0,0,0,4,0,100,0,0,0,0,0,0,31,1,4,0,0,0,0,1,0,0,0,0,0,0,0,'Twilights Hammer Ambassador - On Aggro - Set Phase Random Between 1-4'),
(8915,0,1,0,0,1,100,0,6000,10000,7000,14000,0,11,12248,0,0,0,0,0,5,0,0,0,0,0,0,0,'Twilights Hammer Ambassador - In Combat - Cast Amplify Damage (Phase 1)'),
(8915,0,2,0,0,1,100,0,2000,4000,12000,16000,0,11,11980,32,0,0,0,0,5,0,0,0,0,0,0,0,'Twilights Hammer Ambassador - In Combat - Cast Curse of Weakness (Phase 1)'),
(8915,0,3,0,0,2,100,0,3000,5000,7000,9000,0,11,15499,0,0,0,0,0,5,0,0,0,0,0,0,0,'Twilights Hammer Ambassador - In Combat - Cast Frost Shock (Phase 2)'),
(8915,0,4,0,0,4,100,0,3000,5000,7000,9000,0,11,15096,0,0,0,0,0,5,0,0,0,0,0,0,0,'Twilights Hammer Ambassador - In Combat - Cast Flame Shock (Phase 3)'),
(8915,0,5,0,14,8,100,0,1300,40,10000,18000,0,11,6742,0,0,0,0,0,7,0,0,0,0,0,0,0,'Twilights Hammer Ambassador - Friendly At 1300 Health - Cast Bloodlust (Phase 4)'),
(8915,0,6,0,0,8,100,0,3000,5000,7000,9000,0,11,15500,0,0,0,0,0,5,0,0,0,0,0,0,0,'Twilights Hammer Ambassador - In Combat - Cast Shock (Phase 4)');
-- Lava Surger
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=12101;
DELETE FROM `smart_scripts` WHERE `entryorguid`=12101 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
(12101,0,0,0,0,0,100,0,1000,1000,12000,15000,0,11,19196,0,0,0,0,0,5,0,0,0,0,0,0,0,'Lava Surger - In Combat - Cast Surge');
-- Fix spawn position for some creatures
UPDATE `creature` SET `position_x`=724.198, `position_y`=-131.585, `position_z`=-71.9149, `orientation`=3.86779 WHERE `guid`=45859;
UPDATE `creature` SET `position_x`=723.114, `position_y`=-134.579, `position_z`=-71.9354, `orientation`=1.92786, `spawndist`=0, `MovementType`=0 WHERE `guid`=45857;
-- Fix gossip text for Anger'rel
UPDATE `npc_text` SET `text0_0`="I am one of the Seven, and it is our doom to stand sentry. Forever.", `BroadcastTextID0`=4874 WHERE `ID`=2596;
-- Fix Typo
UPDATE `smart_scripts` SET `event_chance`=100 WHERE `event_chance`=0;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2019_05_09_01 -> 2019_05_10_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_09_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_09_01 2019_05_10_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1556953235734868559'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1556953235734868559');
UPDATE `gameobject_template` SET `Data5` = 1 WHERE `entry` = 190779;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,35 @@
-- DB update 2019_05_10_00 -> 2019_05_11_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_10_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_10_00 2019_05_11_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1557056661920687200'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1557056661920687200');
-- Void Spawner - Quest - Warp Rifts SAI
SET @ENTRY := 20143;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,1,1,0,100,0,2000,5000,15000,23000,11,34943,0,0,0,0,0,1,0,0,0,0,0,0,0,'Void Spawner - Quest - Warp Rifts - Out of Combat - Cast ''Summon Unstable Voidwalker'''),
(@ENTRY,0,1,0,61,0,100,0,0,0,0,0,23,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Void Spawner - Linked - Self: Increment Phase by 1'),
(@ENTRY,0,2,0,1,4,100,0,0,0,0,0,41,1000,0,0,0,0,0,1,0,0,0,0,0,0,0,'Void Spawner - Out of Combat (Phase 3) - Self: Despawn in 1000 ms');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,33 @@
-- DB update 2019_05_11_00 -> 2019_05_11_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_11_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_11_00 2019_05_11_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1557093466058926300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1557093466058926300');
-- Bleeding Hollow Riding Worg SAI
SET @ENTRY := 19640;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,0,7,0,100,0,0,0,0,0,41,1000,0,0,0,0,0,1,0,0,0,0,0,0,0,'Bleeding Hollow Riding Worg - On evade - Self: Despawn in 1000 ms');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,29 @@
-- DB update 2019_05_11_01 -> 2019_05_11_02
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_11_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_11_01 2019_05_11_02 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1557397608779068000'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1557397608779068000');
-- Rabid Grizzly and Blighted Elk creatures
DELETE FROM `creature` WHERE `guid` IN(97981, 52318, 119440, 119499, 97934, 119442, 97955, 97973, 119466, 119430, 97948, 119436, 119494, 97976, 97946, 97947, 97950, 119431, 119475, 119441, 97974, 119496, 119462, 119461, 97969, 97959, 97958, 119497, 119455, 97971, 119493, 119433, 97951, 119439, 119437, 119438, 97966, 119439, 97965, 97964, 119468, 97963, 119465, 97952, 119432) AND `id` IN(26643, 26616);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,29 @@
-- DB update 2019_05_11_02 -> 2019_05_12_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_11_02';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_11_02 2019_05_12_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1557057861901733700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1557057861901733700');
-- Returning the Favor (9931)
UPDATE `conditions` SET `ConditionValue1` = 18064 WHERE `SourceTypeOrReferenceId` = 17 AND `SourceEntry` = 32314 AND `ConditionTypeOrReference` = 29 AND `ElseGroup` = 1;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,35 @@
-- DB update 2019_05_12_00 -> 2019_05_13_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_12_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_12_00 2019_05_13_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1557081152867649198'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1557081152867649198');
DELETE FROM `command` WHERE `name` IN ('arena create', 'arena disband', 'arena rename', 'arena captain', 'arena info', 'arena lookup');
INSERT INTO `command` (`name`, `security`, `help`) VALUES
('arena create', 3, 'Syntax: .arena create $name "arena name" #type\n\nA command to create a new Arena-team in game. #type = [2/3/5]'),
('arena disband', 3, 'Syntax: .arena disband #TeamID\n\nA command to disband Arena-team in game.'),
('arena rename', 3, 'Syntax: .arena rename "oldname" "newname"\n\nA command to rename Arena-team name.'),
('arena captain', 3, 'Syntax: .arena captain #TeamID $name\n\nA command to set new captain to the team $name must be in the team'),
('arena info', 2, 'Syntax: .arena info #TeamID\n\nA command that show info about arena team'),
('arena lookup', 2, 'Syntax: .arena lookup $name\n\nA command that give a list of arenateam with the given $name');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2019_05_13_00 -> 2019_05_13_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_13_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_13_00 2019_05_13_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1557175548575526900'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1557175548575526900');
DELETE FROM `creature` WHERE `guid` IN(97670, 101638, 101626);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,33 @@
-- DB update 2019_05_13_01 -> 2019_05_14_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_13_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_13_01 2019_05_14_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1557180801797784400'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1557180801797784400');
-- Healthy Dragon Scale https://www.wowdb.com/items/13920-healthy-dragon-scale
DELETE FROM `conditions` WHERE `SourceGroup`=10678 AND `SourceEntry` IN (13920,5582) AND `ConditionValue1`=5529;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(1, 10678, 13920, 0, 0, 8, 0, 5529, 0, 0, 0, 0, 0, '', 'Healthy Dragon Scale drop if Quest 5529 rewarded');
UPDATE `creature_loot_template` SET `Chance`='6' WHERE `Entry`=10678 AND `Item`=13920;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,32 @@
-- DB update 2019_05_14_00 -> 2019_05_14_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_14_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_14_00 2019_05_14_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1557266833616361000'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1557266833616361000');
UPDATE `creature_template` SET `ScriptName`='npc_burning_spirit' WHERE `entry`=9178;
DELETE FROM `creature_text` WHERE `CreatureID` = 9156;
INSERT INTO `creature_text` (`CreatureID`, `Text`, `Type`, `Probability`, `comment`) VALUES ('9156', 'Your reign of terror ends now! Face your doom mortals!', '14', '100', 'Ambassador_flamelash_aggro');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,608 @@
-- DB update 2019_05_14_01 -> 2019_05_15_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_14_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_14_01 2019_05_15_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1557188222783616500'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1557188222783616500');
-- -------------------------------------------
-- fix(DB/Creature): Deadmines Pathing for 23 creatures inside instance
-- -------------------------------------------
-- Defias Evoker 1 (Creature ID 1729)
SET @NPC := 79139;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -58.1086, -394.012, 54.3026, 0),
(@PATH, 2, -55.9432, -400.184, 54.5487, 0),
(@PATH, 3, -67.441, -401.846, 54.3231, 0),
(@PATH, 4, -65.5066, -395.733, 54.4282, 0),
(@PATH, 5, -59.4698, -391.136, 53.7281, 0),
(@PATH, 6, -57.744, -386.926, 53.9151, 0),
(@PATH, 7, -57.6061, -381.321, 54.0338, 0),
(@PATH, 8, -68.0747, -382.217, 53.8005, 0),
(@PATH, 9, -75.5928, -378.18, 55.1468, 0),
(@PATH, 10, -87.6686, -376.04, 57.5502, 0),
(@PATH, 11, -97.0305, -377.378, 58.0518, 0),
(@PATH, 12, -103.849, -380.893, 57.4528, 0),
(@PATH, 13, -94.3324, -377.236, 57.7877, 0),
(@PATH, 14, -82.0819, -376.835, 56.2085, 0),
(@PATH, 15, -68.3509, -374.365, 55.0867, 0),
(@PATH, 16, -60.5492, -376.377, 54.3032, 0),
(@PATH, 17, -54.3384, -379.355, 54.2581, 0),
(@PATH, 18, -58.7368, -385.684, 53.8661, 0),
(@PATH, 19, -57.8513, -390.019, 53.7836, 0);
-- Defias Overseer 1 (Creature ID 634)
SET @NPC := 79144;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -49.1406, -380.152, 54.8732, 0),
(@PATH, 2, -44.0293, -383.437, 55.5099, 0),
(@PATH, 3, -48.0472, -391.257, 55.8773, 0),
(@PATH, 4, -52.4945, -401.038, 55.5619, 0),
(@PATH, 5, -59.1642, -403.186, 53.9912, 0),
(@PATH, 6, -69.0763, -401.558, 54.7464, 0),
(@PATH, 7, -68.6572, -397.85, 55.1056, 0),
(@PATH, 8, -58.4723, -392.667, 54.1193, 0),
(@PATH, 9, -53.6889, -382.146, 54.6699, 0),
(@PATH, 10, -49.8211, -373.639, 55.291, 0),
(@PATH, 11, -57.1299, -367.638, 55.3325, 0),
(@PATH, 12, -62.892, -358.569, 54.3333, 0),
(@PATH, 13, -62.7853, -349.7, 55.955, 0),
(@PATH, 14, -63.644, -358.635, 54.3321, 0),
(@PATH, 15, -63.6918, -366.936, 55.0531, 0),
(@PATH, 16, -68.797, -369.171, 55.6588, 0),
(@PATH, 17, -75.1762, -373.704, 55.0443, 0),
(@PATH, 18, -76.815, -378.574, 55.231, 0),
(@PATH, 19, -67.4685, -383.845, 53.6905, 0),
(@PATH, 20, -60.7481, -384.712, 53.679, 0),
(@PATH, 21, -53.467, -377.178, 54.2938, 0);
-- Defias Overseer 2 (Creature ID 634)
SET @NPC := 79152;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -108.408, -401.056, 59.7252, 0),
(@PATH, 2, -118.798, -408.026, 59.1646, 0),
(@PATH, 3, -120.495, -414.875, 58.2067, 0),
(@PATH, 4, -115.331, -424.561, 55.383, 0),
(@PATH, 5, -107.488, -431.728, 55.1959, 0),
(@PATH, 6, -114.273, -441.777, 54.9943, 0),
(@PATH, 7, -119.865, -438.626, 54.718, 0),
(@PATH, 8, -116.703, -429.971, 54.9343, 0),
(@PATH, 9, -118.322, -422.801, 55.9285, 0),
(@PATH, 10, -124.19, -418.18, 57.6147, 0),
(@PATH, 11, -131.87, -410.675, 57.9201, 0),
(@PATH, 12, -125.211, -405.184, 58.613, 0),
(@PATH, 13, -119.058, -408.537, 59.0034, 0);
-- Defias Overseer 3 (Creature ID 634)
SET @NPC := 79188;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -106.372, -395.356, 57.7169, 0),
(@PATH, 2, -115.118, -396.449, 56.9909, 0),
(@PATH, 3, -123.272, -404.099, 58.503, 0),
(@PATH, 4, -118.284, -393.568, 56.6597, 0),
(@PATH, 5, -113.248, -383.834, 57.4938, 0),
(@PATH, 6, -110.754, -376.43, 58.3853, 0),
(@PATH, 7, -102.981, -375.647, 58.5188, 0),
(@PATH, 8, -100.981, -385.969, 58.2247, 0),
(@PATH, 9, -95.2868, -395.073, 59.1373, 0),
(@PATH, 10, -91.1278, -400.994, 58.2928, 0);
-- Defias Evoker 2 (Creature ID 1729)
SET @NPC := 79189;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -94.8127, -396.214, 58.8776, 0),
(@PATH, 2, -103.299, -389.301, 57.3192, 0),
(@PATH, 3, -107.61, -382.619, 56.955, 0),
(@PATH, 4, -122.753, -383.213, 59.2935, 0),
(@PATH, 5, -125.399, -390.451, 58.8986, 0),
(@PATH, 6, -130, -398.722, 59.154, 0),
(@PATH, 7, -125.478, -403.119, 58.6467, 0),
(@PATH, 8, -116.097, -397.341, 57.1664, 0),
(@PATH, 9, -105.905, -394.793, 57.6366, 0),
(@PATH, 10, -100.374, -398.889, 58.6393, 0),
(@PATH, 11, -98.5197, -399.054, 58.4361, 0);
-- Defias Wizard 1 (Creature ID 4418)
SET @NPC := 79229;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -278.114, -589.212, 50.569, 0),
(@PATH, 2, -283.429, -595.717, 49.8643, 0),
(@PATH, 3, -292.615, -600.322, 47.4784, 0),
(@PATH, 4, -297.727, -600.82, 47.6354, 0),
(@PATH, 5, -301.5, -597.342, 48.1357, 0),
(@PATH, 6, -302.42, -590.862, 47.866, 0),
(@PATH, 7, -296.284, -579.45, 48.5055, 0),
(@PATH, 8, -294.959, -575.836, 48.5461, 0),
(@PATH, 9, -289.625, -569.041, 49.1442, 0),
(@PATH, 10, -289.323, -560.17, 48.915, 0),
(@PATH, 11, -289.52, -548.415, 49.4453, 0),
(@PATH, 12, -288.878, -558.425, 48.9413, 0),
(@PATH, 13, -290.469, -567.745, 49.1461, 0),
(@PATH, 14, -293.706, -574.747, 48.6738, 0),
(@PATH, 15, -299.01, -581.124, 46.9888, 0),
(@PATH, 16, -302.881, -589.499, 47.6864, 0),
(@PATH, 17, -302.658, -595.325, 48.1197, 0),
(@PATH, 18, -298.651, -601.31, 47.7165, 0),
(@PATH, 19, -291.182, -601.608, 47.7367, 0),
(@PATH, 20, -284.572, -597.881, 49.3179, 0),
(@PATH, 21, -279.79, -590.679, 51.0235, 0),
(@PATH, 22, -273.983, -582.924, 50.2455, 0),
(@PATH, 23, -268.471, -578.609, 50.2878, 0),
(@PATH, 24, -264.631, -577.207, 50.572, 0),
(@PATH, 25, -255.102, -576.79, 51.1499, 0),
(@PATH, 26, -264.063, -577.211, 50.6017, 0),
(@PATH, 27, -269.527, -578.503, 50.0964, 0),
(@PATH, 28, -271.887, -581.544, 49.9768, 0);
-- Defias Taskmaster 1 (Creature ID 4417)
SET @NPC := 79230;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -268.146, -579.628, 50.2867, 0),
(@PATH, 2, -261.925, -576.253, 50.6762, 0),
(@PATH, 3, -262.645, -581.918, 50.6558, 0),
(@PATH, 4, -269.838, -582.501, 49.7938, 0),
(@PATH, 5, -275.048, -585.149, 50.206, 0),
(@PATH, 6, -279.743, -591.974, 51.1174, 0),
(@PATH, 7, -289.329, -599.613, 47.8713, 0),
(@PATH, 8, -303.126, -591.521, 47.8429, 0),
(@PATH, 9, -306.46, -600.112, 47.9633, 0),
(@PATH, 10, -298.557, -600.93, 47.7391, 0),
(@PATH, 11, -292.697, -604.317, 47.6708, 0),
(@PATH, 12, -283.382, -600.72, 49.8817, 0),
(@PATH, 13, -279.163, -589.875, 50.833, 0),
(@PATH, 14, -271.047, -581.964, 49.9021, 0);
-- Defias Overseer 4 (Creature ID 634)
SET @NPC := 79244;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -208.388, -504.123, 51.6638, 0),
(@PATH, 2, -216.747, -496.224, 49.2585, 0),
(@PATH, 3, -223.846, -486.092, 48.5716, 0),
(@PATH, 4, -235.5, -479.669, 49.2839, 0),
(@PATH, 5, -255.621, -480.855, 49.444, 0),
(@PATH, 6, -238.023, -480.745, 49.1653, 0),
(@PATH, 7, -228.454, -484.15, 48.8135, 0),
(@PATH, 8, -221.895, -489.782, 48.5886, 0),
(@PATH, 9, -217.476, -496.934, 49.2432, 0),
(@PATH, 10, -212.497, -501.494, 51.2166, 0),
(@PATH, 11, -206.973, -504.283, 51.9107, 0),
(@PATH, 12, -202.654, -504.281, 52.8393, 0);
-- Defias Evoker 3 (Creature ID 1729)
SET @NPC := 79245;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -213.047, -504.664, 50.9039, 0),
(@PATH, 2, -218.668, -498.713, 49.1948, 0),
(@PATH, 3, -223.364, -491.597, 48.0883, 0),
(@PATH, 4, -233.816, -485.034, 48.8204, 0),
(@PATH, 5, -239.75, -483.76, 49.0921, 0),
(@PATH, 6, -245.689, -483.842, 49.2077, 0),
(@PATH, 7, -254.883, -483.617, 49.4456, 0),
(@PATH, 8, -241.837, -483.706, 48.9397, 0),
(@PATH, 9, -234.516, -485.182, 48.8104, 0),
(@PATH, 10, -225.919, -491.995, 47.9344, 0),
(@PATH, 11, -222.576, -494.121, 48.2125, 0),
(@PATH, 12, -217.75, -498.868, 49.335, 0),
(@PATH, 13, -215.491, -502.696, 50.809, 0),
(@PATH, 14, -209.724, -505.442, 51.3525, 0),
(@PATH, 15, -201.66, -505.78, 52.8074, 0);
-- Defias Wizard 2 (Creature ID 4418)
SET @NPC := 79260;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -126.057, -637.441, 12.9147, 0),
(@PATH, 2, -131.207, -632.538, 13.5732, 0),
(@PATH, 3, -133.335, -622.248, 13.5651, 0),
(@PATH, 4, -133.871, -610.818, 13.8859, 0),
(@PATH, 5, -133.472, -601.267, 15.7631, 0),
(@PATH, 6, -132.348, -593.642, 17.6534, 0),
(@PATH, 7, -133.976, -587.795, 18.5455, 0),
(@PATH, 8, -138.885, -581.29, 18.3326, 0),
(@PATH, 9, -144.945, -580.472, 18.7264, 0),
(@PATH, 10, -137.154, -584.373, 18.0452, 0),
(@PATH, 11, -134.3, -588.078, 18.6262, 0),
(@PATH, 12, -132.542, -595.351, 16.9984, 0),
(@PATH, 13, -134.872, -606.677, 14.7144, 0),
(@PATH, 14, -134.189, -619.154, 13.7979, 0),
(@PATH, 15, -130.385, -630.688, 13.2223, 0),
(@PATH, 16, -126.983, -636.548, 12.9847, 0),
(@PATH, 17, -119.175, -640.513, 11.1588, 0),
(@PATH, 18, -114.638, -642.051, 10.2214, 0),
(@PATH, 19, -111.363, -646.713, 8.38844, 0);
-- Defias Overseer 5 (Creature ID 634)
SET @NPC := 79273;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -181.386, -491.686, 54.0401, 0),
(@PATH, 2, -180.97, -498.254, 53.4632, 0),
(@PATH, 3, -183.791, -502.539, 53.3808, 0),
(@PATH, 4, -193.579, -506.077, 53.1769, 0),
(@PATH, 5, -193.943, -496.426, 53.2004, 0),
(@PATH, 6, -192.361, -490.083, 53.539, 0),
(@PATH, 7, -187.413, -492.182, 53.5523, 0);
-- Defias Overseer 6 (Creature ID 634)
SET @NPC := 79280;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -178.516, -501.169, 53.9117, 0),
(@PATH, 2, -170.62, -506.242, 53.6692, 0),
(@PATH, 3, -159.051, -509.527, 53.3194, 0),
(@PATH, 4, -155.555, -512.44, 52.9296, 0),
(@PATH, 5, -153.638, -522.172, 52.0989, 0),
(@PATH, 6, -156.642, -511.144, 53.1215, 0),
(@PATH, 7, -163.563, -507.506, 53.2078, 0),
(@PATH, 8, -170.199, -507.066, 53.6323, 0),
(@PATH, 9, -177.721, -502.582, 53.9113, 0),
(@PATH, 10, -185.891, -502.888, 52.9808, 0),
(@PATH, 11, -192.141, -503.736, 53.1611, 0);
-- Defias Squallshaper 1 (Creature ID 1732)
SET @NPC := 79294;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -95.7338, -697.73, 8.60488, 0),
(@PATH, 2, -96.7789, -688.803, 8.02651, 0),
(@PATH, 3, -96.152, -701.601, 8.81298, 0),
(@PATH, 4, -96.7254, -714.553, 8.68129, 0),
(@PATH, 5, -97.0199, -721.203, 8.4492, 0),
(@PATH, 6, -85.5141, -726.596, 8.9113, 0),
(@PATH, 7, -81.3754, -728.198, 8.96114, 0),
(@PATH, 8, -92.5992, -723.622, 8.55044, 0),
(@PATH, 9, -96.1957, -718.586, 8.52734, 0),
(@PATH, 10, -95.9761, -709.85, 8.78773, 0);
-- Defias Squallshaper 2 (Creature ID 1732)
SET @NPC := 79302;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -74.2432, -730.129, 8.67827, 0),
(@PATH, 2, -77.1636, -729.474, 8.95225, 0),
(@PATH, 3, -68.9657, -731.816, 8.11165, 0),
(@PATH, 4, -58.8156, -731.452, 8.9764, 0),
(@PATH, 5, -46.8796, -729.33, 9.11806, 0),
(@PATH, 6, -36.0463, -729.314, 8.83626, 0),
(@PATH, 7, -23.478, -732.327, 8.36514, 0),
(@PATH, 8, -16.3456, -736.548, 8.74717, 0),
(@PATH, 9, -9.58846, -743.481, 8.97899, 0),
(@PATH, 10, -3.01404, -752.841, 8.79292, 0),
(@PATH, 11, -12.3875, -740.906, 9.06114, 0),
(@PATH, 12, -22.1426, -731.855, 8.36183, 0),
(@PATH, 13, -30.9523, -727.807, 8.45316, 0),
(@PATH, 14, -43.1824, -726.996, 8.89525, 0),
(@PATH, 15, -53.4473, -729.108, 9.3, 0),
(@PATH, 16, -61.0866, -731.592, 8.76967, 0);
-- Defias Squallshaper 3 (Creature ID 1732)
SET @NPC := 79310;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -79.8256, -783.363, 26.461, 0),
(@PATH, 2, -84.7052, -786.976, 26.2062, 0),
(@PATH, 3, -98.3674, -791.023, 27.8132, 0),
(@PATH, 4, -103.96, -792.568, 28.1713, 0),
(@PATH, 5, -92.1138, -786.301, 27.0584, 0),
(@PATH, 6, -83.4001, -782.925, 26.476, 0),
(@PATH, 7, -84.0784, -776.535, 26.7875, 0),
(@PATH, 8, -88.5902, -777.037, 26.4027, 0),
(@PATH, 9, -97.0735, -778.529, 22.3356, 0),
(@PATH, 10, -102.923, -781.45, 22.1074, 0),
(@PATH, 11, -112.949, -786.457, 17.2807, 0),
(@PATH, 12, -118.473, -790.736, 17.1538, 0),
(@PATH, 13, -109.865, -784.406, 18.4495, 0),
(@PATH, 14, -102.652, -780.832, 22.1535, 0),
(@PATH, 15, -95.9249, -778.518, 22.3439, 0),
(@PATH, 16, -86.3046, -776.903, 26.7781, 0),
(@PATH, 17, -82.7019, -776.492, 26.7884, 0);
-- Defias Squallshaper 4 (Creature ID 1732)
SET @NPC := 79313;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -47.0207, -783.364, 18.4, 0),
(@PATH, 2, -57.6274, -780.952, 18.0084, 0),
(@PATH, 3, -67.8561, -779.966, 17.6858, 0),
(@PATH, 4, -78.7342, -780.823, 17.4011, 0),
(@PATH, 5, -87.9715, -783.347, 17.2087, 0),
(@PATH, 6, -99.7804, -787.733, 17.0235, 0),
(@PATH, 7, -117.292, -795.731, 16.8259, 0),
(@PATH, 8, -121.205, -790.938, 17.1427, 0),
(@PATH, 9, -128.615, -793.822, 17.1852, 0),
(@PATH, 10, -123.136, -796.65, 16.7944, 0),
(@PATH, 11, -120.107, -799.226, 16.8365, 0),
(@PATH, 12, -107.485, -791.94, 16.9355, 0),
(@PATH, 13, -98.2183, -786.068, 17.0327, 0),
(@PATH, 14, -90.2045, -783.179, 17.1543, 0),
(@PATH, 15, -82.5683, -782.137, 17.3244, 0),
(@PATH, 16, -75.9856, -780.132, 17.4616, 0),
(@PATH, 17, -63.743, -780.858, 17.8108, 0),
(@PATH, 18, -56.1258, -782.532, 18.0567, 0);
-- Defias Squallshaper 5 (Creature ID 1732)
SET @NPC := 79322;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -120.628, -803.27, 16.9074, 0),
(@PATH, 2, -108.965, -794.554, 16.9476, 0),
(@PATH, 3, -98.7241, -790.001, 17.0705, 0),
(@PATH, 4, -87.8975, -787.106, 17.236, 0),
(@PATH, 5, -76.0205, -785.218, 17.4743, 0),
(@PATH, 6, -64.5553, -783.844, 17.7829, 0),
(@PATH, 7, -53.9866, -784.947, 18.1333, 0),
(@PATH, 8, -46.1769, -784.534, 18.4305, 0),
(@PATH, 9, -38.5092, -787.698, 18.7604, 0),
(@PATH, 10, -31.5202, -795.86, 19.0579, 0),
(@PATH, 11, -40.4254, -786.469, 18.68, 0),
(@PATH, 12, -47.8866, -784.107, 18.3624, 0),
(@PATH, 13, -57.419, -784.738, 18.0015, 0),
(@PATH, 14, -67.7957, -782.45, 17.6857, 0),
(@PATH, 15, -84.9486, -784.841, 17.2894, 0),
(@PATH, 16, -99.947, -789.274, 17.039, 0),
(@PATH, 17, -111.081, -795.188, 16.9254, 0);
-- Defias Squallshaper 6 (Creature ID 1732)
SET @NPC := 79352;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -117.106, -839.009, 16.9045, 0),
(@PATH, 2, -122.192, -831.302, 16.944, 0),
(@PATH, 3, -123.001, -826.456, 16.9273, 0),
(@PATH, 4, -121.999, -834.271, 16.902, 0),
(@PATH, 5, -115.461, -840.748, 16.9072, 0),
(@PATH, 6, -101.85, -849.963, 17.0177, 0),
(@PATH, 7, -87.6209, -854.885, 17.2528, 0),
(@PATH, 8, -78.4275, -856.52, 17.4395, 0),
(@PATH, 9, -66.7588, -856.625, 17.1192, 0),
(@PATH, 10, -56.7404, -856.366, 18.0792, 0),
(@PATH, 11, -44.1896, -853.147, 18.5486, 0),
(@PATH, 12, -36.0581, -849.06, 18.9014, 0),
(@PATH, 13, -28.4667, -841.478, 19.2514, 0),
(@PATH, 14, -24.0773, -834.352, 19.4557, 0),
(@PATH, 15, -20.3287, -825.712, 19.6396, 0),
(@PATH, 16, -25.5192, -835.12, 19.3762, 0),
(@PATH, 17, -34.3872, -844.244, 18.952, 0),
(@PATH, 18, -43.7533, -850.723, 18.5518, 0),
(@PATH, 19, -53.5531, -853.393, 18.1786, 0),
(@PATH, 20, -67.8261, -854.946, 17.0763, 0),
(@PATH, 21, -80.7533, -854.221, 17.4013, 0),
(@PATH, 22, -86.6403, -853.322, 17.2865, 0),
(@PATH, 23, -100.089, -847.089, 17.0872, 0),
(@PATH, 24, -107.973, -842.11, 17.019, 0),
(@PATH, 25, -116.381, -837.35, 16.9481, 0);
-- Defias Overseer 7 (Creature ID 634)
SET @NPC := 79361;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -115.531, -640.289, 10.332, 0),
(@PATH, 2, -119.61, -637.165, 11.9972, 0),
(@PATH, 3, -125.722, -634.24, 12.863, 0),
(@PATH, 4, -129.801, -627.561, 13.2444, 0),
(@PATH, 5, -131.164, -621.045, 13.0536, 0),
(@PATH, 6, -130.259, -612.687, 13.65, 0),
(@PATH, 7, -131.342, -604.735, 15.2594, 0),
(@PATH, 8, -131.868, -596.116, 16.6263, 0),
(@PATH, 9, -132.668, -589.162, 18.4356, 0),
(@PATH, 10, -137.081, -581.72, 17.9692, 0),
(@PATH, 11, -144.153, -579.298, 18.7887, 0),
(@PATH, 12, -135.828, -582.273, 18.0063, 0),
(@PATH, 13, -132.765, -587.922, 18.3614, 0),
(@PATH, 14, -131.508, -595.588, 16.8821, 0),
(@PATH, 15, -132.487, -606.489, 14.5759, 0),
(@PATH, 16, -131.772, -617.091, 13.2291, 0),
(@PATH, 17, -130.21, -625.345, 13.0998, 0),
(@PATH, 18, -124.713, -635.075, 12.7965, 0),
(@PATH, 19, -116.702, -640.322, 10.5276, 0),
(@PATH, 20, -110.439, -643.186, 9.0142, 0),
(@PATH, 21, -107.318, -649.43, 6.96608, 0);
-- Defias Evoker 4 (Creature ID 1729)
SET @NPC := 79360;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -101.323, -648.082, 6.95428, 0),
(@PATH, 2, -106.893, -643.256, 8.25241, 0),
(@PATH, 3, -116.156, -638.283, 10.5795, 0),
(@PATH, 4, -123.216, -635.846, 12.7492, 0),
(@PATH, 5, -127.748, -630.052, 13.1721, 0),
(@PATH, 6, -125.632, -621.187, 12.7552, 0),
(@PATH, 7, -121.634, -617.784, 13.6787, 0),
(@PATH, 8, -112.41, -617.57, 13.3277, 0),
(@PATH, 9, -121.307, -615.05, 14.0148, 0),
(@PATH, 10, -131.972, -613.742, 13.2048, 0),
(@PATH, 11, -135.859, -619.815, 14.3729, 0),
(@PATH, 12, -128.42, -626.904, 13.3199, 0),
(@PATH, 13, -127.534, -633.981, 12.8688, 0),
(@PATH, 14, -121.512, -637.325, 12.6194, 0),
(@PATH, 15, -112.917, -639.004, 10.0211, 0),
(@PATH, 16, -108.466, -642.414, 8.67491, 0),
(@PATH, 17, -110.735, -651.05, 7.17773, 0);
-- Defias Overseer 8 (Creature ID 634)
SET @NPC := 79373;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -158.903, -399.895, 56.3324, 0),
(@PATH, 2, -151.984, -402.043, 56.9471, 0),
(@PATH, 3, -144.297, -403.96, 57.6147, 0),
(@PATH, 4, -154.368, -401.496, 56.7647, 0),
(@PATH, 5, -161.632, -400.326, 56.6994, 0),
(@PATH, 6, -167.493, -401.874, 57.0191, 0),
(@PATH, 7, -170.658, -405.778, 57.1812, 0),
(@PATH, 8, -179.541, -417.187, 55.0673, 0),
(@PATH, 9, -172.693, -407.324, 56.4777, 0),
(@PATH, 10, -169.554, -402.835, 57.1019, 0);
-- Defias Evoker 5 (Creature ID 1729)
SET @NPC := 79374;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -167.042, -399.26, 57.2689, 0),
(@PATH, 2, -157.894, -397.54, 56.2972, 0),
(@PATH, 3, -150.114, -399.496, 56.8607, 0),
(@PATH, 4, -142.306, -402.254, 57.9221, 0),
(@PATH, 5, -152.106, -398.53, 56.6912, 0),
(@PATH, 6, -161.718, -397.32, 56.6253, 0),
(@PATH, 7, -168.749, -400.742, 57.2089, 0),
(@PATH, 8, -173.918, -404.355, 56.7423, 0),
(@PATH, 9, -182.801, -416.518, 54.9347, 0),
(@PATH, 10, -177.175, -408.341, 55.6547, 0),
(@PATH, 11, -172.19, -403.093, 57.0664, 0),
(@PATH, 12, -169.061, -399.799, 57.253, 0);
-- Defias Evoker 6 (Creature ID 1729)
SET @NPC := 79376;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, -272.555, -584.816, 50.3737, 0),
(@PATH, 2, -276.013, -589.511, 50.5626, 0),
(@PATH, 3, -280.155, -596.561, 50.7085, 0),
(@PATH, 4, -284.985, -600.429, 49.1995, 0),
(@PATH, 5, -294.598, -604.058, 47.5833, 0),
(@PATH, 6, -300.205, -604.022, 47.6767, 0),
(@PATH, 7, -303.986, -595.353, 48.1082, 0),
(@PATH, 8, -304.541, -589.661, 47.556, 0),
(@PATH, 9, -299.254, -582.531, 46.9581, 0),
(@PATH, 10, -297.696, -577.169, 47.9851, 0),
(@PATH, 11, -293.229, -569.243, 48.8091, 0),
(@PATH, 12, -292.196, -562.316, 48.993, 0),
(@PATH, 13, -292.548, -549.596, 49.4471, 0),
(@PATH, 14, -292.54, -555.878, 49.4473, 0),
(@PATH, 15, -294.605, -566.301, 48.6513, 0),
(@PATH, 16, -297.839, -573.818, 48.18, 0),
(@PATH, 17, -304.166, -583.905, 48.0411, 0),
(@PATH, 18, -307.088, -591.915, 47.7115, 0),
(@PATH, 19, -304.936, -599.439, 48.0508, 0),
(@PATH, 20, -299.129, -602.931, 47.6307, 0),
(@PATH, 21, -287.287, -601.839, 48.4487, 0),
(@PATH, 22, -283.396, -599.706, 49.8093, 0),
(@PATH, 23, -279.445, -593.227, 50.9235, 0),
(@PATH, 24, -274.212, -587.13, 50.5272, 0),
(@PATH, 25, -268.536, -581.925, 50.0732, 0),
(@PATH, 26, -261.97, -579.867, 50.5795, 0),
(@PATH, 27, -256.205, -579.168, 51.1499, 0),
(@PATH, 28, -264.283, -578.689, 50.5239, 0);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2019_05_15_00 -> 2019_05_17_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_15_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_15_00 2019_05_17_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1557489332825322207'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1557489332825322207');
UPDATE `smart_scripts` SET `target_type` = 1 WHERE `entryorguid` = 25758 AND `source_type` = 0 AND `id` = 0;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,30 @@
-- DB update 2019_05_17_00 -> 2019_05_17_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_17_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_17_00 2019_05_17_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1557741075472498600'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1557741075472498600');
DELETE FROM `gameobject_template` WHERE `entry`=184981;
INSERT INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `unk1`, `size`, `Data0`, `Data1`, `Data2`, `Data3`, `Data4`, `Data5`, `Data6`, `Data7`, `Data8`, `Data9`, `Data10`, `Data11`, `Data12`, `Data13`, `Data14`, `Data15`, `Data16`, `Data17`, `Data18`, `Data19`, `Data20`, `Data21`, `Data22`, `Data23`, `AIName`, `ScriptName`, `VerifiedBuild`) VALUES
(184981, 6, 7244, 'Poodad Trap', '', '', '', 0.5, 1716, 0, 0, 37695, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', -18019);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,38 @@
-- DB update 2019_05_17_01 -> 2019_05_17_02
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_17_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_17_01 2019_05_17_02 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1557740416904830700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1557740416904830700');
DELETE FROM `skill_fishing_base_level` WHERE `entry`= 3479;
INSERT INTO `skill_fishing_base_level` (`entry`, `skill`) VALUES ('3479', '225');
DELETE FROM `fishing_loot_template` WHERE `Entry`=3479;
INSERT INTO `fishing_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(3479, 6352, 0, 0.4, 0, 1, 0, 1, 1, NULL),
(3479, 6359, 0, 15, 0, 1, 0, 1, 1, NULL),
(3479, 6360, 0, 0.5, 0, 1, 0, 1, 1, NULL),
(3479, 6354, 0, 0.4, 0, 1, 0, 1, 1, NULL),
(3479, 6358, 0, 25, 0, 1, 0, 1, 1, NULL),
(3479, 6361, 0, 58.8, 0, 1, 0, 1, 1, NULL),
(3479, 6307, 0, 0.4, 0, 1, 0, 1, 1, NULL);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2019_05_17_02 -> 2019_05_18_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_17_02';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_17_02 2019_05_18_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1557742774901700400'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1557742774901700400');
UPDATE `creature_template` SET `npcflag`=16 WHERE `entry`=7231;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2019_05_18_00 -> 2019_05_18_01
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_05_18_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_05_18_00 2019_05_18_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1556980489509436556'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1556980489509436556');
UPDATE `creature_text` SET `Emote` = 92 WHERE `GroupID` = 1 AND `CreatureID` IN (27986,28047,28568);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

Some files were not shown because too many files have changed in this diff Show More