GetUnitBuffInfo
ESO Lua API function — used by 212 of the 3,030 addons we indexed (combined 36,552,501 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetUnitBuffInfo(string unitTag, luaindex buffIndex)Returns: string buffName, number timeStarted, number timeEnding, integer buffSlot, integer stackCount, textureName iconFilename, string deprecatedBuffType, effectType, abilityType, statusEffectType, integer abilityId, bool canClickOff, bool castByPlayer
Real usage — from Action Duration Reminder
local buffName,timeStarted,timeEnding,buffSlot,stackCount,iconFilename,buffType,effectType,abilityType,
statusEffectType,abilityId,canClickOff,castByPlayer = GetUnitBuffInfo('player', i)
if timeStarted==timeEShort excerpt from the shipping addon Action Duration Reminder — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Action Duration Reminder | 6,522,011 |
| Srendarr - Aura, Buff & Debuff Tracker | 5,058,870 |
| LibCombat | 5,017,654 |
| LibQuestData | 4,916,044 |
| Code's Combat Alerts | 4,445,158 |
| RaidNotifier Updated | 2,789,746 |