From 3dadcd2f56bab9ccab5c9924ef7111053f0832d2 Mon Sep 17 00:00:00 2001
From: Stoabrogga <38475780+Stoabrogga@users.noreply.github.com>
Date: Tue, 30 Jul 2019 13:12:41 +0200
Subject: Update waypoints and scripts documentation (#102)
---
_includes/azerothcore/sidebar.html | 1 +
docs/Waypoints-Information.md | 105 ++++++++
docs/event_scripts.md | 33 ++-
docs/script_waypoint.md | 138 ++--------
docs/scripts.md | 534 +++++++++++++------------------------
docs/smart_scripts.md | 149 ++++++-----
docs/spell_scripts.md | 35 ++-
docs/waypoint_data.md | 42 ++-
docs/waypoint_scripts.md | 37 ++-
docs/waypoints.md | 38 +--
10 files changed, 493 insertions(+), 619 deletions(-)
create mode 100644 docs/Waypoints-Information.md
diff --git a/_includes/azerothcore/sidebar.html b/_includes/azerothcore/sidebar.html
index 585a19a..70ba818 100644
--- a/_includes/azerothcore/sidebar.html
+++ b/_includes/azerothcore/sidebar.html
@@ -41,6 +41,7 @@
diff --git a/docs/Waypoints-Information.md b/docs/Waypoints-Information.md
new file mode 100644
index 0000000..d14cdcf
--- /dev/null
+++ b/docs/Waypoints-Information.md
@@ -0,0 +1,105 @@
+### Different kinds of waypoint paths
+
+- Waypoint paths directly attached to a creature via [creature_addon.path_id](creature_addon#path_id) use the tables [waypoint_data](waypoint_data) and [waypoint_scripts](waypoint_scripts). They can be added and manipulated using the GM '.wp' commands.
+- [SmartAI](smart_scripts) uses waypoint paths defined in table [waypoints](waypoints).
+- The table [script_waypoint](script_waypoint) contains waypoint paths for [CreatureAI](https://github.com/azerothcore/azerothcore-wotlk/blob/master/src/server/game/AI/ScriptedAI/ScriptedCreature.h#L159).
+
+### Overview of GM '.wp' commands
+
+- ```.wp add``` [waypoint_data.id](waypoint_data#id): Add a new point for the specified path id. It is recommended to use creature GUID * 10 or GUID * 100 as path id, but it can be any random number.
+- ```.wp reload``` [waypoint_data.id](waypoint_data#id): Reload the specified path id (for new paths has to be executed before ```.wp load```).
+- ```.wp load``` [waypoint_data.id](waypoint_data#id): Load the specified path id for the selected creature.
+- ```.wp unload```: Unload the path of the selected creature.
+- ```.wp show on``` [waypoint_data.id](waypoint_data#id): Show all waypoints of the specified path (GM on is required to actually see them). If no path id is specified shows the waypoints of the selected creature.
+- ```.wp show off```: Hide all visual waypoints.
+- ```.wp show info```: Show information about the selected waypoint.
+- ```.wp modify```: Modify the selected waypoint, options:
+ - ```del```: Delete the selected waypoint.
+ - ```move```: Move the selected waypoint to the position of the GM.
+ - ```delay```: Change the [delay](waypoint_data#delay) of the selected waypoint.
+ - ```action```: Change the [action](scripts#id) of the selected waypoint.
+ - ```action_chance```: Change the [action_chance](waypoint_data#action_chance) of the selected waypoint.
+ - ```move_type```: Change the [move_type](waypoint_data#move_type) of the selected waypoint (0: walk, 1: run, 2: fly).
+- ```.wp event```: Modify the waypoint [actions](scripts#id), options:
+ - ```add``` [guid](scripts#guid): Add a new action with the specified GUID (not to be confused with the creature GUID!). If no GUID is specified a new one is generated automatically.
+ - ```listid``` [action](scripts#id): Show information about the specified action id.
+ - ```del``` [guid](scripts#guid): Delete the action with the specified GUID.
+ - ```mod``` [guid](scripts#guid): Modify the action with the specified GUID, further options:
+ - ```setid``` [action](scripts#id): Set a new action id.
+ - ```delay``` [delay](scripts#delay): Set a specific delay before the script activates.
+ - ```command``` [command](scripts#command): Set the command for this script.
+ - ```datalong``` [datalong](scripts#datalong): Set the datalong for this script.
+ - ```datalong2``` [datalong2](scripts#datalong2): Set the datalong2 for this script.
+ - ```dataint``` [dataint](scripts#dataint): Set the dataint for this script.
+ - ```posx``` [posx](scripts#posx): Set the posx for this script.
+ - ```posy``` [posy](scripts#posy): Set the posy for this script.
+ - ```posz``` [posz](scripts#posz): Set the posz for this script.
+ - ```orientation``` [orientation](scripts#orientation): Set the orientation for this script.
+
+### Example for path creation using GM '.wp' commands
+
+Example creature GUID: 1234567, example path id: 123456700
+
+- Create a macro 'wp1' with this command:
+ ```
+ .wp add 123456700
+ ```
+- Create a macro 'wp2' with these commands:
+ ```
+ .wp reload 123456700
+ .wp load 123456700
+ ```
+- Create a macro 'wp3' with this command:
+ ```
+ .wp show on 123456700
+ ```
+- Create a macro 'wp4' with this command:
+ ```
+ .wp show off 123456700
+ ```
+- Teleport to the creature:
+ ```
+ .go creature 1234567
+ ```
+- Use macro 'wp1'
+- Create the path:
+ - Go to the position where the next waypoint should be and use macro 'wp1'
+ - repeat until all waypoints are set (don't forget to also create a path back to the starting position)
+ - use macros 'wp3' and 'wp4' to show / hide the path (GM on required to actually see the path)
+ - ensure that the waypoints are not too far away from each other, especially if the creature is walking over hills etc. as it will try to directly move to the next waypoint, even if this means going through the ground
+- Select the creature and use macro 'wp2'; it should now start moving
+
+### A few helpful SQL statements
+
+#### Delete path
+
+- Select the creature, then unload the path:
+ ```
+ .wp unload
+ ```
+
+- Delete the path from the DB, for example 123456700:
+ ```sql
+ DELETE FROM `waypoint_data` WHERE `id` = 123456700;
+ ```
+
+#### Take over the waypoints from 'waypoint_data' to 'waypoints' (SmartAI)
+
+If you need the waypoints for SmartAI you have to copy the waypoints from table [waypoint_data](waypoint_data) into table [waypoints](waypoints) and then delete the original waypoints (unload the path for the creature via ```.wp unload``` if it was loaded before). Here an example for path 123456700:
+```sql
+INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`)
+ SELECT `id`,`point`,`position_x`,`position_y`,`position_z` FROM `waypoint_data` WHERE `id` = 123456700;
+DELETE FROM `waypoint_data` WHERE `id` = 123456700;
+```
+
+#### Take over the waypoints from 'waypoint_data' to 'script_waypoint' (CreatureAI)
+
+The same as above, but now for [script_waypoint](script_waypoint) instead of [waypoints](waypoints). The entry of [script_waypoint](script_waypoint) has to be the [creature_template.entry](creature_template#entry), here for example 1234567:
+```sql
+INSERT INTO `script_waypoint` (`entry`,`pointid`,`location_x`,`location_y`,`location_z`)
+ SELECT 1234567 AS `entry`,`point`,`position_x`,`position_y`,`position_z` FROM `waypoint_data` WHERE `id` = 123456700;
+DELETE FROM `waypoint_data` WHERE `id` = 123456700;
+
+```
+Don't forget to unload the path from the creature if it was loaded before.
+
diff --git a/docs/event_scripts.md b/docs/event_scripts.md
index f62a3b7..5a9bba9 100644
--- a/docs/event_scripts.md
+++ b/docs/event_scripts.md
@@ -1,14 +1,23 @@
[Database Structure](Database-Structure) > [World-Database](World-Database) > [event_scripts](event_scripts)
-Column | Type | Description
---- | --- | ---
-Id | mediumint(8) unsigned |
-Delay | int(10) unsigned |
-Command | mediumint(8) unsigned |
-Datalong | mediumint(8) unsigned |
-Datalong2 | int(10) unsigned |
-Dataint | int(11) |
-X | float |
-Y | float |
-Z | float |
-O | float |
+# event\_scripts
+
+### Information
+
+Holds scripts activated whenever an event is activated, be it by an object or as the spell effect SPELL\_EFFECT\_SEND\_EVENT (61).
+
+### Structure
+
+| Field | Type | Attributes | Key | Null | Default |
+|----------------------------------|--------------|--------------|-----|------|---------|
+| [id](scripts#id) | mediumint(8) | unsigned | | NO | 0 |
+| [delay](scripts#delay) | int(10) | unsigned | | NO | 0 |
+| [command](scripts#command) | mediumint(8) | unsigned | | NO | 0 |
+| [datalong](scripts#otherfields) | mediumint(8) | unsigned | | NO | 0 |
+| [datalong2](scripts#otherfields) | int(10) | unsigned | | NO | 0 |
+| [dataint](scripts#otherfields) | int(11) | | | NO | 0 |
+| [x](scripts#otherfields) | float | | | NO | 0 |
+| [y](scripts#otherfields) | float | | | NO | 0 |
+| [z](scripts#otherfields) | float | | | NO | 0 |
+| [o](scripts#otherfields) | float | | | NO | 0 |
+
diff --git a/docs/script_waypoint.md b/docs/script_waypoint.md
index 8631c3f..b25cfda 100644
--- a/docs/script_waypoint.md
+++ b/docs/script_waypoint.md
@@ -1,134 +1,50 @@
+[Database Structure](Database-Structure) > [World-Database](World-Database) > [script_waypoint](script_waypoint)
+
# script\_waypoint
-[<-Back-to:World](database-world.md)
-
-**The \`script\_waypoint\` table**
-
-`table-no-description`
-
-**Structure**
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Field |
-Type |
-Attributes |
-Key |
-Null |
-Default |
-Extra |
-Comment |
-
-
-entry |
-mediumint(8) |
-unsigned |
-PRI |
-NO |
-0 |
- |
-creature_template entry |
-
-
-point_id |
-mediumint(8) |
-unsigned |
-PRI |
-NO |
-0 |
- |
- |
-
-
-location_x |
-float |
-signed |
- |
-NO |
-0 |
- |
- |
-
-
-location_y |
-float |
-signed |
- |
-NO |
-0 |
- |
- |
-
-
-location_z |
-float |
-signed |
- |
-NO |
-0 |
- |
- |
-
-
-waittime |
-int(10) |
-unsigned |
- |
-NO |
-0 |
- |
- |
-
-
-point_comment |
-text |
-signed |
- |
-YES |
-NULL |
- |
-waittime in millisecs |
-
-
-
-
-**Description of the fields**
+###### **Used by [CreatureAI](https://github.com/azerothcore/azerothcore-wotlk/blob/master/src/server/game/AI/ScriptedAI/ScriptedCreature.h#L159)**
+
+### Information
+
+Used for CreatureAI waypoint movement. See also [Waypoints-Information](Waypoints-Information) for general information about waypoints.
+
+### Structure
+
+| Field | Type | Attributes | Key | Null | Default |
+|----------------------------------|--------------|------------|-----|------|---------|
+| [entry](creature_template#entry) | mediumint(8) | unsigned | PRI | NO | 0 |
+| [pointid](#pointid) | mediumint(8) | unsigned | PRI | NO | 0 |
+| [location_x](#location_x) | float | | | NO | 0 |
+| [location_y](#location_y) | float | | | NO | 0 |
+| [location_z](#location_z) | float | | | NO | 0 |
+| [waittime](#waittime) | int(10) | unsigned | | NO | 0 |
+| [point_comment](#point_comment) | text | | | YES | NULL |
### entry
-`field-no-description|1`
+Entry of the creature, see [creature\_template.entry](creature_template#entry).
### pointid
-`field-no-description|2`
+Unique ID for each waypoint. Starts at 1 and increases with each waypoint.
### location\_x
-`field-no-description|3`
+The X coordinate of the destination waypoint.
### location\_y
-`field-no-description|4`
+The Y coordinate of the destination waypoint.
### location\_z
-`field-no-description|5`
+The Z coordinate of the destination waypoint.
### waittime
-`field-no-description|6`
+Wait time in milliseconds.
### point\_comment
-`field-no-description|7`
+Text comment.
+
diff --git a/docs/scripts.md b/docs/scripts.md
index 4a1bfce..7193cde 100644
--- a/docs/scripts.md
+++ b/docs/scripts.md
@@ -1,203 +1,45 @@
-# scripts
+[Database Structure](Database-Structure) > [World-Database](World-Database) > [scripts](scripts)
-[<-Back-to:World](database-world.md)
+# scripts
# Tables: \*\*\*\_scripts
This table format is used for 3 different tables to control possible scripts activated by different actions:
-**spell\_scripts:** Holds scripts that can be activated by spells with effect SPELL\_EFFECT\_SCRIPT\_EFFECT (77) or SPELL\_EFFECT\_DUMMY(3).
+**[spell\_scripts](spell_scripts):** Holds scripts that can be activated by spells with effect SPELL\_EFFECT\_SCRIPT\_EFFECT (77) or SPELL\_EFFECT\_DUMMY(3).
-**event\_scripts:** Holds scripts activated whenever an event is activated, be it by an object or as the spell effect SPELL\_EFFECT\_SEND\_EVENT (61).
+**[event\_scripts](event_scripts):** Holds scripts activated whenever an event is activated, be it by an object or as the spell effect SPELL\_EFFECT\_SEND\_EVENT (61).
-**waypoint\_scripts:** Holds scripts used in the [waypoint\_data](waypoint_data) table.
+**[waypoint\_scripts](waypoint_scripts):** Holds scripts used in the [waypoint\_data](waypoint_data) table. See also [Waypoints-Information](Waypoints-Information) for general information about waypoints.
NOTE: An entry in this table may have more than one row as a script may do more than just one action. Also each action the script may make can have a separate delay attached to it. In that case, the core will activate the appropriate action after the correct delay.
## **Structure**
-
-
-
-| Field |
-Type |
-Attributes |
-Key |
-Null |
-Default |
-Extra |
-Comment |
-
-
-| id |
-mediumint(8) |
-unsigned |
-
- |
-NO |
-0 |
-
- |
-
- |
-
-
-| effIndex [1] |
-tinyint(3) |
-unsigned |
-
- |
-NO |
-0 |
-
- |
-
- |
-
-
-| delay |
-int(10) |
-unsigned |
-
- |
-NO |
-0 |
-
- |
-
- |
-
-
-| command |
-mediumint(8) |
-unsigned |
-
- |
-NO |
-0 |
-
- |
-
- |
-
-
-| datalong |
-mediumint(8) |
-unsigned |
-
- |
-NO |
-0 |
-
- |
-
- |
-
-
-| datalong2 |
-int(10) |
-unsigned |
-
- |
-NO |
-0 |
-
- |
-
- |
-
-
-| dataint |
-int(11) |
-signed |
-
- |
-NO |
-0 |
-
- |
-
- |
-
-
-| x |
-float |
-signed |
-
- |
-NO |
-0 |
-
- |
-
- |
-
-
-| y |
-float |
-signed |
-
- |
-NO |
-0 |
-
- |
-
- |
-
-
-| z |
-float |
-signed |
-
- |
-NO |
-0 |
-
- |
-
- |
-
-
-| o |
-float |
-signed |
-
- |
-NO |
-0 |
-
- |
-
- |
-
-
-| guid [2] |
-int(11) |
-signed |
-PRI |
-NO |
-0 |
-
- |
-
- |
-
-
-
-
-1 present in spell\_scripts table only.
-2 present in waypoint\_scripts table only.
+| Field | Comment
+|---------------------------|--------
+| [id](#id) |
+| [effIndex](#effindex) | only used in [spell\_scripts](spell_scripts)
+| [delay](#delay) |
+| [command](#command) |
+| [datalong](#otherfields) |
+| [datalong2](#otherfields) |
+| [dataint](#otherfields) |
+| [x](#otherfields) |
+| [y](#otherfields) |
+| [z](#otherfields) |
+| [o](#otherfields) |
+| [guid](#guid) | only used in [waypoint\_scripts](waypoint_scripts); acts as primary key and is set automatically using the [GM command](GM-Commands) 'wp event add'
## **Description of the fields**
### id
-For **spell\_scripts**, it is the spell ID. See [Spell.dbc](https://trinitycore.atlassian.net/wiki/display/tc/Spell)
+For **spell\_scripts**, it is the spell ID. See [Spell.dbc](Spell)
For **event\_scripts**, it is the event ID. There doesn't exist currently a full list of events. In any case, the event IDs are taken directly from gameobject WDB data or spell effect data. If both a gameobject and a spell activate the same event, the IDs will match.
-For **waypoint\_scripts**, it is the [action](waypoint_data_2130114.html#waypoint_data-action) ID.
+For **waypoint\_scripts**, it is the [action](waypoint_data#action) ID.
### effIndex
@@ -209,236 +51,234 @@ Delay in seconds before this current step of the script activates. 0 = instant.
### command
-The type of action performed by the script after [delay](#scripts-delay) seconds have passed. The value of this field affects what other fields also need to be set. The following commands can be used:
-
-| Command | Name | Description |
-|---------|------------------------|--------------------------------------------------------------------------|
-| 0 | TALK | Creature say/whisper/yell/textemote. |
-| 1 | EMOTE | Play emote on creature. |
-| 2 | FIELD\_SET | Change the value at an index for the player. |
-| 3 | MOVE\_TO | Relocate creature to a destination. |
-| 4 | FLAG\_SET | Turns on bits on a flag field at an index for the player. |
-| 5 | FLAG\_REMOVE | Turns off bits on a flag field at an index for the player. |
-| 6 | TELEPORT\_TO | Teleports the player to a location. |
-| 7 | QUEST\_EXPLORED | Satisfies the explore requirement for a quest. |
-| 8 | KILL\_CREDIT | Gives kill credit to the player. |
-| 9 | RESPAWN\_GAMEOBJECT | Spawns a despawned gameobject. |
-| 10 | TEMP\_SUMMON\_CREATURE | Temporarily summons a creature. |
-| 11 | OPEN\_DOOR | Opens a door gameobject (type h1. 0). |
-| 12 | CLOSE\_DOOR | Closes a door gameobject (type 0). |
-| 13 | ACTIVATE\_OBJECT | Activates an object. |
-| 14 | REMOVE\_AURA | Removes an aura due to a spell. |
-| 15 | CAST\_SPELL | Casts a spell. |
-| 16 | PLAY\_SOUND | Plays a sound. |
-| 17 | CREATE\_ITEM | Creates specified amount of items for the player. |
-| 18 | DESPAWN\_SELF | Forces creature to despawn. |
-| 19 | nuttin | There is no command 19. |
-| 20 | LOAD\_PATH | Load path to unit, then unit starts waypoint movement. |
-| 21 | CALLSCRIPT\_TO\_UNIT | Calls script from one of \*\_scripts table with given unit as source. |
-| 22 | KILL | Changes state of the creature to dead and optionally removes its corpse. |
-| 30 | ORIENTATION | Changes unit's orientation (Used in Waypoint Scripts) |
-| 31 | EQUIP | Sets creature equipment. |
-| 32 | MODEL | Sets creature model. |
-| 33 | CLOSE\_GOSSIP | Closes gossip window. This command is only used for Gossip Scripts. |
-| 34 | PLAYMOVIE | Plays movie. |
-| 35 | MOVEMENT | Change movement type. |
+The type of action performed by the script after [delay](#delay) seconds have passed. The value of this field affects what other fields also need to be set. The following commands can be used:
+
+| Command | Name | Description |
+|---------|--------------------------------------------------------------------|--------------------------------------------------------------------------|
+| 0 | [TALK](#script_command_talk--0) | Creature say/whisper/yell/textemote. |
+| 1 | [EMOTE](#script_command_emote--1) | Play emote on creature. |
+| 2 | [FIELD\_SET](#script_command_field_set--2) | Change the value at an index for the player. |
+| 3 | [MOVE\_TO](#script_command_move_to--3) | Relocate creature to a destination. |
+| 4 | [FLAG\_SET](#script_command_flag_set--4) | Turns on bits on a flag field at an index for the player. |
+| 5 | [FLAG\_REMOVE](#script_command_flag_remove--5) | Turns off bits on a flag field at an index for the player. |
+| 6 | [TELEPORT\_TO](#script_command_teleport_to--6) | Teleports the player to a location. |
+| 7 | [QUEST\_EXPLORED](#script_command_quest_explored--7) | Satisfies the explore requirement for a quest. |
+| 8 | [KILL\_CREDIT](#script_command_kill_credit--8) | Gives kill credit to the player. |
+| 9 | [RESPAWN\_GAMEOBJECT](#script_command_respawn_gameobject--9) | Spawns a despawned gameobject. |
+| 10 | [TEMP\_SUMMON\_CREATURE](#script_command_temp_summon_creature--10) | Temporarily summons a creature. |
+| 11 | [OPEN\_DOOR](#script_command_open_door--11) | Opens a door gameobject (type h1. 0). |
+| 12 | [CLOSE\_DOOR](#script_command_close_door--12) | Closes a door gameobject (type 0). |
+| 13 | [ACTIVATE\_OBJECT](#script_command_activate_object--13) | Activates an object. |
+| 14 | [REMOVE\_AURA](#script_command_remove_aura--14) | Removes an aura due to a spell. |
+| 15 | [CAST\_SPELL](#script_command_cast_spell--15) | Casts a spell. |
+| 16 | [PLAY\_SOUND](#script_command_play_sound--16) | Plays a sound. |
+| 17 | [CREATE\_ITEM](#script_command_create_item--17) | Creates specified amount of items for the player. |
+| 18 | [DESPAWN\_SELF](#script_command_despawn_self--18) | Forces creature to despawn. |
+| 20 | [LOAD\_PATH](#script_command_load_path--20) | Load path to unit, then unit starts waypoint movement. |
+| 21 | [CALLSCRIPT\_TO\_UNIT](#script_command_callscript_to_unit--21) | Calls script from one of \*\_scripts table with given unit as source. |
+| 22 | [KILL](#script_command_kill--22) | Changes state of the creature to dead and optionally removes its corpse. |
+| 30 | [ORIENTATION](#script_command_orientation--30) | Changes unit's orientation (Used in Waypoint Scripts) |
+| 31 | [EQUIP](#script_command_equip--31) | Sets creature equipment. |
+| 32 | [MODEL](#script_command_model--32) | Sets creature model. |
+| 33 | [CLOSE\_GOSSIP](#script_command_close_gossip--33) | Closes gossip window. This command is only used for Gossip Scripts. |
+| 34 | [PLAYMOVIE](#script_command_playmovie--34) | Plays movie. |
+| 35 | [MOVEMENT](#script_command_movement--35) | Change movement type. |
### OtherFields
Depending on what command was used, the meaning and use for the following fields varies.
-\***SCRIPT\_COMMAND\_TALK = 0**
+#### \*SCRIPT\_COMMAND\_TALK = 0
-- - source: Creature.
- - target: any/Player (for whisper).
- - datalong: 0=say, 1=yell, 2=text emote, 3=boss emote, 4=whisper 5=boss whisper
- - dataint: reference to [broadcast\_text.id](broadcast_text)
+- source: Creature.
+- target: any/Player (for whisper).
+- datalong: 0=say, 1=yell, 2=text emote, 3=boss emote, 4=whisper 5=boss whisper
+- dataint: reference to [broadcast\_text.id](broadcast_text)
-\***SCRIPT\_COMMAND\_EMOTE = 1**
+#### \*SCRIPT\_COMMAND\_EMOTE = 1
-- - source or target: Creature.
- - datalong: The emote ID to play.
- - datalong2: If this value is > 0 the npc will play emote state rather than oneshot.
+- source or target: Creature.
+- datalong: The emote ID to play.
+- datalong2: If this value is > 0 the npc will play emote state rather than oneshot.
-\***SCRIPT\_COMMAND\_FIELD\_SET = 2**
+#### \*SCRIPT\_COMMAND\_FIELD\_SET = 2
-- - source or target: Creature.
- - datalong: Index of the field.
- - datalong2: Value to place at the index.
+- source or target: Creature.
+- datalong: Index of the field.
+- datalong2: Value to place at the index.
-\***SCRIPT\_COMMAND\_MOVE\_TO = 3**
+#### \*SCRIPT\_COMMAND\_MOVE\_TO = 3
-- - source: Creature.
- - datalong2: Length (in time) of the motion.
- - x: X position to move to.
- - y: Y position to move to.
- - z: Z position to move to.
+- source: Creature.
+- datalong2: Length (in time) of the motion.
+- x: X position to move to.
+- y: Y position to move to.
+- z: Z position to move to.
-\***SCRIPT\_COMMAND\_FLAG\_SET = 4**
+#### \*SCRIPT\_COMMAND\_FLAG\_SET = 4
-- - source or target: Creature.
- - datalong: Field index to be set.
- - datalong2: Flag bit(s) to set.
+- source or target: Creature.
+- datalong: Field index to be set.
+- datalong2: Flag bit(s) to set.
-\***SCRIPT\_COMMAND\_FLAG\_REMOVE = 5**
+#### \*SCRIPT\_COMMAND\_FLAG\_REMOVE = 5
-- - source or target: Creature.
- - datalong: Field index to be unset.
- - datalong2: Flag bit(s) to unset.
+- source or target: Creature.
+- datalong: Field index to be unset.
+- datalong2: Flag bit(s) to unset.
-\***SCRIPT\_COMMAND\_TELEPORT\_TO = 6**
+#### \*SCRIPT\_COMMAND\_TELEPORT\_TO = 6
-- - source or target: Player (datalong2 0) or Creature (datalong2 1).
- - datalong: Target Map ID. See [Map.dbc](https://trinitycore.atlassian.net/wiki/display/tc/Map)
- - x: Teleport target x coordinate.
- - y: Teleport target y coordinate.
- - z: Teleport target z coordinate.
- - o: Teleport target orientation.
+- source or target: Player (datalong2 0) or Creature (datalong2 1).
+- datalong: Target Map ID. See [Map.dbc](Map)
+- x: Teleport target x coordinate.
+- y: Teleport target y coordinate.
+- z: Teleport target z coordinate.
+- o: Teleport target orientation.
-\***SCRIPT\_COMMAND\_QUEST\_EXPLORED = 7**
+#### \*SCRIPT\_COMMAND\_QUEST\_EXPLORED = 7
-- - source or target: Player.
- - target or source: WorldObject.
- - datalong: Quest entry which external status should be satisfied. See [quest\_template.entry](quest_template_2130261.html#quest_template-entry).
- - datalong2: Distance away from the NPC/object that the player can be and have the script still take effect (min value 5).
+- source or target: Player.
+- target or source: WorldObject.
+- datalong: Quest entry which external status should be satisfied. See [quest\_template.id](quest_template#id).
+- datalong2: Distance away from the NPC/object that the player can be and have the script still take effect (min value 5).
-\***SCRIPT\_COMMAND\_KILL\_CREDIT = 8**
+#### \*SCRIPT\_COMMAND\_KILL\_CREDIT = 8
-- - target or source: Player.
- - datalong: Creatue entry of kill credit. See [creature\_template.entry](creature_template_2130008.html#creature_template-entry).
- - datalong2: If value > 0 gives kill credit to the whole group player belongs to, otherwise, gives personal kill credit.
+- target or source: Player.
+- datalong: Creatue entry of kill credit. See [creature\_template.entry](creature_template#entry).
+- datalong2: If value > 0 gives kill credit to the whole group player belongs to, otherwise, gives personal kill credit.
-\***SCRIPT\_COMMAND\_RESPAWN\_GAMEOBJECT = 9**
+#### \*SCRIPT\_COMMAND\_RESPAWN\_GAMEOBJECT = 9
-- - source: WorldObject (summoner).
- - datalong: Guid of the gameobject to respawn. See [gameobject.guid](gameobject_2130146.html#gameobject-guid).
- - datalong2: Despawn time in seconds. If the value is < 5 seconds: 5 is used instead.
+- source: WorldObject (summoner).
+- datalong: Guid of the gameobject to respawn. See [gameobject.guid](gameobject#guid).
+- datalong2: Despawn time in seconds. If the value is < 5 seconds: 5 is used instead.
-\***SCRIPT\_COMMAND\_TEMP\_SUMMON\_CREATURE = 10**
+#### \*SCRIPT\_COMMAND\_TEMP\_SUMMON\_CREATURE = 10
-- - source: WorldObject (summoner).
- - datalong: Entry of the summoned creature. See [creature\_template.entry](creature_template_2130008.html#creature_template-entry).
- - datalong2: Despawn time in ms.
- - x: Summon target x coordinate.
- - y: Summon target y coordinate.
- - z: Summon target z coordinate.
- - o: Summon target orientation.
+- source: WorldObject (summoner).
+- datalong: Entry of the summoned creature. See [creature\_template.entry](creature_template#entry).
+- datalong2: Despawn time in ms.
+- x: Summon target x coordinate.
+- y: Summon target y coordinate.
+- z: Summon target z coordinate.
+- o: Summon target orientation.
-\***SCRIPT\_COMMAND\_OPEN\_DOOR = 11**
+#### \*SCRIPT\_COMMAND\_OPEN\_DOOR = 11
-- - source: WorldObject.
- - datalong: Guid of the activated door. See [gameobject.guid](gameobject_2130146.html#gameobject-guid).
- - datalong2: Delay before closing again the door. If the value is < 15 seconds: 15 is used instead.
+- source: WorldObject.
+- datalong: Guid of the activated door. See [gameobject.guid](gameobject#guid).
+- datalong2: Delay before closing again the door. If the value is < 15 seconds: 15 is used instead.
-\***SCRIPT\_COMMAND\_CLOSE\_DOOR = 12**
+#### \*SCRIPT\_COMMAND\_CLOSE\_DOOR = 12
-- - source: WorldObject.
- - datalong: Guid of the activated door. See [gameobject.guid](gameobject_2130146.html#gameobject-guid).
- - datalong2: Delay before opening again the door. If the value is < 15 seconds: 15 is used instead.
+- source: WorldObject.
+- datalong: Guid of the activated door. See [gameobject.guid](gameobject#guid).
+- datalong2: Delay before opening again the door. If the value is < 15 seconds: 15 is used instead.
-\***SCRIPT\_COMMAND\_ACTIVATE\_OBJECT = 13**
+#### \*SCRIPT\_COMMAND\_ACTIVATE\_OBJECT = 13
-- - source: Unit.
- - target: GameObject.
+- source: Unit.
+- target: GameObject.
-\***SCRIPT\_COMMAND\_REMOVE\_AURA = 14**
+#### \*SCRIPT\_COMMAND\_REMOVE\_AURA = 14
-- - source (datalong2 != 0) or target (datalong2 h1. 0): Unit.
- - datalong: Spell ID. See [Spell.dbc](https://trinitycore.atlassian.net/wiki/display/tc/Spell)
- - datalong2: If value > 0, then remove from the source; otherwise remove from the target.
+- source (datalong2 != 0) or target (datalong2 h1. 0): Unit.
+- datalong: Spell ID. See [Spell.dbc](Spell)
+- datalong2: If value > 0, then remove from the source; otherwise remove from the target.
-\***SCRIPT\_COMMAND\_CAST\_SPELL = 15**
+#### \*SCRIPT\_COMMAND\_CAST\_SPELL = 15
-- - source: Unit.
- - target: Unit.
- - datalong: Spell ID. See [Spell.dbc](https://trinitycore.atlassian.net/wiki/display/tc/Spell)
- - datalong2:
- - 0 - Source->Target
- - 1 - Source->Source (Self cast, use for dummy spells)
- - 2 - Target->Target
- - 3 - Target->Source
- - 4 - Source->Closest entry of dataint.
- - dataint: Creature entry to target if datalong2 value is 4, or triggered attribute for CastSpell method in other cases.
- - x: Search range for creature entry (dataint) if datalong2 value is 4.
+- source: Unit.
+- target: Unit.
+- datalong: Spell ID. See [Spell.dbc](Spell)
+- datalong2:
+ - 0 - Source->Target
+ - 1 - Source->Source (Self cast, use for dummy spells)
+ - 2 - Target->Target
+ - 3 - Target->Source
+ - 4 - Source->Closest entry of dataint.
+- dataint: Creature entry to target if datalong2 value is 4, or triggered attribute for CastSpell method in other cases.
+- x: Search range for creature entry (dataint) if datalong2 value is 4.
-\***SCRIPT\_COMMAND\_PLAY\_SOUND = 16**
+#### \*SCRIPT\_COMMAND\_PLAY\_SOUND = 16
-- - source: WorldObject.
- - target: none (datalong2 & 1 0) or Player (datalong2 & 1 != 0).
- - datalong: Sound ID.
- - datalong2:
- - 0 - play direct sound to everyone.
- - 1 - play direct sound to target (must be Player).
- - 2 - play sound with distance dependency to anyone.
- - 3 - play sound with distance dependency to target (must be Player).
+- source: WorldObject.
+- target: none (datalong2 & 1 0) or Player (datalong2 & 1 != 0).
+- datalong: Sound ID.
+- datalong2:
+ - 0 - play direct sound to everyone.
+ - 1 - play direct sound to target (must be Player).
+ - 2 - play sound with distance dependency to anyone.
+ - 3 - play sound with distance dependency to target (must be Player).
-\***SCRIPT\_COMMAND\_CREATE\_ITEM = 17**
+#### \*SCRIPT\_COMMAND\_CREATE\_ITEM = 17
-- - target or source: Player.
- - datalong: Item entry to create. See [item\_template.entry](item_template_2130222.html#item_template-entry).
- - datalong2: Amount of items to create.
+- target or source: Player.
+- datalong: Item entry to create. See [item\_template.entry](item_template#entry).
+- datalong2: Amount of items to create.
-\***SCRIPT\_COMMAND\_DESPAWN\_SELF = 18**
+#### \*SCRIPT\_COMMAND\_DESPAWN\_SELF = 18
-- - target: Creature.
- - datalong: Despawn delay.
+- target: Creature.
+- datalong: Despawn delay.
-\***SCRIPT\_COMMAND\_LOAD\_PATH = 20**
+#### \*SCRIPT\_COMMAND\_LOAD\_PATH = 20
-- - source: Unit.
- - datalong: Path ID. See [waypoint\_data.id](waypoint_data_2130114.html#waypoint_data-id).
- - datalong2: If value > 0, means waypoint movement is repeatable.
+- source: Unit.
+- datalong: Path ID. See [waypoint\_data.id](waypoint_data#id).
+- datalong2: If value > 0, means waypoint movement is repeatable.
-\***SCRIPT\_COMMAND\_CALLSCRIPT\_TO\_UNIT = 21**
+#### \*SCRIPT\_COMMAND\_CALLSCRIPT\_TO\_UNIT = 21
-- - source: if present, used as a search center.
- - datalong: entry of searched creature, if source exists, guid of the creature otherwise.
+- source: if present, used as a search center.
+- datalong: entry of searched creature, if source exists, guid of the creature otherwise.
\*\*datalong2: ID of the script from \*\_scripts table.
- - dataint:
- - 3 - use spell\_scripts table;
- - 5 - use event\_scripts table;
- - 6 - use waypoint\_scripts table.
+- dataint:
+ - 3 - use spell\_scripts table;
+ - 5 - use event\_scripts table;
+ - 6 - use waypoint\_scripts table.
-\***SCRIPT\_COMMAND\_KILL = 22**
+#### \*SCRIPT\_COMMAND\_KILL = 22
-- - source: Creature.
- - dataint: if value == 1 remove corpse.
+- source: Creature.
+- dataint: if value == 1 remove corpse.
-\***SCRIPT\_COMMAND\_ORIENTATION = 30**
+#### \*SCRIPT\_COMMAND\_ORIENTATION = 30
-- - source: Unit.
- - target: Unit (datalong != 0).
- - datalong: If value != 0, then turn to face the target; otherwise turn to value in o.
- - o: Set orientation to value in field \`o\`.
+- source: Unit.
+- target: Unit (datalong != 0).
+- datalong: If value != 0, then turn to face the target; otherwise turn to value in o.
+- o: Set orientation to value in field \`o\`.
-\***SCRIPT\_COMMAND\_EQUIP = 31**
+#### \*SCRIPT\_COMMAND\_EQUIP = 31
-- - source: Creature.
- - datalong: ID (1, 2, 3 ...) from equipment entry. See [creature\_equip\_template](creature_equip_template_2129998.html#creature_equip_template-ID).ID
+- source: Creature.
+- datalong: ID (1, 2, 3 ...) from equipment entry. See [creature\_equip\_template.id](creature_equip_template#id)
-\***SCRIPT\_COMMAND\_MODEL = 32**
+#### \*SCRIPT\_COMMAND\_MODEL = 32
-- - source: Creature.
- - datalong: model ID.
+- source: Creature.
+- datalong: model ID.
-\***SCRIPT\_COMMAND\_CLOSE\_GOSSIP = 33**
+#### \*SCRIPT\_COMMAND\_CLOSE\_GOSSIP = 33
-- - source: Player.
+- source: Player.
-\***SCRIPT\_COMMAND\_PLAYMOVIE = 34**
+#### \*SCRIPT\_COMMAND\_PLAYMOVIE = 34
-- - source: Player.
- - datalong: movie ID.
+- source: Player.
+- datalong: movie ID.
-\***SCRIPT\_COMMAND\_MOVEMENT = 35**
+#### \*SCRIPT\_COMMAND\_MOVEMENT = 35
-- - source: Creature.
- - datalong: MovementType.
- - datalong2: MovementDistance (e.g. spawndist for MovementType 1).
- - dataint: pathid (for MovementType 2, see [waypoint\_data.id](waypoint_data.md#id)).
+- source: Creature.
+- datalong: MovementType.
+- datalong2: MovementDistance (e.g. spawndist for MovementType 1).
+- dataint: pathid (for MovementType 2, see [waypoint\_data.id](waypoint_data#id)).
### guid
-`field-no-description|5`
+Exists only for 'waypoint_scripts' and acts there as primary key; it is set automatically using the [GM command](GM-Commands) 'wp event add'.
-td class=
diff --git a/docs/smart_scripts.md b/docs/smart_scripts.md
index e3cf150..76f401e 100644
--- a/docs/smart_scripts.md
+++ b/docs/smart_scripts.md
@@ -1,3 +1,5 @@
+[Database Structure](Database-Structure) > [World-Database](World-Database) > [smart_scripts](smart_scripts)
+
# smart\_scripts
**Table Structure**
@@ -868,7 +870,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_EVENT_RECEIVE_EMOTE |
22 |
-EmoteId |
+EmoteId |
CooldownMin |
CooldownMax |
|
@@ -1295,8 +1297,8 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_EVENT_TEXT_OVER |
52 |
-creature_text.GroupID |
-creature.id (0 any) |
+creature_text.GroupID |
+creature.id (0 any) |
|
@@ -1428,15 +1430,15 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_EVENT_GOSSIP_SELECT |
62 |
-gossip_menu_option.MenuID |
-gossip_menu_option.OptionID |
+gossip_menu_option.MenuID |
+gossip_menu_option.OptionID |
|
|
|
-On gossip clicked (gossip_menu_option). |
+On gossip clicked (gossip_menu_option). |
SMART_EVENT_JUST_CREATED |
@@ -1518,7 +1520,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_EVENT_GAME_EVENT_START |
68 |
-game_event.eventEntry |
+game_event.eventEntry |
|
@@ -1527,12 +1529,12 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
|
-On game_event started. |
+On game_event started. |
SMART_EVENT_GAME_EVENT_END |
69 |
-game_event.eventEntry |
+game_event.eventEntry |
|
@@ -1541,7 +1543,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
|
-On game_event ended. |
+On game_event ended. |
SMART_EVENT_GO_STATE_CHANGED |
@@ -1689,7 +1691,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_ACTION_TALK |
1 |
-creature_text.GroupID |
+creature_text.GroupID |
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) |
@@ -1704,7 +1706,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_ACTION_SET_FACTION |
2 |
-FactionID (or 0 for default) |
+FactionID (or 0 for default) |
|
@@ -1720,8 +1722,8 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_MORPH_TO_ENTRY_OR_MODEL |
3 |
-creature_template.entry(param1) |
-creature_template.modelidx(param2) |
+creature_template.entry(param1) |
+creature_template.modelidx(param2) |
|
@@ -1750,7 +1752,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_PLAY_EMOTE |
5 |
-EmoteId |
+EmoteId |
|
@@ -1782,7 +1784,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_OFFER_QUEST |
7 |
-quest_template.id |
+quest_template.id |
directAdd (0/1) |
|
@@ -1830,12 +1832,12 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_ACTION_RANDOM_EMOTE |
10 |
-EmoteId1 |
-EmoteId2 |
-EmoteId3 |
-EmoteId4 |
-EmoteId5 |
-EmoteId6 |
+EmoteId1 |
+EmoteId2 |
+EmoteId3 |
+EmoteId4 |
+EmoteId5 |
+EmoteId6 |
Play Random Emote |
@@ -1897,7 +1899,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS |
15 |
-quest_template.id |
+quest_template.id |
|
@@ -1931,7 +1933,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_SET_EMOTE_STATE |
17 |
-EmoteId |
+EmoteId |
|
@@ -1949,8 +1951,8 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
| 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 |
+If false set creature_template.unit_flags
+If true set creature_template.unit_flags2
|
@@ -1966,8 +1968,8 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
| 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 |
+If false set creature_template.unit_flags
+If true set creature_template.unit_flags2
|
@@ -2077,7 +2079,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_CALL_GROUPEVENTHAPPENS |
26 |
-quest_template.id |
+quest_template.id |
|
@@ -2130,7 +2132,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
| 29 |
Distance (0 = Default value) |
Angle (0 = Default value) |
-End creature_template.entry |
+End creature_template.entry |
credit |
creditType (0 monsterkill, 1 event) |
@@ -2185,7 +2187,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_CALL_KILLEDMONSTER |
33 |
-creature_template.entry |
+creature_template.entry |
|
@@ -2196,7 +2198,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
|
-This is the ID from quest_template.RequiredNpcOrGo |
+This is the ID from quest_template.RequiredNpcOrGo |
SMART_ACTION_SET_INST_DATA |
@@ -2232,7 +2234,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_ACTION_UPDATE_TEMPLATE |
36 |
-creature_template.entry |
+creature_template.entry |
Update Level |
|
@@ -2346,7 +2348,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 |
-creature_template.modelidx |
+creature_template.modelidx |
|
@@ -2360,7 +2362,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_SET_INGAME_PHASE_MASK |
44 |
-creature.phaseMask |
+creature.phaseMask |
mask |
|
@@ -2456,7 +2458,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_ACTION_SUMMON_GO |
50 |
-gameobject_template.entry |
+gameobject_template.entry |
De-spawn time in seconds. |
targetSummon (0/1) |
@@ -2504,12 +2506,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 |
-waypoints.entry |
+waypoints.entry |
canRepeat |
-quest_template.id |
+quest_template.id |
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 |
@@ -2531,7 +2533,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_ACTION_WP_STOP |
55 |
despawnTime |
-quest_template.id |
+quest_template.id |
fail (0/1) |
|
@@ -2544,7 +2546,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_ACTION_ADD_ITEM |
56 |
-item_template.entry |
+item_template.entry |
count |
|
@@ -2559,7 +2561,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_ACTION_REMOVE_ITEM |
57 |
-item_template.entry |
+item_template.entry |
count |
|
@@ -2639,7 +2641,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_ACTION_TELEPORT |
62 |
-MapID |
+MapID |
|
@@ -2780,11 +2782,11 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_EQUIP |
71 |
-creature_equip_template.CreatureID |
+creature_equip_template.CreatureID |
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 |
@@ -2943,7 +2945,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
SMART_ACTION_SET_NPC_FLAG |
81 |
-creature_template.npcflag |
+creature_template.npcflag |
|
@@ -2960,7 +2962,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_ADD_NPC_FLAG |
82 |
-creature_template.npcflag |
+creature_template.npcflag |
|
@@ -2977,7 +2979,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_REMOVE_NPC_FLAG |
83 |
-creature_template.npcflag |
+creature_template.npcflag |
|
@@ -2994,7 +2996,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_SIMPLE_TALK |
84 |
-creature_text.GroupID |
+creature_text.GroupID |
|
@@ -3140,7 +3142,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_SET_DYNAMIC_FLAG |
94 |
-creature_template.dynamicflags |
+creature_template.dynamicflags |
|
@@ -3157,7 +3159,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_ADD_DYNAMIC_FLAG |
95 |
-creature_template.dynamicflags |
+creature_template.dynamicflags |
|
@@ -3174,7 +3176,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_REMOVE_DYNAMIC_FLAG |
96 |
-creature_template.dynamicflags |
+creature_template.dynamicflags |
|
@@ -3205,9 +3207,9 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_SEND_GOSSIP_MENU |
98 |
-gossip_menu.entry |
-gossip_menu.text_id
-(same value as npc_text.ID) |
+gossip_menu.entry |
+gossip_menu.text_id
+(same value as npc_text.ID) |
|
@@ -3304,7 +3306,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_SET_GO_FLAG |
104 |
-gameobject_template_addon.flags |
+gameobject_template_addon.flags |
|
@@ -3320,7 +3322,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_ADD_GO_FLAG |
105 |
-gameobject_template_addon.flags |
+gameobject_template_addon.flags |
|
@@ -3336,7 +3338,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_REMOVE_GO_FLAG |
106 |
-gameobject_template_addon.flags |
+gameobject_template_addon.flags |
|
@@ -3352,7 +3354,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_SUMMON_CREATURE_GROUP |
107 |
-creature_summon_groups.groupId |
+creature_summon_groups.groupId |
attackInvoker (0/1) |
attackScriptOwner (0/1) |
@@ -3414,7 +3416,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_GAME_EVENT_STOP |
111 |
-game_event.eventEntry |
+game_event.eventEntry |
|
@@ -3431,7 +3433,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_ACTION_GAME_EVENT_START |
112 |
-game_event.eventEntry |
+game_event.eventEntry |
|
@@ -4370,7 +4372,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
|
SMART_TARGET_CREATURE_RANGE |
|