UnitBuffInfo(UnitId, pos)

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

Parameters Edit

Arguments Edit

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

Returns Edit

string - Name given to the buff.
string - Path and name used for the icon representation.
number - Stack count of buff, Nature power, or any stack counted buff.
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.." "" "..icon.." "..count.." "..ID);

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.