1. #1

    Need help turning macro into addon

    Hello there. I'm hoping someone can help me turn 2 macros (that work in conjunction) into a working addon since I can't quite seem to get it.

    What the addon does is show HP / MaxHP - % HP
    However when running it as a macro it doesn't seem to show all the time on my target but only on mouseover which I hope someone might be able to help with aswell.

    /run FrL={TargetFrameHealthBar=1}
    /run hooksecurefunc("TextStatusBar_UpdateTextStringWithValues",function(f,t,v,_,x)local z,s,a,k=1000 if FrL[f:GetName()]then a=v*100/x k=x>z s=k and "k"or "" x=k and x/z or x t:SetText(format("%s / %.0f%s - %.0f%%",BreakUpLargeNumbers(v),x,s,a))end end)
    Last edited by Dastey; 2017-01-19 at 04:38 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •