Skip to content

Commit 41239b8

Browse files
committed
Fix a bunch of errors when using Bracket_80_1
``` ERROR [sql.sql] Table 'creature_loot_template' Entry 23682 isn't creature entry and not referenced from loot, and thus useless. ERROR [sql.sql] Table 'creature_loot_template' Entry 23872 isn't creature entry and not referenced from loot, and thus useless. ERROR [sql.sql] Table 'reference_loot_template' Entry 34060 used by creature_loot_template entry 21214 item 34060 has minCount ( 1 ) != maxCount ( 3 ) which is not supported for this loot type. ERROR [sql.sql] Table 'reference_loot_template' Entry 34062 used by creature_loot_template entry 21212 item 34062 has minCount ( 1 ) != maxCount ( 3 ) which is not supported for this loot type. ERROR [sql.sql] Table 'reference_loot_template' Entry 34051 used by creature_loot_template entry 19044 item 34051 has minCount ( 1 ) != maxCount ( 2 ) which is not supported for this loot type. ERROR [sql.sql] Table 'reference_loot_template' Entry 34039 used by creature_loot_template entry 17257 item 90039 has minCount ( 1 ) != maxCount ( 2 ) which is not supported for this loot type. ERROR [sql.sql] Table 'reference_loot_template' Entry 34059 used by creature_loot_template entry 21215 item 34059 has minCount ( 1 ) != maxCount ( 3 ) which is not supported for this loot type. ERROR [sql.sql] Table 'reference_loot_template' Entry 34056 used by creature_loot_template entry 19622 item 34056 has minCount ( 1 ) != maxCount ( 3 ) which is not supported for this loot type. ERROR [sql.sql] Table 'reference_loot_template' Entry 34067 used by creature_loot_template entry 17842 item 34067 has minCount ( 1 ) != maxCount ( 3 ) which is not supported for this loot type. ERROR [sql.sql] Table 'reference_loot_template' Entry 34068 used by creature_loot_template entry 17968 item 34068 has minCount ( 1 ) != maxCount ( 3 ) which is not supported for this loot type. ERROR [sql.sql] Table 'reference_loot_template' Entry 30486 used by creature_loot_template entry 11583 item 30486 has minCount ( 1 ) != maxCount ( 2 ) which is not supported for this loot type. ERROR [sql.sql] Table 'reference_loot_template' Entry 34009 used by creature_loot_template entry 11583 item 34009 has minCount ( 1 ) != maxCount ( 2 ) which is not supported for this loot type. ERROR [sql.sql] Table 'reference_loot_template' Entry 34054 used by creature_loot_template entry 19516 item 34054 has minCount ( 1 ) != maxCount ( 3 ) which is not supported for this loot type. ERROR [sql.sql] Table 'reference_loot_template' Entry 34050 used by creature_loot_template entry 18831 item 34050 has minCount ( 1 ) != maxCount ( 3 ) which is not supported for this loot type. ERROR [sql.sql] Table 'reference_loot_template' Entry 50011 does not exist but it is used by item_loot_template 1 ERROR [sql.sql] Table 'reference_loot_template' Entry 54000 isn't reference id and not referenced from loot, and thus useless. ERROR [sql.sql] Table gossip_menu entry 60041 are using non-existing TextID 60041 ERROR [sql.sql] Table gossip_menu entry 60042 are using non-existing TextID 60042 ERROR [sql.sql] Table gossip_menu entry 60043 are using non-existing TextID 60043 ERROR [sql.sql] Table gossip_menu entry 60044 are using non-existing TextID 60044 ERROR [sql.sql] Table gossip_menu entry 60046 are using non-existing TextID 60046 ERROR [sql.sql] SourceGroup 54003 in `condition` table, does not exist in `creature_loot_template`, ignoring. ERROR [sql.sql] SourceGroup 527000 in `condition` table, does not exist in `reference_loot_template`, ignoring. ERROR [sql.sql] addToGossipMenuItems: GossipMenuId 12580 Item 0 not found ERROR [sql.sql] Not handled grouped condition, SourceGroup 12580 ERROR [sql.sql] SmartAIMgr: Entry 17804 SourceType 0 Event 0 Action 1 using non-existent Text id 0, skipped. ERROR [sql.sql] Creature entry (17804) has SmartAI enabled but no SmartAI entries in the database. ```
1 parent 1aa4a98 commit 41239b8

12 files changed

+35
-16
lines changed

