mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 19:35:42 +00:00
40
data/sql/updates/db_world/2022_01_03_22.sql
Normal file
40
data/sql/updates/db_world/2022_01_03_22.sql
Normal file
@@ -0,0 +1,40 @@
|
||||
-- DB update 2022_01_03_21 -> 2022_01_03_22
|
||||
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 = '2022_01_03_21';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2022_01_03_21 2022_01_03_22 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1641057260821158016'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1641057260821158016');
|
||||
|
||||
-- 5263 Pocket Lint - Is only dropped by Mizzle the Crafty NPC, not other NPCS.
|
||||
DELETE FROM `creature_loot_template` WHERE `Entry`=13036 AND `Item`=5263 AND `Reference`=0 AND `GroupId`=0;
|
||||
|
||||
-- 18255 Runn Tum Tuber - Is only dropped by Pusillin, not other NPCs.
|
||||
DELETE FROM `creature_loot_template` WHERE `Entry`=13036 AND `Item`=18255 AND `Reference`=0 AND `GroupId`=0;
|
||||
|
||||
-- 18266 Gordok Courtyard Key - This is only obtained thru Fengus's Chest chest and is for some reason being slapped in a few npc loot tables.
|
||||
-- Alot of Pservers dump this on npcs due to low pop as the chest is only found on Alterac Valley and Dire Maul.
|
||||
DELETE FROM `creature_loot_template` WHERE `Entry`=13036 AND `Item`=18266 AND `Reference`=0 AND `GroupId`=0;
|
||||
|
||||
-- 18297 Thornling Seed - This is only obtained in warpwood pods not thru npc drop, never was obtainable thru npc drops in any expansion.
|
||||
DELETE FROM `creature_loot_template` WHERE `Entry`=13036 AND `Item`=18297 AND `Reference`=0 AND `GroupId`=0;
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
UPDATE version_db_world SET date = '2022_01_03_22' WHERE sql_rev = '1641057260821158016';
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
40
data/sql/updates/db_world/2022_01_03_23.sql
Normal file
40
data/sql/updates/db_world/2022_01_03_23.sql
Normal file
@@ -0,0 +1,40 @@
|
||||
-- DB update 2022_01_03_22 -> 2022_01_03_23
|
||||
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 = '2022_01_03_22';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2022_01_03_22 2022_01_03_23 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1641238616670655918'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1641238616670655918');
|
||||
|
||||
-- Fixes issue: https://github.com/azerothcore/azerothcore-wotlk/issues/8146
|
||||
-- Made corrections to the original script, made it so you cant attack while its tagged like on retail
|
||||
-- Blacksilt Scout Update SAI
|
||||
SET @ENTRY := 17326;
|
||||
SET @SOURCETYPE := 0;
|
||||
UPDATE creature_template SET AIName="SmartAI" WHERE entry=@ENTRY;
|
||||
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=@SOURCETYPE;
|
||||
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
|
||||
(@ENTRY,@SOURCETYPE,0,1,8,0,100,0,30877,0,0,0,33,17654,0,0,0,0,0,16,0,0,0,0.0,0.0,0.0,0.0,"Blacksilt Scout - On Spellhit - Give Quest Credit"),
|
||||
(@ENTRY,@SOURCETYPE,1,2,61,0,100,0,0,0,0,0,18,770,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,"Link - Set Unattackable"),
|
||||
(@ENTRY,@SOURCETYPE,2,0,61,0,100,0,0,0,0,0,41,7000,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,"Link - Set Despawn"),
|
||||
(@ENTRY,@SOURCETYPE,3,0,11,0,100,0,0,0,0,0,19,770,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,"Spawn - Remove Unit Flags");
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
UPDATE version_db_world SET date = '2022_01_03_23' WHERE sql_rev = '1641238616670655918';
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
Reference in New Issue
Block a user