Hello everyone,
I was using that script before to watch my trinket proc etc, but it doesn't work enymore. Dunno why
Can anyone take a look and help me fix it?
Lua Code:
local t=CreateFrame("FRAME")
t:SetPoint("CENTER",ParentUI,2,12)
t:SetSize(30,30)
t.c=CreateFrame("Cooldown","cd1")
t.c:SetAllPoints(t)
t.t=t:CreateTexture(nil,"BORDER")
t.t:SetAllPoints()
t.t:SetTexture("Interface\\Icons\\spell_holy_crusaderstrike")
t:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
t:SetScript("OnEvent", function(...)
local b,_,_,e,_,_,_,_,_,_,l = select(4, ...)
if (e == UnitName("Player") and (b=="SPELL_AURA_APPLIED" or b=="SPELL_AURA_REFRESH")and l==209785) then CooldownFrame_SetTimer(cd1,GetTime(),15,1) end end)
Im getting following errors in game:
Lua Code:
Message: Interface\AddOns\Frames\ExtraCD.lua:13: attempt to call global 'CooldownFrame_SetTimer' (a nil value)
Time: 07/23/16 10:39:12
Count: 3
Stack: Interface\AddOns\Frames\ExtraCD.lua:13: in function <Interface\AddOns\Frames\ExtraCD.lua:11>
Locals: b = "SPELL_AURA_APPLIED"
_ = false
_ = "Player-3687-05F192B7"
e = "Dasté"
_ = 1297
_ = 0
_ = "Player-3687-05F192B7"
_ = "Dasté"
_ = 1297
_ = 0
l = 209785
(*temporary) = nil
(*temporary) = cd1 {
0 = <userdata>
}
(*temporary) = 414616.146
(*temporary) = 15
(*temporary) = 1
(*temporary) = "attempt to call global 'CooldownFrame_SetTimer' (a nil value)"
Thanks in advance.