Wikia

WoWWiki

API IsGuildLeader

Talk0
98,518pages on
this wiki
Revision as of 15:50, June 14, 2009 by Vandesdelca32 (Talk | contribs)

guildmaster = IsGuildMaster("PlayerName")

This function checks to see if 'PlayerName' is the guild master of a guild and returns the appropriate result.

Parameters

Arguments

PlayerName 
String - The name of the player you are checking.

Returns

guildmaster 
True if this person is a guild master, otherwise false.

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.
Advertisement | Your ad here

Photos

Add a Photo
62,044photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki