Skip to content

Commit eae327d

Browse files
committed
[1317] Fixed various startup errors
* Fixed a few startup errors from previous commits: - Removed spell script target for TBC target - Synced spawned NPC stats with their template - Fixed spawn distance of two idle NPCs in Jaednar - Fixed spawn distance of idle NPCs in Deadmines - Fixed two addon auras - Deleted a few lingering creature addons from removed NPCs - Fixed spawn distance of few NPCs in Gnomeregan - Removed loots for NPC 15773 (Christmas Cannon Master Willey): this is NPC is only use for visual
1 parent ac49ff0 commit eae327d

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

updates/1317_startup_errors.sql

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
-- Removed spell script target for TBC target
2+
DELETE FROM `spell_script_target` WHERE `targetEntry` = 16592;
3+
4+
-- Synced spawned NPC stats with their template
5+
UPDATE creature, creature_template SET creature.curhealth = creature_template.MinLevelHealth, creature.curmana = creature_template.MinLevelMana WHERE creature.id = creature_template.entry AND creature_template.RegenerateStats & 1;
6+
7+
-- Fixed spawn distance of two idle NPCs in Jaednar
8+
UPDATE `creature` SET `spawndist` = 0 WHERE `guid` IN (40659, 40665);
9+
-- Fixed the Z-axis for those NPCs
10+
UPDATE `creature` SET `position_z` = 287.33 WHERE `guid` IN (40659, 40665);
11+
12+
-- Fixed spawn distance of idle NPCs in Deadmines
13+
UPDATE `creature` SET `spawndist` = 0 WHERE `id` = 598;
14+
15+
-- Fixed two addon auras
16+
UPDATE `creature_template_addon` SET `auras` = NULL WHERE `entry` IN (17048, 17049);
17+
18+
-- Deleted a few lingering creature addons from removed NPCs
19+
DELETE FROM `creature_addon` WHERE `guid` IN (29117, 29119, 43126, 48962);
20+
21+
-- Fixed spawn distance of few NPCs in Gnomeregan
22+
UPDATE `creature` SET `spawndist` = 0 WHERE `guid` IN (30122, 30130, 30206, 30251, 30257, 30309, 30332, 31982, 33432, 33495);
23+
24+
-- Removed loots for NPC 15773 (Christmas Cannon Master Willey): this is NPC is only use for visual
25+
DELETE FROM `creature_loot_template` WHERE `entry` = 15773;
26+
DELETE FROM `pickpocketing_loot_template` WHERE `entry` = 15773;
27+
UPDATE `creature_template` SET `LootId` = 0, `PickpocketLootId` = 0 WHERE `Entry` = 15773;
28+
29+
30+

0 commit comments

Comments
 (0)