chore(DB): import pending SQL update file

Referenced commit(s): 9f568b7eb3
This commit is contained in:
AzerothCoreBot
2021-04-01 16:04:47 +00:00
parent 9f568b7eb3
commit 9d4eebc61f
30 changed files with 587 additions and 37 deletions

View File

@@ -0,0 +1,29 @@
-- DB update 2021_03_31_00 -> 2021_04_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 = '2021_03_31_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_03_31_00 2021_04_01_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1615275106559909076'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1615275106559909076');
-- Reset ranged attack times
UPDATE `creature_template` SET `RangeAttackTime` = 2000;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,41 @@
-- DB update 2021_04_01_00 -> 2021_04_01_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 = '2021_04_01_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_00 2021_04_01_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1616536931445376664'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1616536931445376664');
-- Stonetalon Mountains herb issue #273
UPDATE `gameobject` SET `position_x`=1600.44, `position_y`=1424.05, `position_z`=210.444 WHERE `guid`=87262;
-- Redridge Mountains herb issue #270 and #261
UPDATE `gameobject` SET `position_x`=-9738.75, `position_y`=-1773.03, `position_z`=53.9976 WHERE `guid`=2904;
UPDATE `gameobject` SET `position_x`=-9773.77, `position_y`=-1747.93, `position_z`=53.0246 WHERE `guid`=1374;
UPDATE `gameobject` SET `position_x`=-9603.99, `position_y`=-1910.21, `position_z`=61.5482 WHERE `guid`=1740;
UPDATE `gameobject` SET `position_x`=-9151.08, `position_y`=-2508.94, `position_z`=117.203 WHERE `guid`=1537;
UPDATE `gameobject` SET `position_x`=-9485.22, `position_y`=-2329.47, `position_z`=69.3981 WHERE `guid`=1497;
UPDATE `gameobject` SET `position_x`=-9160.94, `position_y`=-3029.85, `position_z`=96.2563 WHERE `guid`=1456;
DELETE FROM `gameobject` WHERE `guid` in (3433, 3801, 85463);
DELETE FROM `pool_gameobject` where `guid` in (3433, 3801, 85463);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,48 @@
-- DB update 2021_04_01_01 -> 2021_04_01_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 = '2021_04_01_01';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_01 2021_04_01_02 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1616620260846086881'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1616620260846086881');
-- Alterac Mountains - Chromie #272
DELETE FROM `gameobject` where `guid` in (8638, 8639, 9190, 32194, 32203, 33141, 9141, 35390, 3435, 8063);
DELETE FROM `gameobject` where `guid` in (7716, 35379, 3332, 8989, 9004, 9171, 32211, 7832, 8927, 7841);
DELETE FROM `gameobject` where `guid` in (9057, 8771, 7773, 7732, 7731, 7575, 7423, 7436, 7407, 7551);
DELETE FROM `gameobject` where `guid` in (7549, 7548, 7515, 7512, 7529, 7474, 7697, 32693);
UPDATE `gameobject` SET `position_x`=606.533, `position_y`=-745.792, `position_z`=175.907 WHERE `guid`=8988;
UPDATE `gameobject` SET `position_x`=822.100, `position_y`=-723.680, `position_z`=194.222 WHERE `guid`=8990;
UPDATE `gameobject` SET `position_x`=1109.57, `position_y`=-454.509, `position_z`=68.9403 WHERE `guid`=8769;
-- Badlands - Chromie #257
UPDATE `gameobject` SET `position_x`=-6064.50, `position_y`=-3238.57, `position_z`=259.058 WHERE `guid`=11477;
DELETE FROM `gameobject` where `guid` in (8114, 9003);
DELETE FROM `pool_gameobject` where `guid` in (8114, 9003);
-- The Barrens - Chromie #249
DELETE FROM `gameobject` where `guid` in (13573, 13585, 13577, 13586, 13687, 13358, 65123, 2350, 86281, 13372);
DELETE FROM `gameobject` where `guid` in (63431, 13578, 31976, 13689, 14446, 33549, 13559, 13574, 13548, 14455);
DELETE FROM `gameobject` where `guid` in (13684, 14463, 14459, 63424, 13589, 13571, 14201, 13702);
DELETE FROM `pool_gameobject` where `guid`=2350;
UPDATE `gameobject` SET `position_x`=-1119.61, `position_y`=-2150.05, `position_z`=81.8622 WHERE `guid`=983;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,196 @@
-- DB update 2021_04_01_02 -> 2021_04_01_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 = '2021_04_01_02';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_02 2021_04_01_03 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1616686614747472700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1616686614747472700');
UPDATE `creature_template` SET `faction` = 1647, `DamageModifier` = 1.7, `unit_flags2` = 18432, `type_flags` = 4096, `AIName` = 'SmartAI', `HealthModifier` = 3, `ManaModifier` = 6, `ArmorModifier` = 3 WHERE (`entry` = 17982);
UPDATE `creature` SET `spawntimesecs` = 1 WHERE (`guid` = 63688);
DELETE FROM `creature_addon` WHERE (`guid` IN (63688));
DELETE FROM `creature_template_addon` WHERE (`entry` = 17982);
DELETE FROM `smart_scripts` WHERE (`source_type` = 9 AND `entryorguid` IN (1798200, 1798201, 1798202, 1798203, 1798204));
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 17982);
INSERT INTO `smart_scripts` VALUES
(17982, 0, 0, 0, 19, 0, 100, 0, 9759, 0, 0, 0, 0, 53, 1, 17982, 0, 0, 0, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Quest \'Ending Their World\' Taken - Start Waypoint'),
(17982, 0, 1, 0, 19, 0, 100, 0, 9759, 0, 0, 0, 0, 1, 0, 1500, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Quest \'Ending Their World\' Taken - Say Line 0'),
(17982, 0, 2, 0, 40, 0, 100, 0, 16, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 17678, 200, 0, 0, 0, 0, 0, 1.32052, 'Demolitionist Legoso - On Waypoint 16 Reached - Set Orientation 1.32052'),
(17982, 0, 3, 0, 40, 0, 100, 0, 16, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 16 Reached - Say Line 1'),
(17982, 0, 4, 0, 40, 0, 100, 0, 16, 0, 0, 0, 0, 54, 6000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 16 Reached - Pause Waypoint'),
(17982, 0, 5, 0, 40, 0, 100, 0, 17, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 17 Reached - Say Line 2'),
(17982, 0, 6, 0, 40, 0, 100, 0, 17, 0, 0, 0, 0, 54, 2000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 17 Reached - Pause Waypoint'),
(17982, 0, 7, 0, 40, 0, 100, 0, 18, 0, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 18 Reached - Say Line 3'),
(17982, 0, 8, 9, 40, 0, 100, 0, 18, 0, 0, 0, 0, 54, 7000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 18 Reached - Pause Waypoint'),
(17982, 0, 9, 10, 61, 0, 100, 0, 18, 0, 0, 0, 0, 50, 180779, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1953.6, -10653.4, 110.176, 1.54305, 'Demolitionist Legoso - On Waypoint 18 Reached - Summon Gameobject \'Barrel\''),
(17982, 0, 10, 11, 61, 0, 100, 0, 18, 0, 0, 0, 0, 50, 180779, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1954.87, -10653.6, 110.363, 1.64319, 'Demolitionist Legoso - On Waypoint 18 Reached - Summon Gameobject \'Barrel\''),
(17982, 0, 11, 12, 61, 0, 100, 0, 18, 0, 0, 0, 0, 50, 180779, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1955.95, -10654, 110.731, 1.55483, 'Demolitionist Legoso - On Waypoint 18 Reached - Summon Gameobject \'Barrel\''),
(17982, 0, 12, 13, 61, 0, 100, 0, 18, 0, 0, 0, 0, 50, 180779, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1955.17, -10654.7, 110.515, 1.85525, 'Demolitionist Legoso - On Waypoint 18 Reached - Summon Gameobject \'Barrel\''),
(17982, 0, 13, 0, 61, 0, 100, 0, 18, 0, 0, 0, 0, 50, 180779, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1954.14, -10654.4, 110.204, 1.74922, 'Demolitionist Legoso - On Waypoint 18 Reached - Summon Gameobject \'Barrel\''),
(17982, 0, 14, 0, 40, 0, 100, 0, 19, 0, 0, 0, 0, 66, 4, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0.832369, 'Demolitionist Legoso - On Waypoint 19 Reached - Set Orientation 0.832369'),
(17982, 0, 15, 0, 40, 0, 100, 0, 19, 0, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 19 Reached - Say Line 4'),
(17982, 0, 16, 0, 40, 0, 100, 0, 19, 0, 0, 0, 0, 54, 10000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 19 Reached - Pause Waypoint'),
(17982, 0, 17, 0, 40, 0, 100, 0, 19, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 19 Reached - Set Event Phase 1'),
(17982, 0, 18, 0, 60, 1, 100, 0, 1000, 1000, 20000, 20000, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Update - Say Line 5 (Phase 1)'),
(17982, 0, 19, 0, 60, 1, 100, 0, 2100, 2100, 20000, 20000, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Update - Say Line 6 (Phase 1)'),
(17982, 0, 20, 0, 60, 1, 100, 0, 3100, 3100, 20000, 20000, 0, 1, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Update - Say Line 7 (Phase 1)'),
(17982, 0, 21, 0, 60, 1, 100, 1, 8000, 8000, 0, 0, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1962.53, -10656.9, 124.125, 0.322799, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 1) (No Repeat)'),
(17982, 0, 22, 0, 60, 1, 100, 1, 8000, 8000, 0, 0, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1941.75, -10663.7, 126.462, 0.0636172, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 1) (No Repeat)'),
(17982, 0, 23, 0, 60, 1, 100, 1, 8000, 8000, 0, 0, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1954.96, -10660.4, 130.794, 1.08856, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 1) (No Repeat)'),
(17982, 0, 24, 0, 60, 1, 100, 1, 8000, 8000, 0, 0, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1928.92, -10673.9, 124.273, 0.0636172, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 1) (No Repeat)'),
(17982, 0, 25, 0, 60, 1, 100, 1, 8000, 8000, 0, 0, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1927.21, -10675.4, 134.452, 0.558418, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 1) (No Repeat)'),
(17982, 0, 26, 0, 60, 1, 100, 1, 8000, 8000, 0, 0, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1941.15, -10664.8, 141.266, 0.558418, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 1) (No Repeat)'),
(17982, 0, 27, 0, 60, 1, 100, 1, 8000, 8000, 0, 0, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1946.89, -10660.3, 139.935, 0.558418, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 1) (No Repeat)'),
(17982, 0, 28, 0, 60, 1, 100, 1, 8000, 8000, 0, 0, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1951.09, -10655, 139.902, 0.558418, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 1) (No Repeat)'),
(17982, 0, 29, 0, 60, 1, 100, 1, 8000, 8000, 0, 0, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1963.7, -10653.2, 142.875, 6.01694, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 1) (No Repeat)'),
(17982, 0, 30, 0, 60, 1, 100, 1, 8000, 8000, 0, 0, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1960.48, -10663.6, 142.474, 1.06893, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 1) (No Repeat)'),
(17982, 0, 31, 0, 60, 1, 100, 1, 8000, 8000, 0, 0, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1937.21, -10667.4, 131.39, 0.94719, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 1) (No Repeat)'),
(17982, 0, 32, 0, 60, 1, 100, 1, 8000, 8000, 0, 0, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1946.76, -10653.3, 119.19, 1.24564, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 1) (No Repeat)'),
(17982, 0, 33, 0, 60, 1, 100, 1, 9000, 9000, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Update - Set Event Phase 0 (Phase 1) (No Repeat)'),
(17982, 0, 34, 0, 40, 0, 100, 0, 20, 0, 0, 0, 0, 1, 8, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 20 Reached - Say Line 8'),
(17982, 0, 35, 0, 40, 0, 100, 0, 20, 0, 0, 0, 0, 54, 3500, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 20 Reached - Pause Waypoint'),
(17982, 0, 36, 0, 40, 0, 100, 0, 30, 0, 0, 0, 0, 1, 9, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 30 Reached - Say Line 9'),
(17982, 0, 37, 0, 40, 0, 100, 0, 30, 0, 0, 0, 0, 54, 3500, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 30 Reached - Pause Waypoint'),
(17982, 0, 38, 0, 40, 0, 100, 0, 31, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 21, 20, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 31 Reached - Set Orientation Closest Player'),
(17982, 0, 39, 0, 40, 0, 100, 0, 31, 0, 0, 0, 0, 1, 10, 0, 0, 0, 0, 0, 21, 20, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 31 Reached - Say Line 10'),
(17982, 0, 40, 0, 40, 0, 100, 0, 31, 0, 0, 0, 0, 54, 4000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 31 Reached - Pause Waypoint'),
(17982, 0, 41, 0, 40, 0, 100, 0, 32, 0, 0, 0, 0, 1, 11, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 32 Reached - Say Line 11'),
(17982, 0, 42, 0, 40, 0, 100, 0, 32, 0, 0, 0, 0, 54, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 32 Reached - Pause Waypoint'),
(17982, 0, 43, 0, 40, 0, 100, 0, 33, 0, 0, 0, 0, 1, 12, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 33 Reached - Say Line 12'),
(17982, 0, 44, 0, 40, 0, 100, 0, 33, 0, 0, 0, 0, 54, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 33 Reached - Pause Waypoint'),
(17982, 0, 45, 0, 40, 0, 100, 0, 34, 0, 0, 0, 0, 54, 6000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 34 Reached - Pause Waypoint'),
(17982, 0, 46, 0, 40, 0, 100, 0, 34, 0, 0, 0, 0, 1, 13, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 34 Reached - Say Line 13'),
(17982, 0, 47, 0, 40, 0, 100, 0, 34, 0, 0, 0, 0, 12, 179820, 7, 5000, 0, 0, 0, 8, 0, 0, 0, 0, -1913.07, -10581.9, 178.527, 6.02656, 'Demolitionist Legoso - On Waypoint 34 Reached - Summon Creature \'Q-9759 Trigger Barrel Bomb\''),
(17982, 0, 48, 0, 40, 0, 100, 0, 35, 0, 0, 0, 0, 1, 14, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 35 Reached - Say Line 14'),
(17982, 0, 49, 0, 40, 0, 100, 0, 35, 0, 0, 0, 0, 54, 2500, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 35 Reached - Pause Waypoint'),
(17982, 0, 50, 0, 40, 0, 100, 0, 38, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Waypoint 38 Reached - Set Event Phase 2'),
(17982, 0, 51, 0, 60, 2, 100, 0, 1000, 1000, 20000, 20000, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Update - Say Line 5 (Phase 2)'),
(17982, 0, 52, 0, 60, 2, 100, 0, 2100, 2100, 20000, 20000, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Update - Say Line 6 (Phase 2)'),
(17982, 0, 53, 0, 60, 2, 100, 0, 3100, 3100, 20000, 20000, 0, 1, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Update - Say Line 7 (Phase 2)'),
(17982, 0, 54, 0, 60, 2, 100, 0, 8000, 8000, 40000, 40000, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1906.47, -10583.7, 186.822, 5.31794, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 2)'),
(17982, 0, 55, 0, 60, 2, 100, 0, 8000, 8000, 40000, 40000, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1917.51, -10585.8, 189.25, 4.62287, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 2)'),
(17982, 0, 56, 0, 60, 2, 100, 0, 8000, 8000, 40000, 40000, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1911.4, -10586.1, 195.387, 4.62287, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 2)'),
(17982, 0, 57, 0, 60, 2, 100, 0, 8000, 8000, 40000, 40000, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1919.15, -10587.1, 194.39, 4.62287, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 2)'),
(17982, 0, 58, 0, 60, 2, 100, 0, 8000, 8000, 40000, 40000, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1920.97, -10588.7, 202.086, 4.62287, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 2)'),
(17982, 0, 59, 0, 60, 2, 100, 0, 8000, 8000, 40000, 40000, 0, 50, 182090, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1925.14, -10589.4, 184.482, 5.40826, 'Demolitionist Legoso - On Update - Summon Gameobject \'Vector Coil Fire (L)\' (Phase 2)'),
(17982, 0, 60, 61, 60, 2, 100, 0, 9000, 9000, 40000, 40000, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Update - Set Event Phase 0 (Phase 2)'),
(17982, 0, 61, 62, 61, 0, 100, 0, 9000, 9000, 40000, 40000, 0, 45, 1, 1, 0, 0, 0, 0, 11, 17678, 45, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Update - Set Data 1 1 (Phase 2)'),
(17982, 0, 62, 0, 61, 0, 100, 0, 9000, 9000, 40000, 40000, 0, 1, 18, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Update - Say Line 18 (Phase 2)'),
(17982, 0, 63, 0, 5, 0, 100, 0, 0, 8000, 0, 17678, 0, 45, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Killed Unit - Set Data 1 1'),
(17982, 0, 64, 0, 38, 0, 100, 0, 1, 1, 0, 8000, 0, 1, 19, 2500, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Data Set 1 1 - Say Line 19'),
(17982, 0, 65, 66, 52, 0, 100, 0, 19, 17982, 0, 0, 0, 1, 20, 1700, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Text 19 Over - Say Line 20'),
(17982, 0, 66, 0, 61, 0, 100, 0, 19, 17982, 0, 0, 0, 26, 9759, 0, 0, 0, 0, 0, 18, 45, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Text 19 Over - Quest Credit \'Ending Their World\''),
(17982, 0, 67, 0, 52, 0, 100, 0, 20, 17982, 0, 0, 0, 41, 4500, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - On Text 20 Over - Despawn In 4500 ms'),
(17982, 0, 100, 0, 0, 0, 100, 0, 5000, 5000, 12000, 12000, 0, 11, 8056, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - In Combat - Cast \'Frost Shock\''),
(17982, 0, 101, 0, 2, 0, 100, 0, 1, 45, 9000, 9000, 0, 11, 913, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - Between 1-45% Health - Cast \'Healing Wave\''),
(17982, 0, 102, 0, 0, 0, 100, 0, 500, 500, 30000, 30000, 0, 11, 325, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Demolitionist Legoso - In Combat - Cast \'Lightning Shield\'');
DELETE FROM `waypoints` WHERE (`entry` = 17982);
INSERT INTO `waypoints` VALUES
(17982, 1, -1772.70, -11074.70, 78.9523, 'Demonitiolist Lagoso'),
(17982, 2, -1790.27, -11053.81, 78.9543, 'Demonitiolist Lagoso'),
(17982, 3, -1798.05, -11032.88, 73.2248, 'Demonitiolist Lagoso'),
(17982, 4, -1827.51, -11017.92, 67.2534, 'Demonitiolist Lagoso'),
(17982, 5, -1879.67, -10988.88, 60.7772, 'Demonitiolist Lagoso'),
(17982, 6, -1929.85, -10909.55, 62.5501, 'Demonitiolist Lagoso'),
(17982, 7, -1940.70, -10846.87, 71.2584, 'Demonitiolist Lagoso'),
(17982, 8, -1931.54, -10837.23, 74.8954, 'Demonitiolist Lagoso'),
(17982, 9, -1937.94, -10808.30, 84.5661, 'Demonitiolist Lagoso'),
(17982, 10, -1944.59, -10798.88, 87.3097, 'Demonitiolist Lagoso'),
(17982, 11, -1895.12, -10770.07, 101.9580, 'Demonitiolist Lagoso'),
(17982, 12, -1887.79, -10754.76, 106.6948, 'Demonitiolist Lagoso'),
(17982, 13, -1883.62, -10728.73, 111.6938, 'Demonitiolist Lagoso'),
(17982, 14, -1944.28, -10706.12, 111.6414, 'Demonitiolist Lagoso'),
(17982, 15, -1960.67, -10688.54, 111.2230, 'Demonitiolist Lagoso'),
(17982, 16, -1960.28, -10687.04, 111.0856, 'Demonitiolist Lagoso'),
(17982, 17, -1957.16, -10679.88, 110.5308, 'Demonitiolist Lagoso'),
(17982, 18, -1956.81, -10654.30, 111.0142, 'Demonitiolist Lagoso'),
(17982, 19, -1977.02, -10705.33, 114.4567, 'Demonitiolist Lagoso'),
(17982, 20, -1980.37, -10701.60, 114.4284, 'Demonitiolist Lagoso'),
(17982, 21, -1997.29, -10680.81, 118.0604, 'Demonitiolist Lagoso'),
(17982, 22, -2021.17, -10654.56, 127.8307, 'Demonitiolist Lagoso'),
(17982, 23, -2035.65, -10637.71, 140.1543, 'Demonitiolist Lagoso'),
(17982, 24, -2043.83, -10622.95, 145.5923, 'Demonitiolist Lagoso'),
(17982, 25, -2043.83, -10622.95, 145.5923, 'Demonitiolist Lagoso'),
(17982, 26, -2043.83, -10622.95, 145.5923, 'Demonitiolist Lagoso'),
(17982, 27, -2043.83, -10622.95, 145.5923, 'Demonitiolist Lagoso'),
(17982, 28, -2043.83, -10622.95, 145.5923, 'Demonitiolist Lagoso'),
(17982, 29, -2018.91, -10603.98, 152.7457, 'Demonitiolist Lagoso'),
(17982, 30, -1985.64, -10611.87, 163.4069, 'Demonitiolist Lagoso'),
(17982, 31, -1963.00, -10607.08, 165.5145, 'Demonitiolist Lagoso'),
(17982, 32, -1944.21, -10575.63, 175.3522, 'Demonitiolist Lagoso'),
(17982, 33, -1939.01, -10577.16, 175.9011, 'Demonitiolist Lagoso'),
(17982, 34, -1914.03, -10582.93, 178.4607, 'Demonitiolist Lagoso'),
(17982, 35, -1923.24, -10572.15, 177.1505, 'Demonitiolist Lagoso'),
(17982, 36, -1948.92, -10557.29, 177.5732, 'Demonitiolist Lagoso'),
(17982, 37, -1955.57, -10564.50, 177.6642, 'Demonitiolist Lagoso'),
(17982, 38, -1951.06, -10560.76, 177.7242, 'Demonitiolist Lagoso');
DELETE FROM `creature_template` WHERE (`entry` = 179820);
INSERT INTO `creature_template` VALUES
(179820, 0, 0, 0, 0, 0, 24860, 0, 0, 0, 'Q-9759 Trigger Barrel Bomb', '', '', 0, 1, 1, 0, 35, 0, 1, 1.14286, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'SmartAI', 0, 3, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, '', 0);
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 179820);
INSERT INTO `smart_scripts` VALUES
(179820, 0, 0, 0, 60, 0, 100, 0, 3000, 3000, 20000, 20000, 0, 45, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Barrel Bomb - On Update - Set Data 1 1'),
(179820, 0, 1, 2, 38, 0, 100, 1, 1, 1, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Barrel Bomb - On Data Set 1 1 - Set Event Phase 0 (No Repeat)'),
(179820, 0, 2, 3, 61, 0, 100, 0, 1, 1, 0, 0, 0, 50, 180779, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1913.07, -10581.9, 178.527, 6.02656, 'Barrel Bomb - On Data Set 1 1 - Summon Gameobject \'Barrel\' (No Repeat)'),
(179820, 0, 3, 4, 61, 0, 100, 0, 1, 1, 0, 0, 0, 50, 180779, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1912.73, -10581, 178.461, 6.02656, 'Barrel Bomb - On Data Set 1 1 - Summon Gameobject \'Barrel\' (No Repeat)'),
(179820, 0, 4, 5, 61, 0, 100, 0, 1, 1, 0, 0, 0, 50, 180779, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1911.79, -10580.7, 178.813, 5.86163, 'Barrel Bomb - On Data Set 1 1 - Summon Gameobject \'Barrel\' (No Repeat)'),
(179820, 0, 5, 6, 61, 0, 100, 0, 1, 1, 0, 0, 0, 50, 180779, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1912.02, -10581.7, 178.84, 5.86163, 'Barrel Bomb - On Data Set 1 1 - Summon Gameobject \'Barrel\' (No Repeat)'),
(179820, 0, 6, 7, 61, 0, 100, 0, 1, 1, 0, 0, 0, 50, 180779, 120, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1912.52, -10582.6, 178.727, 5.89108, 'Barrel Bomb - On Data Set 1 1 - Summon Gameobject \'Barrel\' (No Repeat)'),
(179820, 0, 7, 0, 61, 0, 100, 0, 1, 1, 0, 0, 0, 41, 22000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Barrel Bomb - On Data Set 1 1 - Despawn In 22000 ms (No Repeat)');
UPDATE `gameobject_template` SET `AIName` = 'SmartGameObjectAI' WHERE (`entry` = 180779);
DELETE FROM `smart_scripts` WHERE (`source_type` = 1 AND `entryorguid` = 180779);
INSERT INTO `smart_scripts` VALUES
(180779, 1, 0, 0, 63, 0, 100, 1, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Barrel - On Just Created - Set Event Phase 1 (No Repeat)'),
(180779, 1, 1, 2, 60, 1, 100, 1, 20000, 20000, 0, 0, 0, 11, 71495, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Barrel - On Update - Cast \'Explosion Visual\' (Phase 1) (No Repeat)'),
(180779, 1, 2, 0, 61, 0, 100, 0, 20000, 20000, 0, 0, 0, 41, 1100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Barrel - On Update - Despawn In 1100 ms (Phase 1) (No Repeat)');
UPDATE `creature_template` SET `DamageModifier` = 1.1, `AIName` = 'SmartAI' WHERE (`entry` = 17678);
UPDATE `creature` SET `spawntimesecs` = 1 WHERE (`guid` = 63402);
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 17678);
INSERT INTO `smart_scripts` VALUES
(17678, 0, 0, 2, 1, 0, 100, 0, 1000, 1000, 10000, 10000, 0, 11, 31612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sironas - Out of Combat - Cast \'Sironas Channeling\''),
(17678, 0, 1, 2, 21, 0, 100, 0, 0, 0, 0, 0, 0, 11, 31612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sironas - On Reached Home - Cast \'Sironas Channeling\''),
(17678, 0, 2, 0, 61, 0, 100, 0, 1000, 1000, 10000, 10000, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sironas - Out of Combat - Set Flags Immune To Players & Immune To NPC\'s'),
(17678, 0, 3, 0, 0, 0, 100, 0, 7000, 9000, 11000, 11000, 0, 11, 12742, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sironas - In Combat - Cast \'Immolate\''),
(17678, 0, 4, 0, 0, 0, 100, 0, 6000, 7000, 25000, 25000, 0, 11, 8282, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sironas - In Combat - Cast \'Curse of Blood\''),
(17678, 0, 5, 0, 0, 0, 100, 0, 4000, 4000, 15000, 15000, 0, 11, 10966, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sironas - In Combat - Cast \'Uppercut\''),
(17678, 0, 6, 7, 38, 0, 100, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sironas - On Data Set 1 1 - Say Line 0'),
(17678, 0, 7, 8, 61, 0, 100, 0, 1, 1, 0, 0, 0, 51, 0, 0, 0, 0, 0, 0, 11, 17979, 100, 0, 0, 0, 0, 0, 0, 'Sironas - On Data Set 1 1 - Kill Target'),
(17678, 0, 8, 9, 61, 0, 100, 0, 1, 1, 0, 0, 0, 28, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sironas - On Data Set 1 1 - Remove Aura \'null\''),
(17678, 0, 9, 10, 61, 0, 100, 0, 1, 1, 0, 0, 0, 75, 47114, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sironas - On Data Set 1 1 - Add Aura \'Scorchling Grow\''),
(17678, 0, 10, 11, 61, 0, 100, 0, 1, 1, 0, 0, 0, 75, 47114, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sironas - On Data Set 1 1 - Add Aura \'Scorchling Grow\''),
(17678, 0, 11, 12, 61, 0, 100, 0, 1, 1, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sironas - On Data Set 1 1 - Remove Flags Immune To Players & Immune To NPC\'s'),
(17678, 0, 12, 0, 61, 0, 100, 0, 1, 1, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 17982, 100, 0, 0, 0, 0, 0, 0, 'Sironas - On Data Set 1 1 - Start Attacking'),
(17678, 0, 13, 0, 6, 0, 100, 0, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 11, 17982, 45, 0, 0, 0, 0, 0, 0, 'Sironas - On Just Died - Set Data 1 1'),
(17678, 0, 14, 0, 6, 0, 100, 0, 0, 0, 0, 0, 0, 41, 7000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sironas - On Just Died - Despawn In 7000 ms');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,29 @@
-- DB update 2021_04_01_03 -> 2021_04_01_04
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 = '2021_04_01_03';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_03 2021_04_01_04 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1616755366269256667'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1616755366269256667');
-- This quest is for all races, not just undeads
UPDATE `quest_template` SET `AllowableRaces`=`AllowableRaces` &~16 WHERE `id`=367;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,29 @@
-- DB update 2021_04_01_04 -> 2021_04_01_05
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 = '2021_04_01_04';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_04 2021_04_01_05 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1616756103204132721'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1616756103204132721');
-- This quest is only for Draenei
UPDATE `quest_template` SET `AllowableRaces`=`AllowableRaces`|1024 WHERE `id`=9429;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,41 @@
-- DB update 2021_04_01_05 -> 2021_04_01_06
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 = '2021_04_01_05';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_05 2021_04_01_06 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1616884299081820400'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1616884299081820400');
-- Updated gossip_menu for Doctor Gregory Victor <Trauma Surgeon>
UPDATE `creature_template` SET `gossip_menu_id`=5381 WHERE `entry`=12920;
-- Condition for gossip before and after quest completion
DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 14) AND (`SourceGroup` = 5381);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(14, 5381, 6573, 0, 0, 8, 0, 6622, 0, 0, 0, 0, 0, '', ''),
(14, 5381, 6413, 0, 0, 47, 0, 6622, 27, 0, 0, 0, 0, '', '');
-- Condition for gossip before and after quest completion
DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 14) AND (`SourceGroup` = 5382);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(14, 5382, 6414, 0, 0, 8, 0, 6624, 0, 0, 0, 0, 0, '', ''),
(14, 5382, 6415, 0, 0, 47, 0, 6624, 27, 0, 0, 0, 0, '', '');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,36 @@
-- DB update 2021_04_01_06 -> 2021_04_01_07
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 = '2021_04_01_06';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_06 2021_04_01_07 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617016392531315494'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617016392531315494');
UPDATE creature_template SET InhabitType = 3 WHERE entry IN (
3282, -- Venture Co. Mercenary
3283, -- Venture Co. Enforcer
3284, -- Venture Co. Drudger
3445, -- Supervisor Lugwizzle
5836 -- Engineer Whirleygig
);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,29 @@
-- DB update 2021_04_01_07 -> 2021_04_01_08
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 = '2021_04_01_07';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_07 2021_04_01_08 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617018620934408746'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617018620934408746');
UPDATE quest_template SET AllowableRaces = 0 WHERE (ID = 1486); -- Deviate Hides
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2021_04_01_08 -> 2021_04_01_09
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 = '2021_04_01_08';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_08 2021_04_01_09 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617095490377345100'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617095490377345100');
UPDATE `creature_template` SET `unit_flags`=`unit_flags` & ~32768 WHERE `entry` IN (2338,2339,2192);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,28 @@
-- DB update 2021_04_01_09 -> 2021_04_01_10
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 = '2021_04_01_09';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_09 2021_04_01_10 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617096208078439700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617096208078439700');
UPDATE `gameobject_template` SET `data2`=3000 WHERE `entry`=18899;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,154 @@
-- DB update 2021_04_01_10 -> 2021_04_01_11
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 = '2021_04_01_10';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_10 2021_04_01_11 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617105845198069500'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617105845198069500');
UPDATE `creature_template` SET `DamageModifier` = 1.7, `unit_flags2` = 2080, `HealthModifier` = 4, `ArmorModifier` = 3, `AIName` = 'SmartAI', `speed_walk` = 1.1, `speed_run` = 1.3 WHERE (`entry` = 17664);
DELETE FROM `creature` WHERE (`id` = 17664);
INSERT INTO `creature` VALUES
(63387, 17664, 530, 0, 0, 1, 1, 0, 1, -1936.22, -10803.3, 86.3798, 5.1831, 1, 0, 0, 1131, 408, 0, 0, 0, 0, '', 0);
DELETE FROM `creature_addon` WHERE (`guid` IN (63387));
INSERT INTO `creature_addon` VALUES
(63387, 0, 2346, 0, 1, 0, 0, NULL);
DELETE FROM `creature_template_addon` WHERE (`entry` = 17664);
INSERT INTO `creature_template_addon` VALUES
(17664, 0, 2346, 0, 1, 0, 0, NULL);
DELETE FROM `smart_scripts` WHERE (`source_type` = 9 AND `entryorguid` = 1785300);
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 17664);
INSERT INTO `smart_scripts` VALUES
(17664, 0, 0, 0, 11, 0, 100, 1, 0, 0, 0, 0, 0, 53, 0, 17664, 1, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - On Respawn - Start Waypoint (No Repeat)'),
(17664, 0, 1, 2, 75, 0, 100, 0, 0, 17853, 30, 900, 0, 66, 0, 0, 0, 0, 0, 0, 19, 17853, 30, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - On Distance To Creature - Set Orientation Closest Creature \'Tracker of the Hand\''),
(17664, 0, 2, 0, 61, 0, 100, 1, 0, 17853, 30, 900, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - On Distance To Creature - Set Event Phase 1'),
(17664, 0, 3, 4, 60, 1, 100, 0, 500, 500, 20000, 20000, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - On Update - Set Reactstate Aggressive (Phase 1)'),
(17664, 0, 4, 0, 61, 1, 100, 1, 500, 500, 20000, 20000, 0, 49, 0, 0, 0, 0, 0, 0, 11, 17853, 30, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - On Update - Start Attacking (Phase 1)'),
(17664, 0, 5, 0, 75, 1, 100, 1, 0, 17853, 30, 500, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - On Distance To Creature - Say Line 0 (Phase 1) (No Repeat)'),
(17664, 0, 6, 0, 2, 1, 100, 1, 22, 51, 0, 0, 0, 90, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - Between 22-51% Health - Set Flag Standstate Dead (Phase 1) (No Repeat)'),
(17664, 0, 7, 0, 2, 1, 100, 1, 22, 51, 0, 0, 0, 90, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - Between 22-51% Health - Set Flag Standstate Sleep (Phase 1) (No Repeat)'),
(17664, 0, 8, 0, 2, 1, 100, 1, 22, 51, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - Between 22-51% Health - Stop Attacking (Phase 1) (No Repeat)'),
(17664, 0, 9, 0, 2, 1, 100, 1, 22, 51, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - Between 22-51% Health - Disable Combat Movement (Phase 1) (No Repeat)'),
(17664, 0, 10, 11, 2, 1, 100, 1, 22, 51, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - Between 22-51% Health - Say Line 1 (Phase 1) (No Repeat)'),
(17664, 0, 11, 12, 61, 1, 100, 1, 22, 51, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - Between 22-51% Health - Set Data 1 1 (Phase 1) (No Repeat)'),
(17664, 0, 12, 13, 61, 1, 100, 1, 22, 51, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 11, 17853, 30, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - Between 22-51% Health - Set Data 1 1 (Phase 1) (No Repeat)'),
(17664, 0, 13, 14, 61, 1, 100, 1, 22, 51, 0, 0, 0, 91, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - Between 22-51% Health - Remove FlagStandstate Dead (Phase 1) (No Repeat)'),
(17664, 0, 14, 15, 61, 1, 100, 1, 22, 51, 0, 0, 0, 91, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - Between 22-51% Health - Remove FlagStandstate Sleep (Phase 1) (No Repeat)'),
(17664, 0, 15, 16, 61, 1, 100, 1, 22, 51, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - Between 22-51% Health - Set Event Phase 2 (Phase 1) (No Repeat)'),
(17664, 0, 16, 17, 61, 2, 100, 1, 22, 51, 0, 0, 0, 18, 772, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - Between 22-51% Health - Set Flags Disable Movement & Immune To Players & Immune To NPC\'s (Phase 1) (No Repeat)'),
(17664, 0, 17, 0, 61, 2, 100, 1, 22, 51, 0, 0, 0, 41, 8000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - Between 22-51% Health - Despawn In 8000 ms (Phase 1) (No Repeat)'),
(17664, 0, 18, 0, 11, 0, 100, 1, 0, 0, 0, 0, 0, 19, 772, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - On Respawn - Remove Flags Disable Movement & Immune To Players & Immune To NPC\'s (No Repeat)'),
(17664, 0, 19, 20, 0, 0, 100, 1, 500, 500, 0, 0, 0, 21, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - In Combat - Enable Combat Movement (No Repeat)'),
(17664, 0, 20, 21, 61, 0, 100, 1, 500, 500, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - In Combat - Start Attacking (No Repeat)'),
(17664, 0, 21, 0, 61, 0, 100, 0, 500, 500, 0, 0, 0, 20, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - In Combat - Start Attacking (No Repeat)'),
(17664, 0, 22, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 43, 0, 2346, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Matis the Cruel - On Respawn - Mount To Model 2346');
DELETE FROM `waypoint_data` WHERE (`id` IN (633870));
DELETE FROM `waypoints` WHERE (`entry` IN (17664));
INSERT INTO `waypoints` VALUES
(17664, 1, -1936.21, -10803.29, 86.3797, 'Matis the Cruel'),
(17664, 2, -1935.68, -10822.00, 79.8942, 'Matis the Cruel'),
(17664, 3, -1934.65, -10841.29, 73.5764, 'Matis the Cruel'),
(17664, 4, -1941.42, -10849.59, 70.3264, 'Matis the Cruel'),
(17664, 5, -1938.68, -10864.20, 67.2014, 'Matis the Cruel'),
(17664, 6, -1934.35, -10883.70, 64.2909, 'Matis the Cruel'),
(17664, 7, -1921.16, -10884.20, 64.6192, 'Matis the Cruel'),
(17664, 8, -1912.77, -10884.79, 62.6705, 'Matis the Cruel'),
(17664, 9, -1899.84, -10885.50, 66.1876, 'Matis the Cruel'),
(17664, 10, -1890.56, -10888.20, 66.9680, 'Matis the Cruel'),
(17664, 11, -1881.69, -10886.79, 66.8430, 'Matis the Cruel'),
(17664, 12, -1890.56, -10888.20, 66.9680, 'Matis the Cruel'),
(17664, 13, -1899.84, -10885.50, 66.1876, 'Matis the Cruel'),
(17664, 14, -1912.77, -10884.79, 62.6705, 'Matis the Cruel'),
(17664, 15, -1921.16, -10884.20, 64.6192, 'Matis the Cruel'),
(17664, 16, -1929.88, -10899.00, 63.1309, 'Matis the Cruel'),
(17664, 17, -1928.43, -10915.90, 62.2858, 'Matis the Cruel'),
(17664, 18, -1903.14, -10949.90, 61.3821, 'Matis the Cruel'),
(17664, 19, -1881.34, -10984.59, 60.8757, 'Matis the Cruel'),
(17664, 20, -1884.31, -11018.90, 60.1304, 'Matis the Cruel'),
(17664, 21, -1884.70, -11057.70, 59.6088, 'Matis the Cruel'),
(17664, 22, -1862.59, -11079.79, 61.1763, 'Matis the Cruel'),
(17664, 23, -1831.73, -11092.59, 63.6176, 'Matis the Cruel'),
(17664, 24, -1810.02, -11123.59, 64.2914, 'Matis the Cruel'),
(17664, 25, -1790.78, -11161.40, 64.3323, 'Matis the Cruel'),
(17664, 26, -1775.80, -11189.20, 63.9911, 'Matis the Cruel'),
(17664, 27, -1779.31, -11226.90, 61.8886, 'Matis the Cruel'),
(17664, 28, -1786.23, -11251.90, 59.9644, 'Matis the Cruel'),
(17664, 29, -1783.09, -11285.29, 58.1493, 'Matis the Cruel'),
(17664, 30, -1772.23, -11312.29, 56.9459, 'Matis the Cruel'),
(17664, 31, -1757.14, -11339.59, 55.9275, 'Matis the Cruel'),
(17664, 32, -1744.31, -11367.40, 54.3308, 'Matis the Cruel'),
(17664, 33, -1738.46, -11406.00, 48.9322, 'Matis the Cruel'),
(17664, 34, -1744.31, -11367.40, 54.3308, 'Matis the Cruel'),
(17664, 35, -1757.14, -11339.59, 55.9275, 'Matis the Cruel'),
(17664, 36, -1772.23, -11312.29, 56.9459, 'Matis the Cruel'),
(17664, 37, -1783.09, -11285.29, 58.1493, 'Matis the Cruel'),
(17664, 38, -1786.23, -11251.90, 59.9644, 'Matis the Cruel'),
(17664, 39, -1779.31, -11226.90, 61.8886, 'Matis the Cruel'),
(17664, 40, -1775.80, -11189.20, 63.9911, 'Matis the Cruel'),
(17664, 41, -1790.78, -11161.40, 64.3323, 'Matis the Cruel'),
(17664, 42, -1810.02, -11123.59, 64.2914, 'Matis the Cruel'),
(17664, 43, -1831.73, -11092.59, 63.6176, 'Matis the Cruel'),
(17664, 44, -1862.59, -11079.79, 61.1763, 'Matis the Cruel'),
(17664, 45, -1884.70, -11057.70, 59.6088, 'Matis the Cruel'),
(17664, 46, -1884.31, -11018.90, 60.1304, 'Matis the Cruel'),
(17664, 47, -1881.34, -10984.59, 60.8757, 'Matis the Cruel'),
(17664, 48, -1903.14, -10949.90, 61.3821, 'Matis the Cruel'),
(17664, 49, -1928.43, -10915.90, 62.2858, 'Matis the Cruel'),
(17664, 50, -1929.88, -10899.00, 63.1309, 'Matis the Cruel'),
(17664, 51, -1921.16, -10884.20, 64.6192, 'Matis the Cruel'),
(17664, 52, -1912.77, -10884.79, 62.6705, 'Matis the Cruel'),
(17664, 53, -1899.84, -10885.50, 66.1876, 'Matis the Cruel'),
(17664, 54, -1890.56, -10888.20, 66.9680, 'Matis the Cruel'),
(17664, 55, -1881.69, -10886.79, 66.8430, 'Matis the Cruel'),
(17664, 56, -1890.56, -10888.20, 66.9680, 'Matis the Cruel'),
(17664, 57, -1899.84, -10885.50, 66.1876, 'Matis the Cruel'),
(17664, 58, -1912.77, -10884.79, 62.6705, 'Matis the Cruel'),
(17664, 59, -1921.16, -10884.20, 64.6192, 'Matis the Cruel'),
(17664, 60, -1934.35, -10883.70, 64.2909, 'Matis the Cruel'),
(17664, 61, -1938.68, -10864.20, 67.2014, 'Matis the Cruel'),
(17664, 62, -1941.42, -10849.59, 70.3264, 'Matis the Cruel'),
(17664, 63, -1934.65, -10841.29, 73.5764, 'Matis the Cruel'),
(17664, 64, -1935.68, -10822.00, 79.8942, 'Matis the Cruel');
UPDATE `creature_template` SET `DamageModifier` = 3.5, `AIName` = 'SmartAI', `HealthModifier` = 4 WHERE (`entry` = 17853);
DELETE FROM `creature_template_addon` WHERE (`entry` = 17853);
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 17853);
INSERT INTO `smart_scripts` VALUES
(17853, 0, 0, 1, 54, 0, 100, 0, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 17664, 30, 0, 0, 0, 0, 0, 0, 'Tracker of the Hand - On Just Summoned - Set Orientation Closest Creature \'Matis the Cruel\''),
(17853, 0, 1, 2, 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, 'Tracker of the Hand - On Just Summoned - Say Line 0'),
(17853, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Tracker of the Hand - On Just Summoned - Set Event Phase 1'),
(17853, 0, 3, 0, 60, 1, 100, 1, 500, 500, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Tracker of the Hand - On Update - Set Reactstate Aggressive (Phase 1) (No Repeat)'),
(17853, 0, 4, 0, 38, 1, 100, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Tracker of the Hand - On Data Set 1 1 - Say Line 1 (Phase 1)'),
(17853, 0, 5, 0, 38, 1, 100, 1, 1, 1, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Tracker of the Hand - On Data Set 1 1 - Set Reactstate Passive (Phase 1) (No Repeat)'),
(17853, 0, 6, 0, 38, 1, 100, 0, 1, 1, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Tracker of the Hand - On Data Set 1 1 - Stop Attacking (Phase 1)'),
(17853, 0, 7, 0, 38, 1, 100, 0, 1, 1, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Tracker of the Hand - On Data Set 1 1 - Disable Combat Movement (Phase 1)'),
(17853, 0, 8, 0, 38, 1, 100, 0, 1, 1, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Tracker of the Hand - On Data Set 1 1 - Despawn In 5000 ms (Phase 1)'),
(17853, 0, 9, 0, 38, 1, 100, 0, 1, 1, 0, 0, 0, 15, 9711, 0, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 0, 0, 0, 'Tracker of the Hand - On Data Set 1 1 - Quest Credit \'Matis the Cruel\' (Phase 1)');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,94 @@
-- DB update 2021_04_01_11 -> 2021_04_01_12
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 = '2021_04_01_11';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_11 2021_04_01_12 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617153703041946200'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617153703041946200');
UPDATE `creature_template` SET `speed_walk` = 1, `HealthModifier` = 3, `ManaModifier` = 3, `ArmorModifier` = 3, `AIName` = 'SmartAI' WHERE (`entry` = 2433);
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 2433);
INSERT INTO `smart_scripts` VALUES
(2433, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 53, 0, 2433, 0, 0, 10000, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Helcular\'s Remains - On Respawn - Start Waypoint'),
(2433, 0, 1, 0, 1, 0, 1, 1, 1500, 1500, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Helcular\'s Remains - Out of Combat - Say Line 0 (No Repeat)'),
(2433, 0, 2, 0, 1, 0, 1, 1, 1500, 1500, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Helcular\'s Remains - Out of Combat - Say Line 1 (No Repeat)'),
(2433, 0, 3, 0, 1, 0, 1, 1, 1500, 1500, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Helcular\'s Remains - Out of Combat - Say Line 2 (No Repeat)'),
(2433, 0, 4, 0, 1, 0, 1, 1, 1500, 1500, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Helcular\'s Remains - Out of Combat - Say Line 3 (No Repeat)'),
(2433, 0, 5, 0, 4, 0, 70, 0, 0, 0, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Helcular\'s Remains - On Aggro - Say Line 4'),
(2433, 0, 6, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 11, 4950, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Helcular\'s Remains - On Aggro - Cast \'Summon Helcular`s Puppets\''),
(2433, 0, 7, 11, 5, 0, 100, 0, 0, 0, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Helcular\'s Remains - On Killed Unit - Say Line 5'),
(2433, 0, 8, 0, 60, 0, 100, 1, 500, 500, 0, 0, 0, 21, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Helcular\'s Remains - On Update - Enable Combat Movement (No Repeat)'),
(2433, 0, 9, 0, 75, 0, 100, 0, 0, 2386, 25, 4500, 0, 49, 0, 0, 0, 0, 0, 0, 11, 2386, 25, 0, 0, 0, 0, 0, 0, 'Helcular\'s Remains - On Distance To Creature - Start Attacking'),
(2433, 0, 10, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 8, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Helcular\'s Remains - On Respawn - Set Reactstate Defensive'),
(2433, 0, 11, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 11, 4950, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Helcular\'s Remains - On Killed Unit - Cast \'Summon Helcular`s Puppets\'');
DELETE FROM `waypoints` WHERE (`entry` IN (2433));
INSERT INTO `waypoints` VALUES
(2433, 1, -749.03, -598.01, 18.4133, 'Helcular Remains'),
(2433, 2, -773.83, -587.81, 15.9183, 'Helcular Remains'),
(2433, 3, -747.35, -586.21, 19.8563, 'Helcular Remains'),
(2433, 4, -755.06, -570.77, 19.3430, 'Helcular Remains'),
(2433, 5, -773.37, -546.27, 17.8202, 'Helcular Remains'),
(2433, 6, -820.27, -533.12, 15.0504, 'Helcular Remains'),
(2433, 7, -842.47, -540.02, 12.7530, 'Helcular Remains'),
(2433, 8, -864.46, -521.96, 10.8711, 'Helcular Remains'),
(2433, 9, -878.53, -532.17, 10.0846, 'Helcular Remains'),
(2433, 10, -921.94, -524.36, 6.8796, 'Helcular Remains'),
(2433, 11, -904.65, -545.08, 6.8796, 'Helcular Remains'),
(2433, 12, -900.60, -577.46, 6.8796, 'Helcular Remains');
UPDATE `creature_template` SET `rank` = 1, `DamageModifier` = 5, `AIName` = 'SmartAI', `HealthModifier` = 3, `ArmorModifier` = 3 WHERE (`entry` = 2946);
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 2946);
INSERT INTO `smart_scripts` VALUES
(2946, 0, 1, 0, 75, 0, 100, 0, 0, 2386, 30, 4500, 0, 21, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Puppet of Helcular - On Distance To Creature - Enable Combat Movement'),
(2946, 0, 2, 0, 54, 0, 100, 0, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Puppet of Helcular - On Just Summoned - Set Reactstate Aggressive');
DELETE FROM `factiontemplate_dbc` WHERE (`ID` IN (83, 96));
INSERT INTO `factiontemplate_dbc` VALUES
(83, 66, 0, 4, 4, 10, 79, 0, 0, 0, 66, 0, 0, 0),
(96, 79, 0, 2, 2, 0, 66, 0, 0, 0, 79, 0, 0, 0);
DELETE FROM `broadcast_text` WHERE (`ID` IN (599, 600, 601, 602, 603, 604));
INSERT INTO `broadcast_text` VALUES
(599, 0, 'Revenge shall be mine at last!','', 0, 0, 0, 0, 0, 0, 0, 0, 6, 18019),
(600, 0, 'I have risen!','', 0, 0, 0, 0, 0, 0, 0, 0, 6, 18019),
(601, 0, 'Southshore shall pay in blood!','', 0, 0, 0, 0, 0, 0, 0, 0, 6, 18019),
(602, 0, 'I returned from the grave to take my revenge!','', 0, 0, 0, 0, 0, 0, 0, 0, 6, 18019),
(603, 0, 'The undead shall feast on your soul, $n.','', 0, 0, 0, 0, 0, 0, 0, 0, 6, 18019),
(604, 0, 'Die in the name of the Dark Lady, $n.','', 0, 0, 0, 0, 0, 0, 0, 0, 6, 18019);
DELETE FROM `creature_text` WHERE (`CreatureID` IN (2433));
INSERT INTO `creature_text` VALUES
(2433, 0, 0, 'Revenge shall be mine at last!', 14, 0, 100, 15, 1500, 0, 0, 1, 'Helcular\'s Remains'),
(2433, 1, 1, 'I have risen!', 14, 0, 100, 15, 1500, 0, 0, 1, 'Helcular\'s Remains'),
(2433, 2, 2, 'Southshore shall pay in blood!', 14, 0, 100, 15, 1500, 0, 0, 1, 'Helcular\'s Remains'),
(2433, 3, 3, 'I returned from the grave to take my revenge!', 14, 0, 100, 15, 1500, 0, 0, 1, 'Helcular\'s Remains'),
(2433, 4, 0, 'The undead shall feast on your soul, $n.', 14, 0, 100, 0, 1500, 0, 0, 1, 'Helcular\'s Remains'),
(2433, 5, 0, 'Die in the name of the Dark Lady, $n.', 14, 0, 100, 0, 1500, 0, 0, 1, 'Helcular\'s Remains');
UPDATE `gameobject_template` SET `AIName` = 'SmartGameObjectAI' WHERE `entry` = 1767;
DELETE FROM `smart_scripts` WHERE (`source_type` = 1 AND `entryorguid` = 1767);
INSERT INTO `smart_scripts` VALUES
(1767, 1, 0, 0, 20, 0, 100, 0, 553, 0, 0, 0, 0, 12, 2433, 7, 60000, 0, 0, 0, 8, 0, 0, 0, 0, -740.43, -621.57, 18.6447, 3.2299, 'Helcular\'s Grave - On Quest \'Helcular\'s Revenge\' Finished - Summon Creature \'Helcular\'s Remains\'');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,36 @@
-- DB update 2021_04_01_12 -> 2021_04_01_13
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 = '2021_04_01_12';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_12 2021_04_01_13 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617166961257812400'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617166961257812400');
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 4131);
INSERT INTO `smart_scripts` VALUES
(4131, 0, 0, 0, 0, 0, 100, 1, 4000, 7000, 22000, 25000, 0, 11, 6016, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Silithid Invader - In Combat - Cast \'Pierce Armor\' (No Repeat)'),
(4131, 0, 1, 0, 0, 0, 100, 1, 10000, 16000, 0, 0, 0, 11, 8137, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Silithid Invader - In Combat - Cast \'Silithid Pox\' (No Repeat)'),
(4131, 0, 2, 0, 2, 0, 100, 1, 1, 15, 0, 0, 0, 39, 30, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Silithid Invader - Between 1-15% Health - Call For Help (No Repeat)');
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 4133);
INSERT INTO `smart_scripts` VALUES
(4133, 0, 1, 0, 2, 0, 100, 1, 1, 15, 0, 0, 0, 39, 30, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Silithid Hive Drone - Between 1-15% Health - Call For Help (No Repeat)');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,67 @@
-- DB update 2021_04_01_13 -> 2021_04_01_14
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 = '2021_04_01_13';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_13 2021_04_01_14 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617172919168716426'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617172919168716426');
-- Remove a double spawn of Black Lotus
DELETE FROM `gameobject` WHERE `guid`=65289 AND `id`=176589;
-- One spawn per zone only
SET
@POOL = '11653',
@POOLSIZE = '1',
@POOLDESC = 'Black Lotus - Burning Steppes',
@RESPAWN = '3600',
@GUID = '20263,20266,20268,20272,20275,20279,20280,20282,20284,20288,20289,20293,20294,20295,20297,20305,20307,33420,65290';
-- Create pool(s)
DELETE FROM `pool_template` WHERE `entry`=@POOL;
INSERT INTO `pool_template` (`entry`,`max_limit`,`description`) VALUES (@POOL,@POOLSIZE,@POOLDESC);
-- Add gameobjects to pools
DELETE FROM `pool_gameobject` WHERE FIND_IN_SET (`guid`,@GUID);
INSERT INTO `pool_gameobject` (`guid`,`pool_entry`,`chance`,`description`) VALUES
(20263,@POOL,0,@POOLDESC),
(20266,@POOL,0,@POOLDESC),
(20268,@POOL,0,@POOLDESC),
(20272,@POOL,0,@POOLDESC),
(20275,@POOL,0,@POOLDESC),
(20279,@POOL,0,@POOLDESC),
(20280,@POOL,0,@POOLDESC),
(20282,@POOL,0,@POOLDESC),
(20284,@POOL,0,@POOLDESC),
(20288,@POOL,0,@POOLDESC),
(20289,@POOL,0,@POOLDESC),
(20293,@POOL,0,@POOLDESC),
(20294,@POOL,0,@POOLDESC),
(20295,@POOL,0,@POOLDESC),
(20297,@POOL,0,@POOLDESC),
(20305,@POOL,0,@POOLDESC),
(20307,@POOL,0,@POOLDESC),
(33420,@POOL,0,@POOLDESC),
(65290,@POOL,0,@POOLDESC);
-- Respawn rates of gameobjects
UPDATE `gameobject` SET `spawntimesecs`=@RESPAWN WHERE FIND_IN_SET (`guid`,@GUID);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,55 @@
-- DB update 2021_04_01_14 -> 2021_04_01_15
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 = '2021_04_01_14';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_14 2021_04_01_15 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617176680426521000'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617176680426521000');
UPDATE `creature_template` SET `speed_walk` = 0.9, `speed_run` = 1.1 WHERE `entry` IN (15958, 15656);
DELETE FROM `creature_summon_groups` WHERE (`summonerId` = 15402);
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 15958);
INSERT INTO `smart_scripts` VALUES
(15958, 0, 4, 0, 75, 0, 100, 0, 0, 15402, 53, 900, 0, 49, 0, 0, 0, 0, 0, 0, 19, 15402, 53, 0, 0, 0, 0, 0, 0, 'Gharsul the Remorseless - On Distance To Creature - Start Attacking');
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 15656);
INSERT INTO `smart_scripts` VALUES
(15656, 0, 0, 1, 2, 0, 100, 1, 0, 30, 0, 0, 0, 11, 8599, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Angershade - Between 0-30% Health - Cast \'Enrage\' (No Repeat)'),
(15656, 0, 1, 0, 61, 0, 100, 0, 0, 30, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Angershade - Between 0-30% Health - Say Line 0 (No Repeat)'),
(15656, 0, 2, 0, 75, 0, 100, 0, 0, 15402, 53, 900, 0, 49, 0, 0, 0, 0, 0, 0, 19, 15402, 53, 0, 0, 0, 0, 0, 0, 'Angershade - On Distance To Creature - Start Attacking');
DELETE FROM `waypoints` WHERE (`entry` IN (15656, 15958));
UPDATE `creature_template` SET `HealthModifier` = 2, `ManaModifier` = 3, `ArmorModifier` = 1 WHERE (`entry` = 15402);
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 15402);
INSERT INTO `smart_scripts` VALUES
(15402, 0, 0, 0, 20, 0, 100, 0, 8487, 0, 0, 0, 0, 80, 1540200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Apprentice Mirveda - On Quest \'Corrupted Soil\' Finished - Run Script'),
(15402, 0, 1, 2, 19, 0, 100, 0, 8488, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Apprentice Mirveda - On Quest \'Unexpected Results\' Taken - Store Targetlist'),
(15402, 0, 2, 0, 61, 0, 100, 0, 8488, 0, 0, 0, 0, 80, 1540201, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Apprentice Mirveda - On Quest \'Unexpected Results\' Taken - Run Script'),
(15402, 0, 3, 0, 0, 0, 100, 0, 900, 900, 3000, 4000, 0, 11, 20811, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Apprentice Mirveda - In Combat - Cast \'Fireball\''),
(15402, 0, 4, 0, 6, 1, 100, 0, 0, 0, 0, 0, 0, 6, 8488, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Apprentice Mirveda - On Just Died - Fail Quest \'Unexpected Results\' (Phase 1)'),
(15402, 0, 5, 6, 7, 1, 100, 0, 0, 0, 0, 0, 0, 15, 8488, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Apprentice Mirveda - On Evade - Quest Credit \'Unexpected Results\' (Phase 1)'),
(15402, 0, 6, 0, 61, 1, 100, 0, 0, 0, 0, 0, 0, 80, 1540202, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Apprentice Mirveda - On Evade - Run Script (Phase 1)'),
(15402, 0, 7, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 18, 512, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Apprentice Mirveda - On Respawn - Set Flags Immune To NPC\'s');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,29 @@
-- DB update 2021_04_01_15 -> 2021_04_01_16
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 = '2021_04_01_15';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_15 2021_04_01_16 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617177621821036427'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617177621821036427');
-- Disciple of Naralex
UPDATE `creature_template` SET `speed_walk`=0.8 WHERE `entry`=3678;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,274 @@
-- DB update 2021_04_01_16 -> 2021_04_01_17
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 = '2021_04_01_16';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_16 2021_04_01_17 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617189129916741181'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617189129916741181');
-- Delete duplicate mining nodes
SET
@GUID = '12384,12490,17099,42956,32865,32523,17092,12610,12484,74030,74090,74050,74045,74075,74140,74135,150133,150141,150140,150131,150142,150132,150135,75239,75257,75762,75933,150136,150134,150137,15456,15490,15161,70348,70180,70288,69880,70066,69910,70066,70276,70288,74031,74091,74051,74046,74076,74141,74136,75240,75258,75763,75934,68592,68532,68537,68542,68547,68587,68552,68557,68562,68567,70346,70178,70286,69878,70064,69908,70064,70103,70274,70286,70645,71234,71244,74032,74092,74052,74047,74077,74142,74137,17482,68593,68533,68538,68543,68548,68588,68553,68558,68563,68568,70347,70179,70287,69879,70065,69909,70065,70275,70287,70646,72854,71864,71904,73424,73400,73406,74450,74520,74520,74565,74655,71534,71865,71905,73422,73398,73404,74451,74521,74521,74566,74656,73423,73399,73405,74452,74522,74522,74567,74657,68595,68535,68540,68545,68550,68590,68555,68560,68565,68570,70349,70181,70289,69881,70067,69911,70067,70277,70289,70648,74033,74093,74053,74048,74078,74143,74138,75241,75259,75764,75935,73427,73403,73409,68596,68536,68541,68546,68551,68591,68556,68561,68566,68571,70351,70183,70291,69883,70069,69913,70069,70279,70291,70649,72856,71274,71867,71907,73426,73402,73408,74454,74524,74524,74569,74659,68594,68534,68539,68544,68549,68589,68554,68559,68564,68569,70350,70182,70290,69882,70068,69912,70068,70278,70290,70647,72855,71866,71906,73425,73401,73407,74034,74094,74054,74049,74079,74144,74139,74453,74523,74523,74568,74658,46453';
DELETE FROM `gameobject` WHERE `guid` IN (
12384, -- Duplicate of 4702, Copper Vein
12490, -- Duplicate of 4772, Copper Vein
17099, -- Duplicate of 4851, Copper Vein
42956, -- Duplicate of 4861, Copper Vein
32865, -- Duplicate of 4978, Copper Vein
32523, -- Duplicate of 5041, Copper Vein
17092, -- Duplicate of 5211, Copper Vein
12610, -- Duplicate of 5366, Copper Vein
12484, -- Duplicate of 5376, Copper Vein
74030, -- Duplicate of 73680, Copper Vein
74090, -- Duplicate of 73695, Copper Vein
74050, -- Duplicate of 73895, Copper Vein
74045, -- Duplicate of 74040, Copper Vein
74075, -- Duplicate of 74060, Copper Vein
74140, -- Duplicate of 74125, Copper Vein
74135, -- Duplicate of 74130, Copper Vein
150133, -- Duplicate of 74823, Copper Vein
150141, -- Duplicate of 74825, Copper Vein
150140, -- Duplicate of 74828, Copper Vein
150131, -- Duplicate of 74835, Copper Vein
150142, -- Duplicate of 74838, Copper Vein
150132, -- Duplicate of 74861, Copper Vein
150135, -- Duplicate of 74870, Copper Vein
75239, -- Duplicate of 75200, Copper Vein
75257, -- Duplicate of 75206, Copper Vein
75762, -- Duplicate of 75615, Copper Vein
75933, -- Duplicate of 75921, Copper Vein
150136, -- Duplicate of 120306, Copper Vein
150134, -- Duplicate of 120309, Copper Vein
150137, -- Duplicate of 120318, Copper Vein
15456, -- Duplicate of 4811, Copper Vein
15490, -- Duplicate of 5164, Copper Vein
15161, -- Duplicate of 5454, Copper Vein
70348, -- Duplicate of 68800, Tin Vein
70180, -- Duplicate of 68974, Tin Vein
70288, -- Duplicate of 68974, Tin Vein
69880, -- Duplicate of 69088, Tin Vein
70066, -- Duplicate of 69088, Tin Vein
69910, -- Duplicate of 69268, Tin Vein
70066, -- Duplicate of 69880, Tin Vein
70276, -- Duplicate of 70162, Tin Vein
70288, -- Duplicate of 70180, Tin Vein
74031, -- Duplicate of 73681, Tin Vein
74091, -- Duplicate of 73696, Tin Vein
74051, -- Duplicate of 73896, Tin Vein
74046, -- Duplicate of 74041, Tin Vein
74076, -- Duplicate of 74061, Tin Vein
74141, -- Duplicate of 74126, Tin Vein
74136, -- Duplicate of 74131, Tin Vein
75240, -- Duplicate of 75201, Tin Vein
75258, -- Duplicate of 75207, Tin Vein
75763, -- Duplicate of 75616, Tin Vein
75934, -- Duplicate of 75922, Tin Vein
46453, -- Duplicate of 75427, Iron Deposit
68592, -- Duplicate of 68100, Iron Deposit
68532, -- Duplicate of 68105, Iron Deposit
68537, -- Duplicate of 68110, Iron Deposit
68542, -- Duplicate of 68115, Iron Deposit
68547, -- Duplicate of 68120, Iron Deposit
68587, -- Duplicate of 68125, Iron Deposit
68552, -- Duplicate of 68130, Iron Deposit
68557, -- Duplicate of 68135, Iron Deposit
68562, -- Duplicate of 68140, Iron Deposit
68567, -- Duplicate of 68145, Iron Deposit
70346, -- Duplicate of 68798, Iron Deposit
70178, -- Duplicate of 68972, Iron Deposit
70286, -- Duplicate of 68972, Iron Deposit
69878, -- Duplicate of 69086, Iron Deposit
70064, -- Duplicate of 69086, Iron Deposit
69908, -- Duplicate of 69266, Iron Deposit
70064, -- Duplicate of 69878, Iron Deposit
70103, -- Duplicate of 70100, Iron Deposit
70274, -- Duplicate of 70160, Iron Deposit
70286, -- Duplicate of 70178, Iron Deposit
70645, -- Duplicate of 70610, Iron Deposit
71234, -- Duplicate of 71230, Iron Deposit
71244, -- Duplicate of 71240, Iron Deposit
74032, -- Duplicate of 73682, Iron Deposit
74092, -- Duplicate of 73697, Iron Deposit
74052, -- Duplicate of 73897, Iron Deposit
74047, -- Duplicate of 74042, Iron Deposit
74077, -- Duplicate of 74062, Iron Deposit
74142, -- Duplicate of 74127, Iron Deposit
74137, -- Duplicate of 74132, Iron Deposit
17482, -- Duplicate of 7201, Mithril Deposit
68593, -- Duplicate of 68101, Mithril Deposit
68533, -- Duplicate of 68106, Mithril Deposit
68538, -- Duplicate of 68111, Mithril Deposit
68543, -- Duplicate of 68116, Mithril Deposit
68548, -- Duplicate of 68121, Mithril Deposit
68588, -- Duplicate of 68126, Mithril Deposit
68553, -- Duplicate of 68131, Mithril Deposit
68558, -- Duplicate of 68136, Mithril Deposit
68563, -- Duplicate of 68141, Mithril Deposit
68568, -- Duplicate of 68146, Mithril Deposit
70347, -- Duplicate of 68799, Mithril Deposit
70179, -- Duplicate of 68973, Mithril Deposit
70287, -- Duplicate of 68973, Mithril Deposit
69879, -- Duplicate of 69087, Mithril Deposit
70065, -- Duplicate of 69087, Mithril Deposit
69909, -- Duplicate of 69267, Mithril Deposit
70065, -- Duplicate of 69879, Mithril Deposit
70275, -- Duplicate of 70161, Mithril Deposit
70287, -- Duplicate of 70179, Mithril Deposit
70646, -- Duplicate of 70611, Mithril Deposit
72854, -- Duplicate of 70721, Mithril Deposit
71864, -- Duplicate of 71844, Mithril Deposit
71904, -- Duplicate of 71876, Mithril Deposit
73424, -- Duplicate of 72212, Mithril Deposit
73400, -- Duplicate of 72302, Mithril Deposit
73406, -- Duplicate of 73388, Mithril Deposit
74450, -- Duplicate of 74340, Mithril Deposit
74520, -- Duplicate of 74340, Mithril Deposit
74520, -- Duplicate of 74450, Mithril Deposit
74565, -- Duplicate of 74555, Mithril Deposit
74655, -- Duplicate of 74625, Mithril Deposit
71534, -- Duplicate of 71533, Small Thorium Vein
71865, -- Duplicate of 71845, Small Thorium Vein
71905, -- Duplicate of 71877, Small Thorium Vein
73422, -- Duplicate of 72210, Small Thorium Vein
73398, -- Duplicate of 72300, Small Thorium Vein
73404, -- Duplicate of 73386, Small Thorium Vein
74451, -- Duplicate of 74341, Small Thorium Vein
74521, -- Duplicate of 74341, Small Thorium Vein
74521, -- Duplicate of 74451, Small Thorium Vein
74566, -- Duplicate of 74556, Small Thorium Vein
74656, -- Duplicate of 74626, Small Thorium Vein
73423, -- Duplicate of 72211, Rich Thorium Vein
73399, -- Duplicate of 72301, Rich Thorium Vein
73405, -- Duplicate of 73387, Rich Thorium Vein
74452, -- Duplicate of 74342, Rich Thorium Vein
74522, -- Duplicate of 74342, Rich Thorium Vein
74522, -- Duplicate of 74452, Rich Thorium Vein
74567, -- Duplicate of 74557, Rich Thorium Vein
74657, -- Duplicate of 74627, Rich Thorium Vein
68595, -- Duplicate of 68103, Silver Vein
68535, -- Duplicate of 68108, Silver Vein
68540, -- Duplicate of 68113, Silver Vein
68545, -- Duplicate of 68118, Silver Vein
68550, -- Duplicate of 68123, Silver Vein
68590, -- Duplicate of 68128, Silver Vein
68555, -- Duplicate of 68133, Silver Vein
68560, -- Duplicate of 68138, Silver Vein
68565, -- Duplicate of 68143, Silver Vein
68570, -- Duplicate of 68148, Silver Vein
70349, -- Duplicate of 68801, Silver Vein
70181, -- Duplicate of 68975, Silver Vein
70289, -- Duplicate of 68975, Silver Vein
69881, -- Duplicate of 69089, Silver Vein
70067, -- Duplicate of 69089, Silver Vein
69911, -- Duplicate of 69269, Silver Vein
70067, -- Duplicate of 69881, Silver Vein
70277, -- Duplicate of 70163, Silver Vein
70289, -- Duplicate of 70181, Silver Vein
70648, -- Duplicate of 70613, Silver Vein
74033, -- Duplicate of 73683, Silver Vein
74093, -- Duplicate of 73698, Silver Vein
74053, -- Duplicate of 73898, Silver Vein
74048, -- Duplicate of 74043, Silver Vein
74078, -- Duplicate of 74063, Silver Vein
74143, -- Duplicate of 74128, Silver Vein
74138, -- Duplicate of 74133, Silver Vein
75241, -- Duplicate of 75202, Silver Vein
75259, -- Duplicate of 75208, Silver Vein
75764, -- Duplicate of 75617, Silver Vein
75935, -- Duplicate of 75923, Silver Vein
73427, -- Duplicate of 72215, Dark Iron Deposit
73403, -- Duplicate of 72305, Dark Iron Deposit
73409, -- Duplicate of 73391, Dark Iron Deposit
68596, -- Duplicate of 68104, Truesilver Deposit
68536, -- Duplicate of 68109, Truesilver Deposit
68541, -- Duplicate of 68114, Truesilver Deposit
68546, -- Duplicate of 68119, Truesilver Deposit
68551, -- Duplicate of 68124, Truesilver Deposit
68591, -- Duplicate of 68129, Truesilver Deposit
68556, -- Duplicate of 68134, Truesilver Deposit
68561, -- Duplicate of 68139, Truesilver Deposit
68566, -- Duplicate of 68144, Truesilver Deposit
68571, -- Duplicate of 68149, Truesilver Deposit
70351, -- Duplicate of 68803, Truesilver Deposit
70183, -- Duplicate of 68977, Truesilver Deposit
70291, -- Duplicate of 68977, Truesilver Deposit
69883, -- Duplicate of 69091, Truesilver Deposit
70069, -- Duplicate of 69091, Truesilver Deposit
69913, -- Duplicate of 69271, Truesilver Deposit
70069, -- Duplicate of 69883, Truesilver Deposit
70279, -- Duplicate of 70165, Truesilver Deposit
70291, -- Duplicate of 70183, Truesilver Deposit
70649, -- Duplicate of 70614, Truesilver Deposit
72856, -- Duplicate of 70724, Truesilver Deposit
71274, -- Duplicate of 71270, Truesilver Deposit
71867, -- Duplicate of 71847, Truesilver Deposit
71907, -- Duplicate of 71879, Truesilver Deposit
73426, -- Duplicate of 72214, Truesilver Deposit
73402, -- Duplicate of 72304, Truesilver Deposit
73408, -- Duplicate of 73390, Truesilver Deposit
74454, -- Duplicate of 74344, Truesilver Deposit
74524, -- Duplicate of 74344, Truesilver Deposit
74524, -- Duplicate of 74454, Truesilver Deposit
74569, -- Duplicate of 74559, Truesilver Deposit
74659, -- Duplicate of 74629, Truesilver Deposit
68594, -- Duplicate of 68102, Gold Vein
68534, -- Duplicate of 68107, Gold Vein
68539, -- Duplicate of 68112, Gold Vein
68544, -- Duplicate of 68117, Gold Vein
68549, -- Duplicate of 68122, Gold Vein
68589, -- Duplicate of 68127, Gold Vein
68554, -- Duplicate of 68132, Gold Vein
68559, -- Duplicate of 68137, Gold Vein
68564, -- Duplicate of 68142, Gold Vein
68569, -- Duplicate of 68147, Gold Vein
70350, -- Duplicate of 68802, Gold Vein
70182, -- Duplicate of 68976, Gold Vein
70290, -- Duplicate of 68976, Gold Vein
69882, -- Duplicate of 69090, Gold Vein
70068, -- Duplicate of 69090, Gold Vein
69912, -- Duplicate of 69270, Gold Vein
70068, -- Duplicate of 69882, Gold Vein
70278, -- Duplicate of 70164, Gold Vein
70290, -- Duplicate of 70182, Gold Vein
70647, -- Duplicate of 70612, Gold Vein
72855, -- Duplicate of 70722, Gold Vein
71866, -- Duplicate of 71846, Gold Vein
71906, -- Duplicate of 71878, Gold Vein
73425, -- Duplicate of 72213, Gold Vein
73401, -- Duplicate of 72303, Gold Vein
73407, -- Duplicate of 73389, Gold Vein
74034, -- Duplicate of 73684, Gold Vein
74094, -- Duplicate of 73699, Gold Vein
74054, -- Duplicate of 73899, Gold Vein
74049, -- Duplicate of 74044, Gold Vein
74079, -- Duplicate of 74064, Gold Vein
74144, -- Duplicate of 74129, Gold Vein
74139, -- Duplicate of 74134, Gold Vein
74453, -- Duplicate of 74343, Gold Vein
74523, -- Duplicate of 74343, Gold Vein
74523, -- Duplicate of 74453, Gold Vein
74568, -- Duplicate of 74558, Gold Vein
74658); -- Duplicate of 74628, Gold Vein
-- Cleanup pools
DELETE FROM `pool_gameobject` WHERE FIND_IN_SET (`guid`,@GUID);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,127 @@
-- DB update 2021_04_01_17 -> 2021_04_01_18
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 = '2021_04_01_17';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_17 2021_04_01_18 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617197429170396176'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617197429170396176');
-- Delete duplicate herbs
SET
@GUID = '1250,12522,12354,35488,30072,85437,12575,32214,42962,35532,12522,45091,85307,12364,45125,12580,85440,1671,12465,85450,85389,85446,29660,34033,85452,12625,85456,35500,85459,35366,85458,32504,85469,33472,65061,34831,30978,16804,85465,29649,85463,85464,30955,15049,63364,32018,16810,30873,85467,29568,17892,65117,21255,30373,85468,29250,35361,32834,16801,7614,16936,16936,34959,7816,29534,34911,46281,12323,12267,29291,30229,29587,35296,17296,17284,29588,32066,17587,17586,19033,19232,46306,86397,19748,45470,63704,45939,45556,65281,55627,56380,40367';
DELETE FROM `gameobject` WHERE `guid` IN (
1250, -- Duplicate of 467, Silverleaf
12522, -- Duplicate of 467, Silverleaf
12354, -- Duplicate of 468, Silverleaf
35488, -- Duplicate of 541, Silverleaf
30072, -- Duplicate of 1093, Silverleaf
85437, -- Duplicate of 1095, Silverleaf
12575, -- Duplicate of 1156, Silverleaf
32214, -- Duplicate of 1167, Silverleaf
42962, -- Duplicate of 1209, Silverleaf
35532, -- Duplicate of 1249, Silverleaf
12522, -- Duplicate of 1250, Silverleaf
45091, -- Duplicate of 1261, Silverleaf
85307, -- Duplicate of 39947, Silverleaf
12364, -- Duplicate of 1359, Peacebloom
45125, -- Duplicate of 1614, Peacebloom
12580, -- Duplicate of 1640, Peacebloom
85440, -- Duplicate of 1659, Peacebloom
1671, -- Duplicate of 1670, Peacebloom
12465, -- Duplicate of 1766, Earthroot
85450, -- Duplicate of 1820, Earthroot
85389, -- Duplicate of 1882, Earthroot
85446, -- Duplicate of 2048, Earthroot
29660, -- Duplicate of 2059, Earthroot
34033, -- Duplicate of 2132, Mageroyal
85452, -- Duplicate of 2157, Mageroyal
12625, -- Duplicate of 2484, Mageroyal
85456, -- Duplicate of 2497, Mageroyal
35500, -- Duplicate of 2587, Briarthorn
85459, -- Duplicate of 2601, Briarthorn
35366, -- Duplicate of 2663, Briarthorn
85458, -- Duplicate of 2765, Briarthorn
32504, -- Duplicate of 8293, Stranglekelp
85469, -- Duplicate of 8588, Stranglekelp
33472, -- Duplicate of 2957, Bruiseweed
65061, -- Duplicate of 3144, Bruiseweed
34831, -- Duplicate of 3203, Bruiseweed
30978, -- Duplicate of 3426, Bruiseweed
16804, -- Duplicate of 3638, Bruiseweed
85465, -- Duplicate of 3715, Bruiseweed
29649, -- Duplicate of 3744, Bruiseweed
85463, -- Duplicate of 3797, Bruiseweed
85464, -- Duplicate of 3804, Bruiseweed
30955, -- Duplicate of 3832, Bruiseweed
15049, -- Duplicate of 3876, Bruiseweed
63364, -- Duplicate of 3877, Bruiseweed
32018, -- Duplicate of 3921, Wild Steelbloom
16810, -- Duplicate of 3938, Wild Steelbloom
30873, -- Duplicate of 4173, Wild Steelbloom
85467, -- Duplicate of 4178, Wild Steelbloom
29568, -- Duplicate of 4253, Wild Steelbloom
17892, -- Duplicate of 4470, Grave Moss
65117, -- Duplicate of 4482, Grave Moss
21255, -- Duplicate of 4293, Kingsblood
30373, -- Duplicate of 4304, Kingsblood
85468, -- Duplicate of 4357, Kingsblood
29250, -- Duplicate of 7412, Liferoot
35361, -- Duplicate of 7432, Liferoot
32834, -- Duplicate of 7463, Liferoot
16801, -- Duplicate of 7495, Liferoot
7614, -- Duplicate of 7613, Fadeleaf
16936, -- Duplicate of 7613, Fadeleaf
16936, -- Duplicate of 7614, Fadeleaf
34959, -- Duplicate of 7671, Fadeleaf
7816, -- Duplicate of 7814, Fadeleaf
29534, -- Duplicate of 8609, Goldthorn
34911, -- Duplicate of 8682, Goldthorn
46281, -- Duplicate of 8070, Khadgar's Whisker
12323, -- Duplicate of 6964, Firebloom
12267, -- Duplicate of 9980, Firebloom
29291, -- Duplicate of 12240, Firebloom
30229, -- Duplicate of 12294, Firebloom
29587, -- Duplicate of 12310, Firebloom
35296, -- Duplicate of 12315, Firebloom
17296, -- Duplicate of 12326, Firebloom
17284, -- Duplicate of 12334, Firebloom
29588, -- Duplicate of 13232, Firebloom
32066, -- Duplicate of 15807, Purple Lotus
17587, -- Duplicate of 16077, Sungrass
17586, -- Duplicate of 16092, Sungrass
19033, -- Duplicate of 17740, Golden Sansam
19232, -- Duplicate of 17744, Golden Sansam
46306, -- Duplicate of 19071, Golden Sansam
86397, -- Duplicate of 86396, Golden Sansam
19748, -- Duplicate of 17890, Mountain Silversage
45470, -- Duplicate of 19903, Plaguebloom
63704, -- Duplicate of 19980, Plaguebloom
45939, -- Duplicate of 20093, Plaguebloom
45556, -- Duplicate of 20128, Plaguebloom
65281, -- Duplicate of 65280, Plaguebloom
55627, -- Duplicate of 40298, Felweed
56380, -- Duplicate of 40654, Felweed
40367); -- Duplicate of 18912, Terocone
-- Cleanup pools
DELETE FROM `pool_gameobject` WHERE FIND_IN_SET (`guid`,@GUID);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,80 @@
-- DB update 2021_04_01_18 -> 2021_04_01_19
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 = '2021_04_01_18';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_18 2021_04_01_19 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617197895526268300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617197895526268300');
-- ----------------------------------The Ancient Statuette Fixes-------------------------------------------------
-- Talen
DELETE FROM `smart_scripts` WHERE `entryorguid` = 3846 AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 384600 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
(3846,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,0,'Talen - Between 0-15% Health - Flee For Assist'),
(3846,0,1,0,20,0,100,0,1007,0,0,0,0,80,384600,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Talen - On Quest \'The Ancient Statuette\' Finished - Run Script'),
(384600,9,0,0,0,0,100,0,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Talen - On Script - Remove Npc Flag Questgiver'),
(384600,9,1,0,0,0,100,0,0,0,0,0,0,91,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Talen - On Script - Remove Flag Standstate \'Sit Down\''),
(384600,9,2,0,0,0,100,0,0,0,0,0,0,40,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Talen - On Script - Sheath \'Unarmed\''),
(384600,9,3,0,0,0,100,0,2000,2000,0,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,0,6.16678,'Talen - On Script - Set Orientation'),
(384600,9,4,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,'Talen - On Script - Say Line 0'),
(384600,9,5,0,0,0,100,0,4000,4000,0,0,0,90,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Talen - On Script - Set Flag Standstate \'Kneel\''),
(384600,9,6,0,0,0,100,0,1000,1000,0,0,0,50,18603,12,0,0,0,0,8,0,0,0,0,3471.69,846.893,5.39909,4.67058,'Talen - On Script - Summon Gameobject \'Ancient Statuette\''),
(384600,9,7,0,0,0,100,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Talen - On Script - Say Line 1'),
(384600,9,8,0,0,0,100,0,8000,8000,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Talen - On Script - Say Line 2'),
(384600,9,9,0,0,0,100,0,4000,4000,0,0,0,91,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Talen - On Script - Remove Flag Standstate \'Kneel\''),
(384600,9,10,0,0,0,100,0,2000,2000,0,0,0,66,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Talen - On Script - Set Orientation'),
(384600,9,11,0,0,0,100,0,0,0,0,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Talen - On Script - Say Line 3'),
(384600,9,12,0,0,0,100,0,0,0,0,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Talen - On Script - Add Npc Flag Questgiver'),
(384600,9,13,0,0,0,100,0,20000,20000,0,0,0,90,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Talen - On Script - Set Flag Standstate Sit Down'),
(384600,9,14,0,0,0,100,0,1000,1000,0,0,0,40,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Talen - On Script - Sheath \'Melee\'');
-- Ruuzel and Bodyguards
UPDATE `creature` SET `MovementType` = 2,`position_x` = 4157.59,`position_y` = 1272.73,`position_z` = 3.22775 WHERE `guid` = 32617;
UPDATE `creature` SET `position_x` = 4139.376,`position_y` = 1272.271,`position_z` = 3.659 WHERE `guid` = 32762;
UPDATE `creature` SET `position_x` = 4140.003,`position_y` = 1268.586,`position_z` = 3.804 WHERE `guid` = 32728;
DELETE FROM `creature_addon` where guid = 32617;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`isLarge`,`auras`) VALUES
(32617,326170,0,0,4097,0,1,'');
DELETE FROM `creature_formations` where leaderGUID = 32617;
INSERT INTO `creature_formations` (`leaderGUID`,`memberGUID`,`dist`,`angle`,`groupAI`,`point_1`,`point_2`) VALUES
(32617,32617,0,0,515,0,0),
(32617,32762,3,120,515,0,0),
(32617,32728,3,210,515,0,0);
DELETE FROM `waypoint_data` where ID = 326170;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
(326170,1,4157.59,1272.73,3.22775,0,0,0,0,100,0),
(326170,2,4118.6,1268.22,1.93513,0,0,0,0,100,0),
(326170,3,4100.35,1277.8,1.42555,0,0,0,0,100,0),
(326170,4,4090.54,1314.88,2.11756,0,0,0,0,100,0),
(326170,5,4098.61,1352.27,2.58844,0,0,0,0,100,0),
(326170,6,4116.9,1363.47,1.69482,0,0,0,0,100,0),
(326170,7,4133.67,1375.35,2.18856,0,0,0,0,100,0),
(326170,8,4176.57,1370.93,2.58461,0,0,0,0,100,0),
(326170,9,4221.99,1339.24,2.22232,0,0,0,0,100,0),
(326170,10,4225.52,1317.01,1.90514,0,0,0,0,100,0),
(326170,11,4206.5,1285.38,1.3025,0,0,0,0,100,0),
(326170,12,4185.92,1278.95,1.27956,0,0,0,0,100,0),
(326170,13,4168.32,1281.27,3.36765,0,0,0,0,100,0);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,37 @@
-- DB update 2021_04_01_19 -> 2021_04_01_20
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 = '2021_04_01_19';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_19 2021_04_01_20 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617254287410662400'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617254287410662400');
SET @SPELL_ATTR0_CU_NEGATIVE_EFF0 := 4096,
@SPELL_ATTR0_CU_NEGATIVE_EFF1 := 8192;
DELETE FROM `spell_custom_attr` WHERE `spell_id`=57874;
INSERT INTO `spell_custom_attr` (`spell_id`, `attributes`) VALUES
(57874, @SPELL_ATTR0_CU_NEGATIVE_EFF0|@SPELL_ATTR0_CU_NEGATIVE_EFF1);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=17 AND `SourceGroup`=0 AND `SourceEntry`=57874 AND `SourceId`=0 AND `ElseGroup`=0 AND `ConditionTypeOrReference`=31 AND `ConditionTarget`=1 AND `ConditionValue1`=4 AND `ConditionValue2`=0 AND `ConditionValue3`=0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(17, 0, 57874, 0, 0, 31, 1, 4, 0, 0, 0, 0, 0, '', 'Twilight Shift spell should be applied only on player');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -0,0 +1,62 @@
-- DB update 2021_04_01_20 -> 2021_04_01_21
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 = '2021_04_01_20';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_01_20 2021_04_01_21 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617265345631987700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617265345631987700');
DELETE FROM `creature_addon` WHERE (`guid` IN (17090));
DELETE FROM `waypoints` WHERE (`entry` IN (3984));
INSERT INTO `waypoints` VALUES
(3984, 1, 888.1400, -121.8399, 38.3880, 'Nancy Vishas'),
(3984, 2, 891.5708, -114.1264, 38.2004, 'Nancy Vishas'),
(3984, 3, 909.1765, -90.91162, 33.7845, 'Nancy Vishas'),
(3984, 4, 891.5708, -114.1264, 38.2004, 'Nancy Vishas'),
(3984, 5, 888.1400, -121.8399, 38.3880, 'Nancy Vishas');
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 398400) AND (`source_type` = 9);
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE (`entry` IN (3984, 3985));
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 3984);
INSERT INTO `smart_scripts` VALUES
(3984, 0, 0, 0, 21, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Nancy Vishas - On Reached Home - Set Event Phase 1'),
(3984, 0, 1, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Nancy Vishas - On Respawn - Set Event Phase 1'),
(3984, 0, 2, 0, 1, 1, 100, 0, 60000, 180000, 180000, 180000, 0, 1, 0, 3000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Nancy Vishas - Out of Combat - Say Line 0 (Phase 1)'),
(3984, 0, 3, 0, 52, 1, 100, 1, 0, 3984, 0, 0, 0, 1, 0, 3000, 0, 0, 0, 0, 19, 3985, 6, 0, 0, 0, 0, 0, 0, 'Nancy Vishas - On Text 0 Over - Say Line 0 (Phase 1) (No Repeat)'),
(3984, 0, 4, 0, 52, 1, 100, 0, 0, 3985, 0, 0, 0, 1, 1, 3000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Nancy Vishas - On Text 0 Over - Say Line 1 (Phase 1)'),
(3984, 0, 5, 0, 52, 1, 100, 1, 1, 3984, 0, 0, 0, 1, 1, 3000, 0, 0, 0, 0, 19, 3985, 0, 0, 0, 0, 0, 0, 0, 'Nancy Vishas - On Text 1 Over - Say Line 1 (Phase 1) (No Repeat)'),
(3984, 0, 6, 0, 52, 1, 100, 0, 1, 3985, 0, 0, 0, 1, 2, 3000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Nancy Vishas - On Text 1 Over - Say Line 2 (Phase 1)'),
(3984, 0, 7, 0, 52, 1, 100, 0, 2, 0, 0, 0, 0, 53, 0, 3984, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Nancy Vishas - On Text 2 Over - Start Waypoint (Phase 1)'),
(3984, 0, 8, 0, 40, 1, 100, 0, 3, 0, 0, 0, 0, 54, 15000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Nancy Vishas - On Waypoint 3 Reached - Pause Waypoint (Phase 1)'),
(3984, 0, 9, 0, 40, 1, 100, 0, 3, 0, 0, 0, 0, 1, 3, 3000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Nancy Vishas - On Waypoint 3 Reached - Say Line 3 (Phase 1)'),
(3984, 0, 10, 0, 56, 0, 100, 0, 3, 0, 0, 0, 0, 1, 4, 2500, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Nancy Vishas - On Waypoint Resumed - Say Line 4'),
(3984, 0, 11, 0, 40, 0, 100, 0, 5, 0, 0, 0, 0, 70, 900, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Nancy Vishas - On Waypoint 5 Reached - Respawn Self'),
(3984, 0, 12, 0, 40, 0, 100, 0, 5, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 1.08982, 'Nancy Vishas - On Waypoint 5 Reached - Set Orientation 1.08982'),
(3984, 0, 13, 0, 2, 1, 100, 1, 1, 15, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 19, 0, 30, 0, 0, 0, 0, 0, 0, 'Nancy Vishas - Between 1-15% Health - Flee For Assist (Phase 1) (No Repeat)');
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 3985);
INSERT INTO `smart_scripts` VALUES
(3985, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Grandpa Vishas - On Respawn - Set Event Phase 1'),
(3985, 0, 1, 0, 2, 1, 100, 1, 1, 15, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Grandpa Vishas - Between 1-15% Health - Flee For Assist (Phase 1) (No Repeat)');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;