WoW:API GetPlayerBuff: Difference between revisions
Jump to navigation
Jump to search
GetPlayerBuff -Documentation by Sarf-
No edit summary |
No edit summary |
||
| Line 10: | Line 10: | ||
:(Number buffId) | :(Number buffId) | ||
:;buffId : The id of the buff to retrieve. Starts at 0 and goes up to 15 (may get higher). | :;[[API TYPE buffID|buffId]] : The id of the buff to retrieve. Starts at 0 and goes up to 15 (may get higher). | ||
:(String buffFilter) | :(String buffFilter) | ||
| Line 49: | Line 49: | ||
;''See Also'' | ;''See Also'' | ||
:* [[API CancelPlayerBuff|CancelPlayerBuff]] | |||
:* [[API GetPlayerBuffApplications|GetPlayerBuffApplications]] | |||
:* [[API GetPlayerBuffTexture|GetPlayerBuffTexture]] | :* [[API GetPlayerBuffTexture|GetPlayerBuffTexture]] | ||
:* [[API GetPlayerBuffTimeLeft|GetPlayerBuffTimeLeft]] | :* [[API GetPlayerBuffTimeLeft|GetPlayerBuffTimeLeft]] | ||
:* [[API GameTooltip SetPlayerBuff|GameTooltip:SetPlayerBuff]] | |||
---- | ---- | ||
{{WoW API}} | {{WoW API}} | ||
Revision as of 11:37, 14 February 2006
Retrieve info about a certain player buff of a certain type.
buffIndex, untilCancelled = GetPlayerBuff(buffId, buffFilter);
- Arguments
- (Number buffId)
- buffId
- The id of the buff to retrieve. Starts at 0 and goes up to 15 (may get higher).
- (String buffFilter)
- buffFilter
- The "filter" to use when selecting buffs. Will affect what types of buffs are retrieved.
- Verified buffFilters:
- "HELPFUL|HARMFUL|PASSIVE"
- "HELPFUL"
- "HARMFUL"
- Theoretically, buffFilters can be any combination of HELPFUL, HARMFUL, PASSIVE, CANCELABLE, NOT_CANCELABLE according to comments in the source code.
- Returns
- (Number buffIndex)
- buffIndex
- The index of the buff. Mainly to use for other GetPlayerBuffXYZ functions. If below zero, indicates there is no such buff.
- (Number untilCancelled)
- untilCancelled
- If 1, this buff will last until it is cancelled (Aura, Aspect, Stealth).
- Example
local buffIndex, untilCancelled = GetPlayerBuff(0, "HELPFUL|HARMFUL|PASSIVE");
- Result
Retrieves buff info about the first buff you have.
- Description
- Retrieves info and identifier about a certain effect on the player.
- See Also