Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-10-15, 09:46 PM   #1
wallst
A Murloc Raider
Join Date: Feb 2015
Posts: 5
ICD Tracking script

Hi, help modify this script. Need hide icon frame when cd timer expired
Lua Code:
  1. local t=CreateFrame("FRAME")
  2. t:SetPoint("RIGHT",TargetFrame,12,12)
  3. t:SetSize(30,30)
  4. t.c=CreateFrame("Cooldown","cd1")
  5. t.c:SetAllPoints(t)
  6. t.t=t:CreateTexture(nil,"BORDER")
  7. t.t:SetAllPoints()
  8. t.t:SetTexture("Interface\\Icons\\spell_holy_divinepurpose")
  9. t:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
  10. t:Hide()
  11.  
  12. t:SetScript("OnEvent", function(...)
  13. local b,_,_,e,_,_,_,_,_,_,l = select(4, ...)
  14. if (e == UnitName("Player") and (b=="SPELL_AURA_REMOVED")and l==126705)
  15. then t:Show() CooldownFrame_SetTimer(cd1,GetTime(),45,1)
  16. return
  17. end
  18. end)
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » ICD Tracking script


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off