Skip to content

Commit 9750cb6

Browse files
committed
Scripts/Blood Furnace: Rewrite Broggok
1 parent a1fca43 commit 9750cb6

4 files changed

Lines changed: 413 additions & 367 deletions

File tree

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
--
2+
SET @SPAWN_GROUP_ID := 402; -- 4
3+
4+
-- Prisoners
5+
UPDATE `creature` SET `StringId` = 'BroggokPrisonerCell1' WHERE `guid` IN (100219,100236,100237);
6+
UPDATE `creature` SET `StringId` = 'BroggokPrisonerCell2' WHERE `guid` IN (99293,100063,100064);
7+
UPDATE `creature` SET `StringId` = 'BroggokPrisonerCell3' WHERE `guid` IN (99859,99908,100217,100218);
8+
UPDATE `creature` SET `StringId` = 'BroggokPrisonerCell4' WHERE `guid` IN (99299,99300,99347,100182);
9+
10+
UPDATE `creature_template` SET `unit_flags` = 32832 WHERE `entry` IN (17398,17429,18612,18603);
11+
12+
UPDATE `creature` SET `unit_flags` = 0, `StringId` = 'BroggokPrisonerHighCell' WHERE `id` IN (17398,17429) AND `unit_flags` = 768;
13+
14+
UPDATE `creature` SET `spawntimesecs` = 86400 WHERE `id` IN (17398,17429);
15+
UPDATE `creature` SET `spawntimesecs` = 7200 WHERE `id` IN (17398,17429) AND `StringId` IS NULL;
16+
17+
DELETE FROM `creature_text` WHERE `CreatureID` IN (17398,17429);
18+
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
19+
(17398,0,0,"We are the true Horde!",12,0,100,0,0,0,16697,0,"Nascent Fel Orc"),
20+
(17398,0,1,"For Kargath! For Victory!",12,0,100,0,0,0,16698,0,"Nascent Fel Orc"),
21+
(17398,0,2,"Gakarah ma!",12,0,100,0,0,0,16699,0,"Nascent Fel Orc"),
22+
(17398,0,3,"The blood is our power! ",12,0,100,0,0,0,16700,0,"Nascent Fel Orc"),
23+
(17398,0,4,"Lok'tar Illadari!\n",12,0,100,0,0,0,16701,0,"Nascent Fel Orc"),
24+
(17398,0,5,"This world is OURS!",12,0,100,0,0,0,16702,0,"Nascent Fel Orc"),
25+
(17398,0,6,"Lok narash!",12,0,100,0,0,0,16703,0,"Nascent Fel Orc"),
26+
27+
(17429,0,0,"We are the true Horde!",12,0,100,0,0,0,16697,0,"Fel Orc Neophyte"),
28+
(17429,0,1,"For Kargath! For Victory!",12,0,100,0,0,0,16698,0,"Fel Orc Neophyte"),
29+
(17429,0,2,"Gakarah ma!",12,0,100,0,0,0,16699,0,"Fel Orc Neophyte"),
30+
(17429,0,3,"The blood is our power! ",12,0,100,0,0,0,16700,0,"Fel Orc Neophyte"),
31+
(17429,0,4,"Lok'tar Illadari!\n",12,0,100,0,0,0,16701,0,"Fel Orc Neophyte"),
32+
(17429,0,5,"This world is OURS!",12,0,100,0,0,0,16702,0,"Fel Orc Neophyte"),
33+
(17429,0,6,"Lok narash!",12,0,100,0,0,0,16703,0,"Fel Orc Neophyte");
34+
35+
DELETE FROM `spawn_group` WHERE `spawnId` IN (100219,100236,100237,99293,100063,100064,99859,99908,100217,100218,99299,99300,99347,100182) AND `spawnType` = 0;
36+
INSERT INTO `spawn_group` (`groupId`, `spawnType`, `spawnId`) VALUES
37+
(@SPAWN_GROUP_ID+0,0,100219),
38+
(@SPAWN_GROUP_ID+0,0,100236),
39+
(@SPAWN_GROUP_ID+0,0,100237),
40+
41+
(@SPAWN_GROUP_ID+1,0,99293),
42+
(@SPAWN_GROUP_ID+1,0,100063),
43+
(@SPAWN_GROUP_ID+1,0,100064),
44+
45+
(@SPAWN_GROUP_ID+2,0,99859),
46+
(@SPAWN_GROUP_ID+2,0,99908),
47+
(@SPAWN_GROUP_ID+2,0,100217),
48+
(@SPAWN_GROUP_ID+2,0,100218),
49+
50+
(@SPAWN_GROUP_ID+3,0,99299),
51+
(@SPAWN_GROUP_ID+3,0,99300),
52+
(@SPAWN_GROUP_ID+3,0,99347),
53+
(@SPAWN_GROUP_ID+3,0,100182);
54+
55+
DELETE FROM `spawn_group_template` WHERE `groupId` BETWEEN @SPAWN_GROUP_ID+0 AND @SPAWN_GROUP_ID+3;
56+
INSERT INTO `spawn_group_template` (`groupId`, `groupName`, `groupFlags`) VALUES
57+
(@SPAWN_GROUP_ID+0,"Blood Furnace - Broggok Prisoners Cell 1",4), -- 402
58+
(@SPAWN_GROUP_ID+1,"Blood Furnace - Broggok Prisoners Cell 2",4), -- 403
59+
(@SPAWN_GROUP_ID+2,"Blood Furnace - Broggok Prisoners Cell 3",4), -- 404
60+
(@SPAWN_GROUP_ID+3,"Blood Furnace - Broggok Prisoners Cell 4",4); -- 405
61+
62+
-- Broggok Poison Cloud
63+
DELETE FROM `creature_template_addon` WHERE `entry` IN (17662,18602);
64+
DELETE FROM `spelldifficulty_dbc` WHERE `id` = 30914;
65+
66+
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 17662;
67+
68+
DELETE FROM `smart_scripts` WHERE `entryorguid` = 17662 AND `source_type` = 0;
69+
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
70+
(17662,0,0,0,11,0,100,2,0,0,0,0,0,11,30914,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Broggok Poison Cloud - On Spawn - Cast 'Poison' (Normal)"),
71+
(17662,0,1,0,11,0,100,4,0,0,0,0,0,11,38462,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Broggok Poison Cloud - On Spawn - Cast 'Poison' (Heroic)"),
72+
(17662,0,2,0,11,0,100,0,0,0,0,0,0,11,19951,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Broggok Poison Cloud - On Spawn - Cast 'Pacify Self'"),
73+
(17662,0,3,0,11,0,100,0,0,0,0,0,0,11,25900,2,0,0,0,0,1,0,0,0,0,0,0,0,0,"Broggok Poison Cloud - On Spawn - Cast 'Stun Self'");
74+
75+
-- InCombat Trigger
76+
UPDATE `creature_template` SET `AIName` = 'SmartAI', `flags_extra` = `flags_extra` &~ 2 WHERE `entry` = 16006;
77+
78+
DELETE FROM `smart_scripts` WHERE `entryorguid` = 16006 AND `source_type` = 0;
79+
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
80+
(16006,0,0,0,37,0,100,0,0,0,0,0,0,8,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"InCombat Trigger - On AI Initialize - Set Reactstate Passive"),
81+
(16006,0,1,0,11,0,100,0,0,0,0,0,0,38,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"InCombat Trigger - On Spawn - Set In Combat With Zone");

src/server/scripts/Outland/HellfireCitadel/BloodFurnace/blood_furnace.h

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,21 @@ enum BFDataTypes
3333
DATA_KELIDAN = 2,
3434

3535
// Additional Data
36-
DATA_DOOR_4 = 3,
37-
DATA_PRISON_CELL1 = 4,
38-
DATA_PRISON_CELL2 = 5,
39-
DATA_PRISON_CELL3 = 6,
40-
DATA_PRISON_CELL4 = 7,
41-
DATA_PRISON_CELL5 = 8,
42-
DATA_PRISON_CELL6 = 9,
43-
DATA_PRISON_CELL7 = 10,
44-
DATA_PRISON_CELL8 = 11,
45-
DATA_BROGGOK_LEVER = 12
36+
DATA_PRISONERS_EVENT,
37+
DATA_PRISON_DOOR_04,
38+
DATA_PRISON_DOOR_05,
39+
DATA_BROGGOK_LEVER,
40+
DATA_PRISON_CELL_DOOR_5,
41+
DATA_PRISON_CELL_DOOR_6,
42+
DATA_PRISON_CELL_DOOR_7,
43+
DATA_PRISON_CELL_DOOR_8
4644
};
4745

4846
enum BFCreatureIds
4947
{
5048
NPC_THE_MAKER = 17381,
5149
NPC_BROGGOK = 17380,
52-
NPC_KELIDAN = 17377,
53-
NPC_PRISONER1 = 17398,
54-
NPC_PRISONER2 = 17429
50+
NPC_KELIDAN = 17377
5551
};
5652

5753
enum BFGameObjectIds
@@ -63,23 +59,31 @@ enum BFGameObjectIds
6359
GO_PRISON_DOOR_05 = 181822, // Broggok Front Door
6460
GO_SUMMON_DOOR = 181823, // Kelidan Exit Door
6561

66-
GO_PRISON_CELL_DOOR_1 = 181813, // The Maker Prison Cell front right
67-
GO_PRISON_CELL_DOOR_2 = 181814, // The Maker Prison Cell back right
68-
GO_PRISON_CELL_DOOR_3 = 181816, // The Maker Prison Cell front left
69-
GO_PRISON_CELL_DOOR_4 = 181815, // The Maker Prison Cell back left
70-
GO_PRISON_CELL_DOOR_5 = 181821, // Broggok Prison Cell front right
71-
GO_PRISON_CELL_DOOR_6 = 181818, // Broggok Prison Cell back right
72-
GO_PRISON_CELL_DOOR_7 = 181820, // Broggok Prison Cell front left
73-
GO_PRISON_CELL_DOOR_8 = 181817, // Broggok Prison Cell back left
62+
GO_PRISON_CELL_DOOR_1 = 181813, // The Maker
63+
GO_PRISON_CELL_DOOR_2 = 181814,
64+
GO_PRISON_CELL_DOOR_3 = 181816,
65+
GO_PRISON_CELL_DOOR_4 = 181815,
66+
GO_PRISON_CELL_DOOR_5 = 181817, // Broggok
67+
GO_PRISON_CELL_DOOR_6 = 181818,
68+
GO_PRISON_CELL_DOOR_7 = 181820,
69+
GO_PRISON_CELL_DOOR_8 = 181821,
7470

7571
GO_BROGGOK_LEVER = 181982
7672
};
7773

7874
enum BFActionIds
7975
{
80-
ACTION_ACTIVATE_BROGGOK = 1,
81-
ACTION_RESET_BROGGOK = 2,
82-
ACTION_PREPARE_BROGGOK = 3
76+
ACTION_PERFORM_INTRO = 1738000,
77+
ACTION_RELEASE_BROGGOK = 1738001,
78+
ACTION_DESPAWN_TRIGGER = 1738002
79+
};
80+
81+
enum BFSpawnGroupIds
82+
{
83+
SPAWN_GROUP_PRISONERS_1 = 402,
84+
SPAWN_GROUP_PRISONERS_2 = 403,
85+
SPAWN_GROUP_PRISONERS_3 = 404,
86+
SPAWN_GROUP_PRISONERS_4 = 405
8387
};
8488

8589
template <class AI, class T>

0 commit comments

Comments
 (0)