Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scripts for WoW - Lickmyorbs
- puts class colour on health bar
- /run UIP=UnitIsPlayer UIC=UnitIsConnected RCC=RAID_CLASS_COLORS PFHB=PlayerFrameHealthBar UC=UnitClass
- /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
- /run hooksecurefunc("UnitFrameHealthBar_Update", colour) hooksecurefunc("HealthBar_OnValueChanged", function(self) colour(self, self.unit) end)
- (3 macros needed one for each /run function)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement