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) --- docs/script_waypoint.md | 138 ++++++++++-------------------------------------- 1 file changed, 27 insertions(+), 111 deletions(-) (limited to 'docs/script_waypoint.md') 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. + -- cgit