Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
mNo edit summary
 
No edit summary
 
Line 1: Line 1:
  +
== Licensing ==
{{wowapitype}}<br />
 
  +
{{User-ss}}
 
{{Patch 4.2.0|note=Added in Patch 4.2}}
 
{{spc}}
 
Raid flags are used in conjunction with the sourceRaidFlags and destRaidFlags fields of the [[API_COMBAT_LOG_EVENT|COMBAT_LOG_EVENT]] and [[API_COMBAT_LOG_EVENT|COMBAT_LOG_EVENT_UNFILTERED]] events.
 
 
==Constants==
 
 
As of Patch 4.2, these flags are as follows:
 
 
{| class="darktable"
 
!Constant
 
!colspan="9"|bitfield
 
|-align="center"
 
!colspan="10"|Raid Target (Exclusive)
 
|-
 
|style="background:#003311;"|COMBATLOG_OBJECT_RAIDTARGET_MASK||0x||0||0||0||0||0||0||'''F'''||'''F'''
 
|-
 
|COMBATLOG_OBJECT_RAIDTARGET8||0x||0||0||0||0||0||0||'''8'''||0
 
|-
 
|class="alt"|COMBATLOG_OBJECT_RAIDTARGET7||0x||0||0||0||0||0||0||'''4'''||0
 
|-
 
|COMBATLOG_OBJECT_RAIDTARGET6||0x||0||0||0||0||0||0||'''2'''||0
 
|-
 
|class="alt"|COMBATLOG_OBJECT_RAIDTARGET5||0x||0||0||0||0||0||0||'''1'''||0
 
|-
 
|COMBATLOG_OBJECT_RAIDTARGET4||0x||0||0||0||0||0||0||0||'''8'''
 
|-
 
|class="alt"|COMBATLOG_OBJECT_RAIDTARGET3||0x||0||0||0||0||0||0||0||'''4'''
 
|-
 
|COMBATLOG_OBJECT_RAIDTARGET2||0x||0||0||0||0||0||0||0||'''2'''
 
|-
 
|class="alt"|COMBATLOG_OBJECT_RAIDTARGET1||0x||0||0||0||0||0||0||0||'''1'''
 
|-
 
|}
 
 
 
Prior to Patch 4.2, these flags were part of the [[unitFlag|Unit Flags]] as follows:
 
 
{| class="darktable"
 
!Constant
 
!colspan="9"|bitfield
 
|-align="center"
 
!colspan="10"|Special cases (non-exclusive)
 
|-
 
|style="background:#003311;"|COMBATLOG_OBJECT_SPECIAL_MASK||0x||'''F'''||'''F'''||'''F'''||'''F'''||0||0||0||0
 
|-
 
|COMBATLOG_OBJECT_RAIDTARGET8||0x||0||'''8'''||0||0||0||0||0||0
 
|-
 
|class="alt"|COMBATLOG_OBJECT_RAIDTARGET7||0x||0||'''4'''||0||0||0||0||0||0
 
|-
 
|COMBATLOG_OBJECT_RAIDTARGET6||0x||0||'''2'''||0||0||0||0||0||0
 
|-
 
|class="alt"|COMBATLOG_OBJECT_RAIDTARGET5||0x||0||'''1'''||0||0||0||0||0||0
 
|-
 
|COMBATLOG_OBJECT_RAIDTARGET4||0x||0||0||'''8'''||0||0||0||0||0
 
|-
 
|class="alt"|COMBATLOG_OBJECT_RAIDTARGET3||0x||0||0||'''4'''||0||0||0||0||0
 
|-
 
|COMBATLOG_OBJECT_RAIDTARGET2||0x||0||0||'''2'''||0||0||0||0||0
 
|-
 
|class="alt"|COMBATLOG_OBJECT_RAIDTARGET1||0x||0||0||'''1'''||0||0||0||0||0
 
|}
 
* Source: [{{wdnlink|FrameXML/Constants.lua}} FrameXML/Constants.lua]
 
 
==Explanation==
 
A raid flag specifies which, if any, raid target is assigned to the associated unit. [[Raid target icons]] are used to display the various charms such as the star, box, and triangle.
 
 
==Example==
 
*A player who is assigned as the first raid target is '''0x01'''
 
*A player who is assigned as the sixth target is '''0x20'''
 
 
if bit.band(raidFlags, COMBATLOG_OBJECT_RAIDTARGET_MASK) > 0 then
 
print("Raid Target")
 
end
 

Revision as of 05:33, 29 June 2011

Licensing

This file was uploaded by the photographer or author.