WoW:API IsRaidOfficer: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 14: Line 14:
   DEFAULT_CHAT_FRAME:AddMessage ("I am not a raid officer.");
   DEFAULT_CHAT_FRAME:AddMessage ("I am not a raid officer.");
   end
   end
[[Category:API Functions|IsRaidOfficer]]
[[Category:API Raid Functions|IsRaidOfficer]]

Revision as of 12:41, 30 August 2005

IsRaidOfficer()

Usage

IsRaidOfficer(); 

Will return 1 if the player is a raid officer or 0 if the player is not.

Example

 if (IsRaidOfficer())
 DEFAULT_CHAT_FRAME:AddMessage ("I am a raid officer.");
 elseif not (IsRaidOfficer())
 DEFAULT_CHAT_FRAME:AddMessage ("I am not a raid officer.");
 end