WoWInterface (
-   Lua/XML Help (
-   -   Retrieve buff id by name (

Benalish 08-10-15 07:11 PM

Retrieve buff id by name
Hi everyone, there is an API that allows, if I have for example the buff "Blood Shield," to give me his id? Not the spell ID, but the buff index that I can then use in the API GameTooltip:SetUnitBuff ("UnitID", buffIndex).

Thank you in advance

Phanx 08-11-15 01:10 AM

GameTooltip:SetUnitAura/Buff/Debuff actually works the same way that UnitAura/Buff/Debuff does -- you can just pass it a name directly. I just verified with this:

GameTooltip:SetUnitBuff("player", "Lightning Shield")

All times are GMT -6. The time now is 11:25 AM.

vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI