Thread Tools Display Modes
05/31/14, 03:48 AM   #1
Gormac
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 2
GetSkillAbilityInfo and integer abilityGraphic

Hi guys, how get texture name from abilityGraphic (integer).

Code:
EVENT_COMBAT_EVENT (integer result, bool isError, string abilityName, integer abilityGraphic, integer abilityActionSlotType, string sourceName, integer sourceType, string targetName, integer targetType, integer hitValue, integer powerType, integer damageType, bool log)
from this event I get abilityGraphic eg. 1245, you know any function/solution to get texture name eg. /esoui/art/...
  Reply With Quote
05/31/14, 04:15 AM   #2
lyravega
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 93
You can view most ability icons with Zgoo, by using /zgoo mouse. Other than that, no clue.
  Reply With Quote
05/31/14, 04:44 AM   #3
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
You can get ability graphics from the ability skill functions.

I use them to get the level 1 ability graphics for crafting for the tradeskill node gathering.

This is how I get the crafting skill ability graphics,
Lua Code:
  1. local abilityIndex = 1
  2.     local skillType,skillIndex = GetCraftingSkillLineIndices(CRAFTING_TYPE_ALCHEMY)
  3.     local skillName,skillRank  = GetSkillLineInfo(skillType, skillIndex)
  4.     local abilityName,abilityIcon = GetSkillAbilityInfo(skillType, skillIndex, abilityIndex)

You would just need to grab the skillIndex and skillType for the other abilities you need using the functions available at : http://wiki.esoui.com/API#Skills and then find the match to the abilityName in the spell. I use the above for each of the tradeskills and place the names and icons in a table for later use. That might not be as useful for what you need but maybe a function to call that extracts the icon for the type,skill and ability and rank you are looking for.

It is possible that abilityGraphic integer value is the abilityIndex. But I haven't seen a function that grabs the details from an index. Surprise surprise.

Last edited by Xrystal : 05/31/14 at 04:47 AM.
  Reply With Quote
05/31/14, 04:58 AM   #4
Gormac
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 2
Code:
local skile = {}
local skiletype = {
    [1] = SKILL_TYPE_ARMOR,
    [2] = SKILL_TYPE_AVA,
    [3] = SKILL_TYPE_CLASS,
    [4] = SKILL_TYPE_GUILD,
    [5] = SKILL_TYPE_NONE,
    [6] = SKILL_TYPE_RACIAL,
    [7] = SKILL_TYPE_TRADESKILL,
    [8] = SKILL_TYPE_WEAPON,
    [9] = SKILL_TYPE_WORLD
}

function getskills()
    for k = 1, 9 do
        for i = 1, 50 do
            for j = 1, 50 do
                local name, img, _, _, _, _, _ = GetSkillAbilityInfo(skiletype[k], i, j)
                if name == "" then 
                    break
                else
                    skile[name] = img
                    --d(name.." "..img)
                end
            end
        end
    end
    --d("done!")
    --using
    d(skile["Soul Trap"])
end
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » GetSkillAbilityInfo and integer abilityGraphic


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