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.
|This is no longer a part of the World of Warcraft API.
→ WoW API
Retrieve info about a certain player buff of a certain type.
buffTimeLeft = GetPlayerBuffTimeLeft(buffIndex);
- The index of the buff to retrieve. Can be obtained with GetPlayerBuff
- The time (in seconds) left until the buff expires.
local timeLeft = GetPlayerBuffTimeLeft(buffIndex)
- Retrieves amount of time left of the first buff you have.
for i=0,31 do local id,cancel = GetPlayerBuff(i,"HELPFUL|HARMFUL|PASSIVE"); if(id > -1) then local timeleft = GetPlayerBuffTimeLeft(id); DEFAULT_CHAT_FRAME:AddMessage(timeleft); end end
- Will display your buff/debuff durations.