root/trunk/sql/updates/0.8/4482_playercreateinfo.sql @ 2

Revision 2, 0.7 kB (checked in by yumileroy, 17 years ago)

[svn] * Proper SVN structure

Original author: Neo2003
Date: 2008-10-02 16:23:55-05:00

Line 
1UPDATE playercreateinfo_spell SET Spell = '21084' WHERE Spell = '20154';
2UPDATE playercreateinfo_action SET action = '21084' WHERE action = '20154';
3DELETE FROM `character_spell` WHERE spell='20154';
4
5-- re-add all default spells if not have with from spell list
6INSERT IGNORE INTO `character_spell`
7SELECT `character`.`guid`,`playercreateinfo_spell`.`spell` AS `spell`, '65535' AS `slot`,`playercreateinfo_spell`.`Active` AS `active`
8FROM `character`,`playercreateinfo_spell` 
9WHERE `character`.`class`=`playercreateinfo_spell`.`class` AND `character`.`race`=`playercreateinfo_spell`.`race`;
10
11UPDATE character_action SET action = '21084' WHERE action = '20154' AND `type` = 0;
Note: See TracBrowser for help on using the browser.