FANDOM


m
Line 21: Line 21:
 
--[[User:Flaye|Flaye]] 18:15, 2 Jul 2005 (EDT)
 
--[[User:Flaye|Flaye]] 18:15, 2 Jul 2005 (EDT)
   
[[Category:API Functions|IsRaidLeader]]
+
----
[[Category:API Raid Functions|IsRaidLeader]]
+
{{WoW API}}

Revision as of 06:00, January 4, 2006

IsRaidLeader()

Usage

 IsRaidLeader() 

Will return 1 if the player is the raid leader. Will return 0 if the player is not the raid leader.


Example

 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

Alternative

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

--Flaye 18:15, 2 Jul 2005 (EDT)


Template:WoW API

Community content is available under CC-BY-SA unless otherwise noted.