Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetPlayerBuffName

Last wiki revision 2020-01-08

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"])

  • 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)
  • name : String - name of buff found
  • rank : String - rank of buff found

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"

Source

https://warcraft.wiki.gg/wiki/API_GetPlayerBuffName · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.