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 | text | 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 Pos.
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, when the creature respawn and spawn.
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/NPC Entered Creature (Vehicle)
0
0
0
valid for source_type
0 | SMART_SCRIPT_TYPE_CREATURE |
On Player/NPC 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 TEXT_OVER Event Triggered 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) or SMART_ACTION_TRIGGER_RANDOM_TIMED_EVENT (125) trigger
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 >
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 |
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
Plays 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 threat percentage for single target.
0
0
0
0
Change threat percentage for all targets.
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
Enter Evade mode.
0
0
0
0
0
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 creature.
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
WIP
ID | Name | action_param1 | action_param2 | action_param3 | action_param4 | action_param5 | action_param6 | Comment |
---|---|---|---|---|---|---|---|---|
92 | SMART_ACTION_INTERRUPT_SPELL | withDelayed? (0/1) | Spell ID | withInstant? (0/1) | Interrupt the current spell being cast by target. Without Spell ID, the core will find the current spell depending on withDelay and withInstant. |
|||
93 | SMART_ACTION_SEND_GO_CUSTOM_ANIM | UNUSED, DO NOT REUSE | ||||||
94 | SMART_ACTION_SET_DYNAMIC_FLAG | UNUSED, DO NOT REUSE | ||||||
95 | SMART_ACTION_ADD_DYNAMIC_FLAG | UNUSED, DO NOT REUSE | ||||||
96 | SMART_ACTION_REMOVE_DYNAMIC_FLAG | UNUSED, DO NOT REUSE | ||||||
97 | SMART_ACTION_JUMP_TO_POS | speedXY | speedZ | Creature jumps to target, speed* describes the arc | ||||
98 | SMART_ACTION_SEND_GOSSIP_MENU | MenuID | TextID | Can be used together with SMART_EVENT_GOSSIP_HELLO to set custom gossip. | ||||
99 | SMART_ACTION_GO_SET_LOOT_STATE | state | Set state of target gameobject. | |||||
100 | SMART_ACTION_SEND_TARGET_TO_TARGET | varId | Send targets previously stored with SMART_ACTION_STORE_TARGET, to another npc/go. The other npc/go can then access them as if it was its own stored list. |
|||||
101 | SMART_ACTION_SET_HOME_POS | Set target creatures home pos. to: SMART_TARGET_SELF (1) - creatures current World pos. SMART_TARGET_POSITION (8) - World pos. from target_type NOT SMART_TARGET_NONE (!0) - targets current World pos. |
||||||
102 | SMART_ACTION_SET_HEALTH_REGEN | enable? (0/1) | Enable/Disable health regeneration for target creature. | |||||
103 | SMART_ACTION_SET_ROOT | enable? (0/1) | Root/Unroot target creature. | |||||
104 | SMART_ACTION_SET_GO_FLAG | UNUSED, DO NOT REUSE | ||||||
105 | SMART_ACTION_ADD_GO_FLAG | UNUSED, DO NOT REUSE | ||||||
106 | SMART_ACTION_REMOVE_GO_FLAG | UNUSED, DO NOT REUSE | ||||||
107 | SMART_ACTION_SUMMON_CREATURE_GROUP | groupID | attackInvoker? (0/1) | target not used | ||||
108 | SMART_ACTION_SET_POWER | PowerType | new power | |||||
109 | SMART_ACTION_ADD_POWER | PowerType | power to add | |||||
110 | SMART_ACTION_REMOVE_POWER | PowerType | power to remove | |||||
111 | SMART_ACTION_GAME_EVENT_STOP | eventEntry | ||||||
112 | SMART_ACTION_GAME_EVENT_START | eventEntry | ||||||
113 | SMART_ACTION_START_CLOSEST_WAYPOINT | entry1 | entry2 | entry3 | entry4 | entry5 | entry6 | Make target creature follow waypoint path closest to its location. |
114 | SMART_ACTION_MOVE_OFFSET | Use SMART_TARGET_SELF (1) and also set target World pos. to use as offset. | ||||||
115 | SMART_ACTION_RANDOM_SOUND | SoundEntry ID1 | SoundEntry ID2 | SoundEntry ID3 | SoundEntry ID4 | onlySelf? (0/1) | distantSound? (0/1) | Play random sound from list. |
116 | SMART_ACTION_SET_CORPSE_DELAY | time | includeDecayRatio? (0/1) | Set corpse despawn for target creature. | ||||
117 | SMART_ACTION_DISABLE_EVADE | disabled? (0/1) | Disable/Enable evade mode for target creature. | |||||
118 | SMART_ACTION_GO_SET_GO_STATE | state | Set state for target gameobject. | |||||
119 | SMART_ACTION_SET_CAN_FLY | UNUSED, DO NOT REUSE | ||||||
120 | SMART_ACTION_REMOVE_AURAS_BY_TYPE | UNUSED, DO NOT REUSE | ||||||
121 | SMART_ACTION_SET_SIGHT_DIST | UNUSED, DO NOT REUSE | ||||||
122 | SMART_ACTION_FLEE | UNUSED, DO NOT REUSE | ||||||
123 | SMART_ACTION_ADD_THREAT | flat incr. | flat decr. | Change target threat. | ||||
124 | SMART_ACTION_LOAD_EQUIPMENT | equipment ID | forceUnequip? (0/1) | Load equipment on target creature. | ||||
125 | SMART_ACTION_TRIGGER_RANDOM_TIMED_EVENT | min. id | max. id | |||||
126 | SMART_ACTION_REMOVE_ALL_GAMEOBJECTS | UNUSED, DO NOT REUSE | ||||||
127 | SMART_ACTION_PAUSE_MOVEMENT | MovementSlot | pause in ms | force? (0/1) | ||||
128 | SMART_ACTION_PLAY_ANIMKIT | don't use on 3.3.5a | ||||||
129 | SMART_ACTION_SCENE_PLAY | don't use on 3.3.5a | ||||||
130 | SMART_ACTION_SCENE_CANCEL | don't use on 3.3.5a | ||||||
131 | SMART_ACTION_SPAWN_SPAWNGROUP | groupId | minDelay in sec | maxDelay in sec | spawnFlags | |||
132 | SMART_ACTION_DESPAWN_SPAWNGROUP | groupId | minDelay in sec | maxDelay in sec | spawnFlags | |||
133 | SMART_ACTION_RESPAWN_BY_SPAWNID | type: 0 - creature 1 - gameobject |
guid | Self or target determines the map to repsawn on. | ||||
134 | SMART_ACTION_INVOKER_CAST | Spell ID | CastFlags | TriggeredFlags | maxTargets (0: all) | If avaliable, last invoker will cast spell ID with castFlags on targets. | ||
135 | SMART_ACTION_PLAY_CINEMATIC | CinematicSequence ID | Play cinematic for target player. | |||||
136 | SMART_ACTION_SET_MOVEMENT_SPEED | MovementType | speedInteger | speedInteger | Set movement speed of target creature. | |||
137 | SMART_ACTION_PLAY_SPELL_VISUAL_KIT | SpellVisualKit ID | RESERVED, PENDING CHERRYPICK | |||||
138 | SMART_ACTION_OVERRIDE_LIGHT | AreaTable ID | area Light ID | new Light ID | fadeIn time in ms | Override skybox visual in area. | ||
139 | SMART_ACTION_OVERRIDE_WEATHER | AreaTable ID | Weather ID | intensity (0: low - 1: full) | Override weather in area. | |||
140 | SMART_ACTION_SET_AI_ANIM_KIT | DEPRECATED, DO REUSE | ||||||
141 | SMART_ACTION_SET_HOVER | enable? (01/) | Enable/Disable target unit hover. | |||||
142 | SMART_ACTION_SET_HEALTH_PCT | percent | Set target units current health percentage. | |||||
143 | SMART_ACTION_CREATE_CONVERSATION | don't use on 3.3.5a | ||||||
144 | SMART_ACTION_SET_IMMUNE_PC | enable? (0/1) | Enable/Disable target unit immunity to players. | |||||
145 | SMART_ACTION_SET_IMMUNE_NPC | enable? (0/1) | ||||||
146 | SMART_ACTION_SET_UNINTERACTIBLE | enable? (0/1) | Make/Reset target unit uninteractible. | |||||
147 | SMART_ACTION_ACTIVATE_GAMEOBJECT | action | ||||||
148 | SMART_ACTION_ADD_TO_STORED_TARGET_LIST | varID | ||||||
149 | SMART_ACTION_BECOME_PERSONAL_CLONE_FOR_PLAYER | don't use on 3.3.5a | ||||||
150 | SMART_ACTION_TRIGGER_GAME_EVENT | eventId | useSaiTargetAsGameEventSource | RESERVED, PENDING CHERRYPICK | ||||
151 | SMART_ACTION_DO_ACTION | actionId | RESERVED, PENDING CHERRYPICK |
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 event 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 |
ID | Name |
---|---|
0 | IDLE_MOTION_TYPE |
1 | RANDOM_MOTION_TYPE |
2 | WAYPOINT_MOTION_TYPE |
3 | MAX_DB_MOTION_TYPE |
4 | CONFUSED_MOTION_TYPE |
5 | CHASE_MOTION_TYPE |
6 | HOME_MOTION_TYPE |
7 | FLIGHT_MOTION_TYPE |
8 | POINT_MOTION_TYPE |
9 | FLEEING_MOTION_TYPE |
10 | DISTRACT_MOTION_TYPE |
11 | ASSISTANCE_MOTION_TYPE |
12 | ASSISTANCE_DISTRACT_MOTION_TYPE |
13 | TIMED_FLEEING_MOTION_TYPE |
14 | FOLLOW_MOTION_TYPE |
15 | ROTATE_MOTION_TYPE |
16 | EFFECT_MOTION_TYPE |
17 | SPLINE_CHAIN_MOTION_TYPE |
18 | FORMATION_MOTION_TYPE |
ID | Name | Comment |
---|---|---|
0 | MOTION_SLOT_DEFAULT | idle, follow, etc. |
1 | MOTION_SLOT_ACTIVE | point movement |
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 |
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) |
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 |
Value | Flag | Name |
---|---|---|
1 | 0x01 | SMARTAI_SPAWN_FLAG_IGNORE_RESPAWN |
2 | 0x02 | SMARTAI_SPAWN_FLAG_FORCE_SPAWN |
4 | 0x04 | SMARTAI_SPAWN_FLAG_NOSAVE_RESPAWN |
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 |
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 |
Back to 'skinning_loot_template' Return to world Go to 'spawn_group'