Skip to content

Commit

Permalink
DragonIsles/Aurostor: Add module
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Nov 20, 2023
1 parent fe8c8ef commit 1c32eae
Show file tree
Hide file tree
Showing 14 changed files with 196 additions and 1 deletion.
118 changes: 118 additions & 0 deletions DragonIsles/Aurostor.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
--------------------------------------------------------------------------------
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Aurostor", -2200, 2562)
if not mod then return end
mod:RegisterEnableMob(209574)
mod.otherMenu = -1978
mod.worldBoss = 209574

--------------------------------------------------------------------------------
-- Locals
--

local tantrumCount = 1

--------------------------------------------------------------------------------
-- Localization
--

local L = mod:GetLocale()
if L then
L.slumberous_roar = "3x %s - Jump to remove it"
L.boss_yell_on_win = "Thank you...exhausted...can finally...sleep."
end

--------------------------------------------------------------------------------
-- Initialization
--

function mod:GetOptions()
return {
420895, -- Groggy Bash
420925, -- Pulverizing Outburst
421059, -- Cranky Tantrum
421260, -- Slumberous Roar
}
end

function mod:VerifyEnable(unit)
return UnitCanAttack("player", unit)
end

function mod:OnBossEnable()
self:ScheduleTimer("CheckForEngage", 1)
--self:RegisterEvent("BOSS_KILL") - no event
self:RegisterEvent("CHAT_MSG_MONSTER_YELL")

self:Log("SPELL_CAST_SUCCESS", "GroggyBash", 420895)
self:Log("SPELL_CAST_START", "PulverizingOutburst", 420925)
self:Log("SPELL_CAST_SUCCESS", "CrankyTantrumBegin", 421006)
self:Log("SPELL_CAST_START", "CrankyTantrum", 421059)
self:Log("SPELL_AURA_APPLIED", "SlumberousRoarApplied", 421260)
self:Log("SPELL_AURA_REMOVED_DOSE", "SlumberousRoarStackRemoved", 421260)
self:Log("SPELL_AURA_REMOVED", "SlumberousRoarRemoved", 421260)
end

function mod:OnEngage()
self:CheckForWipe()
end

--------------------------------------------------------------------------------
-- Event Handlers
--

--function mod:BOSS_KILL(_, id)
-- if id == 2828 then
-- self:Win()
-- end
--end

function mod:CHAT_MSG_MONSTER_YELL(_, msg)
if msg == L.boss_yell_on_win then
self:Win()
end
end

function mod:GroggyBash(args)
self:TargetMessage(args.spellId, "purple", args.destName)
self:CDBar(args.spellId, 33)
if not self:Me(args.destGUID) and self:Tank() then
self:PlaySound(args.spellId, "warning") -- tauntswap
end
end

function mod:PulverizingOutburst(args)
self:Message(args.spellId, "red", CL.incoming:format(args.spellName))
self:PlaySound(args.spellId, "long")
end

function mod:CrankyTantrumBegin(args)
tantrumCount = 1
end

function mod:CrankyTantrum(args)
self:Message(args.spellId, "yellow", CL.count_amount:format(args.spellName, tantrumCount, 4))
tantrumCount = tantrumCount + 1
self:PlaySound(args.spellId, "info")
end

function mod:SlumberousRoarApplied(args)
if self:Me(args.destGUID) then
self:PersonalMessage(args.spellId, false, L.slumberous_roar:format(args.spellName))
self:PlaySound(args.spellId, "warning")
end
end

function mod:SlumberousRoarStackRemoved(args)
if self:Me(args.destGUID) then
self:StackMessage(args.spellId, "blue", args.destName, args.amount, 0)
end
end

function mod:SlumberousRoarRemoved(args)
if self:Me(args.destGUID) then
self:Message(args.spellId, "green", CL.removed:format(args.spellName))
end
end
2 changes: 1 addition & 1 deletion DragonIsles/BigWigs_DragonIsles_Mainline.toc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@

## X-Category: Raid
## X-BigWigs-ExtraMenu: -1978
## X-BigWigs-LoadOn-WorldBoss: -2023, 193534, -2022, 193535, -2024, 193532, -2085, 193533
## X-BigWigs-LoadOn-WorldBoss: -2023, 193534, -2022, 193535, -2024, 193532, -2085, 193533, -2200, 209574

