Back to 'skinning_loot_template' Return to world Go to 'spawn_group'
Field | Type | Attributes | Key | Null | Default | Extra | Comment |
---|---|---|---|---|---|---|---|
entryorguid | int | signed | PRI | NO | |||
source_type | tinyint | unsigned | PRI | NO | 0 | ||
id | smallint | unsigned | PRI | NO | 0 | ||
link | smallint | unsigned | PRI | NO | 0 | ||
event_type | tinyint | unsigned | NO | 0 | |||
event_phase_mask | smallint | unsigned | NO | 0 | |||
event_chance | tinyint | unsigned | NO | 100 | |||
event_flags | smallint | unsigned | NO | 0 | |||
event_param1 | int | unsigned | NO | 0 | |||
event_param2 | int | unsigned | NO | 0 | |||
event_param3 | int | unsigned | NO | 0 | |||
event_param4 | int | unsigned | NO | 0 | |||
event_param5 | int | unsigned | NO | 0 | |||
action_type | tinyint | unsigned | NO | 0 | |||
action_param1 | int | unsigned | NO | 0 | |||
action_param2 | int | unsigned | NO | 0 | |||
action_param3 | int | unsigned | NO | 0 | |||
action_param4 | int | unsigned | NO | 0 | |||
action_param5 | int | unsigned | NO | 0 | |||
action_param6 | int | unsigned | NO | 0 | |||
target_type | tinyint | unsigned | NO | 0 | |||
target_param1 | int | unsigned | NO | 0 | |||
target_param2 | int | unsigned | NO | 0 | |||
target_param3 | int | unsigned | NO | 0 | |||
target_param4 | int | unsigned | NO | 0 | |||
target_x | float | NO | 0 | ||||
target_y | float | NO | 0 | ||||
target_z | float | NO | 0 | ||||
target_o | float | NO | 0 | ||||
comment | mediumtext | NO | Event Comment |
Note: means that the feature/option is not (yet) implemented.
What type to script:
ID | Name | Comment |
---|---|---|
0 | SMART_SCRIPT_TYPE_CREATURE | |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT | |
2 | SMART_SCRIPT_TYPE_AREATRIGGER | |
3 | SMART_SCRIPT_TYPE_EVENT | not yet implemented |
4 | SMART_SCRIPT_TYPE_GOSSIP | not yet implemented |
5 | SMART_SCRIPT_TYPE_QUEST | not yet implemented |
6 | SMART_SCRIPT_TYPE_SPELL | not yet implemented |
7 | SMART_SCRIPT_TYPE_TRANSPORT | not yet implemented |
8 | SMART_SCRIPT_TYPE_INSTANCE | not yet implemented |
9 | SMART_SCRIPT_TYPE_TIMED_ACTIONLIST | |
10 | SMART_SCRIPT_TYPE_SCENE | RESERVED master branch |
11 | SMART_SCRIPT_TYPE_AREATRIGGER_ENTITY | RESERVED master branch |
12 | SMART_SCRIPT_TYPE_AREATRIGGER_ENTITY_SERVERSIDE | RESERVED master branch |
Incremental id bound to each entryorguid + source_type (0, 1, 2, ...).
Simple event linking;
Example: if id = 0 and link = 1; id 1 will only be able to occur if id = 0 was triggered.
Update in combat.
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
9 | SMART_SCRIPT_TYPE_TIMED_ACTIONLIST |
Update out of combat.
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
8 | SMART_SCRIPT_TYPE_INSTANCE |
Health percentage
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
Mana percentage
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
on creature aggro
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On creature / player kill
0
/1
)0
: any)0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On creature death
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On creature enter evade mode
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On creature / gameobject spell hit
enum SpellSchools
(0
: any)
Value | Flag | Name |
---|---|---|
1 | 0x01 | SPELL_SCHOOL_NORMAL |
2 | 0x02 | SPELL_SCHOOL_HOLY |
4 | 0x04 | SPELL_SCHOOL_FIRE |
8 | 0x08 | SPELL_SCHOOL_NATURE |
16 | 0x10 | SPELL_SCHOOL_FROST |
32 | 0x20 | SPELL_SCHOOL_SHADOW |
64 | 0x40 | SPELL_SCHOOL_ARCANE |
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On target in range
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On target in distance out of combat
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On creature / gameobject Respawn
enum SMART_SCRIPT_RESPAWN_CONDITION
SMART_SCRIPT_RESPAWN_CONDITION_NONE | 0 |
SMART_SCRIPT_RESPAWN_CONDITION_MAP | 1 |
SMART_SCRIPT_RESPAWN_CONDITION_AREA | 2 |
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On target health percentage
UNUSED, DO NOT REUSE
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On target casting spell
0
: any)0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On friendly health deficit
UNUSED, DO NOT REUSE
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
Ally is feared, charmed, rooted, stunned or confused
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On friendly lost buff
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On creature / gameobject summoned unit
0
: any)0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On target mana percentage
UNUSED, DO NOT REUSE
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On target accepted quest
0
: any)0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On target rewarded quest
0
: any)0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On creature reached home position
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On receive player emote
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On creature has aura (optional: more or equal stacks to event_param2)
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On target buffed with spell (optional: more or equal stacks to event_param2)
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
Called after combat and when the creature respawns or spawns.
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On target in distance in combat
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On player / creature entered creature (Vehicle)
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On player / creature left creature (Vehicle)
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On creature charmed
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On target charmed
UNUSED, DO NOT REUSE
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On target spell hit
enum SpellSchools
or 0
(any SpellSchool)
Value | Flag | Name |
---|---|---|
1 | 0x01 | SPELL_SCHOOL_NORMAL |
2 | 0x02 | SPELL_SCHOOL_HOLY |
4 | 0x04 | SPELL_SCHOOL_FIRE |
8 | 0x08 | SPELL_SCHOOL_NATURE |
16 | 0x10 | SPELL_SCHOOL_FROST |
32 | 0x20 | SPELL_SCHOOL_SHADOW |
64 | 0x40 | SPELL_SCHOOL_ARCANE |
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On creature damaged
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On target damaged
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
event_type:
SMART_EVENT_MOVEMENTINFORM (34)
event_param1:
enum MovementGeneratorType
IDLE_MOTION_TYPE | 0 | DISTRACT_MOTION_TYPE | 10 | |
RANDOM_MOTION_TYPE | 1 | ASSISTANCE_MOTION_TYPE | 11 | |
WAYPOINT_MOTION_TYPE | 2 | ASSISTANCE_DISTRACT_MOTION_TYPE | 12 | |
MAX_DB_MOTION_TYPE | 3 | TIMED_FLEEING_MOTION_TYPE | 13 | |
CONFUSED_MOTION_TYPE | 4 | FOLLOW_MOTION_TYPE | 14 | |
CHASE_MOTION_TYPE | 5 | ROTATE_MOTION_TYPE | 15 | |
HOME_MOTION_TYPE | 6 | EFFECT_MOTION_TYPE | 16 | |
FLIGHT_MOTION_TYPE | 7 | SPLINE_CHAIN_MOTION_TYPE | 17 | |
POINT_MOTION_TYPE | 8 | FORMATION_MOTION_TYPE | 18 | |
FLEEING_MOTION_TYPE | 9 |
event_param2:
PointID
event_param3:
0
event_param4:
0
event_param5:
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On summoned unit despawned
0
: any)0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On creature corpse removed
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
SmartScript::OnInitialize()
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On creature / gameobject data set (SMART_ACTION_SET_DATA (45))
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On creature waypoint ID started
UNUSED, DO NOT REUSE
0
: any)0
: any)0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On creature waypoint ID reached
0
: any)0
: any)0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
RESERVED for master branch
0
0
0
0
0
valid for source_type
7 | SMART_SCRIPT_TYPE_TRANSPORT |
RESERVED for master branch
0
: any)0
0
0
0
valid for source_type
7 | SMART_SCRIPT_TYPE_TRANSPORT |
RESERVED for master branch
0
0
0
0
0
valid for source_type
7 | SMART_SCRIPT_TYPE_TRANSPORT |
RESERVED for master branch
0
0
0
0
valid for source_type
7 | SMART_SCRIPT_TYPE_TRANSPORT |
RESERVED for master branch
0
: any)0
0
valid for source_type
8 | SMART_SCRIPT_TYPE_INSTANCE |
0
: any)0
0
0
0
valid for source_type
2 | SMART_SCRIPT_TYPE_AREATRIGGER |
On target quest accepted
RESERVED for master branch
0
0
0
0
0
valid for source_type
5 | SMART_SCRIPT_TYPE_QUEST |
On target quest objective completed
RESERVED for master branch
0
0
0
0
0
valid for source_type
5 | SMART_SCRIPT_TYPE_QUEST |
On target quest completed
RESERVED for master branch
0
0
0
0
0
valid for source_type
5 | SMART_SCRIPT_TYPE_QUEST |
On target quest rewarded
RESERVED for master branch
0
0
0
0
0
valid for source_type
5 | SMART_SCRIPT_TYPE_QUEST |
On target quest failed
RESERVED for master branch
0
0
0
0
0
valid for source_type
5 | SMART_SCRIPT_TYPE_QUEST |
On duration ended after SMART_ACTION_TALK (1)
0
: any)0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On creature received healing
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On creature just spawned
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On creature paused at waypoint ID
0
: any)0
: any)0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On Creature resumed after waypoint ID
0
: any)0
: any)0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On creature stopped on waypoint ID
0
: any)0
: any)0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On creature waypoint path ended
0
: any)0
: any)0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On SMART_ACTION_TRIGGER_TIMED_EVENT (73) trigger.
Note: Other ACTION_TIMED_EVENT actions create a SMART_ACTION_TRIGGER_TIMED_EVENT (73) in a roundabout way and will thus also trigger this event indirectly.
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
Update always
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
requires another link to point at this entries id
Used to link together multiple events, does not use any extra resources to iterate event lists needlessly.
0
0
0
0
0
valid for source_type
< any >
Player selects an option from the gossip menu.
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On creature / gameobject first time load
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On right click creature / gameobject that have gossip enabled
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On stop following
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On event phase mask set
UNUSED, DO NOT REUSE
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On creature is behind target
UNUSED, DO NOT REUSE
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On game event started
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On game event ended
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
enum LootState
ID | Name | Comment |
---|---|---|
1 | GO_NOT_READY | |
2 | GO_READY | can be ready but despawned, and then not possible activate until spawn |
3 | GO_ACTIVATE | |
4 | GO_JUST_DEACTIVATED |
0
0
0
0
valid for source_type
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On gameobject emits event
0
0
0
0
valid for source_type
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
manual values or enum EventId passed by SmartAI::DoAction()
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
Player clicked on spellclick enabled creature
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
'friendly' determined by target_type
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On creature guid OR any instance of creature entry is within distance
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On gameobject guid OR any instance of gameobject entry is within distance
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
after SMART_ACTION_SET_COUNTER (63), check if quantity of counterId is equal to value
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
RESERVED for master branch
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
RESERVED for master branch
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
RESERVED for master branch
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
RESERVED for master branch
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
0
: any)0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
on Spell::cast
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
on Unit::InterruptSpell
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
on Spell::prapare
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On before creature removed
0
0
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
When dealing with phases, phase IDs have to be used. There are 13 (12+1) different phases: 1, 2, ... 12 and the default 0.
Example: The script is in phase 0 by default - If we want it to go to phase 1, we got two choices:
SMART_ACTION_INC_PHASE by 1 or SMART_ACTION_SET_PHASE 1
If the script is in phase 0 and want to skip to phase 2:
SMART_ACTION_INC_PHASE by 2 or SMART_ACTION_SET_PHASE 2
If the script is in phase 1 and want to skip to phase 2:
SMART_ACTION_INC_PHASE by 1 or SMART_ACTION_SET_PHASE 2
Value | Flag | Name | Comment |
---|---|---|---|
0 | 0x0000 | SMART_EVENT_PHASE_ALWAYS | Means all phases (1 ... 12) |
1 | 0x0001 | SMART_EVENT_PHASE_1 | |
2 | 0x0002 | SMART_EVENT_PHASE_2 | |
4 | 0x0004 | SMART_EVENT_PHASE_3 | |
8 | 0x0008 | SMART_EVENT_PHASE_4 | |
16 | 0x0010 | SMART_EVENT_PHASE_5 | |
32 | 0x0020 | SMART_EVENT_PHASE_6 | |
64 | 0x0040 | SMART_EVENT_PHASE_7 | |
128 | 0x0080 | SMART_EVENT_PHASE_8 | |
256 | 0x0100 | SMART_EVENT_PHASE_9 | |
512 | 0x0200 | SMART_EVENT_PHASE_10 | |
1024 | 0x0400 | SMART_EVENT_PHASE_11 | |
2048 | 0x0800 | SMART_EVENT_PHASE_12 |
This is the probability of the event to occur as a percentage from 0-100. So, if you want the event to occur roughly half of the time, then set this to 50.
Sets if the event should not repeat or should only happen in a given instance/dungeon difficulty (if applicable):
Value | Flag | Name | Comment |
---|---|---|---|
1 | 0x0001 | SMART_EVENT_FLAG_NOT_REPEATABLE | Event can not repeat |
2 | 0x0002 | SMART_EVENT_FLAG_DIFFICULTY_0 | Event only occurs in instance difficulty 0 |
4 | 0x0004 | SMART_EVENT_FLAG_DIFFICULTY_1 | Event only occurs in instance difficulty 1 |
8 | 0x0008 | SMART_EVENT_FLAG_DIFFICULTY_2 | Event only occurs in instance difficulty 2 |
16 | 0x0010 | SMART_EVENT_FLAG_DIFFICULTY_3 | Event only occurs in instance difficulty 3 |
128 | 0x0080 | SMART_EVENT_FLAG_DEBUG_ONLY | Event only occurs in debug build |
256 | 0x0100 | SMART_EVENT_FLAG_DONT_RESET | Event will not reset in SmartScript::OnReset() |
512 | 0x0200 | SMART_EVENT_FLAG_WHILE_CHARMED | Event occurs even if AI owner is charmed |
No action.
0
0
0
0
0
0
Display a creature text entry.
Note: SMART_EVENT_TEXT_OVER (52) is triggered.
0
0
0
Sets faction of target creatures.
0
: default)0
0
0
0
0
Target creatures take on another appearance.
Note: creature entry takes precedence over DisplayID. If both are
0
, the original appearance is restored.
0
0
0
0
Target units play a sound entry.
0
0
0
Plays an emote as oneshot.
0
0
0
0
0
Fail quest for target players.
0
0
0
0
0
Offer quest to target players.
0
0
0
0
Makes the target react passive, defensive or aggressive.
enum ReactStates
ID | Name | Comment |
---|---|---|
0 | REACT_PASSIVE | Does not defend or attack at all. Does nothing. |
1 | REACT_DEFENSIVE | Only attacks back when attacked. |
2 | REACT_AGGRESSIVE | Will attack if on threat list and in threat radius. (default) |
0
0
0
0
0
Set target gameobjects as active. This opens a door or makes a container lootable.
0
0
0
0
0
0
Play random emote.
Note: An action_param of 0 is skipped and not interpreted as emote: ONESHOT_NONE (0).
Cast spell at targets.
enum SmartCastFlags
Value | Flag | Name | Comment |
---|---|---|---|
1 | 0x01 | SMARTCAST_INTERRUPT_PREVIOUS | Interrupt any spell casting |
2 | 0x02 | SMARTCAST_TRIGGERED | Triggered (this makes spell cost zero mana and have no cast time) |
4 | 0x04 | SMARTCAST_FORCE_CAST | Forces cast even if creature is out of mana or out of range |
8 | 0x08 | SMARTCAST_NO_MELEE_IF_OOM | Prevents creature from entering melee if out of mana or out of range |
16 | 0x10 | SMARTCAST_FORCE_TARGET_SELF | Forces the target to cast this spell on itself |
32 | 0x20 | SMARTCAST_AURA_NOT_PRESENT | Only casts the spell if the target does not have an aura from the spell |
64 | 0x40 | SMARTCAST_COMBAT_MOVE | Prevents combat movement if cast successful. Allows movement on range, OOM, LOS |
enum TriggerCastFlags
Value | Flag | Name | Comment |
---|---|---|---|
1 | 0x00000001 | TRIGGERED_IGNORE_GCD | Will ignore GCD |
2 | 0x00000002 | TRIGGERED_IGNORE_SPELL_AND_CATEGORY_CD | Will ignore Spell and Category cooldowns |
4 | 0x00000004 | TRIGGERED_IGNORE_POWER_AND_REAGENT_COST | Will ignore power and reagent cost |
8 | 0x00000008 | TRIGGERED_IGNORE_CAST_ITEM | Will not take away cast item or update related achievement criteria |
16 | 0x00000010 | TRIGGERED_IGNORE_AURA_SCALING | Will ignore aura scaling |
32 | 0x00000020 | TRIGGERED_IGNORE_CAST_IN_PROGRESS | Will not check if a current cast is in progress |
64 | 0x00000040 | TRIGGERED_IGNORE_COMBO_POINTS | Will ignore combo point requirement |
128 | 0x00000080 | TRIGGERED_CAST_DIRECTLY | In Spell::prepare, will be cast directly without setting containers for executed spell |
256 | 0x00000100 | TRIGGERED_IGNORE_AURA_INTERRUPT_FLAGS | Will ignore interruptible aura's at cast |
512 | 0x00000200 | TRIGGERED_IGNORE_SET_FACING | Will not adjust facing to target (if any) |
1024 | 0x00000400 | TRIGGERED_IGNORE_SHAPESHIFT | Will ignore shapeshift checks |
2048 | 0x00000800 | TRIGGERED_IGNORE_CASTER_AURASTATE | Will ignore caster aura states including combat requirements and death state |
4096 | 0x00001000 | TRIGGERED_DISALLOW_PROC_EVENTS | Disallows proc events from triggered spell (default) |
8192 | 0x00002000 | TRIGGERED_IGNORE_CASTER_MOUNTED_OR_ON_VEHICLE | Will ignore mounted/on vehicle restrictions |
65536 | 0x00010000 | TRIGGERED_IGNORE_CASTER_AURAS | Will ignore caster aura restrictions or requirements |
131072 | 0x00020000 | TRIGGERED_DONT_RESET_PERIODIC_TIMER | Will allow periodic aura timers to keep ticking (instead of resetting) |
262144 | 0x00040000 | TRIGGERED_DONT_REPORT_CAST_ERROR | Will return SPELL_FAILED_DONT_REPORT in CheckCast functions |
524288 | 0x00080000 | TRIGGERED_IGNORE_EQUIPPED_ITEM_REQUIREMENT | Will ignore equipped item requirements |
0
0
0
Summon NPC
enum TempSummonType
ID | Name | Comment |
---|---|---|
1 | TEMPSUMMON_TIMED_OR_DEAD_DESPAWN | despawns after a specified time OR when the creature disappears |
2 | TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN | despawns after a specified time OR when the creature dies |
3 | TEMPSUMMON_TIMED_DESPAWN | despawns after a specified time |
4 | TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT | despawns after a specified time after the creature is out of combat |
5 | TEMPSUMMON_CORPSE_DESPAWN | despawns instantly after death |
6 | TEMPSUMMON_CORPSE_TIMED_DESPAWN | despawns after a specified time after death |
7 | TEMPSUMMON_DEAD_DESPAWN | despawns when the creature disappears |
8 | TEMPSUMMON_MANUAL_DESPAWN | despawns when UnSummon() is called |
0
/1
)0
Change own threat percentage against target units.
0
0
0
0
Change own threat percentage against all units engaged with this creature.
0
0
0
0
Satisfy exploration requirement for quest for target players.
0
0
0
0
0
used on 4.3.4 and higher scripts
0
0
0
0
0
0
Play Emote Continuously. Useful for displaying activity on a NPC (fishing, working, etc.)
0
0
0
0
0
Set multiple flags at once
UNUSED, DO NOT REUSE
0
0
0
0
Remove multiple flags at once
UNUSED, DO NOT REUSE
0
0
0
0
Set if creature can auto attack.
0
0
0
0
0
Set if creature can move during combat.
0
/1
)0
0
0
0
0
Set own event phase. (see event_phase_mask)
0
0
0
0
0
Increment or decrement own event phase. (see event_phase_mask)
Note: only set increment OR decrement, not both.
0
0
0
0
This creature enters evade mode.
Note: SMART_EVENT_EVADE (7) is triggered.
0
0
0
0
0
This creature walks towards nearest ally.
0
0
0
0
0
Like SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS (15) but for the whole party.
0
0
0
0
0
Creature disengages combat.
0
0
0
0
0
0
Removes any or all auras from targets.
An action_param1 = 0 will always remove all auras regardless of other parameters.
0
: all auras)0
: all charges)0
/1
)0
0
0
Creature starts to follow target at distance and angle. Optional quest credit is rewarded upon StopFollow.
0
: default)0
: default)0
Set own event phase to random phase from action_param. (see event_phase_mask)
Note: An action_param of 0 is skipped and not interpreted as SMART_EVENT_PHASE_ALWAYS (0)
Set own event phase to phase in within given range. (see event_phase_mask)
0
0
0
0
Resets active target gameobjects.
0
0
0
0
0
0
Credits a creature kill to satisfy quest RequiredNpcOrGo requirements to target players.
Note: If target is SMART_TARGET_NONE (0) or SMART_TARGET_SELF (1), the kill is credited to all players eligible for loot from this creature.
0
0
0
0
0
Store data in scripted instance this entity is located in.
enum EncounterState
NOT_STARTED | 0 |
IN_PROGRESS | 1 |
FAIL | 2 |
DONE | 3 |
SPECIAL | 4 |
0
0
0
Store target's guid in scripted instance this entity is located in.
0
0
0
0
0
Updates creature template of target creature to given entry.
Can set level from given creature entry.
0
/1
)0
0
0
0
Creature suicides.
0
0
0
0
0
0
Creature engages all players in instanced map.
0
0
0
0
0
0
Allies in range start assisting creature. Must be in combat.
0
0
0
0
Creature draws or puts away it's weapon.
enum SheathState
ID | Name | Comment |
---|---|---|
0 | SHEATH_STATE_UNARMED | non prepared weapon |
1 | SHEATH_STATE_MELEE | prepared melee weapon |
2 | SHEATH_STATE_RANGED | prepared ranged weapon |
0
0
0
0
0
Despawns target creatures / gameobjects.
0
: default respawn)0
0
0
0
Target creatures become damage immune below HP threshold.
Note: Percent value takes precedence over flat value.
0
0
0
0
Target creatures mount / dismount.
Note: creature entry takes precedence over DisplayID. If both are
0
the target dismounts.
0
0
0
0
Set visibility phase mask of all targets.
0
0
0
0
0
Store data in fieldId in AI enabled targets.
0
0
0
0
Target creatures stop melee, spell casting during combat and victim chasing.
0
0
0
0
0
0
Set visibility of unit targets.
0
/1
)0
0
0
0
0
Enables/disables grid active for targets. (They update without a player being present)
0
/1
)0
0
0
0
0
Creature starts attacking random target.
0
0
0
0
0
0
Spawns Gameobject, use target_type to set spawn position.
enum GOSummonType
ID | Name | Comment |
---|---|---|
0 | GO_SUMMON_TIMED_OR_CORPSE_DESPAWN | despawns after a specified time OR when the summoner dies |
1 | GO_SUMMON_TIMED_DESPAWN | despawns after a specified time |
0
0
0
Forces targets to suicide.
0
0
0
0
0
0
Sends target player to flight path.
Note: The player must not be in combat, stunned or rooted.
0
0
0
0
0
Creature starts Waypoint Movement. Use waypoints table to create movement.
0
/1
)0
/1
)0
Creature pauses its Waypoint Movement for given time.
0
0
0
0
0
Creature stops its Waypoint Movement.
action_type:
SMART_ACTION_WP_STOP (55)
action_param1:
despawnTime (in msec.)
action_param2:
quest ID
action_param3:
failQuest?
Quest must be set in action_param2 or by SMART_ACTION_WP_START (53)
action_param4:
0
action_param5:
0
action_param6:
0
Adds count of item to target players.
0
0
0
0
Removes count of item from target players.
0
0
0
0
UNUSED, DO NOT REUSE
0
0
0
0
0
Set if creature can run or must walk.
0
/1
)0
0
0
0
0
Enable/disable smooth aerial movement for creature.
Note: Only works for creatures with INHABIT_AIR (4).
0
0
0
0
0
UNUSED, DO NOT REUSE
0
0
0
0
0
0
Teleport targets to World Position set in the same target definition.
0
0
0
0
0
Store value in counterId in SAI enabled targets.
Note: SMART_EVENT_COUNTER_SET (77) is triggered.
0
0
0
Store selected targets in varID for later use.
0
0
0
0
0
Creature continues paused Waypoint Movement.
0
0
0
0
0
0
Creature turns in a given direction, depending on target.
0
0
0
0
0
Similar to SMART_ACTION_TRIGGER_TIMED_EVENT (73) but delayed and optionally repeatable.
Note: SMART_EVENT_TIMED_EVENT_TRIGGERED (77) will be triggered.
0
: no repeat; in msec.)0
: no repeat; in msec.)0
: 100%)Play movie for target players.
0
0
0
0
0
Move to target Entity or target World Position.
Note: SMART_EVENT_MOVEMENTINFORM (34) is triggered.
0
/1
)0
/1
)0
0
Enable target Gameobjects, not spawned by default.
0
0
0
0
0
Set equipment on target creatures.
Slots 1 – 3 item entries are only used if no equipment ID is set.
0
: 0x7)0
Closes open gossip window.
0
0
0
0
0
0
Note: SMART_EVENT_TIMED_EVENT_TRIGGERED (77) is triggered.
0
0
0
0
0
Delete scheduled Timed Event with id.
0
0
0
0
0
Add aura to target units.
UNUSED, DO NOT REUSE
0
0
0
0
0
0
UNUSED, DO NOT REUSE
0
0
0
0
0
0
UNUSED, DO NOT REUSE
0
0
0
0
0
0
Reset this creature / gameobject.
Note: SMART_EVENT_RESET (25) is triggered.
0
0
0
0
0
0
Sets attack distance and angle for SAI enabled target creatures currenctly in combat.
0
0
0
0
Start TimedActionList on SAI enabled targets.
0
/1
)0
0
0
Replace npcflags on target creature.
0
0
0
0
0
Add npcflags to target creatures.
0
0
0
0
0
Remove npcflags from target creatures.
0
0
0
0
0
Target units will say the text.
Note: SMART_EVENT_TEXT_OVER (52) is not triggered.
0
0
0
0
0
The targets will cast the spell on themselves.
enum SmartCastFlags
Value | Flag | Name | Comment |
---|---|---|---|
1 | 0x01 | SMARTCAST_INTERRUPT_PREVIOUS | Interrupt any spell casting |
2 | 0x02 | SMARTCAST_TRIGGERED | Triggered (this makes spell cost zero mana and have no cast time) |
4 | 0x04 | SMARTCAST_FORCE_CAST | Forces cast even if creature is out of mana or out of range |
8 | 0x08 | SMARTCAST_NO_MELEE_IF_OOM | Prevents creature from entering melee if out of mana or out of range |
16 | 0x10 | SMARTCAST_FORCE_TARGET_SELF | Forces the target to cast this spell on itself |
32 | 0x20 | SMARTCAST_AURA_NOT_PRESENT | Only casts the spell if the target does not have an aura from the spell |
64 | 0x40 | SMARTCAST_COMBAT_MOVE | Prevents combat movement if cast successful. Allows movement on range, OOM, LOS |
enum TriggerCastFlags
Value | Flag | Name | Comment |
---|---|---|---|
1 | 0x00000001 | TRIGGERED_IGNORE_GCD | Will ignore GCD |
2 | 0x00000002 | TRIGGERED_IGNORE_SPELL_AND_CATEGORY_CD | Will ignore Spell and Category cooldowns |
4 | 0x00000004 | TRIGGERED_IGNORE_POWER_AND_REAGENT_COST | Will ignore power and reagent cost |
8 | 0x00000008 | TRIGGERED_IGNORE_CAST_ITEM | Will not take away cast item or update related achievement criteria |
16 | 0x00000010 | TRIGGERED_IGNORE_AURA_SCALING | Will ignore aura scaling |
32 | 0x00000020 | TRIGGERED_IGNORE_CAST_IN_PROGRESS | Will not check if a current cast is in progress |
64 | 0x00000040 | TRIGGERED_IGNORE_COMBO_POINTS | Will ignore combo point requirement |
128 | 0x00000080 | TRIGGERED_CAST_DIRECTLY | In Spell::prepare, will be cast directly without setting containers for executed spell |
256 | 0x00000100 | TRIGGERED_IGNORE_AURA_INTERRUPT_FLAGS | Will ignore interruptible aura's at cast |
512 | 0x00000200 | TRIGGERED_IGNORE_SET_FACING | Will not adjust facing to target (if any) |
1024 | 0x00000400 | TRIGGERED_IGNORE_SHAPESHIFT | Will ignore shapeshift checks |
2048 | 0x00000800 | TRIGGERED_IGNORE_CASTER_AURASTATE | Will ignore caster aura states including combat requirements and death state |
4096 | 0x00001000 | TRIGGERED_DISALLOW_PROC_EVENTS | Disallows proc events from triggered spell (default) |
8192 | 0x00002000 | TRIGGERED_IGNORE_CASTER_MOUNTED_OR_ON_VEHICLE | Will ignore mounted/on vehicle restrictions |
65536 | 0x00010000 | TRIGGERED_IGNORE_CASTER_AURAS | Will ignore caster aura restrictions or requirements |
131072 | 0x00020000 | TRIGGERED_DONT_RESET_PERIODIC_TIMER | Will allow periodic aura timers to keep ticking (instead of resetting) |
262144 | 0x00040000 | TRIGGERED_DONT_REPORT_CAST_ERROR | Will return SPELL_FAILED_DONT_REPORT in CheckCast functions |
524288 | 0x00080000 | TRIGGERED_IGNORE_EQUIPPED_ITEM_REQUIREMENT | Will ignore equipped item requirements |
0
: all targets)0
0
CasterTarget will cast Spell ID on all (regular) targets.
Use with caution when targeting multiple * multiple units.
enum SmartCastFlags
Value | Flag | Name | Comment |
---|---|---|---|
1 | 0x01 | SMARTCAST_INTERRUPT_PREVIOUS | Interrupt any spell casting |
2 | 0x02 | SMARTCAST_TRIGGERED | Triggered (this makes spell cost zero mana and have no cast time) |
4 | 0x04 | SMARTCAST_FORCE_CAST | Forces cast even if creature is out of mana or out of range |
8 | 0x08 | SMARTCAST_NO_MELEE_IF_OOM | Prevents creature from entering melee if out of mana or out of range |
16 | 0x10 | SMARTCAST_FORCE_TARGET_SELF | Forces the target to cast this spell on itself |
32 | 0x20 | SMARTCAST_AURA_NOT_PRESENT | Only casts the spell if the target does not have an aura from the spell |
64 | 0x40 | SMARTCAST_COMBAT_MOVE | Prevents combat movement if cast successful. Allows movement on range, OOM, LOS |
Start random (entryorguid > 0) TimedActionList on SAI enabled targets.
Start random (min <= entryorguid <= max) TimedActionList on SAI enabled targets.
0
0
0
0
Target creatures move maxDist in random direction. If no target was found, this creature moves instead.
0
: use idle movement)0
0
0
0
0
Set BYTES_1 for target units at given offset.
0
0
0
0
Reset BYTES_1 for target units at given offset.
0
0
0
0
Interrupt the current spell being cast by target.
Without Spell ID, the core will find the current spell depending on withDelay and withInstant.
0
/1
)0
/1
)0
0
0
UNUSED, DO NOT REUSE
0
0
0
0
0
0
UNUSED, DO NOT REUSE
0
0
0
0
0
0
UNUSED, DO NOT REUSE
0
0
0
0
0
0
UNUSED, DO NOT REUSE
0
0
0
0
0
0
Target creatures jump to World Position set in the same target definition. Speed* describes the jump arc.
0
0
0
0
Open gossip menu to target players. Can be used together with SMART_EVENT_GOSSIP_HELLO (64) to set custom gossip.
0
0
0
0
Set loot state of target gameobjects.
enum LootState
ID | Name | Comment |
---|---|---|
1 | GO_NOT_READY | |
2 | GO_READY | can be ready but despawned, and then not possible activate until spawn |
3 | GO_ACTIVATE | |
4 | GO_JUST_DEACTIVATED |
0
0
0
0
0
Send targets previously stored with SMART_ACTION_STORE_TARGET_LIST (64), to target creatures / gameobjects.
The other entities can then access them as if it was their own stored list.
0
0
0
0
0
Set Home Position of target creatures.
If target_type is SMART_TARGET_POSITION (8) Home Position is the World Position defined in target, otherwise it's the creatures current position.
0
0
0
0
0
0
Enable/Disable health regeneration for target creatures.
0
/1
)0
0
0
0
0
Root/Unroot target creatures.
0
/1
)0
0
0
0
0
UNUSED, DO NOT REUSE
0
0
0
0
0
0
UNUSED, DO NOT REUSE
0
0
0
0
0
0
UNUSED, DO NOT REUSE
0
0
0
0
0
0
Summon a predefined creature group, attacking event invoker.
0
/1
)0
0
0
0
Set power of target units to given amount.
0
0
0
0
Add given amount of power to target units.
0
0
0
0
Remove given amount of power from target units.
0
0
0
0
Stop currently active game event.
0
0
0
0
0
Start currently inactive game event.
0
0
0
0
0
Make target creatures follow the provided path closest to its location.
Target creatures move to World Position offset set in the same target definition.
0
0
0
0
0
0
Target units play a random sound entry from list.
Set corpse despawn for target creatures.
0
/1
)0
0
0
0
Disable/Enable evade mode for this creature.
0
/1
)0
0
0
0
0
Set state of target gameobjects.
enum GOState
ID | Name | Comment |
---|---|---|
0 | GO_STATE_ACTIVE | show in world as used and not reset (closed door open) |
1 | GO_STATE_READY | show in world as ready (closed door close) |
2 | GO_STATE_DESTROYED | show the object in-game as already used and not yet reset (e.g. door opened by a cannon blast) |
0
0
0
0
0
UNUSED, DO NOT REUSE
0
0
0
0
0
0
UNUSED, DO NOT REUSE
0
0
0
0
0
0
UNUSED, DO NOT REUSE
0
0
0
0
0
0
UNUSED, DO NOT REUSE
0
0
0
0
0
0
Change own threat amount against target units.
0
0
0
0
Load equipment on target creatures.
0
/1
)0
0
0
0
Trigger random (min <= id <= max) Timed Event.
Note: SMART_EVENT_TIMED_EVENT_TRIGGERED (77) is triggered.
0
0
0
0
UNUSED, DO NOT REUSE
0
0
0
0
0
0
Target units pause movement caused by given movement slot.
enum MovementSlot
ID | Name | Comment |
---|---|---|
0 | MOTION_SLOT_DEFAULT | idle, follow, etc. |
1 | MOTION_SLOT_ACTIVE | point movement |
0
/1
)0
0
0
don't use on 3.3.5a
0
0
0
0
0
0
don't use on 3.3.5a
0
0
0
0
0
0
don't use on 3.3.5a
0
0
0
0
0
0
Spawn predefined group of creatures.
enum SMARTAI_SPAWN_FLAGS
Value | Flag | Name |
---|---|---|
1 | 0x01 | SMARTAI_SPAWN_FLAG_IGNORE_RESPAWN |
2 | 0x02 | SMARTAI_SPAWN_FLAG_FORCE_SPAWN |
4 | 0x04 | SMARTAI_SPAWN_FLAG_NOSAVE_RESPAWN |
0
0
Despawn predefined group of creatures.
enum SMARTAI_SPAWN_FLAGS
Value | Flag | Name |
---|---|---|
1 | 0x01 | SMARTAI_SPAWN_FLAG_IGNORE_RESPAWN |
2 | 0x02 | SMARTAI_SPAWN_FLAG_FORCE_SPAWN |
4 | 0x04 | SMARTAI_SPAWN_FLAG_NOSAVE_RESPAWN |
0
0
Respawn a single creature / gameobject.
0
0
0
0
Last invoker will cast spell ID with castFlags on target units.
enum SmartCastFlags
Value | Flag | Name | Comment |
---|---|---|---|
1 | 0x01 | SMARTCAST_INTERRUPT_PREVIOUS | Interrupt any spell casting |
2 | 0x02 | SMARTCAST_TRIGGERED | Triggered (this makes spell cost zero mana and have no cast time) |
4 | 0x04 | SMARTCAST_FORCE_CAST | Forces cast even if creature is out of mana or out of range |
8 | 0x08 | SMARTCAST_NO_MELEE_IF_OOM | Prevents creature from entering melee if out of mana or out of range |
16 | 0x10 | SMARTCAST_FORCE_TARGET_SELF | Forces the target to cast this spell on itself |
32 | 0x20 | SMARTCAST_AURA_NOT_PRESENT | Only casts the spell if the target does not have an aura from the spell |
64 | 0x40 | SMARTCAST_COMBAT_MOVE | Prevents combat movement if cast successful. Allows movement on range, OOM, LOS |
enum TriggerCastFlags
Value | Flag | Name | Comment |
---|---|---|---|
1 | 0x00000001 | TRIGGERED_IGNORE_GCD | Will ignore GCD |
2 | 0x00000002 | TRIGGERED_IGNORE_SPELL_AND_CATEGORY_CD | Will ignore Spell and Category cooldowns |
4 | 0x00000004 | TRIGGERED_IGNORE_POWER_AND_REAGENT_COST | Will ignore power and reagent cost |
8 | 0x00000008 | TRIGGERED_IGNORE_CAST_ITEM | Will not take away cast item or update related achievement criteria |
16 | 0x00000010 | TRIGGERED_IGNORE_AURA_SCALING | Will ignore aura scaling |
32 | 0x00000020 | TRIGGERED_IGNORE_CAST_IN_PROGRESS | Will not check if a current cast is in progress |
64 | 0x00000040 | TRIGGERED_IGNORE_COMBO_POINTS | Will ignore combo point requirement |
128 | 0x00000080 | TRIGGERED_CAST_DIRECTLY | In Spell::prepare, will be cast directly without setting containers for executed spell |
256 | 0x00000100 | TRIGGERED_IGNORE_AURA_INTERRUPT_FLAGS | Will ignore interruptible aura's at cast |
512 | 0x00000200 | TRIGGERED_IGNORE_SET_FACING | Will not adjust facing to target (if any) |
1024 | 0x00000400 | TRIGGERED_IGNORE_SHAPESHIFT | Will ignore shapeshift checks |
2048 | 0x00000800 | TRIGGERED_IGNORE_CASTER_AURASTATE | Will ignore caster aura states including combat requirements and death state |
4096 | 0x00001000 | TRIGGERED_DISALLOW_PROC_EVENTS | Disallows proc events from triggered spell (default) |
8192 | 0x00002000 | TRIGGERED_IGNORE_CASTER_MOUNTED_OR_ON_VEHICLE | Will ignore mounted/on vehicle restrictions |
65536 | 0x00010000 | TRIGGERED_IGNORE_CASTER_AURAS | Will ignore caster aura restrictions or requirements |
131072 | 0x00020000 | TRIGGERED_DONT_RESET_PERIODIC_TIMER | Will allow periodic aura timers to keep ticking (instead of resetting) |
262144 | 0x00040000 | TRIGGERED_DONT_REPORT_CAST_ERROR | Will return SPELL_FAILED_DONT_REPORT in CheckCast functions |
524288 | 0x00080000 | TRIGGERED_IGNORE_EQUIPPED_ITEM_REQUIREMENT | Will ignore equipped item requirements |
0
: all)0
0
Play cinematic for target players.
0
0
0
0
0
Set movement speed of target creatures.
enum MovementGeneratorType
IDLE_MOTION_TYPE | 0 |
RANDOM_MOTION_TYPE | 1 |
WAYPOINT_MOTION_TYPE | 2 |
MAX_DB_MOTION_TYPE | 3 |
CONFUSED_MOTION_TYPE | 4 |
CHASE_MOTION_TYPE | 5 |
HOME_MOTION_TYPE | 6 |
FLIGHT_MOTION_TYPE | 7 |
POINT_MOTION_TYPE | 8 |
FLEEING_MOTION_TYPE | 9 |
DISTRACT_MOTION_TYPE | 10 |
ASSISTANCE_MOTION_TYPE | 11 |
ASSISTANCE_DISTRACT_MOTION_TYPE | 12 |
TIMED_FLEEING_MOTION_TYPE | 13 |
FOLLOW_MOTION_TYPE | 14 |
ROTATE_MOTION_TYPE | 15 |
EFFECT_MOTION_TYPE | 16 |
SPLINE_CHAIN_MOTION_TYPE | 17 |
FORMATION_MOTION_TYPE | 18 |
0
0
0
RESERVED, PENDING CHERRYPICK
0
0
0
0
0
Override skybox visual in area.
0
0
Override weather in area.
0
: low; 1
: full)0
0
0
DEPRECATED, DO REUSE
0
0
0
0
0
0
Enable/Disable hover for target units.
0
/1
)0
0
0
0
0
Set current health percentage of target units.
0
0
0
0
0
don't use on 3.3.5a
0
0
0
0
0
0
Enable/Disable immunity to players of target units.
0
/1
)0
0
0
0
0
Enable/Disable immunity to creatures of target units.
0
/1
)0
0
0
0
0
Make/Reset target units uninteractible.
0
/1
)0
0
0
0
0
Activate target gameobjects, using given action.
enum GameObjectActions
ID | Name | Comment |
---|---|---|
1 | AnimateCustom0 | Animate Custom0 |
2 | AnimateCustom1 | Animate Custom1 |
3 | AnimateCustom2 | Animate Custom2 |
4 | AnimateCustom3 | Animate Custom3 |
5 | Disturb | Disturb - Triggers trap |
6 | Unlock | Unlock - Resets GO_FLAG_LOCKED |
7 | Lock | Lock - Sets GO_FLAG_LOCKED |
8 | Open | Open - Sets GO_STATE_ACTIVE |
9 | OpenAndUnlock | Open + Unlock - Sets GO_STATE_ACTIVE and resets GO_FLAG_LOCKED |
10 | Close | Close - Sets GO_STATE_READY |
11 | ToggleOpen | Toggle Open |
12 | Destroy | Destroy - Sets GO_STATE_DESTROYED |
13 | Rebuild | Rebuild - Resets from GO_STATE_DESTROYED |
14 | Creation | Creation |
15 | Despawn | Despawn |
16 | MakeInert | Make Inert - Disables interactions |
17 | MakeActive | Make Active - Enables interactions |
18 | CloseAndLock | Close + Lock - Sets GO_STATE_READY and sets GO_FLAG_LOCKED |
19 | UseArtKit0 | Use ArtKit0 - 46904: 121 |
20 | UseArtKit1 | Use ArtKit1 - 36639: 81, 46903: 122 |
21 | UseArtKit2 | Use ArtKit2 |
22 | UseArtKit3 | Use ArtKit3 |
23 | SetTapList | Set Tap List |
0
0
0
0
0
Add selected targets to varID for later use.
0
0
0
0
0
don't use on 3.3.5a
0
0
0
0
0
0
RESERVED, PENDING CHERRYPICK
0
0
0
0
RESERVED, PENDING CHERRYPICK
0
0
0
0
0
ID | Name | target_param1 | target_param2 | target_param3 | target_param4 | World Pos. | Comment |
---|---|---|---|---|---|---|---|
0 | SMART_TARGET_NONE | NONE | |||||
1 | SMART_TARGET_SELF | Self cast | |||||
2 | SMART_TARGET_VICTIM | Our current target (ie: highest aggro) | |||||
3 | SMART_TARGET_HOSTILE_SECOND_AGGRO | maxDist | playerOnly? (0/1) | powerType + 1 (0: any) | Second highest aggro | ||
4 | SMART_TARGET_HOSTILE_LAST_AGGRO | maxDist | playerOnly? (0/1) | powerType + 1 (0: any) | Dead last on aggro | ||
5 | SMART_TARGET_HOSTILE_RANDOM | maxDist | playerOnly? (0/1) | powerType + 1 (0: any) | Just any random target on our threat list | ||
6 | SMART_TARGET_HOSTILE_RANDOM_NOT_TOP | maxDist | playerOnly? (0/1) | powerType + 1 (0: any) | Any random target except top threat | ||
7 | SMART_TARGET_ACTION_INVOKER | Unit who caused this Event to occur | |||||
8 | SMART_TARGET_POSITION | x y z o | use xyz from target params | ||||
9 | SMART_TARGET_CREATURE_RANGE | creature entry (0: any) | minDist | maxDist | maxTargets (0: all) | Creatures with specified entry within specified range. | |
10 | SMART_TARGET_CREATURE_GUID | creature guid | creature entry (0: any) | Creature with specified GUID (and entry). | |||
11 | SMART_TARGET_CREATURE_DISTANCE | creature entry (0: any) | maxDist | maxTargets (0: all) | Creatures with specified entry within distance. (Like #9 w/o minDist) | ||
12 | SMART_TARGET_STORED | id | uses pre-stored target (list) | ||||
13 | SMART_TARGET_GAMEOBJECT_RANGE | gameobject entry (0: any) | minDist | maxDist | maxTargets (0: all) | Gameobjects with specified entry within specified range. | |
14 | SMART_TARGET_GAMEOBJECT_GUID | gameobject guid | gameobject entry (0: any) | Gameobject with specified GUID (and entry). | |||
15 | SMART_TARGET_GAMEOBJECT_DISTANCE | gameobject entry (0: any) | maxDist | maxTargets (0: all) | Gameobjects with specified entry within distance. (Like #13 w/o minDist) | ||
16 | SMART_TARGET_INVOKER_PARTY | invoker's party members | |||||
17 | SMART_TARGET_PLAYER_RANGE | minDist | maxDist | Players within specified range. | |||
18 | SMART_TARGET_PLAYER_DISTANCE | maxDist | Player within specified distance. (Like #17 w/o minDist) | ||||
19 | SMART_TARGET_CLOSEST_CREATURE | creature entry (0: any) | maxDist (0: 100m) | dead? (0/1) | Closest creature with specified entry within specified range. | ||
20 | SMART_TARGET_CLOSEST_GAMEOBJECT | gameobject entry (0: any) | maxDist (0: 100m) | Closest gameobject with specified entry within specified range. | |||
21 | SMART_TARGET_CLOSEST_PLAYER | maxDist | Closest player within specified range. | ||||
22 | SMART_TARGET_ACTION_INVOKER_VEHICLE | Unit's vehicle who caused this Event to occur | |||||
23 | SMART_TARGET_OWNER_OR_SUMMONER | Unit's owner or summoner, Use Owner/Charmer of this unit | |||||
24 | SMART_TARGET_THREAT_LIST | maxDist (0: any) | All units on creature's threat list | ||||
25 | SMART_TARGET_CLOSEST_ENEMY | maxDist | playerOnly? (0/1) | Any attackable target (creature or player) within maxDist | |||
26 | SMART_TARGET_CLOSEST_FRIENDLY | maxDist | playerOnly? (0/1) | Any friendly unit (creature, player or pet) within maxDist | |||
27 | SMART_TARGET_LOOT_RECIPIENTS | all players that have tagged this creature (for kill credit) | |||||
28 | SMART_TARGET_FARTHEST | maxDist | playerOnly? (0/1) | isInLos? (0/1) | Farthest unit on the threat list | ||
29 | SMART_TARGET_VEHICLE_PASSENGER | seatMask (0: all seats) | Vehicle can target unit in given seat | ||||
30 | SMART_TARGET_CLOSEST_UNSPAWNED_GAMEOBJECT | gameobject entry (0: any) | maxDist | Closest unspawned gameobject with specified entry within specified range. To be used only with SMART_ACTION_ENABLE_TEMP_GOBJ (70) and gameobjects with negative respawn time in the DB. |
Commenting on SAI uses a template which is the following:
ID | Name |
---|---|
-2 | POWER_HEALTH |
0 | POWER_MANA |
1 | POWER_RAGE |
2 | POWER_FOCUS |
3 | POWER_ENERGY |
4 | POWER_HAPPINESS |
5 | POWER_RUNE |
6 | POWER_RUNIC_POWER |
Back to 'skinning_loot_template' Return to world Go to 'spawn_group'