ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Default guildrank names (https://www.esoui.com/forums/showthread.php?t=8958)

Tar000un 02/11/20 08:04 AM

Default guildrank names
 
Hey,

I m trying to get the guildranks names. It's a bit unfriendly to get a custom guild rank, since you have to firstly get the rankIndex.

Lua Code:
  1. function Guild.GetPlayerGuildRankCustomName(guildIndex)
  2.   local guildId = GetGuildId(guildIndex)
  3.   local _,_,rankIndex = GetGuildMemberInfo(guildId, GetPlayerGuildMemberIndex(guildId))
  4.  
  5.   return GetGuildRankCustomName(guildId, rankIndex )
  6. end

But I didn't find a way to get non custom guild rank. I guess there is a sort of static id somewhere? I got rankId 255 is generally the GM and 254 for officer or 3, 2 for member and 1 for recruit.

254 or 3 for officer, makes me ask: is it static or dynamic ? Where can I found details about defaults guild rank?

Tar000un 02/12/20 10:46 AM

Ok... I wasn't looking the right doc page...
Just found about DEFAULT_OFFICER_RANK on Globals page.

Baertram 02/13/20 04:11 AM

You can also look into the API TXT Documentation files of the API versions linked here:
https://wiki.esoui.com/APIVersion

The WIKI entries base on these files.

You'll find the constants, functions etc. in there.
Should be linked also for upcoming patches like the current PTS Harrowstorm so you can check if your code/constants are still there or something was added.

Tar000un 02/13/20 05:18 AM

Yeah, I was reading: https://wiki.esoui.com/Constant_Values
And I just noticed the guild with rankId 3 having "Officer" name, is a custom rank.


All times are GMT -6. The time now is 10:22 AM.

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