Thread Tools Display Modes
02/11/20, 08:04 AM   #1
Tar000un
 
Tar000un's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 47
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?
  Reply With Quote
02/12/20, 10:46 AM   #2
Tar000un
 
Tar000un's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 47
Ok... I wasn't looking the right doc page...
Just found about DEFAULT_OFFICER_RANK on Globals page.
  Reply With Quote
02/13/20, 04:11 AM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,903
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.
  Reply With Quote
02/13/20, 05:18 AM   #4
Tar000un
 
Tar000un's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 47
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.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Default guildrank names

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