View Single Post
06/17/20, 04:24 AM   #6
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
From the code at ZOs actionbuttons you can use this small function to check a slotNum (index of the slot, see my first post with the slot indices) if it contains an abilityId:

Lua Code:
  1. local function HasAbility(slotnum)
  2.     local slotType = GetSlotType(slotnum)
  3.     return slotType == ACTION_TYPE_ABILITY
  4. end

And if this returns true the slot's actionButton should provide an abilityId in it's variable .button.actionId.
See here:
https://github.com/esoui/esoui/blob/...utton.lua#L274

And this was determined via this function:
Lua Code:
  1. GetSlotBoundId(slotnum)

So you should be able to get the abilityId this way.
I hope it IS the abilityId
  Reply With Quote