From a8e604446f939bb5a370d11d1d22694c8f438b8d Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Thu, 13 Jan 2022 14:33:31 +0100 Subject: chore: swim and flight speeds (#673) * chore: swim and flight speeds * Update creature_template.md * Update docs/creature_template.md --- docs/creature_template.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/creature_template.md b/docs/creature_template.md index abc7abc..9e6b905 100644 --- a/docs/creature_template.md +++ b/docs/creature_template.md @@ -25,6 +25,8 @@ This table contains the description of creatures. Each spawned creature is an in | [npcflag](#npcflag) | INT UNSIGNED | NO | | 0 | | | | [speed_walk](#speedwalk) | FLOAT | NO | | 1 | | Result of 2.5/2.5, most common value | | [speed_run](#speedrun) | FLOAT | NO | | 1.14286 | | Result of 8.0/7.0, most common value | +| [speed_swim](#speedswim) | FLOAT | NO | | 1 | | | +| [speed_swim](#speedflight) | FLOAT | NO | | 1 | | | | [detection_range](#detectionrange) | FLOAT | NO | | 20 | | | | [scale](#scale) | FLOAT | NO | | 1 | | | | [rank](#rank) | TINYINT UNSIGNED | NO | | 0 | | | @@ -201,7 +203,7 @@ A bitmask that represents what NPC flags the creature has. Each bit controls a d | 16777216 | 0x01000000 | Spellclick | Needs data on npc_spellclick_spells table | | 67108864 | 0x04000000 | Mailbox | NPC will act like a mailbox (opens mailbox with right-click) | -So if you want a NPC that is a quest giver(2), a vendor(128) and can repair(4096) you just add specific flags together: 2+128+4096=4226                                                                               +So if you want a NPC that is a quest giver(2), a vendor(128) and can repair(4096) you just add specific flags together: 2+128+4096=4226 #### speed_walk @@ -211,6 +213,14 @@ Controls how fast the creature can walk. For vehicles: increases fly speed. Controls how fast the creature can run. For vehicles: increases ground movement speed. +#### speed_swim + +Controls how fast the creature can swim. + +#### speed_flight + +Controls how fast the creature can fly. + #### detection_range Controls the range at which creatures detect and see players. -- cgit