ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Ability and its effect ID (https://www.esoui.com/forums/showthread.php?t=7253)

Hoft 07/29/17 09:35 PM

Ability and its effect ID
 
Is there a way to get ability ID match to abilityId from GetUnitBuffInfo?

Scootworks 08/02/17 10:54 PM

something like this?
lua Code:
  1. local function CheckBuffs(_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, abilityId)
  2.     for i = 1,GetNumBuffs("player") do
  3.         local _abilityId = select(11, GetUnitBuffInfo("player", i))
  4.         if(_abilityId == abilityId) then
  5.             -- do something
  6.         end
  7.     end
  8. end
  9. EVENT_MANAGER:RegisterForEvent(addon.name, EVENT_EFFECT_CHANGED, CheckBuffs)
?

Hoft 08/07/17 05:49 PM

Id from EVENT_EFFECT_CHANGED and GetUnitBuffInfo are the same. It is effect ID.
I need to compare it with original AbilityID (from players skills or from action panel).
They are different for each Ability morph.

For example Evasion ability (from medium armor):
Evasion 1 Id=29556, it's effect Id=63015
Evasion 2 Id=41124, it's effect Id=63016
Evasion 3 Id=41125, it's effect Id=63017
Evasion 4 Id=41126, it's effect Id=63018
etc...


All times are GMT -6. The time now is 12:05 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI