WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Retrieve buff id by name (https://www.wowinterface.com/forums/showthread.php?t=52596)

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 09:27 AM.

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