-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CrystalVale_Classic/Thunderaan: Import module
- Loading branch information
Showing
17 changed files
with
211 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "deDE") | ||
if L then | ||
L.bossName = "Prinz Donneraan" | ||
--L.mender = "Storm Mender" -- NPC 231858 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "esES") | ||
if L then | ||
L.bossName = "Príncipe Thunderaan" | ||
--L.mender = "Storm Mender" -- NPC 231858 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "esMX") | ||
if L then | ||
L.bossName = "Príncipe Thunderaan" | ||
--L.mender = "Storm Mender" -- NPC 231858 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "frFR") | ||
if L then | ||
L.bossName = "Prince Tonneraan" | ||
--L.mender = "Storm Mender" -- NPC 231858 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "itIT") | ||
if L then | ||
L.bossName = "Principe Tuonelaar" | ||
--L.mender = "Storm Mender" -- NPC 231858 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "koKR") | ||
if L then | ||
L.bossName = "왕자 썬더란" | ||
--L.mender = "Storm Mender" -- NPC 231858 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "ptBR") | ||
if L then | ||
L.bossName = "Príncipe Trovejardus" | ||
--L.mender = "Storm Mender" -- NPC 231858 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "ruRU") | ||
if L then | ||
L.bossName = "Принц Громораан" | ||
--L.mender = "Storm Mender" -- NPC 231858 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "zhCN") | ||
if L then | ||
L.bossName = "桑德兰王子" | ||
--L.mender = "Storm Mender" -- NPC 231858 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
local L = BigWigs:NewBossLocale("Lord Kazzak Season of Discovery", "zhTW") | ||
if L then | ||
--L.bossName = "Prince Thunderaan" | ||
--L.mender = "Storm Mender" -- NPC 231858 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
BigWigs:AddColors("Lord Kazzak Season of Discovery", { | ||
[21056] = {"blue","green","red","yellow"}, | ||
[21063] = {"blue","green","orange"}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
BigWigs:AddSounds("Lord Kazzak Season of Discovery", { | ||
[21056] = {"long","warning"}, | ||
[21063] = "alarm", | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<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="Colors.lua"/> | ||
<Script file="Sounds.lua"/> | ||
|
||
</Ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
-------------------------------------------------------------------------------- | ||
-- Module Declaration | ||
-- | ||
|
||
local mod, CL = BigWigs:NewBoss("Thunderaan Season of Discovery", 2804) | ||
if not mod then return end | ||
mod:RegisterEnableMob(231494) | ||
mod:SetEncounterID(3079) | ||
mod:SetAllowWin(true) | ||
|
||
-------------------------------------------------------------------------------- | ||
-- Localization | ||
-- | ||
|
||
local L = mod:GetLocale() | ||
if L then | ||
L.bossName = "Prince Thunderaan" | ||
L.mender = "Storm Mender" -- NPC 231858 | ||
end | ||
|
||
-------------------------------------------------------------------------------- | ||
-- Initialization | ||
-- | ||
|
||
function mod:GetOptions() | ||
return { | ||
{465700, "CASTBAR", "SAY", "SAY_COUNTDOWN", "ICON", "ME_ONLY_EMPHASIZE"}, -- Chain Lightning | ||
466211, -- Tendrils of Air | ||
466774, -- Cyclonic Winds | ||
470866, -- Lightning Cloud | ||
11642, -- Heal | ||
},{ | ||
[465700] = L.bossName, | ||
[11642] = L.mender, | ||
} | ||
end | ||
|
||
function mod:OnRegister() | ||
self.displayName = L.bossName | ||
end | ||
|
||
function mod:OnBossEnable() | ||
self:Log("SPELL_CAST_START", "ChainLightningStart", 465700) | ||
self:Log("SPELL_CAST_SUCCESS", "ChainLightning", 465700) | ||
self:Log("SPELL_AURA_APPLIED", "TendrilsOfAirApplied", 466211) | ||
self:Log("SPELL_AURA_APPLIED_DOSE", "TendrilsOfAirAppliedDose", 466211) | ||
self:Log("SPELL_CAST_SUCCESS", "CyclonicWinds", 466774) | ||
self:Log("SPELL_AURA_APPLIED", "LightningCloudDamage", 470866) | ||
self:Log("SPELL_PERIODIC_DAMAGE", "LightningCloudDamage", 470866) | ||
self:Log("SPELL_PERIODIC_MISSED", "LightningCloudDamage", 470866) | ||
|
||
self:Log("SPELL_CAST_START", "Heal", 11642) | ||
self:Log("SPELL_INTERRUPT", "HealInterrupted", "*") | ||
end | ||
|
||
-------------------------------------------------------------------------------- | ||
-- Event Handlers | ||
-- | ||
|
||
do | ||
local function printTarget(self, name, guid, elapsed) | ||
self:PrimaryIcon(465700, name) | ||
self:TargetMessage(465700, "red", name) | ||
if self:Me(guid) then | ||
self:Say(465700, nil, nil, "Chain Lightning") | ||
self:SayCountdown(465700, 3-elapsed, nil, 2) | ||
self:PlaySound(465700, "warning", nil, name) | ||
end | ||
end | ||
|
||
function mod:ChainLightningStart(args) | ||
self:GetUnitTarget(printTarget, 0.5, args.sourceGUID) | ||
self:CastBar(args.spellId, 3) | ||
end | ||
end | ||
|
||
function mod:ChainLightning(args) | ||
self:PrimaryIcon(args.spellId) | ||
end | ||
|
||
function mod:TendrilsOfAirApplied(args) | ||
self:TargetMessage(args.spellId, "purple", args.destName) | ||
self:PlaySound(args.spellId, "alarm", nil, args.destName) | ||
end | ||
|
||
function mod:TendrilsOfAirAppliedDose(args) | ||
self:StackMessage(args.spellId, "purple", args.destName, args.amount, args.amount) | ||
self:PlaySound(args.spellId, "alarm", nil, args.destName) | ||
end | ||
|
||
function mod:CyclonicWinds(args) | ||
self:Message(args.spellId, "yellow", CL.on_group:format(args.spellName)) | ||
self:PlaySound(args.spellId, "info") | ||
end | ||
|
||
do | ||
local prev = 0 | ||
function mod:LightningCloudDamage(args) | ||
if self:Me(args.destGUID) and args.time - prev > 2 then | ||
prev = args.time | ||
self:PersonalMessage(args.spellId, "aboveyou") | ||
self:PlaySound(args.spellId, "underyou") | ||
end | ||
end | ||
end | ||
|
||
function mod:Heal(args) | ||
self:Message(args.spellId, "orange", CL.casting:format(args.spellName)) | ||
if self:Interrupter() then | ||
self:PlaySound(args.spellId, "alert") | ||
end | ||
end | ||
|
||
function mod:HealInterrupted(args) | ||
if args.extraSpellName == self:SpellName(11642) then | ||
self:Message(11642, "green", CL.interrupted_by:format(args.extraSpellName, self:ColorName(args.sourceName))) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<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="Thunderaan.lua"/> | ||
|
||
<Include file="Locales\locales.xml"/> | ||
<Include file="Options\options.xml"/> | ||
|
||
</Ui> |