Skip to content

Commit 7ac4d77

Browse files
authored
Scripts/Uldaman: Rewrite scripts (#31530)
1 parent 20927ba commit 7ac4d77

6 files changed

Lines changed: 834 additions & 841 deletions

File tree

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
-- Ironaya
2+
SET @SPAWN_GROUP_ID := 334; -- 1
3+
4+
DELETE FROM `spawn_group` WHERE `spawnId` = 54080 AND `spawnType` = 0;
5+
INSERT INTO `spawn_group` (`groupId`, `spawnType`, `spawnId`) VALUES
6+
(@SPAWN_GROUP_ID+0,0,54080);
7+
8+
DELETE FROM `spawn_group_template` WHERE `groupId` = @SPAWN_GROUP_ID+0;
9+
INSERT INTO `spawn_group_template` (`groupId`, `groupName`, `groupFlags`) VALUES
10+
(@SPAWN_GROUP_ID+0,"Uldaman - Ironaya",4);
11+
12+
UPDATE `creature` SET `position_x` = -234.73112, `position_y` = 312.00705, `position_z` = -47.514233, `orientation` = 4.799655437469482421 WHERE `guid` = 54080 AND `id` = 7228;
13+
14+
DELETE FROM `waypoint_data` WHERE `id` = 6;
15+
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
16+
(6,1,-234.83836,304.74194,-47.59481,NULL,0,0,0,100,0),
17+
(6,2,-234.52731,289.1205,-48.02008,NULL,0,0,0,100,0),
18+
(6,3,-233.9544,270.41608,-50.40104,NULL,0,0,0,100,0),
19+
(6,4,-233.42236,252.05559,-49.447884,NULL,0,0,0,100,0);
20+
21+
-- Stone Keepers
22+
UPDATE `creature_template` SET `ScriptName` = 'npc_stone_keeper' WHERE `entry` = 4857;
23+
24+
UPDATE `creature` SET `StringId` = 'StoneKeeper1' WHERE `guid` = 27555 AND `id` = 4857;
25+
UPDATE `creature` SET `StringId` = 'StoneKeeper2' WHERE `guid` = 28368 AND `id` = 4857;
26+
UPDATE `creature` SET `StringId` = 'StoneKeeper3' WHERE `guid` = 27554 AND `id` = 4857;
27+
UPDATE `creature` SET `StringId` = 'StoneKeeper4' WHERE `guid` = 27794 AND `id` = 4857;
28+
29+
UPDATE `creature_template_addon` SET `auras` = '' WHERE `entry` = 4857;
30+
31+
-- Archaedas
32+
UPDATE `gameobject_template` SET `ScriptName` = '' WHERE `entry` = 133234;
33+
34+
DELETE FROM `creature_text` WHERE `CreatureID` = 2748 AND `GroupID` = 4;
35+
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
36+
(2748,4,0,"%s breaks free from his stone slumber!",16,0,100,0,0,0,3399,0,"Archaedas EMOTE_AWAKEN");
37+
38+
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 13 AND `SourceEntry` IN (10604,10259,10252,10258,10260);
39+
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
40+
(13,1,10604,0,0,31,0,3,7076,0,0,0,0,"","Group 0: Spell 'Destroy Earthen Guards' (Effect 0) targets creature 'Earthen Guardian'"),
41+
(13,1,10604,0,1,31,0,3,7077,0,0,0,0,"","Group 1: Spell 'Destroy Earthen Guards' (Effect 0) targets creature 'Earthen Hallshaper'"),
42+
(13,1,10604,0,2,31,0,3,7309,0,0,0,0,"","Group 2: Spell 'Destroy Earthen Guards' (Effect 0) targets creature 'Earthen Custodian'"),
43+
(13,1,10604,0,3,31,0,3,10120,0,0,0,0,"","Group 3: Spell 'Destroy Earthen Guards' (Effect 0) targets creature 'Vault Warder'"),
44+
(13,1,10604,0,0,36,0,0,0,0,0,0,0,"","Group 0: Spell 'Destroy Earthen Guards' (Effect 0) targets only alive creature"),
45+
(13,1,10604,0,1,36,0,0,0,0,0,0,0,"","Group 1: Spell 'Destroy Earthen Guards' (Effect 0) targets only alive creature"),
46+
(13,1,10604,0,2,36,0,0,0,0,0,0,0,"","Group 2: Spell 'Destroy Earthen Guards' (Effect 0) targets only alive creature"),
47+
(13,1,10604,0,3,36,0,0,0,0,0,0,0,"","Group 3: Spell 'Destroy Earthen Guards' (Effect 0) targets only alive creature"),
48+
49+
(13,1,10259,0,0,31,0,3,7077,0,0,0,0,"","Group 0: Spell 'Awaken Earthen Dwarf' (Effect 0) targets creature 'Earthen Hallshaper'"),
50+
(13,1,10259,0,1,31,0,3,7309,0,0,0,0,"","Group 1: Spell 'Awaken Earthen Dwarf' (Effect 0) targets creature 'Earthen Custodian'"),
51+
(13,1,10259,0,0,1,0,10255,0,0,0,0,0,"","Group 0: Spell 'Awaken Earthen Dwarf' (Effect 0) targets creature with aura 'Stoned'"),
52+
(13,1,10259,0,1,1,0,10255,0,0,0,0,0,"","Group 1: Spell 'Awaken Earthen Dwarf' (Effect 0) targets creature with aura 'Stoned'"),
53+
54+
(13,1,10252,0,0,31,0,3,7076,0,0,0,0,"","Group 0: Spell 'Awaken Earthen Guardians' (Effect 0) targets creature 'Earthen Guardian'"),
55+
56+
(13,1,10258,0,0,31,0,3,10120,0,0,0,0,"","Group 0: Spell 'Awaken Vault Warder' (Effect 0) targets creature 'Vault Warder'"),
57+
58+
(13,1,10260,0,0,31,0,3,2748,0,0,0,0,"","Group 0: Spell 'Reconstruct' (Effect 0) targets creature 'Archaedas'");
59+
60+
UPDATE `creature_template` SET `unit_flags` = 33555200 WHERE `entry` IN (7076,7077,7309);
61+
UPDATE `creature_template` SET `unit_flags` = 33555264 WHERE `entry` = 10120;
62+
UPDATE `creature_template` SET `ScriptName` = 'npc_earthen_hallshaper_custodian' WHERE `entry` IN (7077,7309);
63+
UPDATE `creature_template` SET `ScriptName` = 'npc_earthen_guardian' WHERE `entry` = 7076;
64+
UPDATE `creature_template` SET `ScriptName` = 'npc_vault_warder' WHERE `entry` = 10120;
65+
66+
UPDATE `creature` SET `StringId` = 'VaultWarderOutside' WHERE `guid` IN (33535,33504) AND `id` = 10120;

0 commit comments

Comments
 (0)