Thread Tools Display Modes
07/29/17, 09:35 PM   #1
Hoft
 
Hoft's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 17
Ability and its effect ID

Is there a way to get ability ID match to abilityId from GetUnitBuffInfo?
  Reply With Quote
08/02/17, 10:54 PM   #2
Scootworks
 
Scootworks's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2014
Posts: 312
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)
?

Last edited by Scootworks : 08/02/17 at 11:02 PM.
  Reply With Quote
08/07/17, 05:49 PM   #3
Hoft
 
Hoft's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 17
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...
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Ability and its effect ID

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off