From 5898b8a8ba79d7d2c1dd210876d2c6c4e1b0d192 Mon Sep 17 00:00:00 2001 From: Stoabrogga <38475780+Stoabrogga@users.noreply.github.com> Date: Fri, 26 Jul 2019 10:05:26 +0200 Subject: Update smart_scripts documentation (#100) --- docs/smart_scripts.md | 2539 ++++++++++++++++++++++++------------------------- 1 file changed, 1252 insertions(+), 1287 deletions(-) (limited to 'docs/smart_scripts.md') diff --git a/docs/smart_scripts.md b/docs/smart_scripts.md index f1ff56c..e3cf150 100644 --- a/docs/smart_scripts.md +++ b/docs/smart_scripts.md @@ -2,7 +2,7 @@ **Table Structure** -
Field |
@@ -16,11 +16,11 @@
|||||||||||||||
| - | bigint(20) |
+int(11) |
signed |
PRI |
NO |
-0 |
+NULL |
|
| ||||||
| - | tinyint(3) |
+smallint(5) |
unsigned |
|
@@ -103,7 +103,7 @@
|||||||||||
| - | tinyint(3) |
+smallint(5) |
unsigned |
|
@@ -115,7 +115,7 @@
|||||||||||
| + | int(10) |
unsigned |
|
||||||||||||
| + | int(10) |
unsigned |
|
||||||||||||
| + | int(10) |
unsigned |
|
||||||||||||
| + | int(10) |
unsigned |
|
||||||||||||
| event_param5 | -int(10) | -unsigned | -- |
-NO | -0 | -- |
-- |
++ | int(10) |
+unsigned |
+
|
+NO |
+0 |
+
|
+
|
| @@ -193,7 +193,7 @@ | |||||||||||||||
| + | int(10) |
unsigned |
|
||||||||||||
| + | int(10) |
unsigned |
|
||||||||||||
| + | int(10) |
unsigned |
|
||||||||||||
| + | int(10) |
unsigned |
|
||||||||||||
| + | int(10) |
unsigned |
|
||||||||||||
| + | int(10) |
unsigned |
|
||||||||||||
| + | int(10) |
unsigned |
|
||||||||||||
| + | int(10) |
unsigned |
|
||||||||||||
| + | int(10) |
unsigned |
|
NO |
-NO |
+0 |
|
|
|||||||
| target_param4 | -int(10) | -unsigned | -- |
-NO | -NO | -- |
-- |
++ | int(10) |
+unsigned |
+
|
+NO |
+0 |
+
|
+
|
| + | float |
-signed |
+
|
|
NO |
@@ -349,9 +350,10 @@
||||||||||
| + | float |
-signed |
+
|
|
NO |
@@ -362,9 +364,10 @@
||||||||||
| + | float |
-signed |
+
|
|
NO |
@@ -375,9 +378,10 @@
||||||||||
| + | float |
-signed |
+
|
|
NO |
@@ -390,12 +394,12 @@
||||||||||
text |
-signed |
|
-NO |
|
+NO |
+NULL |
|
Event Comment |
@@ -405,7 +409,7 @@
**Description of the fields**
-Please note:  means that the feature/option is not (yet) implemented.
+Please note: ❌ means that the feature/option is not (yet) implemented.
### entryorguid
@@ -428,12 +432,12 @@ Please note:  means that the feature/option
| SMART\_SCRIPT\_TYPE\_CREATURE | 0 |
| SMART\_SCRIPT\_TYPE\_GAMEOBJECT | 1 |
| SMART\_SCRIPT\_TYPE\_AREATRIGGER | 2 |
- |  SMART\_SCRIPT\_TYPE\_EVENT | 3 |
- |  SMART\_SCRIPT\_TYPE\_GOSSIP | 4 |
- |  SMART\_SCRIPT\_TYPE\_QUEST | 5 |
- |  SMART\_SCRIPT\_TYPE\_SPELL | 6 |
- |  SMART\_SCRIPT\_TYPE\_TRANSPORT | 7 |
- |  SMART\_SCRIPT\_TYPE\_INSTANCE | 8 |
+ | ❌ SMART\_SCRIPT\_TYPE\_EVENT | 3 |
+ | ❌ SMART\_SCRIPT\_TYPE\_GOSSIP | 4 |
+ | ❌ SMART\_SCRIPT\_TYPE\_QUEST | 5 |
+ | ❌ SMART\_SCRIPT\_TYPE\_SPELL | 6 |
+ | ❌ SMART\_SCRIPT\_TYPE\_TRANSPORT | 7 |
+ | ❌ SMART\_SCRIPT\_TYPE\_INSTANCE | 8 |
| SMART\_SCRIPT\_TYPE\_TIMED\_ACTIONLIST | 9 |
### id
@@ -446,7 +450,7 @@ Please note:  means that the feature/option
-- Example: if id = 0 and link = 1; id 1 will only be able to occur if id = 0 was triggered.
+- Example: if id = 0 and link = 1; id 1 will only be able to occur if id = 0 was triggered (id 1 has to use event\_type SMART\_EVENT\_LINK).
@@ -454,9 +458,9 @@ Please note:  means that the feature/option
### event\_phase\_mask
-When dealing with phases, *phase IDs* have to be used. There are 10 (9+1) different phases: 1, 2, ... 9 and the default 0.
+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:
+**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
@@ -468,18 +472,21 @@ 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
-| Name | Flag | Hex | Comment |
-|----------------------------------|------|-------|----------------------------|
-| SMART\_EVENT\_PHASE\_ALWAYS\_BIT | 0 | 0x000 | Means all phases (1 ... 9) |
-| SMART\_EVENT\_PHASE\_1 | 1 | 0x001 | Phase 1 only. |
-| SMART\_EVENT\_PHASE\_2 | 2 | 0x002 | Phase 2 only. |
-| SMART\_EVENT\_PHASE\_3 | 4 | 0x004 | Phase 3 only. |
-| SMART\_EVENT\_PHASE\_4 | 8 | 0x008 | Phase 4 only. |
-| SMART\_EVENT\_PHASE\_5 | 16 | 0x010 | Phase 5 only. |
-| SMART\_EVENT\_PHASE\_6 | 32 | 0x020 | Phase 6 only. |
-| SMART\_EVENT\_PHASE\_7 | 64 | 0x040 | Phase 7 only. |
-| SMART\_EVENT\_PHASE\_8 | 128 | 0x080 | Phase 8 only. |
-| SMART\_EVENT\_PHASE\_9 | 256 | 0x100 | Phase 9 only. |
+| Name | Flag | Hex | Comment |
+|----------------------------------|------|-------|-----------------------------|
+| SMART\_EVENT\_PHASE\_ALWAYS\_BIT | 0 | 0x000 | Means all phases (1 ... 12) |
+| SMART\_EVENT\_PHASE\_1 | 1 | 0x001 | Phase 1 only. |
+| SMART\_EVENT\_PHASE\_2 | 2 | 0x002 | Phase 2 only. |
+| SMART\_EVENT\_PHASE\_3 | 4 | 0x004 | Phase 3 only. |
+| SMART\_EVENT\_PHASE\_4 | 8 | 0x008 | Phase 4 only. |
+| SMART\_EVENT\_PHASE\_5 | 16 | 0x010 | Phase 5 only. |
+| SMART\_EVENT\_PHASE\_6 | 32 | 0x020 | Phase 6 only. |
+| SMART\_EVENT\_PHASE\_7 | 64 | 0x040 | Phase 7 only. |
+| SMART\_EVENT\_PHASE\_8 | 128 | 0x080 | Phase 8 only. |
+| SMART\_EVENT\_PHASE\_9 | 256 | 0x100 | Phase 9 only. |
+| SMART\_EVENT\_PHASE\_10 | 512 | 0x200 | Phase 10 only. |
+| SMART\_EVENT\_PHASE\_11 | 1024 | 0x400 | Phase 11 only. |
+| SMART\_EVENT\_PHASE\_12 | 2048 | 0x800 | Phase 12 only. |
- Event will only be able to occur if creature/GO is in this phase.
@@ -487,13 +494,9 @@ If the script is in phase 1 and want to skip to phase 2:
- Example: If we want an event to only be able to occure in phase 1 and 4, **event\_phase\_mask** = 1+8 = 9
-
-
-- (Inverse of EAI: event\_inverse\_phase\_mask).
-
### event\_chance
-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.
+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.
### event\_flags
@@ -538,18 +541,18 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
Event only occurs in heroic raid |
||||||
| SMART_EVENT_FLAG_RESERVED_5 | -32 | -0x20 | -- |
+SMART_EVENT_FLAG_RESERVED_5 |
+32 |
+0x20 |
+
|
||||||||
| SMART_EVENT_FLAG_RESERVED_6 | -64 | -0x40 | -- |
+SMART_EVENT_FLAG_RESERVED_6 |
+64 |
+0x40 |
+
|
||||||||
SMART_EVENT_FLAG_DEBUG_ONLY |
@@ -558,23 +561,20 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
Event only occurs in debug build |
||||||||||||||
| SMART_EVENT_FLAG_DONT_RESET | -256 | -0x100 | -Event will not reset in SmartScript::OnReset() | +SMART_EVENT_FLAG_DONT_RESET |
+256 |
+0x100 |
+Event will not reset in SmartScript::OnReset() |
||||||||
| SMART_EVENT_FLAG_WHILE_CHARMED | -512 | -0x200 | -Event can occur while player controlled | +❌ SMART_EVENT_FLAG_WHILE_CHARMED |
+512 |
+0x200 |
+Event can occur while player controlled (not yet implemented, see https://github.com/azerothcore/azerothcore-wotlk/pull/1431) |
Name |
@@ -604,8 +604,8 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
InitialMax |
RepeatMin |
RepeatMax |
-- |
+
|
In combat. |
|||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
InitialMax |
RepeatMin |
RepeatMax |
-- |
+
|
Out of combat. | ||||||||
SMART_EVENT_HEALT_PCT |
+SMART_EVENT_HEALTH_PCT |
2 |
HPMin% |
HPMax% |
RepeatMin |
RepeatMax |
-- |
+
|
Health Percentage |
||||
ManaMax% |
RepeatMin |
RepeatMax |
-- |
+
|
Mana Percentage |
||||||||
|
-- |
+
|
On Creature Aggro | ||||||||||
CooldownMax |
Player only (0/1) |
Creature entry (if param3 is 0) |
-- |
+
|
On Creature Kill | ||||||||
|
-- |
+
|
On Creature Death | ||||||||||
|
-- |
+
|
On Creature Evade Attack | ||||||||||
School |
CooldownMin |
CooldownMax |
-- |
+
|
On Creature/Gameobject Spell Hit | ||||||||
MaxDist |
RepeatMin |
RepeatMax |
-- |
+
|
On Target In Range | ||||||||
SMART_EVENT_RESPAWN |
11 |
-type (None= 0, Map = 1, Area = 2) |
+type (None = 0, Map = 1, Area = 2) |
MapId |
ZoneId |
|
-- |
+
|
On Creature/Gameobject Respawn | ||||
HPMax% |
RepeatMin |
RepeatMax |
-- |
+
|
On Target Health Percentage | ||||||||
Spell id (0 any) |
|
-- |
+
|
On Target Casting Spell | |||||||||
Radius |
RepeatMin |
RepeatMax |
-- |
+
|
On Friendly Health Deficit | ||||||||
RepeatMax |
|
-- |
-- |
+
|
+
|
||||||||
SMART_EVENT_FRIENDLY_MISSING_BUFF |
@@ -795,8 +795,8 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
Radius |
RepeatMin |
RepeatMax |
-- |
+
|
On Friendly Lost Buff | |||||||
CooldownMax |
|
-- |
+
|
On Creature/Gameobject Summoned Unit | |||||||||
ManaMax% |
RepeatMin |
RepeatMax |
-- |
+
|
On Target Mana Percentage | ||||||||
|
-- |
+
|
On Target Accepted Quest | ||||||||||
|
-- |
+
|
On Target Rewarded Quest | ||||||||||
|
-- |
+
|
On Creature Reached Home | ||||||||||
SMART_EVENT_RECEIVE_EMOTE |
22 |
-+ | CooldownMin |
CooldownMax |
-condition |
-- |
++ |
|
On Receive Emote. | ||||
Stacks |
RepeatMin |
RepeatMax |
-- |
+
|
On Creature Has Aura | ||||||||
Stacks |
RepeatMin |
RepeatMax |
-- |
+
|
On Target Buffed With Spell | ||||||||
|
-- |
+
|
After Combat, On Respawn or Spawn | ||||||||||
|
-- |
-- |
+
|
+
|
|||||||||
SMART_EVENT_PASSENGER_REMOVED |
@@ -946,23 +946,24 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
-- |
-- |
+
|
+
|
||||||||
SMART_EVENT_CHARMED |
29 |
-0 (on charm apply) / 1 (on charm remove) |
|
|
|
-- |
+
|
+
|
On Creature Charmed | ||||
|
-- |
+
|
On Target Charmed | ||||||||||
School |
RepeatMin |
RepeatMax |
-- |
+
|
On Target Spell Hit | ||||||||
MaxDmg |
RepeatMin |
RepeatMax |
-- |
+
|
On Creature Damaged | ||||||||
MaxDmg |
RepeatMin |
RepeatMax |
-- |
+
|
On Target Damaged | ||||||||
|
-- |
-WAYPOINT_MOTION_TYPE = 2, POINT_MOTION_TYPE = 8 | +
|
+ESCORT_MOTION_TYPE = 17, POINT_MOTION_TYPE = 8 | |||||||||
SMART_EVENT_SUMMON_DESPAWNED |
@@ -1034,8 +1035,8 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
CooldownMax |
|
-- |
+
|
On Summoned Unit Despawned | ||||||||
|
-- |
+
|
On Creature Corpse Removed | ||||||||||
|
-- |
-- |
+
|
+
|
|||||||||
SMART_EVENT_DATA_SET |
@@ -1076,8 +1077,8 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
Value |
CooldownMin |
CooldownMax |
-- |
+
|
On Creature/Gameobject Data Set, Can be used with SMART_ACTION_SET_DATA | |||||||
|
-- |
+
|
On Creature Waypoint ID Started | ||||||||||
|
-- |
+
|
On Creature Waypoint ID Reached | ||||||||||
-
❌ SMART_EVENT_TRANSPORT_ADDPLAYER |
41 |
|
|
-- |
-- |
+
|
+
|
||||||
-
❌ SMART_EVENT_TRANSPORT_ADDCREATURE |
42 |
Entry (0 any) |
@@ -1136,14 +1137,14 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
-- |
-- |
+
|
+
|
||||||
-
❌ SMART_EVENT_TRANSPORT_REMOVE_PLAYER |
43 |
|
|
-- |
-- |
+
|
+
|
||||||
-
❌ SMART_EVENT_TRANSPORT_RELOCATE |
44 |
PointId |
@@ -1171,14 +1172,14 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
-- |
-- |
+
|
+
|
||||||
-
❌ SMART_EVENT_INSTANCE_PLAYER_ENTER |
45 |
Team (0 any) |
@@ -1186,10 +1187,10 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
CooldownMax |
|
-- |
-- |
+
|
+
|
|||||
SMART_EVENT_AREATRIGGER_ONTRIGGER |
@@ -1201,14 +1202,14 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
-- |
-- |
+
|
+
|
||||||||
-
❌ SMART_EVENT_QUEST_ACCEPTED |
47 |
|
|
-- |
+
|
On Target Quest Accepted | |||||||
-
❌ SMART_EVENT_QUEST_OBJ_COMPLETION |
48 |
|
|
-- |
+
|
On Target Quest Objective Completed | |||||||
-
❌ SMART_EVENT_QUEST_COMPLETION |
49 |
|
|
-- |
+
|
On Target Quest Completed | |||||||
-
❌ SMART_EVENT_QUEST_REWARDED |
50 |
|
|
-- |
+
|
On Target Quest Rewarded | |||||||
-
❌ SMART_EVENT_QUEST_FAIL |
51 |
|
|
-- |
+
|
On Target Quest Field | |||||||
SMART_EVENT_TEXT_OVER |
52 |
-GroupId (from creature_text) |
-Creature.Id (0 any) |
++ | creature.id (0 any) |
+
|
|
|
-- |
On TEXT_OVER Event Triggered After SMART_ACTION_TALK | |||
MaxHeal |
CooldownMin |
CooldownMax |
-- |
+
|
On Creature Received Healing | ||||||||
|
-- |
+
|
On Creature Just spawned | ||||||||||
|
-- |
+
|
On Creature Paused at Waypoint ID | ||||||||||
|
-- |
+
|
On Creature Resumed after Waypoint ID | ||||||||||
|
-- |
+
|
On Creature Stopped On Waypoint ID | ||||||||||
|
-- |
+
|
On Creature Waypoint Path Ended | ||||||||||
|
-- |
-- |
+
|
+
|
|||||||||
SMART_EVENT_UPDATE |
@@ -1404,10 +1405,10 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
InitialMax |
RepeatMin |
RepeatMax |
-- |
-- |
+
|
+
|
||||||
SMART_EVENT_LINK |
@@ -1420,22 +1421,22 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
-- |
+
|
Used to link together multiple events as a chain of events. | |||||||||
SMART_EVENT_GOSSIP_SELECT |
62 |
-- | + | + |
|
|
-- |
-On gossip clicked (gossip_menu_option). | +
|
+On gossip clicked (gossip_menu_option). | |||
SMART_EVENT_JUST_CREATED |
@@ -1448,10 +1449,10 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
-- |
-- |
+
|
+
|
||||||||
SMART_EVENT_GOSSIP_HELLO |
@@ -1464,8 +1465,8 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
-- |
+
|
On Right-Click Creature/Gameobject that have gossip enabled. | |||||||||
|
-- |
-- |
+
|
+
|
|||||||||
- SMART_EVENT_EVENT_PHASE_CHANGE +SMART_EVENT_UNUSED_66 |
66 |
-event phase mask |
|
|
|
-- |
-On event phase mask set | +
|
+
|
+UNUSED | |||
SMART_EVENT_IS_BEHIND_TARGET |
@@ -1509,37 +1511,37 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
-- |
+
|
On Creature is behind target. | |||||||||
SMART_EVENT_GAME_EVENT_START |
68 |
-+ | + |
|
|
|
|
-- |
-On game_event started. | +On game_event started. | |||
SMART_EVENT_GAME_EVENT_END |
69 |
-+ |
|
|
|
-- |
-On game_event ended. | +
|
+On game_event ended. | ||||
SMART_EVENT_GO_STATE_CHANGED |
@@ -1551,10 +1553,10 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
-- |
-- |
+
|
+
|
||||||||
SMART_EVENT_GO_EVENT_INFORM |
@@ -1566,10 +1568,10 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
-- |
-- |
+
|
+
|
||||||||
SMART_EVENT_ACTION_DONE |
@@ -1581,38 +1583,38 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
-- |
-- |
+
|
+
|
||||||||
| SMART_EVENT_ON_SPELLCLICK | 73 | -- |
-- |
-- |
-- |
-- |
-- |
+
|
+
|
+
|
+
|
+
|
+
|
| SMART_EVENT_FRIENDLY_HEALTH_PCT | 74 | -minHpPct | -maxHpPct | -repeatMin | +minHpPct |
+maxHpPct |
+repeatMin |
repeatMax |
-- |
-- |
+
|
+
|
|
| SMART_EVENT_DISTANCE_CREATURE | @@ -1621,8 +1623,8 @@ This is the probability of the event to occur as a percentage from 0-100. So, ifdatabase entry | distance | repeat interval (ms) | -- |
+
|
On creature guid OR any instance of creature entry is within distance. |
|||||||
| database entry | distance | repeat interval (ms) | -- |
+
|
On gameobject guid OR any instance of gameobject entry is within distance. |
||||||||
| value | cooldownMin | cooldownMax | -- |
-If the value of specified counterID is equal to a specified value | +
|
+If the value of specified counterID is equal to a specified value |
Name |
@@ -1687,8 +1689,8 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SMART_ACTION_TALK |
1 |
-- | Duration to wait before SMART_EVENT_TEXT_OVER is triggered. |
++ | Duration to wait before SMART_EVENT_TEXT_OVER is triggered. |
0 It will try to trigger talk of the target
1 Set target as talk target (used for $vars in texts and whisper target) |
| ||||||||||
SMART_ACTION_SET_FACTION |
2 |
-FactionID (or 0 for default) |
+FactionID (or 0 for default) |
|
| ||||||||||||
SMART_ACTION_MORPH_TO_ENTRY_OR_MODEL |
3 |
-Creature_template.entry(param1) |
-Creature_template.modelID(param2) |
+creature_template.entry(param1) |
+creature_template.modelidx(param2) |
|
| 4 |
SoundId |
onlySelf (0/1) |
-Distant Sound (0/1) |
|
|
|
-Play Sound; TextRange = 0 only sends sound to self, TextRange = 1 sends sound to everyone in visibility range |
+
|
+Play Sound; onlySelf = 1 only sends sound to self, onlySelf = 0 sends sound to everyone in visibility range |
SMART_ACTION_PLAY_EMOTE |
5 |
-+ |
|
| |||||||||||||
SMART_ACTION_OFFER_QUEST |
7 |
-+ | directAdd (0/1) |
|
@@ -1794,7 +1797,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|||||||||||||
SMART_ACTION_SET_REACT_STATE |
8 |
-+ |
|
| |||||||||||||
SMART_ACTION_RANDOM_EMOTE |
10 |
-- | - | EmoteId3 |
-Emote4 |
-Emote5 |
-Emote6 |
++ | + | + | + | + | Play Random Emote |
||||
SMART_ACTION_CAST |
11 |
SpellId |
-- | triggeredFlags |
++ | limitTargets (0 = all targets) |
|
|
|
-Cast Spell ID at Target |
+Cast Spell ID at Target(s) |
||||||
SMART_ACTION_SUMMON_CREATURE |
12 |
creature_template.entry |
-+ | duration in ms |
-attackInvoker |
-
|
+attackInvoker (0/1/2) |
+attackScriptOwner (0/1) |
|
-Summon Unit |
+Summon Unit; attackInvoker 1: attack target; attackInvoker 2: attack actual invoker |
||||||
SMART_ACTION_THREAT_SINGLE_PCT |
@@ -1895,7 +1897,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|||||||||||||||||
SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS |
15 |
-+ |
|
|
|||||||||||||
SMART_ACTION_SET_INGAME_PHASE_ID |
+SMART_ACTION_RESERVED_16 |
16 |
-phaseId |
-apply/remove (1/0) |
+
|
+
|
|
| |||||||||
SMART_ACTION_SET_EMOTE_STATE |
17 |
-+ |
|
| 18 |
(may be more than one field OR'd together) |
type -If false set creature_template.unit_flags -If true set creature_template.unit_flags2 |
+
|
| 19 |
(may be more than one field OR'd together) |
type -If false set creature_template.unit_flags -If true set creature_template.unit_flags2 |
+
|
| |||
SMART_ACTION_SET_EVENT_PHASE |
22 |
-smart_scripts.event_phase_mask |
+
|
|
|
-Set event phase 0-9 (the actual values, no bit mask!) |
+Set event phase 0-12 (the actual values, no bit mask!) |
||||||||||
SMART_ACTION_INC_EVENT_PHASE |
@@ -2073,7 +2077,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|||||||||||||||||
SMART_ACTION_CALL_GROUPEVENTHAPPENS |
26 |
-+ |
|
| |||||||||||||
SMART_ACTION_COMBAT_STOP |
27 |
-- |
+
|
|
| ||||||||||||
SMART_ACTION_REMOVEAURASFROMSPELL |
28 |
-Spellid |
+Spellid (0 removes all auras) |
+charges (0 removes aura) |
|
|
|
-0 removes all auras |
|||||||||
SMART_ACTION_FOLLOW |
29 |
Distance (0 = Default value) |
Angle (0 = Default value) |
-+ | credit |
-creditType (0monsterkill, 1event) |
+creditType (0 monsterkill, 1 event) |
|
Follow Target |
@@ -2136,20 +2140,20 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
||||||||
SMART_ACTION_RANDOM_PHASE |
30 |
-smart_scripts.event_phase_mask1 |
-- | smart_scripts.event_phase_mask 3 |
-smart_scripts.event_phase_mask 4 |
-smart_scripts.event_phase_mask 5 |
-+ | + | + | + | + | + |
|
||||
SMART_ACTION_RANDOM_PHASE_RANGE |
31 |
-smart_scripts.event_phase_mask minimum |
-smart_scripts.event_phase_mask maximum |
+event_phase_mask minimum |
+event_phase_mask maximum |
|
| ||||||||||
SMART_ACTION_CALL_KILLEDMONSTER |
33 |
-Creature_template.entry |
+
|
|
|
-This is the ID from quest_template.RequiredNpcOrGo |
+This is the ID from quest_template.RequiredNpcOrGo |
||||||||||
SMART_ACTION_SET_INST_DATA |
34 |
Field |
Data |
-Type (0 = SetData, 1 = SetBossState) |
+
|
|
| ||||||||||
SMART_ACTION_UPDATE_TEMPLATE |
36 |
-Creature_template.entry |
+Update Level |
|
@@ -2341,7 +2346,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_ACTION_MOUNT_TO_ENTRY_OR_MODEL |
43 |
creature_template.entry |
-+ |
|
| Mount to Creature Entry (param1) OR Mount to Creature Display (param2) Or both = 0 for Unmount |
||||||
SMART_ACTION_SET_INGAME_PHASE_MASK (for 3.3.5) -SMART_ACTION_SET_INGAME_PHASE_GROUP (for 4.3.4 +) |
+SMART_ACTION_SET_INGAME_PHASE_MASK |
44 |
-creature.phasemask (3.3.5) -creature.phasegroup (4.3.4 +) |
-0 = remove / 1 = add (4.3.4+ only) |
++ | mask |
|
|
|
-Makes creature Visible = 1 or Invisible = 0 |
+Makes creature Visible = 1 or Invisible = 0 |
||||||
SMART_ACTION_SET_ACTIVE |
@@ -2453,17 +2456,16 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|||||||||||||||||
SMART_ACTION_SUMMON_GO |
50 |
-+ | De-spawn time in seconds. |
-0 - For despawn when the summoner despawn or time runs out -1 - For despawn when time runs out |
+targetSummon (0/1) |
|
|
|
-Spawns Gameobject, use target_type to set spawn position. |
+Spawns Gameobject, use target_type to set spawn position; if an entity is specified as target and also coordinates are set (target x,y,z) those coordinates are handled as offset from the target's position; if targetSummon is 1 then the target will summon the GO on the position of the actor |
|||||||
SMART_ACTION_KILL_UNIT |
@@ -2502,12 +2504,12 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_ACTION_WP_START |
53 |
0 = walk / 1 = run |
-+ | canRepeat |
-+ | despawntime |
reactState |
-Creature starts Waypoint Movement. Use waypoints table to create movement. |
+Creature starts Waypoint Movement. Use waypoints table to create movement. |
|||||||
SMART_ACTION_WP_PAUSE |
@@ -2529,7 +2531,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_ACTION_WP_STOP |
55 |
despawnTime |
-+ | fail (0/1) |
|
@@ -2542,7 +2544,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|||||||||||
SMART_ACTION_ADD_ITEM |
56 |
-+ | count |
|
@@ -2557,7 +2559,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|||||||||||||
SMART_ACTION_REMOVE_ITEM |
57 |
-+ | count |
|
@@ -2572,7 +2574,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|||||||||||||
SMART_ACTION_INSTALL_AI_TEMPLATE |
58 |
-TemplateID (see Predefined SAI templates below) |
+TemplateID (see Predefined SAI templates below) |
|
| ||||||||||||
SMART_ACTION_TELEPORT |
62 |
-+ |
|
| |||||||||||||
SMART_ACTION_SET_ORIENTATION |
66 |
-Depends on the script target.if SMART_TARGET_SELF, facing will be the same as in HomePosition, For SMART_TARGET_POSITION you need to set target_o : 0 = North, West = 1.5, South = 3, East = 4.5 |
+Depends on the script target. If SMART_TARGET_SELF, facing will be the same as in HomePosition, For SMART_TARGET_POSITION you need to set target_o : 0 = North, West = 1.5, South = 3, East = 4.5 |
|
| ||||||||||||
SMART_ACTION_EQUIP |
71 |
-+ | Slotmask |
-Slot1 (item_template.entry) |
-Slot2 (item_template.entry) |
-Slot3 (item_template.entry) |
+Slot1 (item_template.entry) |
+Slot2 (item_template.entry) |
+Slot3 (item_template.entry) |
|
only slots with mask set will be sent to client, bits are 1, 2, 4, leaving mask 0 is defaulted to mask 7 (send all), Slots1-3 are only used if no Param1 is set |
@@ -2925,7 +2927,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
||||||
SMART_ACTION_CALL_TIMED_ACTIONLIST |
80 |
-EntryOrGuid * 100 (smart_scripts.entryorguid with 00 added after the entry, or 01, 02, 03 etc. for multiple action lists) |
+EntryOrGuid * 100 (entryorguid with 00 added after the entry, or 01, 02, 03 etc. for multiple action lists) |
timer update type(0 OOC, 1 IC, 2 ALWAYS) |
|
@@ -2941,7 +2943,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
||||||||||||
SMART_ACTION_SET_NPC_FLAG |
81 |
-+ |
|
| |||||||||||||
SMART_ACTION_ADD_NPC_FLAG |
82 |
-+ |
|
| |||||||||||||
SMART_ACTION_REMOVE_NPC_FLAG |
83 |
-+ |
|
|