Alright mates, im here today to ask for some help! I've gathered many scripts/addons over the years but i dont know how to edit them, or even if its possible!
Exemple: i have 2 scripts to modify the healthbar color, and they can't work together, but i want to!
Script 1: I would like this script to modify every existing healthbar, except mine and pets
local function colour(statusbar, unit)
local _, class, c
if UnitIsPlayer(unit) and UnitIsConnected(unit) and unit == statusbar.unit and UnitClass(unit) then
_, class = UnitClass(unit)
c = CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[class] or RAID_CLASS_COLORS[class]
statusbar:SetStatusBarColor(c.r, c.g, c.b)
PlayerFrameHealthBar:SetStatusBarColor(0,1,0)
end
end