37 lines
2.5 KiB
Lua
37 lines
2.5 KiB
Lua
-- Zul'Gurub trash (Octo BigWigs Raids/ZG/{MadServant,GurubashiBatRider,GurubashiBerserker}.lua), native server events.
|
|
|
|
-- Mad Servants (15111, Edge of Madness) open a Portal of Madness 24620/24621 on death: a Void Spawn 11 s later.
|
|
local servants = OctoBossMods:NewModule("Mad Servant", {npcs = {15111}, displayName = "Mad Servant", zone = "Zul'Gurub", trash = true})
|
|
local portalNum, lastPortal = 1, 0
|
|
function servants:Portal()
|
|
if not self:Throttle("portal", 0.5) then return end
|
|
if GetTime() - lastPortal > 11 then portalNum = 1 end
|
|
self:Bar("Void Spawn - Portal " .. portalNum, 11, "spell_shadow_sealofkings", true, "White")
|
|
self:Message("D E L A Y killing other imps if you value your life!", "Urgent", false, "Info")
|
|
self:WarningSign("spell_shadow_sealofkings", 1)
|
|
portalNum, lastPortal = portalNum + 1, GetTime()
|
|
end
|
|
servants.events = {SPELL_CAST_SUCCESS = {[24620] = "Portal", [24621] = "Portal"}}
|
|
|
|
-- Gurubashi Bat Riders (14750) blow up 3 s after their emote.
|
|
local riders = OctoBossMods:NewModule("Gurubashi Bat Rider", {npcs = {14750}, displayName = "Gurubashi Bat Rider", zone = "Zul'Gurub", trash = true})
|
|
function riders:Exploding()
|
|
if not self:Throttle("explode", 2) then return end
|
|
self:Bar("Exploding", 3, "spell_fire_incinerate", true, "Red")
|
|
self:Message("Exploding!", "Important", false, "RunAway")
|
|
self:WarningSign("spell_fire_incinerate", 1)
|
|
end
|
|
riders.emotes = {{"gets a crazed look in his eye.", "Exploding"}, {"becomes fully engulfed in flames.", "Exploding"}}
|
|
|
|
-- Gurubashi Berserkers (11352): Intimidating Roar 16508, Knock Away 11130, Thunderclap 15588 (creature_spells).
|
|
local zerkers = OctoBossMods:NewModule("Gurubashi Berserker", {npcs = {11352}, displayName = "Gurubashi Berserker", zone = "Zul'Gurub", trash = true})
|
|
function zerkers:OnEngage()
|
|
self:Bar("Fear CD", 15, "Ability_GolemThunderClap", true, "White")
|
|
self:Bar("KnockAway CD", 10, "INV_Gauntlets_05", true, "Red")
|
|
self:Bar("Thunderclap CD", 5, "Ability_ThunderClap", true, "Blue")
|
|
end
|
|
function zerkers:Fear() if self:Throttle("fear", 5) then self:Bar("Fear CD", 25, "Ability_GolemThunderClap", true, "White") end end
|
|
function zerkers:Knock() if self:Throttle("knock", 3) then self:Bar("KnockAway CD", 10, "INV_Gauntlets_05", true, "Red") end end
|
|
function zerkers:Clap() if self:Throttle("clap", 3) then self:Bar("Thunderclap CD", 15, "Ability_ThunderClap", true, "Blue") end end
|
|
zerkers.events = {SPELL_CAST_SUCCESS = {[16508] = "Fear", [11130] = "Knock", [15588] = "Clap"}}
|