Jump to content

  • Curse Sites
Help

Overtaken

Member Since 23 Sep 2009
Offline Last Active Aug 04 2013 04:52 PM
-----

#3612063 [Addon,Macro,Script] for DS Trinkets

Posted riccod on 12 January 2012 - 03:40 AM

Posted Image
Hey guys,
just made some small macros and scripts for tracking the internal cooldown of the Dragon Soul trinkets. You can either use the macros or the scripts for your own AddOn or download my AddOn.
Posted Image

Macro 1:
/run t=CreateFrame("Frame")
t:SetPoint("CENTER",0,0)
t:SetSize(40,40)
t.c=CreateFrame("Cooldown","cd1")
t.c:SetAllPoints(t)
t.t=t:CreateTexture(nil,"BORDER")
t.t:SetAllPoints()
t.t:SetTexture("Interface\\Icons\\inv_potion_85")

Macro 2:

/run t:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
t:SetScript("OnEvent",function(...)local _,_,_,_,x=select(3, ...)
if x==UnitName("Player")then local _,_,y=select(12, ...)
if y==109721 then CooldownFrame_SetTimer(cd1,GetTime(),30,1)end end end)

You only need to change 3 things: inv_potion_85, 109721 and 30(cooldown).
Check out the list below.

Vial of Shadows inv_potion_85
  • LFR 109721
  • Normal 107994
  • Heroic 109724
Cunning of the Cruel inv_misc_coin_09
  • LFR 109798
  • Normal 108005
  • Heroic 109800
Bone-Link Fetish inv_misc_coin_12
  • LFR 109752
  • Normal 107997
  • Heroic 109754
Insignia of the Corrupted Mind inv_bijou_purple
  • LFR 109787
  • Normal 107982
  • Heroic 109789
Creche of the Final Dragon creatureportrait_twilightshammer_dragonegg_01
  • LFR 109742
  • Normal 107988
  • Heroic 109744
Starcatcher Compass inv_relics_sundial
  • LFR 109709
  • Normal 107982
  • Heroic 109711
Seal of the Seven Signs inv_relics_runestone
  • LFR 109802
  • Normal 107982
  • Heroic 109804
How do I move the icon?
change -- t:SetPoint("CENTER",0,0) -- in Macro 1 to your likings

OR

use this Macro to drag the icon:
/run local f=t; f:SetMovable(true); f:EnableMouse(true); f:SetUserPlaced(true); f:SetScript("OnMouseDown", f.StartMoving); f:SetScript("OnMouseUp", f.StopMovingOrSizing);

Script:
t=CreateFrame("Frame")
t:SetPoint("CENTER",0,0)
t:SetSize(40,40)
t.c=CreateFrame("Cooldown","cd1")
t.c:SetAllPoints(t)
t.t=t:CreateTexture(nil,"BORDER")
t.t:SetAllPoints()
t.t:SetTexture("Interface\\Icons\\inv_potion_85")


t:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
t:SetScript("OnEvent",function(...)local _,_,_,_,x=select(3, ...)
if x==UnitName("Player")then local _,_,y=select(12, ...) 
if y==109721 then CooldownFrame_SetTimer(cd1,GetTime(),30,1)end end end)

local f=t; 
f:SetMovable(true); 
f:EnableMouse(true); 
f:SetUserPlaced(true); 
f:SetScript("OnMouseDown", f.StartMoving); 
f:SetScript("OnMouseUp", f.StopMovingOrSizing);

AddOn IboTrinkets:
http://www.2shared.c...boTrinkets.html

Credits:
imSuperlative

Have fun!


<