WoW API: IsGuildLeader

From AddOn Studio
Revision as of 20:52, 16 May 2007 by WoWWiki>Pyromanci (New page: This function is used to determine if a player is the guild leader. There is a required variable. The variable is the a players name. When the function is run it will return a boolean re...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < IsGuildLeader

Returns the a boolean value.

TrueFalse = IsGuildLeader("PlayerName");

Parameters

Arguments

PlayerName
Boolean - Player to check for guild master status?

Returns

TrueFalse
True is person is Guild Master, False if they are not.

Example

player = UnitName("player");
if (IsGuildLeader(player) == true) then
    DEFAULT_CHAT_FRAME:AddMessage(player.." you are a Guild master");
else
    DEFAULT_CHAT_FRAME:AddMessage(player.." you are not a Guild master");
end

Result

Displays a message stating if your a guild master or not.