mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
Core/Globals: fix some DBC loading from DB data and reorder columns (must be in relative DBC order or else you get garbage data)
This commit is contained in:
17
sql/updates/world/4.3.4/2018_03_28_00_world.sql
Normal file
17
sql/updates/world/4.3.4/2018_03_28_00_world.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
ALTER TABLE `spell_dbc`
|
||||
CHANGE `SpellInterruptsId` `SpellInterruptsId` INT(10) UNSIGNED DEFAULT 0 NOT NULL AFTER `SpellEquippedItemsId`;
|
||||
|
||||
ALTER TABLE `spelleffect_dbc`
|
||||
ADD COLUMN `Comment` TEXT NOT NULL AFTER `EffectIndex`;
|
||||
|
||||
CREATE TEMPORARY TABLE `spelleffectdbc_comments` (
|
||||
`Id` INT(10) UNSIGNED NOT NULL,
|
||||
`Comment` TEXT NOT NULL,
|
||||
PRIMARY KEY (`Id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `spelleffectdbc_comments` (`Id`, `Comment`)
|
||||
SELECT DISTINCT spe.EffectSpellId, sp.`Comment` FROM `spelleffect_dbc` spe LEFT JOIN spell_dbc sp ON sp.Id = spe.EffectSpellId;
|
||||
|
||||
UPDATE `spelleffect_dbc` spe, `spelleffectdbc_comments` spc SET spe.`Comment`=spc.`Comment` WHERE spe.`EffectSpellId` = spc.`Id`;
|
||||
DROP TABLE `spelleffectdbc_comments`;
|
||||
@@ -146,11 +146,11 @@ const std::string CustomSpellDifficultyIndex = "id";
|
||||
char const SpellDurationfmt[] = "niii";
|
||||
// 0 10 20 26
|
||||
char const SpellEffectEntryfmt[] = "nifiiiffiiiiiifiifiiiiiiiix";
|
||||
const std::string CustomSpellEffectEntryfmt = "ppppppppppppppappppppppppp";
|
||||
const std::string CustomSpellEffectEntryfmt = "ppppppppppppppapppppppppppa";
|
||||
const std::string CustomSpellEffectEntryIndex = "Id";
|
||||
// 0 10 20 30 40 47
|
||||
char const SpellEntryfmt[] = "niiiiiiiiiiiiiiifiiiissxxiixxifiiiiiiixiiiiiiiii";
|
||||
const std::string CustomSpellEntryfmt = "ppppppppppppppapaaaaaaaaapaaaaaapapppaapppaaapa";
|
||||
const std::string CustomSpellEntryfmt = "ppppppppppppppapaaaaaaaaapaaaaaapapppaapppaaapaa";
|
||||
const std::string CustomSpellEntryIndex = "Id";
|
||||
char const SpellFocusObjectfmt[] = "nx";
|
||||
char const SpellItemEnchantmentfmt[] = "nxiiiiiixxxiiisiiiiiiix";
|
||||
|
||||
Reference in New Issue
Block a user