summaryrefslogtreecommitdiff
path: root/docs/creature_template_movement.md
diff options
context:
space:
mode:
authorKitzunu <24550914+Kitzunu@users.noreply.github.com>2022-01-06 15:28:59 +0100
committerKitzunu <24550914+Kitzunu@users.noreply.github.com>2022-01-06 15:28:59 +0100
commitbc67427bcae0a9ee76f819b5b89956b0b44df28c (patch)
tree6300f30bf00c1818d2798ac0afa4460b036231db /docs/creature_template_movement.md
parente0f38a17b8ab181ea215bced6cf3ee3318c18b4c (diff)
downloadwiki-bc67427bcae0a9ee76f819b5b89956b0b44df28c.tar.gz
wiki-bc67427bcae0a9ee76f819b5b89956b0b44df28c.tar.bz2
wiki-bc67427bcae0a9ee76f819b5b89956b0b44df28c.zip
chore: creature_template_movement
Diffstat (limited to 'docs/creature_template_movement.md')
-rw-r--r--docs/creature_template_movement.md93
1 files changed, 63 insertions, 30 deletions
diff --git a/docs/creature_template_movement.md b/docs/creature_template_movement.md
index 0831916..e3fbdf9 100644
--- a/docs/creature_template_movement.md
+++ b/docs/creature_template_movement.md
@@ -1,56 +1,89 @@
-## NOT EXISTING
-
-**This table does NOT currently exist in AzerothCore, but it might be added later. See [#4361](https://github.com/azerothcore/azerothcore-wotlk/issues/4361)**
-
-For creature movements check [creature_template#InhabitType](https://www.azerothcore.org/wiki/creature_template#inhabittype)
-
# creature_template_movement
-**The \`creature\_template\_movement\` table**
-
This table contains the description of creatures movements, where the creature can move and attack.
+This table can be overriden by \`creature_movement_override\`
+
**Structure**
-| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
-|-----------------|------------|------------|-----|------|---------|-------|---------|
-| [CreatureId][1] | INT | UNSIGNED | PRI | NO | 0 | | |
-| [Ground][2] | TINYINT | UNSIGNED | | NO | 0 | | |
-| [Swim][3] | TINYINT | UNSIGNED | | NO | 0 | | |
-| [Flight][4] | TINYINT | UNSIGNED | | NO | 0 | | |
-| [Rooted][5] | TINYINT | UNSIGNED | | NO | 0 | | |
+| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
+| -------------------------- | ------- | ---------- | --- | ---- | ------- | ----- | ------- |
+| [CreatureId][1] | INT | UNSIGNED | PRI | NO | 0 | | |
+| [Ground][2] | TINYINT | UNSIGNED | | YES | NULL | | |
+| [Swim][3] | TINYINT | UNSIGNED | | YES | NULL | | |
+| [Flight][4] | TINYINT | UNSIGNED | | YES | NULL | | |
+| [Rooted][5] | TINYINT | UNSIGNED | | YES | NULL | | |
+| [Chase][6] | TINYINT | UNSIGNED | | YES | NULL | | |
+| [Random][7] | TINYINT | UNSIGNED | | YES | NULL | | |
+| [InteractionPauseTimer][8] | TINYINT | UNSIGNED | | YES | NULL | | |
[1]: #creatureid
[2]: #ground
[3]: #swim
[4]: #flight
[5]: #rooted
+[6]: #chase
+[7]: #random
+[8]: #interactionpausetimer
+
+**Description of the fields**
-### CreatureId
+#### CreatureId
This is the [creature\_template.entry](http://www.azerothcore.org/wiki/creature_template#creature_template-entry) to which the script is linked to.
-### Ground
+#### Ground
+
+| State | Value |
+| ----- | ----- |
+| None | 0 |
+| Run | 1 |
+| Hover | 2 |
+
+#### Swim
-- "None"=0
-- "Run"=1
-- "Hover"=2
+| State | Value |
+| ----- | ----- |
+| None | 0 |
+| Swim | 1 |
-### Swim
-- "None"=0
-- "Swim"=1
+#### Flight
-### Flight
-- "None"=0
-- "DisableGravity"=1
-- "CanFly" =2
+| State | Value |
+| -------------- | ----- |
+| None | 0 |
+| DisableGravity | 1 |
+| CanFly | 2 |
-### Rooted
-- "None"=0
-- "Rooted"=1
+#### Rooted
+
+| State | Value |
+| ------ | ----- |
+| None | 0 |
+| Rooted | 1 |
Notice:
Rooted creature that doesn't fall once dead must use \`Ground\`=1, \`Swim\`=0, \`Flight\`=0, \`Rooted\`=1 (\`Swim\`=1 if above water)
Rooted creature that falls once dead must use \`Ground\`=0, \`Swim\`=0, \`Flight\`=1, \`Rooted\`=1
+
+#### Chase
+
+| State | Value |
+| ---------- | ----- |
+| Run | 0 |
+| CanWalk | 1 |
+| AlwaysWalk | 2 |
+
+#### Random
+
+| State | Value |
+| --------- | ----- |
+| Walk | 0 |
+| CanRun | 1 |
+| AlwaysRun | 2 |
+
+#### InteractionPauseTimer
+
+Time (in milliseconds) during which creature will not move after interaction with player.