Jump to content

  • Curse Sites
Help

varellz

Member Since 22 Oct 2011
Offline Last Active Apr 11 2014 03:57 AM
*****

Topics I've Started

rogue drs top playerframe

20 May 2013 - 05:22 PM

hey,
tried to copy it from woundman:

USD="UNIT_SPELLCAST_SUCCEEDED";OT="OnEvent";FR="Frame";RF=CreateFrame;RD="Border";UE=UnitName
CS=RF(FR) CS.c=RF("Cooldown","CST",CS.t) CS:RegisterEvent(USD)
CS.c:SetAllPoints(CS) CS:SetPoint("TOPRIGHT",PlayerFrame,-2,8)CS:SetSize(25,24)CS.t=CS:CreateTexture(nil,RD)CS.t:SetAllPoints()CS.t:SetTexture("Interface\\Icons\\ability_cheapshot")
CS:SetScript(OT,function(self,event,...) if UE(select(1,...))==UE("player") and select(5,...)==1833 then CST:SetCooldown(GetTime(), 23)end if UE(select(1,...))==UE("player") and select(5,...)==408 then CST:SetCooldown(GetTime(), 25) end end)
SP=RF(FR) SP.c=RF("Cooldown","SAP",SP.t) SP:RegisterEvent(USD)
SP.c:SetAllPoints(SP) SP:SetPoint("TOPRIGHT",PlayerFrame,-25,8)SP:SetSize(25,24)SP.t=SP:CreateTexture(nil,RD)SP.t:SetAllPoints()SP.t:SetTexture("Interface\\Icons\\ability_sap")
SP:SetScript(OT,function(self,event,...) if UE(select(1,...))==UE("player") and select(5,...)==6770 then SAP:SetCooldown(GetTime(), 27)end if UE(select(1,...))==UE("player") and select(5,...)==1776 then SAP:SetCooldown(GetTime(), 23) end end)
GS=RF(FR) GS.c=RF("Cooldown","GARROTE",GS.t) GS:RegisterEvent(USD)
GS.c:SetAllPoints(GS) GS:SetPoint("TOPRIGHT",PlayerFrame,-48,8)GS:SetSize(26,24)GS.t=GS:CreateTexture(nil,RD)GS.t:SetAllPoints()GS.t:SetTexture("Interface\\Icons\\ability_rogue_garrote")
GS:SetScript(OT,function(self,event,...) if UE(select(1,...))==UE("player") and select(5,...)==1330 then GARROTE:SetCooldown(GetTime(), 21) end end)

now it looks like this Posted Image

well thats how it should be but as you see it's not tracking garrote dr, can someone fix this ? :o

<