WoW:API IsRaidOfficer: Difference between revisions
Jump to navigation
Jump to search
(upgraded deprecated template) |
(Updated with new information) |
||
| Line 6: | Line 6: | ||
IsRaidOfficer(); | IsRaidOfficer(); | ||
Will return 1 if the player is a raid officer or 0 if the player is not. | Will return 1 if the player is a raid officer or 0 if the player is not. (As of 2.4.3 seems to return nil if player is not raid officer) | ||
'''Example''' | '''Example''' | ||
Revision as of 14:33, 24 September 2008
← WoW API < IsRaidOfficer
IsRaidOfficer()
Usage
IsRaidOfficer();
Will return 1 if the player is a raid officer or 0 if the player is not. (As of 2.4.3 seems to return nil if player is not raid officer)
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
Confirmed: this actually returns true if you have the Assistant rank.