src/Bracket_70_3_1/sql/world/progression_70_3_1_unnerf_t4_loot.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ INSERT INTO `creature_loot_template`
1010
(18831, 28800, 0, 0, 0, 1, 1, 1, 1, 'High King Maulgar - Hammer of the Naaru'),
1111
(18831, 28801, 0, 0, 0, 1, 1, 1, 1, 'High King Maulgar - Maulgar\'s Warhelm'),
1212
(18831, 29434, 0, 100, 0, 1, 0, 2, 2, 'High King Maulgar - Badge of Justice'),
13-
(18831, 34050, 34050, 100, 0, 1, 1, 1, 3, 'High King Maulgar - (ReferenceTable)');
13+
(18831, 34050, 34050, 100, 0, 1, 1, 3, 3, 'High King Maulgar - (ReferenceTable)');
1414

1515
DELETE FROM `creature_loot_template` WHERE `Entry` = 19044;
1616
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
1717
(19044, 22903, 0, 0.2, 0, 1, 0, 1, 1, 'Gruul the Dragonkiller - Recipe: Insane Strength Potion'),
1818
(19044, 23884, 0, 0.2, 0, 1, 0, 1, 1, 'Gruul the Dragonkiller - Schematic: Mana Potion Injector'),
1919
(19044, 29434, 0, 100, 0, 1, 0, 3, 3, 'Gruul the Dragonkiller - Badge of Justice'),
2020
(19044, 31750, 0, 100, 1, 1, 0, 1, 1, 'Gruul the Dragonkiller - Earthen Signet'),
21-
(19044, 34051, 34051, 100, 0, 1, 0, 1, 2, 'Gruul the Dragonkiller - (ReferenceTable)'),
21+
(19044, 34051, 34051, 100, 0, 1, 0, 2, 2, 'Gruul the Dragonkiller - (ReferenceTable)'),
2222
(19044, 190039, 34051, 100, 0, 1, 1, 1, 1, 'Gruul the Dragonkiller - (ReferenceTable)');
2323

