Advertisement
Guest User

Untitled

a guest
Oct 31st, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. Scripts for WoW - Lickmyorbs
  2.  
  3. puts class colour on health bar
  4.  
  5. /run UIP=UnitIsPlayer UIC=UnitIsConnected RCC=RAID_CLASS_COLORS PFHB=PlayerFrameHealthBar UC=UnitClass
  6.  
  7. /run function colour(sb,unit) if UIP(unit) and UIC(unit) and unit==sb.unit and UC(unit) then _,cl=UC(unit) c=RAID_CLASS_COLORS[cl] sb:SetStatusBarColor(c.r,c.g,c.b) PFHB:SetStatusBarColor(0,1,0) end end
  8.  
  9. /run hooksecurefunc("UnitFrameHealthBar_Update", colour) hooksecurefunc("HealthBar_OnValueChanged", function(self) colour(self, self.unit) end)
  10.  
  11. (3 macros needed one for each /run function)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement