WoW:API GetPlayerBuffName: Difference between revisions
Jump to navigation
Jump to search
(Initial documentation) |
m (Move page script moved page API GetPlayerBuffName to API GetPlayerBuffName without leaving a redirect) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi|removed=3.0|replace=Use {{api|UnitAura}} and derived functions instead.}} | ||
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. | 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. | ||
= | local name, rank = GetPlayerBuffName(id, or "name"[,"rank"]) | ||
== Parameters == | |||
=== Arguments === | |||
* id (number) - index from 1 to 16 | |||
* name (string) - name of the buff to retrieve | |||
* rank (string) - rank of the buff to retrieve, as returned by this function (Optional) | |||
=== Returns === | |||
* name (string) - name of buff found | |||
* rank (string) - rank of buff found | |||
== Example == | == Example == | ||
Called on a paladin with Devotion Aura (Rank 1) in buff slot 1 | |||
local buffName, buffRank = GetPlayerBuffName(1) | local buffName, buffRank = GetPlayerBuffName(1) | ||
;Result | |||
buffName = "Devotion Aura" | buffName = "Devotion Aura" | ||
buffRank = "Rank 1" | buffRank = "Rank 1" | ||
== Notes == | |||
* Removed in patch 3.0. Use {{api|UnitAura}} (or derived functions) to retrieve information about buffs. |
Latest revision as of 04:46, 15 August 2023
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.
local name, rank = GetPlayerBuffName(id, or "name"[,"rank"])
Parameters[edit]
Arguments[edit]
- id (number) - index from 1 to 16
- name (string) - name of the buff to retrieve
- rank (string) - rank of the buff to retrieve, as returned by this function (Optional)
Returns[edit]
- name (string) - name of buff found
- rank (string) - rank of buff found
Example[edit]
Called on a paladin with Devotion Aura (Rank 1) in buff slot 1
local buffName, buffRank = GetPlayerBuffName(1)
- Result
buffName = "Devotion Aura" buffRank = "Rank 1"
Notes[edit]
- Removed in patch 3.0. Use UnitAura (or derived functions) to retrieve information about buffs.