Fixed links to GUILD_ROSTER_UPDATE and PLAYER_GUILD_UPDATE events
(Fixed links to GUILD_ROSTER_UPDATE and PLAYER_GUILD_UPDATE events) |
|||
| Line 15: | Line 15: | ||
:*You may use a name in the argument for this function | :*You may use a name in the argument for this function | ||
:*This function only works in close proximity to the unit you are trying to get info from. I don't know the distance, but it is the same distance that the character portrait loads if you are in party with them. It will abandon the data shortly after you leave the area, even if the portrait is remembered. | :*This function only works in close proximity to the unit you are trying to get info from. I don't know the distance, but it is the same distance that the character portrait loads if you are in party with them. It will abandon the data shortly after you leave the area, even if the portrait is remembered. | ||
:*If using with [[UnitId]] "player" on loading it happens that this value is nil even if the player is in a guild. I wrote a little function which checks in the [[ | :*If using with [[UnitId]] "player" on loading it happens that this value is nil even if the player is in a guild. I wrote a little function which checks in the [[Events/Guild#GUILD_ROSTER_UPDATE|GUILD_ROSTER_UPDATE]] and [[Events/Guild#PLAYER_GUILD_UPDATE|PLAYER_GUILD_UPDATE]] events, if guild name is available. As long as it is not, no actions are fired by my guild event handling. | ||