Hello there !
I'm a long time user of the Blizzard nameplates and i know this can be done by just getting Plater or whatever.
I'm currently working on a small addon who will allow me to show all my debuffs over the ennemy nameplates. Today, with the help of Tomcat (twitch.tv/TomCat), he explained me a lot about it and deep dived for me in the nameplates features.
Right now, the code is looking like this :
Lua Code:
local function UpdateBuffs(self, unit, filter, showAll)
if (not showAll) then
self:UpdateBuffs(unit, filter, true)
end
end
local updateFrame = CreateFrame("FRAME")
local tracker = { }
local minDelay = 1.0
local totalElapsed = 0
local function OnUpdate(self, elapsed)
totalElapsed = totalElapsed + elapsed
if (totalElapsed > minDelay) then
totalElapsed = 0
for i = 1, 20 do
if (not tracker[i]) then
local nameplate = _G["NamePlate" .. i]
if (nameplate and nameplate.UnitFrame and nameplate.UnitFrame.BuffFrame) then
tracker[i] = true
hooksecurefunc(nameplate.UnitFrame.BuffFrame, "UpdateBuffs", UpdateBuffs)
end
end
end
end
end
updateFrame:SetScript("OnUpdate", OnUpdate)
What is does : showing all the debuffs over the nameplates, including your friends warrior debuffs for example.
What i want in the final : showing all
my debuffs and only mine, and if it includes also my pet mortal wounds, better but i guess, harder to do.
For this problem, i found many ask how to do that, some solutions who seems to not work nowadays like :
https://www.mmo-champion.com/threads...-BuffContainer
Here are 2 solutions, the first one isnt working and my understanding in lua is not enough to fix it on my own. And the second one who is a whitelisting but removing everything else and also, doesn't work with some things like Sinful Revelation.
The goal is to show like a concussive shots like a debuff over the nameplates. This will help many PvPer who dont wanna jump in a full nameplates addon.
If you have any suggestions, any time to help me, i will be super grateful.