2424
DELETE FROM `creature_loot_template` WHERE `Entry` = 17257;
@@ -31,4 +31,4 @@ INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `Q
3131
(17257,34039,34039,100,0,1,1,1,1,'Magtheridon - (ReferenceTable)'),
3232
(17257,34845,0,100,0,1,0,1,1,'Magtheridon - Pit Lord\s Satchel'),
3333
(17257,34846,0,100,0,1,0,1,1,'Magtheridon - Black Sack of Gems'),
34-
(17257,90039,34039,100,0,1,0,1,2,'Magtheridon - (ReferenceTable)');
34+
(17257,90039,34039,100,0,1,0,1,1,'Magtheridon - (ReferenceTable)');
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
--
22
DELETE FROM `creature_loot_template` WHERE (`Entry` = 21215) AND (`Item` IN (34059));
33
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
4-
(21215, 34059, 34059, 100, 0, 1, 0, 1, 3, 'Leotheras the Blind - (ReferenceTable)');
4+
(21215, 34059, 34059, 100, 0, 1, 0, 3, 3, 'Leotheras the Blind - (ReferenceTable)');
55

66
DELETE FROM `creature_loot_template` WHERE (`Entry` = 21214) AND (`Item` IN (34060));
77
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
8-
(21214, 34060, 34060, 100, 0, 1, 0, 1, 3, 'Fathom-Lord Karathress - (ReferenceTable)');
8+
(21214, 34060, 34060, 100, 0, 1, 0, 3, 3, 'Fathom-Lord Karathress - (ReferenceTable)');
99

1010
DELETE FROM `creature_loot_template` WHERE (`Entry` = 21212) AND (`Item` IN (34062));
1111
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
12-
(21212, 34062, 34062, 100, 0, 1, 3, 1, 3, 'Lady Vashj - (ReferenceTable)');
12+
(21212, 34062, 34062, 100, 0, 1, 3, 3, 3, 'Lady Vashj - (ReferenceTable)');
1313

1414
DELETE FROM `creature_loot_template` WHERE (`Entry` = 19516) AND (`Item` IN (34054));
1515
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
16-
(19516, 34054, 34054, 100, 0, 1, 0, 1, 3, 'Void Reaver - (ReferenceTable)');
16+
(19516, 34054, 34054, 100, 0, 1, 0, 3, 3, 'Void Reaver - (ReferenceTable)');
1717

1818
DELETE FROM `creature_loot_template` WHERE (`Entry` = 19622) AND (`Item` IN (34056));
1919
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
20-
(19622, 34056, 34056, 100, 0, 1, 3, 1, 3, 'Kael\'thas Sunstrider - (ReferenceTable)');
20+
(19622, 34056, 34056, 100, 0, 1, 3, 3, 3, 'Kael\'thas Sunstrider - (ReferenceTable)');
2121

2222
DELETE FROM `creature_loot_template` WHERE (`Entry` = 17842) AND (`Item` IN (34067));
23-
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES (17842, 34067, 34067, 100, 0, 1, 1, 1, 3, 'Azgalor - (ReferenceTable)');
23+
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
24+
(17842, 34067, 34067, 100, 0, 1, 1, 3, 3, 'Azgalor - (ReferenceTable)');
2425

2526
DELETE FROM `creature_loot_template` WHERE (`Entry` = 17968) AND (`Item` IN (34068));
26-
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES (17968, 34068, 34068, 100, 0, 1, 0, 1, 3, 'Archimonde - (ReferenceTable)');
27+
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
28+
(17968, 34068, 34068, 100, 0, 1, 0, 3, 3, 'Archimonde - (ReferenceTable)');

src/Bracket_71_74/sql/world/progression_70_5_amani_war_bear_loot_down.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ DELETE FROM `reference_loot_template` WHERE (`Entry` = @REFIDFOUR) AND (`Item` =
1111

1212
UPDATE `conditions` SET `ElseGroup` = 1 WHERE (`SourceTypeOrReferenceId` = 10) AND (`SourceGroup` = @REFIDTHREE) AND (`ConditionTypeOrReference` = 13) AND (`ConditionValue2` = 3);
1313

14-
DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 10) AND (`SourceGroup` IN (@REFIDTHREE, @REFIDFOUR)) AND (`ConditionTypeOrReference` = 13) AND (`ConditionValue1` = 8) AND (`ConditionValue2` = 4);
14+
DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 10) AND (`SourceGroup` = @REFIDFOUR) AND (`ConditionTypeOrReference` = 13) AND (`ConditionValue1` = 17) AND (`ConditionValue2` = 4);
15+
16+
DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 10) AND (`SourceGroup` = @REFIDTHREE) AND (`ConditionTypeOrReference` = 13) AND (`ConditionValue1` = 8) AND (`ConditionValue2` = 4);
1517
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
1618
(10, @REFIDTHREE, 33496, 0, 2, 13, 0, 8, 4, 0, 0, 0, 0, '', 'Yield third hostage loot if all hostages have been rescued'),
1719
(10, @REFIDTHREE, 33497, 0, 2, 13, 0, 8, 4, 0, 0, 0, 0, '', 'Yield third hostage loot if all hostages have been rescued'),

src/Bracket_80_1/sql/world/progression_1_19_brewfest_down.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
UPDATE `creature_template` SET `minlevel` = 80, `maxlevel` = 80 WHERE `entry` IN (23872, 23795, 26776, 26764, 26822);
22
UPDATE `creature_template` SET `lootid` = 23872 WHERE `entry` = 23872;
3+
DELETE FROM `creature_loot_template` WHERE `Entry` = 238720;
4+
35

46
DELETE FROM `item_loot_template` WHERE `Entry` = 54535 AND `Item` IN (48663, 49120, 49426);
57
INSERT INTO `item_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES

src/Bracket_80_1/sql/world/progression_1_19_hallows_end_down.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ INSERT INTO `item_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `Quest
99

1010
UPDATE `creature_template` SET `minlevel` = 80, `maxlevel` = 80 WHERE `entry` IN (23682, 23775,23694, 23545);
1111
UPDATE `creature_template` SET `lootid` = 23682 WHERE `entry` = 23682;
12+
DELETE FROM `creature_loot_template` WHERE `Entry` = 236820;

