FindBuffs
Buffs whose name, English name or class holds every word of a pattern.
Syntax
Section titled “Syntax”FindBuffs(pattern [, max])| Parameter | Type | |
|---|---|---|
pattern |
string | words to look for, case-insensitive |
max |
number | at most this many (10) (optional) |
Returns
Section titled “Returns”table - a list of {id=, name=, guid=, class=, display=}
Example
Section titled “Example”for _, b in ipairs(FindBuffs("potion strength", 5)) do Log(b.id, b.name, b.display) endSee also
Section titled “See also”GetBuffInfo · GivePlayerBuff · the Catalogues group of the index
