WoW:API GetPlayerBuffName: Difference between revisions
Jump to navigation
Jump to search
(Initial documentation) |
(removedapi) |
||
Line 1: | Line 1: | ||
{{removedapi|3.0|Use {{api|UnitAura}} (or derived functions) to retrieve information about buffs.}} | |||
{{wowapi}} __NOTOC__ | {{wowapi}} __NOTOC__ | ||
Line 7: | Line 8: | ||
== Arguments == | == Arguments == | ||
;id : Number - index from 1 to 16 | |||
;name : String - name of the buff to retrieve | |||
;rank : String (Optional) - rank of the buff to retrieve (as returned by this function) | |||
== Returns == | == Returns == | ||
;name : String - name of buff found | |||
;rank : String - rank of buff found | |||
Revision as of 12:50, 28 May 2009
This is no longer a part of the World of Warcraft API.
|
Used to retrieve the name and rank of a buff in a given index, or to verify a buff with the given name (and optionally, rank) is present.
name, rank = GetPlayerBuffName(id, or "name"[,"rank"])
Arguments
- id
- Number - index from 1 to 16
- name
- String - name of the buff to retrieve
- rank
- String (Optional) - rank of the buff to retrieve (as returned by this function)
Returns
- name
- String - name of buff found
- rank
- String - rank of buff found
Example
local buffName, buffRank = GetPlayerBuffName(1)
(called on a paladin with Devotion Aura(Rank 1) in buff slot 1)
Result
buffName = "Devotion Aura" buffRank = "Rank 1"