Dear visitor, welcome to Gaming Insight Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, January 14th 2010, 12:55pm

Blood Princes

Since I cant access SVN @ Uni (blocked ports etc >.<)

BPCouncil.lua

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
local mod	= DBM:NewMod("BPCouncil", "DBM-Icecrown", 3)
local L		= mod:GetLocalizedStrings()

mod:SetRevision(("$Revision$"):sub(12, -3))
mod:SetCreatureID(37970, 37972, 37973)
mod:RegisterCombat("combat")

mod:RegisterEvents(
	"SPELL_CAST_START",
	"SPELL_AURA_APPLIED",
	"SPELL_SUMMON"
)

local isTank	= UnitHealth("player") > 40000			-- check if player is a tank based on HP

local warnTargetSwitch		= mod:NewAnnounce("WarnTargetSwitch", 3)
local warnTargetSwitchSoon	= mod:NewAnnounce("WarnTargetSwitchSoon", 2)
local warnConjureFlames		= mod:NewSpellAnnounce(72040)
local warnKineticBomb		= mod:NewSpellAnnounce(72053)
local warnDarkNucleus		= mod:NewSpellAnnounce(71943)			-- instant cast
local warnShockVortex		= mod:NewCastAnnounce(72037)			-- 1,5sec cast

local specWarnResonance		= mod:NewSpecialWarningMove(71822, isTank)

local timerTargetSwitch		= mod:NewTimer(35, "TimerTargetSwitch")
local timerDarkNucleus		= mod:NewNextTimer(15, 71943)			-- Seen a range from 14,9 - 16,8
local timerShockVortex		= mod:NewNextTimer(16.5, 72037)			-- Seen a range from 16,8 - 21,6 

--[[
70982 Taldaram		71582 = 10man ??
70952 Valanar		70934 = 10man ??
70981 Keleseth		71596 = 10man ??
]]--

function mod:OnCombatStart(delay)
	warnTargetSwitchSoon:Schedule(30-delay)
	timerTargetSwitch:Start(-delay)
end

function mod:SPELL_CAST_START(args)
	if args:IsSpellID(72037) then			-- Shock Vortex
		warnShockVortex:Show()
		timerShockVortex:Start()
	elseif args:IsSpellID(71718, 72040) then	-- Conjure (Inferno) Flames
		warnConjureFlames:Show()
	elseif args:IsSpellID(72053) then
		warnKineticBomb:Show()
	end
end

function mod:SPELL_AURA_APPLIED(args)
	if args:IsSpellID(70952) then
		warnTargetSwitch:Show(L.Valanar)
		warnTargetSwitchSoon:Schedule(30)
		timerTargetSwitch:Start()
	elseif args:IsSpellID(70981) then
		warnTargetSwitch:Show(L.Keleseth)
		warnTargetSwitchSoon:Schedule(30)
		timerTargetSwitch:Start()
	elseif args:IsSpellID(70982) then
		warnTargetSwitch:Show(L.Taldaram)
		warnTargetSwitchSoon:Schedule(30)
		timerTargetSwitch:Start()
	elseif args:IsSpellID(71822) and args:IsPlayer() then		-- Shadow Resonance
		specWarnResonance:Show()
	end
end

function mod:SPELL_SUMMON(args)
	if args:IsSpellID(71943) then
		warnDarkNucleus:Show()
		timerDarkNucleus:Start()
	end
end


Localization.en.lua

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
----------------------------
--  Blood Prince Council  --
----------------------------
L = DBM:GetModLocalization("BPCouncil")

L:SetGeneralLocalization{
	name = "Blood Prince Council"
}

L:SetWarningLocalization{
	WarnTargetSwitch		= "Switch target to: %s",
	WarnTargetSwitchSoon	= "Target switch soon",
}

L:SetTimerLocalization{
	TimerTargetSwitch	= "Possible target switch"
}

L:SetOptionLocalization{
	WarnTargetSwitch		= "Show warning to switch targets",								-- Warn when another Prince needs to be damaged
	WarnTargetSwitchSoon	= "Show pre-warning to switch targets",							-- Every ~31 secs, you have to dps a different Prince
	TimerTargetSwitch		= "Show timer for target switch cooldown",
}

L:SetMiscLocalization{
	Keleseth	= "Prince Keleseth",
	Taldaram	= "Prince Taldaram",
	Valanar		= "Prince Valanar"
}
Requesting combatlogs + chatlogs (how to @ http://ninjapull.de/forumBridge/index.php?f=1&amp;t=2691&amp;p=31971&amp;rb_v=viewtopic#p9577)

2

Thursday, January 14th 2010, 4:32pm

Re: Blood Princes

Done