DB/Spell/Targets: Difference between revisions

From wowdev
Jump to navigation Jump to search
(Created page with '{ 0 - Player or target ? Might also be none-individual target 1 - ? (Not used in 3.3.5a on it's own) 2 - ? (Not used in 3.3.5a on it's own) 4 - ? (Not used in 3.3.5a on it's own)…')
 
No edit summary
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{
Copied from trinity core:
0 - Player or target ? Might also be none-individual target
    TARGET_FLAG_NONE            = 0x00000000,
1 - ? (Not used in 3.3.5a on it's own)
    TARGET_FLAG_UNUSED_1        = 0x00000001,              // not used
2 - ? (Not used in 3.3.5a on it's own)
    TARGET_FLAG_UNIT            = 0x00000002,              // pguid
4 - ? (Not used in 3.3.5a on it's own)
    TARGET_FLAG_UNIT_RAID      = 0x00000004,              // not sent, used to validate target (if raid member)
8 - ? (Not used in 3.3.5a on it's own)
    TARGET_FLAG_UNIT_PARTY      = 0x00000008,              // not sent, used to validate target (if party member)
16 - Enchantment (Item in inventory and equipment)
    TARGET_FLAG_ITEM            = 0x00000010,              // pguid
32 - Point-Blank AoE
    TARGET_FLAG_SOURCE_LOCATION = 0x00000020,              // pguid, 3 float
64 - Targetable AoE
    TARGET_FLAG_DEST_LOCATION  = 0x00000040,              // pguid, 3 float
128 - Targetable AoE ?(Bereich auswählbar ? Irgendein Anti-Stealth Spell hat ihn)
    TARGET_FLAG_UNIT_ENEMY      = 0x00000080,              // not sent, used to validate target (if enemy)
256 - Teleport ? Seems general based (Seems to handle every Player in AoE individually)
    TARGET_FLAG_UNIT_ALLY      = 0x00000100,              // not sent, used to validate target (if ally) - Used by teaching spells
512 - Player corpses selectable ? Used for looting insignias.
    TARGET_FLAG_CORPSE_ENEMY    = 0x00000200,              // pguid
1024 - Revives every player in Point-Blank AoE (Spirit Revival)
    TARGET_FLAG_UNIT_DEAD      = 0x00000400,              // not sent, used to validate target (if dead creature)
1026 - Used for skinning (Target corpses ?)
    TARGET_FLAG_GAMEOBJECT      = 0x00000800,              // pguid, used with TARGET_GAMEOBJECT_TARGET
2048 - Spawns something on caster spot ? (Used in a spell that drops object at caster position)
    TARGET_FLAG_TRADE_ITEM      = 0x00001000,              // pguid
4096 - ? (Not used in 3.3.5a on it's own)
    TARGET_FLAG_STRING          = 0x00002000,              // string
8192 -  ? (Not used in 3.3.5a on it's own)
    TARGET_FLAG_GAMEOBJECT_ITEM = 0x00004000,              // not sent, used with TARGET_GAMEOBJECT_ITEM_TARGET
16384 - Target chests ? Used for Lock-opening spells
    TARGET_FLAG_CORPSE_ALLY    = 0x00008000,              // pguid
32768 - ? (Used with non-referenced, passive spells)
    TARGET_FLAG_UNIT_MINIPET    = 0x00010000,              // pguid, used to validate target (if non combat pet)
65536 - ? (Not used in 3.3.5a on it's own)
    TARGET_FLAG_GLYPH_SLOT      = 0x00020000,              // used in glyph spells
131072 - Glyphs (Maybe change how another spell works ?)
    TARGET_FLAG_DEST_TARGET    = 0x00040000,              // sometimes appears with DEST_TARGET spells (may appear or not for a given spell)
}
    TARGET_FLAG_UNUSED20        = 0x00080000,              // uint32 counter, loop { vec3 - screen position (?), guid }, not used so far
    TARGET_FLAG_UNIT_PASSENGER  = 0x00100000,              // guessed, used to validate target (if vehicle passenger)


Based on comparing dbc and in-game spells. Subject to change for the most part. [[User:Ascathos|Ascathos]] 23:13, 16 November 2012 (UTC)
Many values are not used on any spell, but that doesn't mean they're not working since they have been coded server side.
 
Based on comparing dbc and in-game spells. Subject to change for the most part. [[User:Ascathos|Ascathos]] 23:13, 16 November 2012 (UTC):
    0 - Player or target ? Might also be none-individual target
    1 - ? (Not used in 3.3.5a on it's own)
    2 - ? (Not used in 3.3.5a on it's own)
    4 - ? (Not used in 3.3.5a on it's own)
    8 - ? (Not used in 3.3.5a on it's own)
    16 - Enchantment (Item in inventory and equipment)
    32 - Point-Blank AoE
    64 - Targetable AoE
    128 - Targetable AoE ?(Some Stealth-revealing spell AoE has it)
    256 - Teleport ? Seems general based (Seems to handle every Player in AoE individually)
    512 - Player corpses selectable ? Used for looting insignias.
    1024 - Revives every player in Point-Blank AoE (Spirit Revival) Used for skinning (Target corpses ?)
    2048 - Spawns something on caster spot ? (Used in a spell that drops object at caster position)
    4096 - ? (Not used in 3.3.5a on it's own)
    8192 -  ? (Not used in 3.3.5a on it's own)
    16384 - Target chests ? Used for Lock-opening spells
    32768 - ? (Used with non-referenced, passive spells)
    65536 - ? (Not used in 3.3.5a on it's own)
    131072 - Glyphs (Maybe change how another spell works ?)
 
[[Category:Auxiliary]]

Latest revision as of 21:55, 28 December 2017

Copied from trinity core:

   TARGET_FLAG_NONE            = 0x00000000,
   TARGET_FLAG_UNUSED_1        = 0x00000001,               // not used
   TARGET_FLAG_UNIT            = 0x00000002,               // pguid
   TARGET_FLAG_UNIT_RAID       = 0x00000004,               // not sent, used to validate target (if raid member)
   TARGET_FLAG_UNIT_PARTY      = 0x00000008,               // not sent, used to validate target (if party member)
   TARGET_FLAG_ITEM            = 0x00000010,               // pguid
   TARGET_FLAG_SOURCE_LOCATION = 0x00000020,               // pguid, 3 float
   TARGET_FLAG_DEST_LOCATION   = 0x00000040,               // pguid, 3 float
   TARGET_FLAG_UNIT_ENEMY      = 0x00000080,               // not sent, used to validate target (if enemy)
   TARGET_FLAG_UNIT_ALLY       = 0x00000100,               // not sent, used to validate target (if ally) - Used by teaching spells
   TARGET_FLAG_CORPSE_ENEMY    = 0x00000200,               // pguid
   TARGET_FLAG_UNIT_DEAD       = 0x00000400,               // not sent, used to validate target (if dead creature)
   TARGET_FLAG_GAMEOBJECT      = 0x00000800,               // pguid, used with TARGET_GAMEOBJECT_TARGET
   TARGET_FLAG_TRADE_ITEM      = 0x00001000,               // pguid
   TARGET_FLAG_STRING          = 0x00002000,               // string
   TARGET_FLAG_GAMEOBJECT_ITEM = 0x00004000,               // not sent, used with TARGET_GAMEOBJECT_ITEM_TARGET
   TARGET_FLAG_CORPSE_ALLY     = 0x00008000,               // pguid
   TARGET_FLAG_UNIT_MINIPET    = 0x00010000,               // pguid, used to validate target (if non combat pet)
   TARGET_FLAG_GLYPH_SLOT      = 0x00020000,               // used in glyph spells
   TARGET_FLAG_DEST_TARGET     = 0x00040000,               // sometimes appears with DEST_TARGET spells (may appear or not for a given spell)
   TARGET_FLAG_UNUSED20        = 0x00080000,               // uint32 counter, loop { vec3 - screen position (?), guid }, not used so far
   TARGET_FLAG_UNIT_PASSENGER  = 0x00100000,               // guessed, used to validate target (if vehicle passenger)

Many values are not used on any spell, but that doesn't mean they're not working since they have been coded server side.

Based on comparing dbc and in-game spells. Subject to change for the most part. Ascathos 23:13, 16 November 2012 (UTC):

   0 - Player or target ? Might also be none-individual target
   1 - ? (Not used in 3.3.5a on it's own)
   2 - ? (Not used in 3.3.5a on it's own)
   4 - ? (Not used in 3.3.5a on it's own)
   8 - ? (Not used in 3.3.5a on it's own)
   16 - Enchantment (Item in inventory and equipment)
   32 - Point-Blank AoE
   64 - Targetable AoE 
   128 - Targetable AoE ?(Some Stealth-revealing spell AoE has it)
   256 - Teleport ? Seems general based (Seems to handle every Player in AoE individually)
   512 - Player corpses selectable ? Used for looting insignias.
   1024 - Revives every player in Point-Blank AoE (Spirit Revival) Used for skinning (Target corpses ?)
   2048 - Spawns something on caster spot ? (Used in a spell that drops object at caster position)
   4096 - ? (Not used in 3.3.5a on it's own)
   8192 -  ? (Not used in 3.3.5a on it's own)
   16384 - Target chests ? Used for Lock-opening spells
   32768 - ? (Used with non-referenced, passive spells)
   65536 - ? (Not used in 3.3.5a on it's own)
   131072 - Glyphs (Maybe change how another spell works ?)