Hello there,
I used to have this script that would place my debuffs on the right side of the party frames, and the buff underneath them. However, as of patch 4.0.1, the script has broke. (debuffs are working, but the buffs are not showing underneath the party frames)
The script is taken from ArenaJunkies, but it hasn't been updated yet.
Code:
for i=1,4 do
local f = _G["PartyMemberFrame"..i]
f:UnregisterEvent("UNIT_AURA")
local g = CreateFrame("Frame")
g:RegisterEvent("UNIT_AURA")
g:SetScript("OnEvent",function(self,event,a1)
if a1 == f.unit then
RefreshDebuffs(f,a1,20,nil,1)
else
if a1 == f.unit.."pet" then
PartyMemberFrame_RefreshPetDebuffs(f)
end
end
end)
local b = _G[f:GetName().."Debuff1"]
b:ClearAllPoints()
b:SetPoint("LEFT",f,"RIGHT",-7,5)
for j=5,20 do
local l = f:GetName().."Debuff"
local n = l..j
local c = CreateFrame("Frame",n,f,"PartyDebuffFrameTemplate")
c:SetPoint("LEFT",_G[l..(j-1)],"RIGHT")
end
end
for i=1,4 do
local f = _G["PartyMemberFrame"..i]
f:UnregisterEvent("UNIT_AURA")
local g = CreateFrame("Frame")
g:RegisterEvent("UNIT_AURA")
g:SetScript("OnEvent",function(self,event,a1)
if a1 == f.unit then
RefreshBuffs(f,a1,20,nil,1)
end
end)
for j=1,20 do
local l = f:GetName().."Buff"
local n = l..j
local c = CreateFrame("Frame",n,f,"TargetBuffFrameTemplate")
c:EnableMouse(false)
if j == 1 then
c:SetPoint("TOPLEFT",48,-32)
else
c:SetPoint("LEFT",_G[l..(j-1)],"RIGHT",1,0)
end
end
end
If anyone could help me out, I would be truly grateful, and you shall be rewarded. (with rep)