server/sql/updates/0.6/2642_loot_template.sql
freghar 95840fd2c3 Removed trailing whitespaces and CRLFs
With /contrib/ and /dep/ excluded.

Signed-off-by: freghar <compmancz@gmail.com>
2008-10-22 11:52:03 +02:00

34 lines
1.7 KiB
SQL

ALTER TABLE `creature_loot_template`
CHANGE `chance` `ChanceOrRef` float NOT NULL default '100',
CHANGE `questchance` `QuestChanceOrGroup` tinyint(3) NOT NULL default '0';
ALTER TABLE `fishing_loot_template`
CHANGE `chance` `ChanceOrRef` float NOT NULL default '100',
CHANGE `questchance` `QuestChanceOrGroup` tinyint(3) NOT NULL default '0';
ALTER TABLE `gameobject_loot_template`
CHANGE `chance` `ChanceOrRef` float NOT NULL default '100',
CHANGE `questchance` `QuestChanceOrGroup` tinyint(3) NOT NULL default '0';
ALTER TABLE `item_loot_template`
CHANGE `chance` `ChanceOrRef` float NOT NULL default '100',
CHANGE `questchance` `QuestChanceOrGroup` tinyint(3) NOT NULL default '0';
ALTER TABLE `pickpocketing_loot_template`
CHANGE `chance` `ChanceOrRef` float NOT NULL default '100',
CHANGE `questchance` `QuestChanceOrGroup` tinyint(3) NOT NULL default '0';
ALTER TABLE `skinning_loot_template`
CHANGE `chance` `ChanceOrRef` float NOT NULL default '100',
CHANGE `questchance` `QuestChanceOrGroup` tinyint(3) NOT NULL default '0';
UPDATE `skinning_loot_template`,`skinning_loot_template_alternative`
SET `QuestChanceOrGroup` = '-1',`ChanceOrRef` = '80'
WHERE `skinning_loot_template`.`item` = `skinning_loot_template_alternative`.`item`;
INSERT INTO `skinning_loot_template`
SELECT `skinning_loot_template`.`entry`, `skinning_loot_template_alternative`.`item2`, '20', '-1', `skinning_loot_template`.`maxcount`, '1'
FROM `skinning_loot_template`,`skinning_loot_template_alternative`
WHERE `skinning_loot_template`.`item` = `skinning_loot_template_alternative`.`item`;
DROP TABLE `skinning_loot_template_alternative`;