First and most importantly it's necessary to import the `spellids` table that I provided here in this post as a download:
spellids.zip (113.98K)
Number of downloads: 21
This tabled contains all the spellids for patch 3.3.5a, maybe when we progress with patches I will update it with the latest.
Then you can run these:
DELETE FROM `ai_agents` WHERE `spell` NOT IN ( SELECT `Id` FROM `spellids` ); DELETE FROM `ai_threattospellid` WHERE `spell` NOT IN ( SELECT `Id` FROM `spellids` ); DELETE FROM `playercreateinfo_spells` WHERE `spellid` NOT IN ( SELECT `Id` FROM `spellids` ); DELETE FROM `spell_coef_override` WHERE `id` NOT IN ( SELECT `Id` FROM `spellids` ); DELETE FROM `spell_proc` WHERE `spellID` NOT IN ( SELECT `Id` FROM `spellids` ); DELETE FROM `spellfixes` WHERE `spellId` NOT IN ( SELECT `Id` FROM `spellids` ); DELETE FROM `spelloverride` WHERE `overrideID` NOT IN ( SELECT `Id` FROM `spellids` ); DELETE FROM `spelloverride` WHERE `spellId` NOT IN ( SELECT `Id` FROM `spellids` ); DELETE FROM `SpellTargetConstraints` WHERE `SpellID` NOT IN ( SELECT `Id` FROM `spellids` ); DELETE FROM `totemspells` WHERE `spell` NOT IN ( SELECT `Id` FROM `spellids` ); DELETE FROM `totemspells` WHERE `castspell1` NOT IN ( SELECT `Id` FROM `spellids` ); DELETE FROM `totemspells` WHERE `castspell2` NOT IN ( SELECT `Id` FROM `spellids` ); DELETE FROM `totemspells` WHERE `castspell3` NOT IN ( SELECT `Id` FROM `spellids` ); DELETE FROM `trainer_spells` WHERE `cast_spell` NOT IN ( SELECT `Id` FROM `spellids` ); DELETE FROM `trainer_spells` WHERE `learn_spell` NOT IN ( SELECT `Id` FROM `spellids` );
Enjoy

Help


















