📄 countdoomspells.lua
字号:
CountDoomSpell[ spell ].warningTime = 5;
CountDoomSpell[ spell ].combatOnly = true;
CountDoomSpell[ spell ].icon = "Interface\\Icons\\Spell_Shadow_Possession";
CountDoomSpell[ spell ].soundStart = false;
CountDoomSpell[ spell ].soundWarning = false;
CountDoomSpell[ spell ].soundEnd = false;
CountDoomSpell[ spell ].announceStart = false;
CountDoomSpell[ spell ].announceWarning = false;
CountDoomSpell[ spell ].announceEnd = false;
CountDoomSpellMapping[ CountDoomSpell[ spell ].text ] = spell;
spell = "恐惧嚎叫";
CountDoomSpell[ spell ] = {};
CountDoomSpell[ spell ].text = COUNTDOOMSPELL_HOWLOFTERROR;
CountDoomSpell[ spell ].type = COUNTDOOMSPELL_HOWLOFTERROR;
CountDoomSpell[ spell ].replacesSameType = true;
CountDoomSpell[ spell ].duration = 15;
CountDoomSpell[ spell ].rankDuration = {};
CountDoomSpell[ spell ].rankDuration[1] = 10;
CountDoomSpell[ spell ].rankDuration[2] = 15;
CountDoomSpell[ spell ].countDown = true;
CountDoomSpell[ spell ].warningTime = 5;
CountDoomSpell[ spell ].combatOnly = true;
CountDoomSpell[ spell ].icon = "Interface\\Icons\\Spell_Shadow_DeathScream";
CountDoomSpell[ spell ].soundStart = false;
CountDoomSpell[ spell ].soundWarning = false;
CountDoomSpell[ spell ].soundEnd = false;
CountDoomSpell[ spell ].announceStart = false;
CountDoomSpell[ spell ].announceWarning = false;
CountDoomSpell[ spell ].announceEnd = false;
CountDoomSpellMapping[ CountDoomSpell[ spell ].text ] = spell;
spell = "献祭";
CountDoomSpell[ spell ] = {};
CountDoomSpell[ spell ].text = COUNTDOOMSPELL_IMMOLATE;
CountDoomSpell[ spell ].type = COUNTDOOMSPELL_IMMOLATE;
CountDoomSpell[ spell ].replacesSameType = true;
CountDoomSpell[ spell ].duration = 15;
CountDoomSpell[ spell ].rankDuration = {};
CountDoomSpell[ spell ].rankDuration[1] = 15;
CountDoomSpell[ spell ].rankDuration[2] = 15;
CountDoomSpell[ spell ].rankDuration[3] = 15;
CountDoomSpell[ spell ].rankDuration[4] = 15;
CountDoomSpell[ spell ].rankDuration[5] = 15;
CountDoomSpell[ spell ].rankDuration[6] = 15;
CountDoomSpell[ spell ].rankDuration[7] = 15;
CountDoomSpell[ spell ].countDown = true;
CountDoomSpell[ spell ].warningTime = 5;
CountDoomSpell[ spell ].combatOnly = true;
CountDoomSpell[ spell ].icon = "Interface\\Icons\\Spell_Fire_Immolation";
CountDoomSpell[ spell ].soundStart = false;
CountDoomSpell[ spell ].soundWarning = false;
CountDoomSpell[ spell ].soundEnd = false;
CountDoomSpell[ spell ].announceStart = false;
CountDoomSpell[ spell ].announceWarning = false;
CountDoomSpell[ spell ].announceEnd = false;
CountDoomSpellMapping[ CountDoomSpell[ spell ].text ] = spell;
spell = "conflagrate";
CountDoomSpell[ spell ] = {};
CountDoomSpell[ spell ].text = COUNTDOOMSPELL_CONFLAGRATE;
CountDoomSpell[ spell ].type = COUNTDOOMSPELL_IMMOLATE;
CountDoomSpell[ spell ].replacesSameType = true;
CountDoomSpell[ spell ].duration = 1;
CountDoomSpell[ spell ].rankDuration = {};
CountDoomSpell[ spell ].rankDuration[1] = 1;
CountDoomSpell[ spell ].countDown = true;
CountDoomSpell[ spell ].warningTime = 0;
CountDoomSpell[ spell ].combatOnly = true;
CountDoomSpell[ spell ].icon = "Interface\\Icons\\Spell_Fire_Fireball";
CountDoomSpell[ spell ].soundStart = false;
CountDoomSpell[ spell ].soundWarning = false;
CountDoomSpell[ spell ].soundEnd = false;
CountDoomSpell[ spell ].announceStart = false;
CountDoomSpell[ spell ].announceWarning = false;
CountDoomSpell[ spell ].announceEnd = false;
CountDoomSpellMapping[ CountDoomSpell[ spell ].text ] = spell;
spell = "生命虹吸";
CountDoomSpell[ spell ] = {};
CountDoomSpell[ spell ].text = COUNTDOOMSPELL_SIPHONLIFE;
CountDoomSpell[ spell ].type = COUNTDOOMSPELL_SIPHONLIFE;
CountDoomSpell[ spell ].replacesSameType = true;
CountDoomSpell[ spell ].duration = 30;
CountDoomSpell[ spell ].rankDuration = {};
CountDoomSpell[ spell ].rankDuration[1] = 30;
CountDoomSpell[ spell ].rankDuration[2] = 30;
CountDoomSpell[ spell ].rankDuration[3] = 30;
CountDoomSpell[ spell ].rankDuration[4] = 30;
CountDoomSpell[ spell ].countDown = true;
CountDoomSpell[ spell ].warningTime = 5;
CountDoomSpell[ spell ].combatOnly = true;
CountDoomSpell[ spell ].icon = "Interface\\Icons\\Spell_Shadow_Requiem";
CountDoomSpell[ spell ].soundStart = false;
CountDoomSpell[ spell ].soundWarning = false;
CountDoomSpell[ spell ].soundEnd = false;
CountDoomSpell[ spell ].announceStart = false;
CountDoomSpell[ spell ].announceWarning = false;
CountDoomSpell[ spell ].announceEnd = false;
CountDoomSpellMapping[ CountDoomSpell[ spell ].text ] = spell;
spell = "诱惑";
CountDoomSpell[ spell ] = {};
CountDoomSpell[ spell ].text = COUNTDOOMSPELL_SEDUCE;
CountDoomSpell[ spell ].type = COUNTDOOMSPELL_SEDUCE;
CountDoomSpell[ spell ].replacesSameType = true;
CountDoomSpell[ spell ].duration = 15;
CountDoomSpell[ spell ].rankDuration = {};
CountDoomSpell[ spell ].rankDuration[1] = 15;
CountDoomSpell[ spell ].countDown = true;
CountDoomSpell[ spell ].warningTime = 5;
CountDoomSpell[ spell ].combatOnly = true;
CountDoomSpell[ spell ].icon = "Interface\\Icons\\Spell_Shadow_MindSteal";
CountDoomSpell[ spell ].soundStart = false;
CountDoomSpell[ spell ].soundWarning = false;
CountDoomSpell[ spell ].soundEnd = false;
CountDoomSpell[ spell ].announceStart = false;
CountDoomSpell[ spell ].announceWarning = false;
CountDoomSpell[ spell ].announceEnd = false;
CountDoomSpellMapping[ CountDoomSpell[ spell ].text ] = spell;
spell = "法术封锁";
CountDoomSpell[ spell ] = {};
CountDoomSpell[ spell ].text = COUNTDOOMSPELL_SPELL_LOCK;
CountDoomSpell[ spell ].type = COUNTDOOMSPELL_SPELL_LOCK;
CountDoomSpell[ spell ].replacesSameType = true;
CountDoomSpell[ spell ].duration = 3;
CountDoomSpell[ spell ].rankDuration = {};
CountDoomSpell[ spell ].rankDuration[1] = 3;
CountDoomSpell[ spell ].countDown = true;
CountDoomSpell[ spell ].warningTime = 1;
CountDoomSpell[ spell ].combatOnly = true;
CountDoomSpell[ spell ].icon = "Interface\\Icons\\Spell_Shadow_MindRot";
CountDoomSpell[ spell ].soundStart = false;
CountDoomSpell[ spell ].soundWarning = false;
CountDoomSpell[ spell ].soundEnd = false;
CountDoomSpell[ spell ].announceStart = false;
CountDoomSpell[ spell ].announceWarning = false;
CountDoomSpell[ spell ].announceEnd = false;
CountDoomSpellMapping[ CountDoomSpell[ spell ].text ] = spell;
spell = "死亡缠绕";
CountDoomSpell[ spell ] = {};
CountDoomSpell[ spell ].text = COUNTDOOMSPELL_DEATH_COIL;
CountDoomSpell[ spell ].type = COUNTDOOMSPELL_DEATH_COIL;
CountDoomSpell[ spell ].replacesSameType = true;
CountDoomSpell[ spell ].duration = 3;
CountDoomSpell[ spell ].rankDuration = {};
CountDoomSpell[ spell ].rankDuration[1] = 3;
CountDoomSpell[ spell ].rankDuration[2] = 3;
CountDoomSpell[ spell ].rankDuration[3] = 3;
CountDoomSpell[ spell ].countDown = true;
CountDoomSpell[ spell ].warningTime = 2;
CountDoomSpell[ spell ].combatOnly = true;
CountDoomSpell[ spell ].icon = "Interface\\Icons\\Spell_Shadow_DeathCoil";
CountDoomSpell[ spell ].soundStart = false;
CountDoomSpell[ spell ].soundWarning = false;
CountDoomSpell[ spell ].soundEnd = false;
CountDoomSpell[ spell ].announceStart = false;
CountDoomSpell[ spell ].announceWarning = false;
CountDoomSpell[ spell ].announceEnd = false;
CountDoomSpellMapping[ CountDoomSpell[ spell ].text ] = spell;
CountDoomSpell.Dump = function ( spell )
if( spell == nil ) then
return;
end
local enabled = CountDoom.config.enableSpell[ spell ];
local config = CountDoomSpell[ spell ];
CountDoom.ChatPrint( "Name: " .. config.text );
CountDoom.ChatPrint( "Enabled: " .. CountDoom.ToString( enabled ) );
local rank = 1;
while config.rankDuration[ rank ] ~= nil do
CountDoom.ChatPrint( "Duration[" .. rank .. "]: " .. config.rankDuration[ rank ] );
rank = rank + 1;
end
CountDoom.ChatPrint( "Countdown: " .. CountDoom.ToString( config.countDown ) );
CountDoom.ChatPrint( "Warning Time: " .. config.warningTime );
CountDoom.ChatPrint( "Combat Only: " .. CountDoom.ToString( config.combatOnly ) );
CountDoom.ChatPrint( "Icon: " .. config.icon );
--CountDoom.ChatPrint( "Play Spell Start: " .. CountDoom.ToString( config.soundStart ) );
CountDoom.ChatPrint( "Play Spell Warn: " .. CountDoom.ToString( CountDoom.config.warningSound[ spell ] ) );
CountDoom.ChatPrint( "Play Spell End: " .. CountDoom.ToString( CountDoom.config.endSound[ spell ] ) );
--CountDoom.ChatPrint( "Announce Spell Start: " .. CountDoom.ToString( config.announceStart ) );
CountDoom.ChatPrint( "Announce Spell Warn: " .. CountDoom.ToString( config.announceWarning ) );
CountDoom.ChatPrint( "Announce Spell End: " .. CountDoom.ToString( config.announceEnd ) );
end;
CountDoomSpell.IsEnabled = function( spell )
if CountDoomSpell[ spell ] == nil then
return false;
end
if CountDoom.config.enableSpell == nil then
return true;
end
if CountDoom.config.enableSpell[ spell ] == nil then
return true;
end
return CountDoom.config.enableSpell[ spell ];
end;
CountDoomSpell.ToggleEnabled = function( spellAbbreviation )
if CountDoomSpell[ spellAbbreviation ] == nil then
return;
end
if CountDoom.config.enableSpell == nil then
CountDoom.config.enableSpell = {};
end
if CountDoomSpell.IsEnabled( spellAbbreviation ) then
CountDoom.config.enableSpell[ spellAbbreviation ] = false;
CountDoom.ChatPrint( string.format( "Tracking of %s is disabled.", CountDoomSpell[ spellAbbreviation ].text ) );
else
CountDoom.config.enableSpell[ spellAbbreviation ] = true;
CountDoom.ChatPrint( string.format( "Tracking of %s is enabled.", CountDoomSpell[ spellAbbreviation ].text ) );
end
end;
CountDoomSpell.ToggleSound = function( spellAbbreviation )
if CountDoomSpell[ spellAbbreviation ] == nil then
return;
end
if CountDoom.config.enableSpell == nil then
CountDoom.config.enableSpell = {};
end
if CountDoomSpell.IsEnabled( spellAbbreviation ) then
CountDoom.config.enableSpell[ spellAbbreviation ] = false;
CountDoom.ChatPrint( string.format( "Tracking of %s is disabled.", CountDoomSpell[ spellAbbreviation ].text ) );
else
CountDoom.config.enableSpell[ spellAbbreviation ] = true;
CountDoom.ChatPrint( string.format( "Tracking of %s is enabled.", CountDoomSpell[ spellAbbreviation ].text ) );
end
end;
-- Other spell icons
-- Shadow Ward - Spell_Shadow_AntiShadow
-- Shadow Bolt - Spell_Shadow_ShadowBolt
-- Shadow Pain - Spell_Shadow_ScourgeBuild
-- Death Coil - Spell_Shadow_DeathCoil
-- Searing Pain - Spell_Fire_SoulBurn
-- Soul Fire - Spell_Fire_Fireball02
-- Rain of Fire - Spell_Shadow_RainOfFire
-- Hellfire - Spell_Fire_Incinerate
-- Health Funnel - Spell_Shadow_LifeDrain
-- Life Tap - Spell_Shadow_BurningSpirit
-- Drain Soul - Spell_Shadow_Haunting
-- Drain Life - Spell_Shadow_LifeDrain02
-- Drain Mana - Spell_Shadow_SiphonMana
-- Will of the forsaken - Spell_Shadow_RaiseDead
-- Demon Armor - Spell_Shadow_RagingScream
-- Detect Invisibility - Spell_Shadow_DetectInvisibility
-- Ritual of Summoning - Spell_Shadow_Twilight
-- Spell_Shadow_SummonInfernal
-- Spell_Shadow_SummonImp
-- Spell_Shadow_SummonSuccubus
-- Spell_Shadow_SummonVoidWalker
-- Spell_Shadow_SummonFelHunter
-- Spell_Shadow_Metamorphosis
-- Disenchant - Spell_Holy_RemoveCurse
-- Eye of Kilrogg - Spell_Shadow_EvilEye
-- Summon Dreadsteed - Spell_Nature_Swiftness
-- Ritual of Doom - Spell_Shadow_AntiMagicShell
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -