Skip to content

Commit e43418b

Browse files
committedOct 10, 2018
add correct syntax
when adding a new item, always use the syntax: delete before insert. then its possible to add the fix twice without error
1 parent 9301b91 commit e43418b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎sql/updates/world/2018_10_10_00_world_Vengence_Of_Elune.sql

+5-1
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,14 @@ insert into `gameobject_loot_template` (`Entry`, `Item`, `Reference`, `Chance`,
8989
values('205094','60738','0','100','1','1','0','1','1',NULL);
9090

9191
-- DEPRECIATED GAME_OBJECT added loot to prevent DBError entry, no objects spawned.
92-
insert into `gameobject_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) values('204965','60575','0','100','1','1','0','1','1',NULL);
92+
delete from gameobject_loot_template where entry=204965 and item=60575;
93+
insert into `gameobject_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) values
94+
('204965','60575','0','100','1','1','0','1','1',NULL);
9395

9496
-- Mineral Deposit Not Spawned, Added Loot to correct DBError.
9597
UPDATE `gameobject_template` SET `data1` = 203278 WHERE `entry` = 203278;
9698

99+
delete from gameobject_loot_template where entry=203278 and item in (52177, 52178, 52179, 52180, 52181, 52182, 52327, 52328, 53038);
97100
insert into `gameobject_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) values('203278','52177','0','0.8','0','1','0','1','1',NULL);
98101
insert into `gameobject_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) values('203278','52178','0','0.8','0','1','0','1','1',NULL);
99102
insert into `gameobject_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) values('203278','52179','0','0.8','0','1','0','1','1',NULL);
@@ -106,6 +109,7 @@ insert into `gameobject_loot_template` (`Entry`, `Item`, `Reference`, `Chance`,
106109

107110
-- Data is placeholder for unkown loot,No Objects spawn https://www.wowhead.com/object=206510/scavenged-treasure-chest .
108111
UPDATE `gameobject_template` SET `data1` = 206510 WHERE `entry` = 206510;
112+
delete from gameobject_loot_template where entry=206510 and item=12973;
109113
insert into `gameobject_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`)
110114
values('206510','12973','0','100','0','1','0','1','1','PLACEHOLDER');
111115

0 commit comments

Comments
 (0)
Please sign in to comment.