Thread Tools Display Modes
01/10/17, 06:44 AM   #1
myslex
Join Date: Apr 2014
Posts: 22
Unit guild information?

Hello everyone,

I am writing an addon that in theory should make it easier to spot guild members in the world by showing an icon close to the reticle when you hover (reticleover) over a person that is in any of the guilds that you are a member of.

HOWEVER, I cannot find any api functions that return guild information for a unit like GetNumGuilds() for reticleover ie:

Lua Code:
  1. local num = GetNumGuilds('reticleover')

Is it not possible?
Any help greatly appreciated.

MYxLEs
  Reply With Quote
01/10/17, 08:41 AM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,567
It's not directly possible to query the guild information of anyone besides yourself.
You can however build a lookup table from your roster and then match the name of the unit you are looking at. This is how I do it in Social Indicators, which makes spotting guild members practical since almost two years.
  Reply With Quote
01/10/17, 11:20 AM   #3
myslex
Join Date: Apr 2014
Posts: 22
Originally Posted by sirinsidiator View Post
It's not directly possible to query the guild information of anyone besides yourself.
You can however build a lookup table from your roster and then match the name of the unit you are looking at. This is how I do it in Social Indicators, which makes spotting guild members practical since almost two years.
Awesome, thanks for sharing. I'll check it out!

MsLEX
  Reply With Quote
02/06/17, 04:36 AM   #4
calia1120
 
calia1120's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 62
Rainbow Reticle uses some similar functionality as well.
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » Unit guild information?

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