-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 3.3.5-base_patch to 3.3.5-passive_anticheat
- Loading branch information
Showing
37 changed files
with
762 additions
and
690 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
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 @@ | ||
-- append guid as hex to characters who have duplicate names in database except the one with lowest guid (assumed to have been created first) | ||
-- and flag them for rename | ||
CREATE TEMPORARY TABLE `characters_to_rename` SELECT | ||
c2.`guid` | ||
FROM | ||
( | ||
SELECT | ||
c1.`name` AS `name`, | ||
MIN(c1.`guid`) AS originalGuid | ||
FROM | ||
`characters` c1 | ||
WHERE | ||
LENGTH(c1.`name`) > 0 | ||
GROUP BY | ||
1 | ||
HAVING | ||
COUNT(*) > 1 | ||
) c3 | ||
INNER JOIN `characters` c2 ON c3.`name` = c2.`name` | ||
WHERE | ||
c2.guid <> c3.originalGuid; | ||
|
||
UPDATE `characters` SET `name` = CONCAT(SUBSTRING(`name` FROM 1 FOR 12 - LENGTH(CONV(`guid`, 10, 16))), CONV(`guid`, 10, 16)), `at_login` = `at_login` | 1 WHERE `guid` IN (SELECT `guid` FROM `characters_to_rename`); | ||
|
||
-- recreate name index with unique constraint | ||
ALTER TABLE `characters` DROP INDEX `idx_name`; | ||
ALTER TABLE `characters` MODIFY COLUMN `name` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL AFTER `account`; | ||
UPDATE `characters` SET `name` = NULL WHERE `name` = ''; | ||
ALTER TABLE `characters` ADD UNIQUE INDEX `idx_name` (`name` ASC); |
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,10 @@ | ||
-- | ||
DELETE FROM `prospecting_loot_template` WHERE `Entry`=10620 AND `Reference`=13001; | ||
DELETE FROM `prospecting_loot_template` WHERE `Entry`=10620 AND `Item` IN (21929,23077,23079,23107,23112,23117); | ||
INSERT INTO `prospecting_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES | ||
(10620,21929,0,0,0,1,1,1,2,NULL), | ||
(10620,23077,0,0,0,1,1,1,2,NULL), | ||
(10620,23079,0,0,0,1,1,1,2,NULL), | ||
(10620,23107,0,0,0,1,1,1,2,NULL), | ||
(10620,23112,0,0,0,1,1,1,2,NULL), | ||
(10620,23117,0,0,0,1,1,1,2,NULL); |
8 changes: 8 additions & 0 deletions
8
sql/updates/world/3.3.5/2024_10_05_00_world_2022_12_27_01_world.sql
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,8 @@ | ||
-- | ||
DELETE FROM `trinity_string` WHERE `entry`=5089; | ||
INSERT INTO `trinity_string` (`entry`,`content_default`) VALUES | ||
(5089,'Template StringID: %.*s\Spawn StringID: %.*s\nScript StringID: %.*s'); | ||
|
||
ALTER TABLE `creature` ADD `StringId` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER ScriptName; | ||
|
||
ALTER TABLE `creature_template` ADD `StringId` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER ScriptName; |
3 changes: 3 additions & 0 deletions
3
sql/updates/world/3.3.5/2024_10_05_01_world_2023_07_30_00_world.sql
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,3 @@ | ||
ALTER TABLE `gameobject` ADD `StringId` varchar(64) AFTER `ScriptName`; | ||
|
||
ALTER TABLE `gameobject_template` ADD `StringId` varchar(64) AFTER `ScriptName`; |
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
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
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
Oops, something went wrong.