Quantcast StyleItemIndex Summerset - ESOUI
Thread Tools Display Modes
06/01/18, 04:45 AM   #1
Woeler
 
Woeler's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 35
StyleItemIndex Summerset

Hey all,

Has anyone got the StyleItemIndex of the new styles that came with Summerset, or does anyone have a quick way to find them?

Thanks!
__________________
Author of The ESO Leaderboards Project | Guildmaster of Omnia Vincit | Administrator of the ESO-Database
EU server: @Woeler
  Reply With Quote
06/01/18, 05:04 AM   #2
Scootworks
 
Scootworks's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2014
Posts: 214
hi Woeler

maybe something like this:
lua Code:
  1. for i = 1, GetHighestItemStyleId() do
  2.     local name = GetItemStyleName(i)
  3.     if name ~= "" then
  4.         df("[%d] %s", i, name)
  5.     end
  6. end
__________________
EU Server - SŁĄuGhTerHĜuSe

Last edited by Scootworks : 06/01/18 at 05:45 AM.
  Reply With Quote
06/01/18, 05:38 AM   #3
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 1,741
Only found functions like these:

GetHighestItemStyleId() -> 75
GetItemStyleMaterialLink(*integer* _itemStyleId_, *[LinkStyle|#LinkStyle]* _linkStyle_)
** _Returns:_ *string* _link_

If you know which material is used for which item style:
Maybe build a loop from 1 to GetHighestItemStyleId() like this:

Lua Code:
  1. function GetItemStyleInfoLoop()
  2.         for itemStyleId=1, GetHighestItemStyleId(), 1 do
  3.             local itemStyleName = GetItemStyleName(itemStyleId)
  4.             local itemStyleMaterialItemLink = GetItemStyleMaterialLink(itemStyleId)
  5.             if itemStyleMaterialItemLink  ~= "" then
  6.                 d("ItemStyleId: [" .. tostring(itemStyleId) .. "] name: " .. tostring(itemStyleName ) .. " " .. itemStyleMaterialItemLink)
  7.             end
  8.         end
  9.     end

Last edited by Baertram : 06/01/18 at 05:44 AM.
  Reply With Quote
06/03/18, 02:47 AM   #4
Woeler
 
Woeler's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 35
Thanks guys!
__________________
Author of The ESO Leaderboards Project | Guildmaster of Omnia Vincit | Administrator of the ESO-Database
EU server: @Woeler
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » StyleItemIndex Summerset

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