WoW:API IsRaidLeader: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API IsRaidLeader to API IsRaidLeader without leaving a redirect)
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
== IsRaidLeader() ==
{{wowapi}}


'''Usage'''
  isLeader = IsRaidLeader()


  IsRaidLeader()
Determines if the player is a raid leader himself.
Will return 1 if the player is the raid leader. Will return 0 if the player is not the raid leader.


== Returns ==
:;isLeader:1 if the player is the raid leader, otherwise nil


'''Example'''
 
== Example ==
    
    
   if (IsRaidLeader())
   if (IsRaidLeader())
Line 15: Line 17:
   end
   end


'''Alternative'''
== Notes ==
 
Chances are you came to this function looking for a rank check system for your raid, this function will probably not cut it however [http://www.wowwiki.com/API_GetRaidRosterInfo GetRaidRosterInfo()] can handle this
 
--[[User:Flaye|Flaye]] 18:15, 2 Jul 2005 (EDT)


[[Category:API Functions|IsRaidLeader]]
Chances are you came to this function looking for a rank check system for your raid, this function will probably not cut it however [[API_GetRaidRosterInfo|GetRaidRosterInfo()]] can handle this
[[Category:API Raid Functions|IsRaidLeader]]

Latest revision as of 04:46, 15 August 2023

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