Wikia

WoWWiki

Changes: API IsRaidLeader

Edit

Back to page

(Factual correction (1 or nil is definitely not boolean!))
 
Line 6: Line 6:
   
 
== Returns ==
 
== Returns ==
:;isLeader:[[boolean]] - 1 if the player is the raid leader, otherwise nil
+
:;isLeader:1 if the player is the raid leader, otherwise nil
   
   

Latest revision as of 14:36, September 24, 2008

WoW API < IsRaidLeader
 isLeader = IsRaidLeader() 

Determines if the player is a raid leader himself.

Returns Edit

isLeader
1 if the player is the raid leader, otherwise nil


Example Edit

 if (IsRaidLeader())
     DEFAULT_CHAT_FRAME:AddMessage ("I am the Raid Leader.");
 elseif not (IsRaidLeader())
     DEFAULT_CHAT_FRAME:AddMessage ("I am not the Raid Leader.");
 end

Notes Edit

Chances are you came to this function looking for a rank check system for your raid, this function will probably not cut it however GetRaidRosterInfo() can handle this

Around Wikia's network

Random Wiki