I use this to show ids on myself or target:
Code:
:
elseif (msg=="showbuffs") then
PowaAuras:ShowAurasOnUnit("Buffs", "HELPFUL");
elseif (msg=="showdebuffs") then
PowaAuras:ShowAurasOnUnit("Debuffs", "HARMFUL");
:
function PowaAuras:ShowAurasOnUnit(display, auraType)
local index = 1;
local unit = "player";
if (UnitExists("target")) then
unit = "target";
end
PowaAuras:Message(display.." on "..unit);
local Name, _, _, Applications, Type, Duration, Expires, Source, Stealable, shouldConsolidate, spellId = UnitAura(unit, index, auraType);
while (Name~=nil) do
PowaAuras:Message(index..": "..Name.." (SpellID="..spellId..")");
index = index + 1;
Name, _, _, Applications, Type, Duration, Expires, Source, Stealable, shouldConsolidate, spellId = UnitAura(unit, index, auraType);
end
end