aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZxBiohazardZx <zxbiohazardzx@gmail.com>2012-09-20 15:55:08 +0200
committerZxBiohazardZx <zxbiohazardzx@gmail.com>2012-10-02 21:17:14 +0200
commite4cdd0956ac3b2386488ef74c0546d1af1304b2f (patch)
tree8ac3b5d6089c72a3a1649dab3393415edd8211dd
parent94b2f90a5a821db38cb5c8430bc029423557cd2f (diff)
DB/Loot : correct some lootids, remove pointless sharedid, Thx Kandera for the assist
-rw-r--r--sql/updates/world/2012_09_20_00_world_creature_loot_template.sql5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/updates/world/2012_09_20_00_world_creature_loot_template.sql b/sql/updates/world/2012_09_20_00_world_creature_loot_template.sql
new file mode 100644
index 00000000000..8463b064bf9
--- /dev/null
+++ b/sql/updates/world/2012_09_20_00_world_creature_loot_template.sql
@@ -0,0 +1,5 @@
+SET @exists = (SELECT 1 FROM `creature_loot_template` WHERE `entry`=100002);
+DELETE FROM `creature_loot_template` WHERE `entry`=100002 AND @exists = 1;
+DELETE FROM `creature_loot_template` WHERE `mincountOrRef`=-35069 AND @exists = 1;
+INSERT INTO `creature_loot_template`(`entry`,`item`,`ChanceOrQuestChance`,`lootmode`,`groupid`,`mincountOrRef`,`maxcount`) SELECT `entry`,1,100,1,0,-35069,2 FROM `creature_template` WHERE `lootid` = 100002 AND @exists = 1; -- 2 selection from reference
+UPDATE `creature_template` SET `lootid`=`entry` WHERE `lootid` = 100002 AND @exists = 1;