Thread Tools Display Modes
06-21-12, 06:47 AM   #1
Caetan0
A Warpwood Thunder Caller
Join Date: Aug 2011
Posts: 99
for macro addon

Good morning friends wowprogramim,
I found this macro on the Internet and would like to load it as an addon.


Code:
/run TF=CreateFrame("Frame")TFHB=TargetFrameHealthBar.TextString;TTSB=TextStatusBar_CapDisplayOfNumericValue
/run FF=CreateFrame("Frame")FFHB=FocusFrameHealthBar.TextString;TTSB=TextStatusBar_CapDisplayOfNumericValue
Macro 2:
/run TF:SetScript("OnUpdate", function(target)TFHB:SetText(TTSB(UnitHealth("target")).."/"..TTSB(UnitHealthMax("target")).." ("..format("%.0f", ((UnitHealth("target")/UnitHealthMax("target"))*100)).."%)") end)
Macro 3:
/run FF:SetScript("OnUpdate", function(focus)FFHB:SetText(TTSB(UnitHealth("focus")).."/"..TTSB(UnitHealthMax("focus")).." ("..format("%.0f", ((UnitHealth("focus")/UnitHealthMax("focus"))*100)).."%)") end)

I copied and pasted the code into an addon but it is not my execurta the desired action, should I change one line ciomando as it is being loaded as investment addon or macro to run as?
  Reply With Quote
06-21-12, 06:54 AM   #2
Caetan0
A Warpwood Thunder Caller
Join Date: Aug 2011
Posts: 99
got friends ...
I changed some things and it worked
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » for macro addon

Thread Tools
Display Modes

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