ACTION_T_TEXT=1,//-TextId1, optionally -TextId2, optionally -TextId3(if -TextId2 exist). If more than just -TextId1 is defined, randomize. Negative values.
ACTION_T_SET_FACTION=2,//FactionId (or 0 for default)
ACTION_T_MORPH_TO_ENTRY_OR_MODEL=3,//Creature_template entry(param1) OR ModelId (param2) (or 0 for both to demorph)
ACTION_T_SOUND=4,//SoundId
ACTION_T_EMOTE=5,//EmoteId
ACTION_T_RANDOM_SAY=6,//UNUSED
ACTION_T_RANDOM_YELL=7,//UNUSED
ACTION_T_RANDOM_TEXTEMOTE=8,//UNUSED
ACTION_T_RANDOM_SOUND=9,//SoundId1, SoundId2, SoundId3 (-1 in any field means no output if randomed that field)
ACTION_T_RANDOM_EMOTE=10,//EmoteId1, EmoteId2, EmoteId3 (-1 in any field means no output if randomed that field)
ACTION_T_CAST=11,//SpellId, Target, CastFlags
ACTION_T_SUMMON=12,//CreatureID, Target, Duration in ms
TARGET_T_HOSTILE,//Our current target (ie: highest aggro)
TARGET_T_HOSTILE_SECOND_AGGRO,//Second highest aggro (generaly used for cleaves and some special attacks)
TARGET_T_HOSTILE_LAST_AGGRO,//Dead last on aggro (no idea what this could be used for)
TARGET_T_HOSTILE_RANDOM,//Just any random target on our threat list
TARGET_T_HOSTILE_RANDOM_NOT_TOP,//Any random target except top threat
//Invoker targets (if pet then returns pet owner)
TARGET_T_ACTION_INVOKER,//Unit who caused this Event to occur (only works for EVENT_T_AGGRO, EVENT_T_KILL, EVENT_T_DEATH, EVENT_T_SPELLHIT, EVENT_T_OOC_LOS, EVENT_T_FRIENDLY_HP, EVENT_T_FRIENDLY_IS_CC, EVENT_T_FRIENDLY_MISSING_BUFF)
//Hostile targets (including pets)
TARGET_T_HOSTILE_WPET,//Current target (can be a pet)
TARGET_T_HOSTILE_WPET_SECOND_AGGRO,//Second highest aggro (generaly used for cleaves and some special attacks)
TARGET_T_HOSTILE_WPET_LAST_AGGRO,//Dead last on aggro (no idea what this could be used for)
TARGET_T_HOSTILE_WPET_RANDOM,//Just any random target on our threat list
TARGET_T_HOSTILE_WPET_RANDOM_NOT_TOP,//Any random target except top threat
TARGET_T_ACTION_INVOKER_WPET,
TARGET_T_END
};
enumCastFlags
{
CAST_INTURRUPT_PREVIOUS=0x01,//Interrupt any spell casting
CAST_TRIGGERED=0x02,//Triggered (this makes spell cost zero mana and have no cast time)
CAST_FORCE_CAST=0x04,//Forces cast even if creature is out of mana or out of range
CAST_NO_MELEE_IF_OOM=0x08,//Prevents creature from entering melee if out of mana or out of range
CAST_FORCE_TARGET_SELF=0x10,//Forces the target to cast this spell on itself
CAST_AURA_NOT_PRESENT=0x20,//Only casts the spell if the target does not have an aura from the spell
};
enumEventFlags
{
EFLAG_REPEATABLE=0x01,//Event repeats
EFLAG_NORMAL=0x02,//Event only occurs in Normal instance difficulty
EFLAG_HEROIC=0x04,//Event only occurs in Heroic instance difficulty
EFLAG_RESERVED_3=0x08,
EFLAG_RESERVED_4=0x10,
EFLAG_RESERVED_5=0x20,
EFLAG_RESERVED_6=0x40,
EFLAG_DEBUG_ONLY=0x80,//Event only occurs in debug build of SD2 only
};
// String text additional data, used in (CreatureEventAI)