forked from azerothcore/azerothcore-wotlk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into game-time
- Loading branch information
Showing
75 changed files
with
6,352 additions
and
323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
-- DB update 2021_12_06_01 -> 2021_12_06_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_12_06_01'; | ||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF; | ||
START TRANSACTION; | ||
ALTER TABLE version_db_world CHANGE COLUMN 2021_12_06_01 2021_12_06_02 bit; | ||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1638445356401170100'; IF OK <> 'FALSE' THEN LEAVE proc; END IF; | ||
-- | ||
-- START UPDATING QUERIES | ||
-- | ||
|
||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1638445356401170100'); | ||
|
||
UPDATE `creature` SET `spawntimesecs`=60 WHERE `id`=15664; | ||
UPDATE `smart_scripts` SET `event_param1`=6763 WHERE `entryorguid` IN (15664) AND `source_type`=0 AND `id` IN (0,1); | ||
UPDATE `conditions` SET `SourceGroup`=6763 WHERE `SourceTypeOrReferenceId`=15 AND `ConditionTypeOrReference`=2 AND `ConditionValue1`=21211; | ||
DELETE FROM `gossip_menu` WHERE `MenuID`=21252 AND `TextID`=8077; | ||
DELETE FROM `gossip_menu_option` WHERE `MenuID` = 21251 AND `OptionID` = 0; | ||
UPDATE `creature_template` SET `gossip_menu_id`=6763 WHERE `entry`=15664; | ||
|
||
DELETE FROM `gossip_menu` WHERE `MenuID` = 6763; | ||
INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES | ||
(6763, 8076); | ||
|
||
DELETE FROM `gossip_menu_option` WHERE `MenuID` = 6763; | ||
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`) VALUES | ||
(6763, 0, 0, 'Sprinkle some of the reindeer dust onto Metzen.', 0, 1, 1, 6761); | ||
|
||
DELETE FROM `spell_scripts` WHERE `id`=25952; | ||
INSERT INTO `spell_scripts` (`id`,`effIndex`,`delay`,`command`,`datalong`,`datalong2`,`dataint`,`x`,`y`,`z`,`o`) VALUES | ||
(25952,0,0,18,0,0,0,0,0,0,0); | ||
|
||
-- | ||
-- END UPDATING QUERIES | ||
-- | ||
UPDATE version_db_world SET date = '2021_12_06_02' WHERE sql_rev = '1638445356401170100'; | ||
COMMIT; | ||
END // | ||
DELIMITER ; | ||
CALL updateDb(); | ||
DROP PROCEDURE IF EXISTS `updateDb`; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
-- DB update 2021_12_06_03 -> 2021_12_06_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_12_06_03'; | ||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF; | ||
START TRANSACTION; | ||
ALTER TABLE version_db_world CHANGE COLUMN 2021_12_06_03 2021_12_06_04 bit; | ||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1638433789445189200'; IF OK <> 'FALSE' THEN LEAVE proc; END IF; | ||
-- | ||
-- START UPDATING QUERIES | ||
-- | ||
|
||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1638433789445189200'); | ||
|
||
UPDATE `creature_template` SET `AIName` = '' WHERE `entry` = 3284; | ||
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 3284) AND (`source_type` = 0); | ||
|
||
-- | ||
-- END UPDATING QUERIES | ||
-- | ||
UPDATE version_db_world SET date = '2021_12_06_04' WHERE sql_rev = '1638433789445189200'; | ||
COMMIT; | ||
END // | ||
DELIMITER ; | ||
CALL updateDb(); | ||
DROP PROCEDURE IF EXISTS `updateDb`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-- DB update 2021_12_06_04 -> 2021_12_06_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_12_06_04'; | ||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF; | ||
START TRANSACTION; | ||
ALTER TABLE version_db_world CHANGE COLUMN 2021_12_06_04 2021_12_06_05 bit; | ||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1638344006777786435'; IF OK <> 'FALSE' THEN LEAVE proc; END IF; | ||
-- | ||
-- START UPDATING QUERIES | ||
-- | ||
|
||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1638344006777786435'); | ||
UPDATE `creature_loot_template` SET `Chance` = 30 WHERE `item` = 5734; | ||
|
||
-- | ||
-- END UPDATING QUERIES | ||
-- | ||
UPDATE version_db_world SET date = '2021_12_06_05' WHERE sql_rev = '1638344006777786435'; | ||
COMMIT; | ||
END // | ||
DELIMITER ; | ||
CALL updateDb(); | ||
DROP PROCEDURE IF EXISTS `updateDb`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
-- DB update 2021_12_06_05 -> 2021_12_07_00 | ||
DROP PROCEDURE IF EXISTS `updateDb`; | ||
DELIMITER // | ||
CREATE PROCEDURE updateDb () | ||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE'; | ||
SELECT COUNT(*) INTO @COLEXISTS | ||
FROM information_schema.COLUMNS | ||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_12_06_05'; | ||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF; | ||
START TRANSACTION; | ||
ALTER TABLE version_db_world CHANGE COLUMN 2021_12_06_05 2021_12_07_00 bit; | ||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1638637475108173400'; IF OK <> 'FALSE' THEN LEAVE proc; END IF; | ||
-- | ||
-- START UPDATING QUERIES | ||
-- | ||
|
||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1638637475108173400'); | ||
|
||
UPDATE `spell_proc_event` SET `procFlags`=0x00011150 WHERE `entry`=16164; | ||
|
||
-- | ||
-- END UPDATING QUERIES | ||
-- | ||
UPDATE version_db_world SET date = '2021_12_07_00' WHERE sql_rev = '1638637475108173400'; | ||
COMMIT; | ||
END // | ||
DELIMITER ; | ||
CALL updateDb(); | ||
DROP PROCEDURE IF EXISTS `updateDb`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
-- DB update 2021_12_07_00 -> 2021_12_07_01 | ||
DROP PROCEDURE IF EXISTS `updateDb`; | ||
DELIMITER // | ||
CREATE PROCEDURE updateDb () | ||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE'; | ||
SELECT COUNT(*) INTO @COLEXISTS | ||
FROM information_schema.COLUMNS | ||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_12_07_00'; | ||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF; | ||
START TRANSACTION; | ||
ALTER TABLE version_db_world CHANGE COLUMN 2021_12_07_00 2021_12_07_01 bit; | ||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1638571815853367029'; IF OK <> 'FALSE' THEN LEAVE proc; END IF; | ||
-- | ||
-- START UPDATING QUERIES | ||
-- | ||
|
||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1638571815853367029'); | ||
|
||
DELETE FROM `creature_questender` WHERE `id`=28919 AND `quest`=12717; | ||
|
||
-- | ||
-- END UPDATING QUERIES | ||
-- | ||
UPDATE version_db_world SET date = '2021_12_07_01' WHERE sql_rev = '1638571815853367029'; | ||
COMMIT; | ||
END // | ||
DELIMITER ; | ||
CALL updateDb(); | ||
DROP PROCEDURE IF EXISTS `updateDb`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
-- DB update 2021_12_07_01 -> 2021_12_07_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_12_07_01'; | ||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF; | ||
START TRANSACTION; | ||
ALTER TABLE version_db_world CHANGE COLUMN 2021_12_07_01 2021_12_07_02 bit; | ||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1638435289258599700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF; | ||
-- | ||
-- START UPDATING QUERIES | ||
-- | ||
|
||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1638435289258599700'); | ||
|
||
UPDATE `creature_loot_template` SET `chance` = 5 WHERE `item` = 5097; | ||
|
||
-- | ||
-- END UPDATING QUERIES | ||
-- | ||
UPDATE version_db_world SET date = '2021_12_07_02' WHERE sql_rev = '1638435289258599700'; | ||
COMMIT; | ||
END // | ||
DELIMITER ; | ||
CALL updateDb(); | ||
DROP PROCEDURE IF EXISTS `updateDb`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
-- DB update 2021_12_07_02 -> 2021_12_07_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_12_07_02'; | ||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF; | ||
START TRANSACTION; | ||
ALTER TABLE version_db_world CHANGE COLUMN 2021_12_07_02 2021_12_07_03 bit; | ||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1638437762578877300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF; | ||
-- | ||
-- START UPDATING QUERIES | ||
-- | ||
|
||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1638437762578877300'); | ||
|
||
-- Water seekers cast a poison spell that didn't exist on the SmartAI. | ||
-- Missing Flee for assist event | ||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 3260; | ||
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 3260); | ||
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 | ||
(3260, 0, 0, 0, 0, 0, 100, 0, 2000, 6000, 15000, 17000, 0, 11, 12748, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Bristleback Water Seeker - In Combat - Cast \'Frost Nova\''), | ||
(3260, 0, 1, 0, 0, 0, 100, 0, 0, 2000, 11000, 13000, 0, 11, 744, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Bristleback Water Seeker - In Combat - Cast \'Poison\''), | ||
(3260, 0, 2, 0, 2, 0, 100, 0, 1, 15, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bristleback Water Seeker - Between 1-15% Health - Flee For Assist'); | ||
|
||
-- Timers adjusted according to footage aswell, to mimic their random spellcasting instead of spamming fireballs, | ||
-- since they hit very hard and make this quest excessively harder. | ||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 3263; | ||
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 3263); | ||
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 | ||
(3263, 0, 0, 0, 0, 0, 100, 0, 0, 7000, 4000, 5000, 0, 11, 20793, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Bristleback Geomancer - In Combat - Cast \'Fireball\''), | ||
(3263, 0, 1, 0, 0, 0, 100, 0, 2000, 12000, 30000, 35000, 0, 11, 4979, 64, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bristleback Geomancer - In Combat - Cast \'Quick Flame Ward\''), | ||
(3263, 0, 2, 0, 0, 0, 100, 0, 1500, 10000, 18000, 25000, 0, 11, 20794, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Bristleback Geomancer - In Combat - Cast \'Flamestrike\''), | ||
(3263, 0, 3, 0, 2, 0, 100, 1, 0, 15, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bristleback Geomancer - Between 0-15% Health - Flee For Assist (No Repeat)'); | ||
|
||
-- Thornweavers cast Thorns in-combat and not out of combat. | ||
-- Adjusted their timers for a more accurate classic experience | ||
-- Missing flee for assist event at 0-10% health percentage | ||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 3261; | ||
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 3261); | ||
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 | ||
(3261, 0, 0, 0, 0, 0, 100, 0, 2000, 8000, 20000, 24000, 0, 11, 782, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bristleback Thornweaver - In Combat - Cast \'Thorns\''), | ||
(3261, 0, 1, 0, 0, 0, 80, 0, 1000, 6000, 12000, 16000, 0, 11, 12747, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Bristleback Thornweaver - In Combat - Cast \'Entangling Roots\''), | ||
(3261, 0, 2, 0, 2, 0, 100, 0, 0, 10, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bristleback Thornweaver - Between 0-10% Health - Flee For Assist'); | ||
|
||
-- Hunter's timers re-checked for accuracy | ||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 3258; | ||
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 3258); | ||
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 | ||
(3258, 0, 0, 0, 0, 0, 100, 0, 1000, 5000, 3000, 4000, 0, 11, 6660, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Bristleback Hunter - In Combat - Cast \'Shoot\''), | ||
(3258, 0, 1, 0, 0, 0, 100, 0, 1000, 5000, 6000, 8000, 0, 11, 8806, 32, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 'Bristleback Hunter - In Combat - Cast \'Poisoned Shot\''), | ||
(3258, 0, 2, 0, 2, 0, 100, 1, 1, 15, 0, 0, 0, 25, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bristleback Hunter - Between 1-15% Health - Flee For Assist (No Repeat)'); | ||
|
||
-- | ||
-- END UPDATING QUERIES | ||
-- | ||
UPDATE version_db_world SET date = '2021_12_07_03' WHERE sql_rev = '1638437762578877300'; | ||
COMMIT; | ||
END // | ||
DELIMITER ; | ||
CALL updateDb(); | ||
DROP PROCEDURE IF EXISTS `updateDb`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
-- DB update 2021_12_07_03 -> 2021_12_07_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_12_07_03'; | ||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF; | ||
START TRANSACTION; | ||
ALTER TABLE version_db_world CHANGE COLUMN 2021_12_07_03 2021_12_07_04 bit; | ||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1638439965264459900'; IF OK <> 'FALSE' THEN LEAVE proc; END IF; | ||
-- | ||
-- START UPDATING QUERIES | ||
-- | ||
|
||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1638439965264459900'); | ||
|
||
-- Theramore Preserver | ||
-- Corrected Heal and Renew spell IDs | ||
-- More accurate SmartAI compared to Classic wow | ||
-- Sniffed the spells casted | ||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 3386; | ||
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 3386) AND (`source_type` = 0) AND (`id` IN (0, 1, 2)); | ||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES | ||
(3386, 0, 0, 0, 0, 0, 100, 0, 3000, 6000, 12000, 14000, 0, 11, 6074, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Theramore Preserver - In Combat - Cast \'Renew\''), | ||
(3386, 0, 1, 0, 0, 0, 100, 0, 1000, 3000, 4000, 5500, 0, 11, 9734, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Theramore Preserver - In Combat - Cast \'Holy Smite\''), | ||
(3386, 0, 2, 0, 2, 0, 100, 1, 5, 40, 0, 0, 0, 11, 2052, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Theramore Preserver - Between 5-40% Health - Cast \'Lesser Heal\' (No Repeat)'); | ||
|
||
-- | ||
-- END UPDATING QUERIES | ||
-- | ||
UPDATE version_db_world SET date = '2021_12_07_04' WHERE sql_rev = '1638439965264459900'; | ||
COMMIT; | ||
END // | ||
DELIMITER ; | ||
CALL updateDb(); | ||
DROP PROCEDURE IF EXISTS `updateDb`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
-- DB update 2021_12_07_04 -> 2021_12_07_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_12_07_04'; | ||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF; | ||
START TRANSACTION; | ||
ALTER TABLE version_db_world CHANGE COLUMN 2021_12_07_04 2021_12_07_05 bit; | ||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1638444071475524100'; IF OK <> 'FALSE' THEN LEAVE proc; END IF; | ||
-- | ||
-- START UPDATING QUERIES | ||
-- | ||
|
||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1638444071475524100'); | ||
|
||
UPDATE `npc_text` SET `Probability0`=100 WHERE `ID`=1875; | ||
|
||
-- | ||
-- END UPDATING QUERIES | ||
-- | ||
UPDATE version_db_world SET date = '2021_12_07_05' WHERE sql_rev = '1638444071475524100'; | ||
COMMIT; | ||
END // | ||
DELIMITER ; | ||
CALL updateDb(); | ||
DROP PROCEDURE IF EXISTS `updateDb`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
-- DB update 2021_12_07_05 -> 2021_12_07_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_12_07_05'; | ||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF; | ||
START TRANSACTION; | ||
ALTER TABLE version_db_world CHANGE COLUMN 2021_12_07_05 2021_12_07_06 bit; | ||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1638445027033013500'; IF OK <> 'FALSE' THEN LEAVE proc; END IF; | ||
-- | ||
-- START UPDATING QUERIES | ||
-- | ||
|
||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1638445027033013500'); | ||
|
||
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 9456) AND (`source_type` = 0) AND (`id` IN (0)); | ||
|
||
-- | ||
-- END UPDATING QUERIES | ||
-- | ||
UPDATE version_db_world SET date = '2021_12_07_06' WHERE sql_rev = '1638445027033013500'; | ||
COMMIT; | ||
END // | ||
DELIMITER ; | ||
CALL updateDb(); | ||
DROP PROCEDURE IF EXISTS `updateDb`; |
Oops, something went wrong.