src/Bracket_80_1/sql/world/progression_1_19_love_in_air_down.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ DELETE FROM `creature` WHERE `guid` IN (3110427, 3110428, 3110429, 3110430, 3110
55

66
DELETE FROM `item_loot_template` WHERE `Entry` = 54537;
77
INSERT INTO `item_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
8-
(54537,1,50011,15,0,1,0,1,1, 'Heart-Shaped Box - (ReferenceTable)'),
8+
(54537,1,50010,15,0,1,0,1,1, 'Heart-Shaped Box - (ReferenceTable)'),
99
(54537,49426,0,100,0,1,0,2,2,'Heart-Shaped Box - Emblem of Frost'),
1010
(54537,49927,0,100,0,1,0,5,10,'Heart-Shaped Box - Love Token'),
1111
(54537,50250,0,0.1,0,1,0,1,1,'Heart-Shaped Box - Big Love Rocket');

src/Bracket_80_1/sql/world/progression_60_2_1_onyxia_down.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ UPDATE `creature_template` SET `minlevel` = 80, `maxlevel` = 80 WHERE `entry` =
55
UPDATE `creature_template` SET `minlevel` = 80, `maxlevel` = 80, `lootid` = 12129, `skinloot` = 12129 WHERE `entry` = 12129; -- Onyxian Warder
66

77
DELETE FROM `creature_loot_template` WHERE `Entry` = 54003;
8-
DELETE FROM `reference_loot_template` WHERE `Entry` IN (54001, 54002);
8+
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 1 AND `SourceGroup` = 54003 AND `SourceEntry` = 21108;
9+
10+
DELETE FROM `reference_loot_template` WHERE `Entry` IN (54000, 54001);
911

1012
DELETE FROM `disables` WHERE `entry` = 12559 AND `sourceType` = 4;
1113

@@ -44,6 +46,7 @@ DELETE FROM `creature_questender` WHERE `quest` IN (7507, 7508, 7509); -- Loreke
4446
DELETE FROM `creature_queststarter` WHERE `quest` = 7509;
4547
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` IN (14, 15) AND `SourceGroup` = 5747;
4648
DELETE FROM `gossip_menu` WHERE `TextId` = 60040 AND `MenuId` = 5747;
49+
DELETE FROM `gossip_menu` WHERE `TextId` IN (60041, 60042, 60043, 60044, 60045, 60046);
4750
DELETE FROM `npc_text` WHERE `ID` IN (60040, 60041, 60042, 60043, 60044, 60046);
4851
DELETE FROM `gossip_menu_option` WHERE `MenuID` IN (60040, 60041, 60042, 60043, 60044, 60045, 60046);
4952

src/Bracket_80_1/sql/world/progression_60_2_2_nefarian_loot_down.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `Q
1212
(11583, 30172, 30172, 100.0, 0, 1, 0, 1, 1),
1313
(11583, 30173, 30173, 100.0, 0, 1, 0, 1, 1),
1414
(11583, 30330, 30330, 0.05, 0, 1, 0, 1, 1),
15-
(11583, 30486, 30486, 100.0, 0, 1, 0, 1, 2),
15+
(11583, 30486, 30486, 100.0, 0, 1, 0, 2, 2),
1616
(11583, 30487, 30487, 100.0, 0, 1, 0, 1, 1),
1717
(11583, 30551, 30551, 100.0, 0, 1, 0, 1, 1),
18-
(11583, 34009, 34009, 100.0, 0, 1, 0, 1, 2);
18+
(11583, 34009, 34009, 100.0, 0, 1, 0, 2, 2);
1919

2020
DELETE FROM `reference_loot_template` WHERE `Entry` IN (34009, 30105, 30044, 30089, 30172, 30173, 30330, 30486, 30487, 30551, 30171);
2121
INSERT INTO `reference_loot_template`(`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES

src/Bracket_80_1/sql/world/progression_60_2_the_masquerade_down.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ UPDATE `creature_template` SET `ScriptName` = '' WHERE `entry` IN (9022, 9679);
3737

3838
DELETE FROM `gossip_menu` WHERE `MenuID` = 12580 AND `TextID` = 5633;
3939

40-
UPDATE `creature_template` SET `gossip_menu_id` = 12580 WHERE `entry` = 12580;
40+
UPDATE `creature_template` SET `gossip_menu_id` = 0 WHERE `entry` = 12580;
4141

4242
DELETE FROM `gossip_menu_option` WHERE `MenuID` = 12580;
4343

44+
DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 15) AND (`SourceGroup` = 12580) AND (`SourceEntry` = 0) AND (`SourceId` = 0) AND (`ElseGroup` = 0) AND (`ConditionTypeOrReference` = 9) AND (`ConditionTarget` = 0) AND (`ConditionValue1` = 6403) AND (`ConditionValue2` = 0) AND (`ConditionValue3` = 0);
45+
4446
SET @ENTRY := 12580;
4547
DELETE FROM `creature_text` WHERE `CreatureID` = @ENTRY;
4648

@@ -67,6 +69,8 @@ DELETE FROM `creature_questender` WHERE `quest` = 6402 AND `id` = 12580;
6769
DELETE FROM `gossip_menu_option` WHERE `MenuID` = 7480;
6870

6971
DELETE FROM `creature_text` WHERE `CreatureID` = 17804;
72+
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
73+
(17804, 0, 0, '', 15, 0, 100.0, 0, 0, 0, 0, 0, '');
7074

7175
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 15 AND `SourceGroup` = 7480;
7276

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UPDATE `creature_template` SET `minlevel` = 80, `maxlevel` = 80 WHERE `entry` IN (23872, 23795, 26776, 26764, 26822);

0 commit comments

Comments
 (0)