Map local guids 6.x -> 4.3.4
Ported the following commits: https://github.com/TrinityCore/TrinityCore/commit/ca83e14f8b141fab0a13e08f48fca6c1ace0c4c7 https://github.com/TrinityCore/TrinityCore/commit/ee1c1b97be4492ecabe8b15ea6323fc37e4eaa8c https://github.com/TrinityCore/TrinityCore/commit/18e4ab6911468b829b0fc768e532a770263c3717 https://github.com/TrinityCore/TrinityCore/commit/bf37446b3c2ed73b4d3aa9e227d3eff5c53b378b https://github.com/TrinityCore/TrinityCore/commit/cb854a2b7bb7bd96cf9c4d1daf3789f797bf4db8
This commit is contained in:
1 parent
694c89d76d
commit
b3ea9fbbe5
163 files changed
+2448
-2328
No files matched your search
@@ -1417,7 +1417,6 @@ DROP TABLE IF EXISTS `corpse`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `corpse` (
|
||||
`corpseGuid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
|
||||
`guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Character Global Unique Identifier',
|
||||
`posX` float NOT NULL DEFAULT '0',
|
||||
`posY` float NOT NULL DEFAULT '0',
|
||||
@@ -1433,10 +1432,9 @@ CREATE TABLE `corpse` (
|
||||
`time` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`corpseType` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
||||
`instanceId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Instance Identifier',
|
||||
PRIMARY KEY (`corpseGuid`),
|
||||
PRIMARY KEY (`guid`),
|
||||
KEY `idx_type` (`corpseType`),
|
||||
KEY `idx_instance` (`instanceId`),
|
||||
KEY `idx_player` (`guid`),
|
||||
KEY `idx_time` (`time`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Death System';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
@@ -1458,12 +1456,9 @@ DROP TABLE IF EXISTS `corpse_phases`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `corpse_phases` (
|
||||
`Guid` int(10) unsigned NOT NULL,
|
||||
`OwnerGuid` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`PhaseId` int(10) unsigned NOT NULL,
|
||||
`OwnerGuid` int(10) unsigned NOT NULL,
|
||||
`Time` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`CorpseType` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`Guid`,`PhaseId`)
|
||||
PRIMARY KEY (`OwnerGuid`,`PhaseId`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Grid Loading System';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
-- Keep only the highest guid PvE or PvP (not bones) corpse per player guid
|
||||
DELETE c FROM `corpse` c LEFT JOIN
|
||||
(
|
||||
SELECT MAX(`guid`) AS id
|
||||
FROM `corpse`
|
||||
WHERE `corpseType` IN (1,2)
|
||||
GROUP BY `guid`
|
||||
) corpsetemp
|
||||
ON c.`guid` = corpsetemp.`id`
|
||||
WHERE corpsetemp.`id` IS NULL;
|
||||
|
||||
ALTER TABLE `corpse_phases`
|
||||
DROP PRIMARY KEY,
|
||||
DROP `Guid`,
|
||||
DROP `CorpseType`,
|
||||
DROP `Time`,
|
||||
CHANGE `OwnerGuid` `OwnerGuid` int(10) unsigned NOT NULL DEFAULT '0' FIRST,
|
||||
ADD PRIMARY KEY (`OwnerGuid`, `PhaseId`);
|
||||
@@ -0,0 +1,3 @@
|
||||
UPDATE `trinity_string`
|
||||
SET `content_default` = 'Object GUID is: %s'
|
||||
WHERE `entry`=201;
|
||||
Reference in new issue
Block a user