Skip to content

Commit 29ec001

Browse files
committed
Add another RP timer for long RP after defeating mekkatorque
1 parent b75f75c commit 29ec001

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

DBM-Raids-BfA/BattleofDazaralor/Mekkatorque.lua

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ mod:RegisterEventsInCombat(
2020
"SPELL_AURA_REMOVED 287757 284168 286646 286105"
2121
)
2222

23+
mod:RegisterEvents(
24+
"CHAT_MSG_MONSTER_YELL"
25+
)
26+
2327
--[[
2428
(ability.id = 282205 or ability.id = 287952 or ability.id = 287929 or ability.id = 282153 or ability.id = 288410 or ability.id = 287751 or ability.id = 287797 or ability.id = 286693 or ability.id = 288041 or ability.id = 288049 or ability.id = 289537 or ability.id = 287691) and type = "begincast"
2529
or (ability.id = 287757 or ability.id = 286597) and type = "cast"
@@ -81,6 +85,7 @@ local timerWorldEnlargerCD = mod:NewNextCountTimer(90, 288049, nil, nil, nil,
8185
--Intermission: Evasive Maneuvers!
8286
local timerIntermission = mod:NewStageTimer(64.8)
8387
local timerExplodingSheepCD = mod:NewNextCountTimer(55, 287929, 222529, nil, nil, 3)--Shorttext "Exploding Sheep"
88+
local timerRP = mod:NewRPTimer(15.4)
8489

8590
--local berserkTimer = mod:NewBerserkTimer(600)
8691

@@ -646,3 +651,21 @@ function mod:SPELL_PERIODIC_DAMAGE(_, _, _, _, destGUID, _, _, _, spellId, spell
646651
end
647652
mod.SPELL_PERIODIC_MISSED = mod.SPELL_PERIODIC_DAMAGE
648653
--]]
654+
655+
--RP after fight before gate opens
656+
--"<130.27 18:42:02> [CHAT_MSG_MONSTER_SAY] The High Tinker fought bravely. But in the end... it wasn't enough. Thank the tides he had one last trick up his sleeve to carry him to safety!#Ensign Roberts###Alphal##0#0##0#1159#nil#0#false#false#false#false",
657+
--"<143.66 18:42:16> [CHAT_MSG_MONSTER_YELL] What the...? Okay, I wanna know two things... First, how could you let that pipsqueak get away? And second.... WHY DON'T I HAVE AN ESCAPE POD?#Trade Prince Gallywix###Alphal##0#0##0#1161#nil#0#false#false#false#false",
658+
--"<160.32 18:42:32> [CHAT_MSG_MONSTER_YELL] Enough! That's one Alliance hero down. But I want your blades soaked in Proudmoore blood. Move!#Nathanos Blightcaller###Alphal##0#0##0#1163#nil#0#false#false#false#false",
659+
--"<174.14 18:42:46> [UNIT_SPELLCAST_SUCCEEDED] PLAYER_SPELL{Alphal} -Stampwhistle- [[player:Cast-3-4226-2070-8693-261602-0002FD70E6:261602]]",
660+
--"<174.14 18:42:46> [CLEU] SPELL_CAST_SUCCESS#Player-5-0E5983C7#Alphal(100.0%-34.0%)##nil#261602#Stampwhistle#nil#nil#nil#nil#nil#nil",
661+
function mod:CHAT_MSG_MONSTER_YELL(msg)
662+
if (msg == L.WallRP or msg:find(L.WallRP)) and self:LatencyCheck() then
663+
self:SendSync("WallRP")
664+
end
665+
end
666+
667+
function mod:OnSync(msg)
668+
if msg == "WallRP" then
669+
timerRP:Start(43.8)
670+
end
671+
end

DBM-Raids-BfA/localization.en.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ L:SetOptionLocalization({
186186
---------------------------
187187
-- High Tinker Mekkatorgue (Horde) --
188188
---------------------------
189-
--L= DBM:GetModLocalization(2332)
189+
L= DBM:GetModLocalization(2332)
190+
191+
L:SetMiscLocalization({
192+
WallRP = "The High Tinker fought bravely"--. But in the end... it wasn't enough. Thank the tides he had one last trick up his sleeve to carry him to safety!
193+
})
190194

191195
---------------------------
192196
-- Sea Priest Blockade (Horde) --

0 commit comments

Comments
 (0)