FANDOM


UnitBuffInfo(UnitId, pos)

Appears to give the same results and take the same arguments as UnitBuff.

Parameters Edit

Arguments Edit

UnitId
string - The unit id string: "player", "target", "party1", "pet", "targettarget", "mouseover"...
pos
number - The position of the buff action on buff bar, starting from RIGHT to left.

Returns Edit

name
string - Name given to the buff.
icon
string - Path and name used for the icon representation.
count
number - Stack count of buff, Nature power, or any stack counted buff.
ID
number - Numeric identifier of buff, normaly a 6 digit number.

Example Edit

--Qaz1qaz1qa 07:13, 6 March 2010 (UTC)

name, icon, count, ID = UnitBuff("player" , i )

for i=1,100,1 do
   local name, icon, count, ID = UnitBuff( "player", i );
   DEFAULT_CHAT_FRAME:AddMessage(i.." "..name.." "..icon.." "..count.." "..ID);
end

Notes Edit


Related Functions Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.