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 | not yet implemented | |
| 4 | not yet implemented | |
| 5 | not yet implemented | |
| 6 | not yet implemented | |
| 7 | not yet implemented | |
| 8 | not yet implemented | |
| 9 | SMART_SCRIPT_TYPE_TIMED_ACTIONLIST | |
| 10 | RESERVED master branch | |
| 11 | RESERVED master branch | |
| 12 | 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.
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 9 | SMART_SCRIPT_TYPE_TIMED_ACTIONLIST |
Update out of combat.
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
| 8 | SMART_SCRIPT_TYPE_INSTANCE |
Health percentage
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
Mana percentage
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
on creature aggro
00000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On creature / player kill
0: any)0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On creature death
00000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On creature enter evade mode
00000valid 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 |
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On target in range
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On target in distance out of combat
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 |
00valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On target health percentage
UNUSED, DO NOT REUSE
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On target casting spell
0: any)00valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On friendly health deficit
UNUSED, DO NOT REUSE
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
Ally is feared, charmed, rooted, stunned or confused
00valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On friendly lost buff
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On creature / gameobject summoned unit
0: any)00valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On target mana percentage
UNUSED, DO NOT REUSE
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On target accepted quest
0: any)00valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On target rewarded quest
0: any)00valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On creature reached home position
00000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On receive player emote
00valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On creature has aura (optional: more or equal stacks to event_param2)
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On target buffed with spell (optional: more or equal stacks to event_param2)
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
Called after combat and when the creature respawns or spawns.
00000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On target in distance in combat
valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On player / creature entered creature (Vehicle)
000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On player / creature left creature (Vehicle)
000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On creature charmed
0000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On target charmed
UNUSED, DO NOT REUSE
00000valid 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 |
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On creature damaged
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On target damaged
0valid 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)00valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On creature corpse removed
00000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
SmartScript::OnInitialize()
00000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On creature / gameobject data set (SMART_ACTION_SET_DATA (45))
0valid 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)000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On creature waypoint ID reached
0: any)0: any)000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
RESERVED for master branch
00000valid for source_type
| 7 | SMART_SCRIPT_TYPE_TRANSPORT |
RESERVED for master branch
0: any)0000valid for source_type
| 7 | SMART_SCRIPT_TYPE_TRANSPORT |
RESERVED for master branch
00000valid for source_type
| 7 | SMART_SCRIPT_TYPE_TRANSPORT |
RESERVED for master branch
0000valid for source_type
| 7 | SMART_SCRIPT_TYPE_TRANSPORT |
RESERVED for master branch
0: any)00valid for source_type
| 8 | SMART_SCRIPT_TYPE_INSTANCE |
0: any)0000valid for source_type
| 2 | SMART_SCRIPT_TYPE_AREATRIGGER |
On target quest accepted
RESERVED for master branch
00000valid for source_type
| 5 | SMART_SCRIPT_TYPE_QUEST |
On target quest objective completed
RESERVED for master branch
00000valid for source_type
| 5 | SMART_SCRIPT_TYPE_QUEST |
On target quest completed
RESERVED for master branch
00000valid for source_type
| 5 | SMART_SCRIPT_TYPE_QUEST |
On target quest rewarded
RESERVED for master branch
00000valid for source_type
| 5 | SMART_SCRIPT_TYPE_QUEST |
On target quest failed
RESERVED for master branch
00000valid for source_type
| 5 | SMART_SCRIPT_TYPE_QUEST |
On duration ended after SMART_ACTION_TALK (1)
0: any)000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On creature received healing
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On creature just spawned
00000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On creature paused at waypoint ID
0: any)0: any)000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On Creature resumed after waypoint ID
0: any)0: any)000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On creature stopped on waypoint ID
0: any)0: any)000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On creature waypoint path ended
0: any)0: any)000valid 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.
0000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
Update always
0valid 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.
00000valid for source_type
< any >
Player selects an option from the gossip menu.
000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On creature / gameobject first time load
00000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On right click creature / gameobject that have gossip enabled
0000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On stop following
00000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On event phase mask set
UNUSED, DO NOT REUSE
0000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On creature is behind target
UNUSED, DO NOT REUSE
000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On game event started
0000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On game event ended
0000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
enum LootState
| ID | Name | Comment |
|---|---|---|
| 0 | GO_NOT_READY | |
| 1 | GO_READY | can be ready but despawned, and then not possible activate until spawn |
| 2 | GO_ACTIVATE | |
| 3 | GO_JUST_DEACTIVATED |
0000valid for source_type
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
On gameobject emits event
0000valid for source_type
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
manual values or enum EventId passed by SmartAI::DoAction()
0000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
Player clicked on spellclick enabled creature
00000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
'friendly' determined by target_type
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On creature guid OR any instance of creature entry is within distance
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On gameobject guid OR any instance of gameobject entry is within distance
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
after SMART_ACTION_SET_COUNTER (63), check if quantity of counterId is equal to value
0valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
RESERVED for master branch
00000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
RESERVED for master branch
00000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
RESERVED for master branch
00000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
RESERVED for master branch
00000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
0: any)00valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
| 1 | SMART_SCRIPT_TYPE_GAMEOBJECT |
on Spell::cast
00valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
on Unit::InterruptSpell
00valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
on Spell::prapare
00valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On before creature removed
00000valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
UNUSED NEEDS CHERRYPICK
00000don't use on 3.3.5a
00000valid for source_type
| 2 | SMART_SCRIPT_TYPE_AREATRIGGER |
On aura applied
00valid for source_type
| 0 | SMART_SCRIPT_TYPE_CREATURE |
On aura removed
00valid 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.
000000Display a creature text entry.
Note: SMART_EVENT_TEXT_OVER (52) is triggered.
000Sets faction of target creatures.
0: default)00000Target creatures take on another appearance.
Note: creature entry takes precedence over DisplayID. If both are
0, the original appearance is restored.
0000Target units play a sound entry.
000Plays an emote as oneshot.
00000Fail quest for target players.
00000Offer quest to target players.
0000Makes 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) |
00000Set target gameobjects as active. This opens a door or makes a container lootable.
000000Play 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 | Forces cast even if creature is out of mana or out of range | |
| 8 | 0x08 | Prevents creature from entering melee if out of mana or out of range | |
| 16 | 0x10 | 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 |
000Summon 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)0Change own threat percentage against target units.
0000Change own threat percentage against all units engaged with this creature.
0000Satisfy exploration requirement for quest for target players.
00000used on 4.3.4 and higher scripts
000000Play Emote Continuously. Useful for displaying activity on a NPC (fishing, working, etc.)
00000Set multiple flags at once
UNUSED, DO NOT REUSE
0000Remove multiple flags at once
UNUSED, DO NOT REUSE
0000Set if creature can auto attack.
00000Set if creature can move during combat.
0/1)00000Set own event phase. (see event_phase_mask)
00000Increment or decrement own event phase. (see event_phase_mask)
Note: only set increment OR decrement, not both.
0000This creature enters evade mode.
Note: SMART_EVENT_EVADE (7) is triggered.
00000This creature walks towards nearest ally.
00000Like SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS (15) but for the whole party.
00000Creature disengages combat.
000000Removes 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)000Creature starts to follow target at distance and angle. Optional quest credit is rewarded upon StopFollow.
0: default)0: default)0Set 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)
0000Resets active target gameobjects.
000000Credits 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.
00000Store data in scripted instance this entity is located in.
enum EncounterState
| NOT_STARTED | 0 |
| IN_PROGRESS | 1 |
| FAIL | 2 |
| DONE | 3 |
| SPECIAL | 4 |
000Store target's guid in scripted instance this entity is located in.
00000Updates creature template of target creature to given entry.
Can set level from given creature entry.
0/1)0000Creature suicides.
000000Creature engages all players in instanced map.
000000Allies in range start assisting creature. Must be in combat.
0000Creature 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 |
00000Despawns target creatures / gameobjects.
0: default respawn)0000Target creatures become damage immune below HP threshold.
Note: Percent value takes precedence over flat value.
0000Target creatures mount / dismount.
Note: creature entry takes precedence over DisplayID. If both are
0the target dismounts.
0000Set visibility phase mask of all targets.
00000Store data in fieldId in AI enabled targets.
0000Target creatures stop melee, spell casting during combat and victim chasing.
000000Set visibility of unit targets.
0/1)00000Enables/disables grid active for targets. (They update without a player being present)
0/1)00000Creature starts attacking random target.
000000Spawns 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 |
000Forces targets to suicide.
000000Sends target player to flight path.
Note: The player must not be in combat, stunned or rooted.
00000Creature starts Waypoint Movement. Use waypoint_data table to create movement.
0/1)0/1)0Creature pauses its Waypoint Movement for given time.
00000Creature 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.
0000Removes count of item from target players.
0000UNUSED, DO NOT REUSE
00000Set if creature can run or must walk.
0/1)00000Enable/disable smooth aerial movement for creature.
Note: Only works for creatures with INHABIT_AIR (4).
00000UNUSED, DO NOT REUSE
000000Teleport targets to World Position set in the same target definition.
00000Store value in counterId in SAI enabled targets.
Note: SMART_EVENT_COUNTER_SET (77) is triggered.
000Store selected targets in varID for later use.
00000Creature continues paused Waypoint Movement.
000000Creature turns in a given direction, depending on target_type.
SMART_TARGET_SELF (1):
SMART_TARGET_POSITION (8):
< other target selectors >:
action_type:
SMART_ACTION_SET_ORIENTATION (66)
action_param1:
0
action_param2:
0
action_param3:
0
action_param4:
0
action_param5:
0
action_param6:
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.
00000Move to target Entity or target World Position.
Note: SMART_EVENT_MOVEMENTINFORM (34) is triggered.
0/1)0/1)00Enable target Gameobjects, not spawned by default.
00000Set equipment on target creatures.
Slots 1 – 3 item entries are only used if no equipment ID is set.
0: 0x7)0Closes open gossip window.
000000Note: SMART_EVENT_TIMED_EVENT_TRIGGERED (77) is triggered.
00000Delete scheduled Timed Event with id.
00000Add aura to target units.
UNUSED, DO NOT REUSE
000000UNUSED, DO NOT REUSE
000000UNUSED, DO NOT REUSE
000000Reset this creature / gameobject.
Note: SMART_EVENT_RESET (25) is triggered.
000000Sets attack distance and angle for SAI enabled target creatures currenctly in combat.
0000Start TimedActionList on SAI enabled targets.
0/1)000Replace npcflags on target creature.
00000Add npcflags to target creatures.
00000Remove npcflags from target creatures.
00000Target units will say the text.
Note: SMART_EVENT_TEXT_OVER (52) is not triggered.
00000The 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 | Forces cast even if creature is out of mana or out of range | |
| 8 | 0x08 | Prevents creature from entering melee if out of mana or out of range | |
| 16 | 0x10 | 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)00CasterTarget 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 | Forces cast even if creature is out of mana or out of range | |
| 8 | 0x08 | Prevents creature from entering melee if out of mana or out of range | |
| 16 | 0x10 | 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.
0000Target creatures move maxDist in random direction. If no target was found, this creature moves instead.
0: use idle movement)00000Set BYTES_1 for target units at given offset.
0000Reset BYTES_1 for target units at given offset.
0000Interrupt 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)000UNUSED, DO NOT REUSE
000000UNUSED, DO NOT REUSE
000000UNUSED, DO NOT REUSE
000000UNUSED, DO NOT REUSE
000000Target creatures jump to World Position set in the same target definition. Speed* describes the jump arc.
0000Open gossip menu to target players. Can be used together with SMART_EVENT_GOSSIP_HELLO (64) to set custom gossip.
0000Set loot state of target gameobjects.
enum LootState
| ID | Name | Comment |
|---|---|---|
| 0 | GO_NOT_READY | |
| 1 | GO_READY | can be ready but despawned, and then not possible activate until spawn |
| 2 | GO_ACTIVATE | |
| 3 | GO_JUST_DEACTIVATED |
00000Send 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.
00000Set 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.
000000Enable/Disable health regeneration for target creatures.
0/1)00000Root/Unroot target creatures.
0/1)00000UNUSED, DO NOT REUSE
000000UNUSED, DO NOT REUSE
000000UNUSED, DO NOT REUSE
000000Summon a predefined creature group, attacking event invoker.
0/1)0000Set power of target units to given amount.
0000Add given amount of power to target units.
0000Remove given amount of power from target units.
0000Stop currently active game event.
00000Start currently inactive game event.
00000Make target creatures follow the provided path closest to its location.
Target creatures move to World Position offset set in the same target definition.
000000Target units play a random sound entry from list.
Set corpse despawn for target creatures.
0/1)0000Disable/Enable evade mode for this creature.
0/1)00000Set 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) |
00000UNUSED, DO NOT REUSE
000000UNUSED, DO NOT REUSE
000000UNUSED, DO NOT REUSE
000000UNUSED, DO NOT REUSE
000000Change own threat amount against target units.
0000Load equipment on target creatures.
0/1)0000Trigger random (min <= id <= max) Timed Event.
Note: SMART_EVENT_TIMED_EVENT_TRIGGERED (77) is triggered.
0000UNUSED, DO NOT REUSE
000000Target 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: indefinitely0/1)000don't use on 3.3.5a
000000don't use on 3.3.5a
000000don't use on 3.3.5a
000000Spawn 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 |
00Despawn 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 |
00Respawn a single creature / gameobject.
0000Last 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 | Forces cast even if creature is out of mana or out of range | |
| 8 | 0x08 | Prevents creature from entering melee if out of mana or out of range | |
| 16 | 0x10 | 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)00Play cinematic for target players.
00000Set 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 |
000RESERVED, PENDING CHERRYPICK
00000Override skybox visual in area.
00Override weather in area.
0: low; 1: full)000DEPRECATED, DO REUSE
000000Enable/Disable hover for target units.
0/1)00000Set current health percentage of target units.
00000don't use on 3.3.5a
000000Enable/Disable immunity to players of target units.
0/1)00000Enable/Disable immunity to creatures of target units.
0/1)00000Make/Reset target units uninteractible.
0/1)00000Activate 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 |
00000Add selected targets to varID for later use.
00000don't use on 3.3.5a
000000RESERVED, PENDING CHERRYPICK
0000RESERVED, PENDING CHERRYPICK
00000RESERVED, PENDING CHERRYPICK
00000RESERVED, PENDING CHERRYPICK
000000don't use on 3.3.5a
000000RESERVED, PENDING CHERRYPICK
00000RESERVED, PENDING CHERRYPICK
00000RESERVED, PENDING CHERRYPICK
000000Target units resumes movement caused by given movement slot.
action_type:
SMART_ACTION_RESUME_MOVEMENT (158)
enum MovementSlot
| ID | Name | Comment |
|---|---|---|
| 0 | MOTION_SLOT_DEFAULT | idle, follow, etc. |
| 1 | MOTION_SLOT_ACTIVE | point movement |
0: indefinitely0000
| 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'