Wikia

WoWWiki

Changes: API IsGuildLeader

Edit

Back to page

(This article was poorly written....)
(changed the description this function only returns if you are a guildleader or not, not possible to check other player maybe worked at some time)
 
Line 1: Line 1:
 
{{wowapi}} __NOTOC__
 
{{wowapi}} __NOTOC__
guildmaster = IsGuildMaster("PlayerName")
+
guildmaster = IsGuildMaster()
This function checks to see if 'PlayerName' is the guild master of a guild and returns the appropriate result.
+
This function checks to see if you are the guild master of a guild and returns the appropriate result.
   
 
==Parameters==
 
==Parameters==
===Arguments===
+
:;PlayerName : String - The name of the player you are checking.
 
 
===Returns===
 
===Returns===
:;guildmaster : True if this person is a guild master, otherwise false.
+
:;guildmaster : True if you are a guild master, otherwise false.
   
 
==Example==
 
==Example==
player = UnitName("player");
+
if (IsGuildLeader() == true) then
if (IsGuildLeader(player) == true) then
+
DEFAULT_CHAT_FRAME:AddMessage("You are a Guild master");
DEFAULT_CHAT_FRAME:AddMessage(player.." you are a Guild master");
 
 
else
 
else
DEFAULT_CHAT_FRAME:AddMessage(player.." you are not a Guild master");
+
DEFAULT_CHAT_FRAME:AddMessage("You are not a Guild master");
 
end
 
end
 
===Result===
 
===Result===

Latest revision as of 19:25, November 12, 2010

WoW API < IsGuildLeader
guildmaster = IsGuildMaster()

This function checks to see if you are the guild master of a guild and returns the appropriate result.

ParametersEdit

ReturnsEdit

guildmaster 
True if you are a guild master, otherwise false.

ExampleEdit

if (IsGuildLeader() == true) then
    DEFAULT_CHAT_FRAME:AddMessage("You are a Guild master");
else
    DEFAULT_CHAT_FRAME:AddMessage("You are not a Guild master");
end

ResultEdit

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

Around Wikia's network

Random Wiki