modules.xml
6 changes: 6 additions & 0 deletions DragonIsles/Locales/deDE.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local L = BigWigs:NewBossLocale("Aurostor", "deDE")
if not L then return end
if L then
--L.slumberous_roar = "3x %s - Jump to remove it"
--L.boss_yell_on_win = "Thank you...exhausted...can finally...sleep."
end
6 changes: 6 additions & 0 deletions DragonIsles/Locales/esES.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local L = BigWigs:NewBossLocale("Aurostor", "esES")
if not L then return end
if L then
--L.slumberous_roar = "3x %s - Jump to remove it"
--L.boss_yell_on_win = "Thank you...exhausted...can finally...sleep."
end
6 changes: 6 additions & 0 deletions DragonIsles/Locales/esMX.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local L = BigWigs:NewBossLocale("Aurostor", "esMX")
if not L then return end
if L then
--L.slumberous_roar = "3x %s - Jump to remove it"
--L.boss_yell_on_win = "Thank you...exhausted...can finally...sleep."
end
6 changes: 6 additions & 0 deletions DragonIsles/Locales/frFR.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local L = BigWigs:NewBossLocale("Aurostor", "frFR")
if not L then return end
if L then
--L.slumberous_roar = "3x %s - Jump to remove it"
--L.boss_yell_on_win = "Thank you...exhausted...can finally...sleep."
end
6 changes: 6 additions & 0 deletions DragonIsles/Locales/itIT.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local L = BigWigs:NewBossLocale("Aurostor", "itIT")
if not L then return end
if L then
--L.slumberous_roar = "3x %s - Jump to remove it"
--L.boss_yell_on_win = "Thank you...exhausted...can finally...sleep."
end
6 changes: 6 additions & 0 deletions DragonIsles/Locales/koKR.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local L = BigWigs:NewBossLocale("Aurostor", "koKR")
if not L then return end
if L then
--L.slumberous_roar = "3x %s - Jump to remove it"
--L.boss_yell_on_win = "Thank you...exhausted...can finally...sleep."
end
15 changes: 15 additions & 0 deletions DragonIsles/Locales/locales.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">

<Script file="deDE.lua"/>
<Script file="esES.lua"/>
<Script file="esMX.lua"/>
<Script file="frFR.lua"/>
<Script file="itIT.lua"/>
<Script file="koKR.lua"/>
<Script file="ptBR.lua"/>
<Script file="ruRU.lua"/>
<Script file="zhCN.lua"/>
<Script file="zhTW.lua"/>

</Ui>
6 changes: 6 additions & 0 deletions DragonIsles/Locales/ptBR.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local L = BigWigs:NewBossLocale("Aurostor", "ptBR")
if not L then return end
if L then
--L.slumberous_roar = "3x %s - Jump to remove it"
--L.boss_yell_on_win = "Thank you...exhausted...can finally...sleep."
end
6 changes: 6 additions & 0 deletions DragonIsles/Locales/ruRU.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local L = BigWigs:NewBossLocale("Aurostor", "ruRU")
if not L then return end
if L then
--L.slumberous_roar = "3x %s - Jump to remove it"
--L.boss_yell_on_win = "Thank you...exhausted...can finally...sleep."
end
6 changes: 6 additions & 0 deletions DragonIsles/Locales/zhCN.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local L = BigWigs:NewBossLocale("Aurostor", "zhCN")
if not L then return end
if L then
--L.slumberous_roar = "3x %s - Jump to remove it"
--L.boss_yell_on_win = "Thank you...exhausted...can finally...sleep."
end
6 changes: 6 additions & 0 deletions DragonIsles/Locales/zhTW.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local L = BigWigs:NewBossLocale("Aurostor", "zhTW")
if not L then return end
if L then
--L.slumberous_roar = "3x %s - Jump to remove it"
--L.boss_yell_on_win = "Thank you...exhausted...can finally...sleep."
end
2 changes: 2 additions & 0 deletions DragonIsles/modules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<Script file="Basrikron.lua"/>
<Script file="Bazual.lua"/>
<Script file="Liskanoth.lua"/>
<Script file="Aurostor.lua"/>

<Include file="Locales\locales.xml"/>
<Include file="Options\options.xml"/>

</Ui>

0 comments on commit 1c32eae

Please sign in to comment.