summaryrefslogtreecommitdiff
path: root/docs/game_tele.md
diff options
context:
space:
mode:
authorFrancescoBorzi <borzifrancesco@gmail.com>2019-02-25 19:24:20 +0100
committerFrancescoBorzi <borzifrancesco@gmail.com>2019-02-25 19:24:20 +0100
commita35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3 (patch)
tree91e0cde00f6f27b730b0df3f4338fcf99fa8447a /docs/game_tele.md
parentd8d1823802ded97300fa57405d80b16736603489 (diff)
downloadwiki-a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3.tar.gz
wiki-a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3.tar.bz2
wiki-a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3.zip
Import DB wiki from TC 335
Diffstat (limited to 'docs/game_tele.md')
-rw-r--r--docs/game_tele.md139
1 files changed, 128 insertions, 11 deletions
diff --git a/docs/game_tele.md b/docs/game_tele.md
index c6e2868..a40f1c9 100644
--- a/docs/game_tele.md
+++ b/docs/game_tele.md
@@ -1,11 +1,128 @@
-[Database Structure](Database-Structure) > [World-Database](World-Database) > [game_tele](game_tele)
-
-Column | Type | Description
---- | --- | ---
-Id | mediumint(8) unsigned |
-Position_x | float |
-Position_y | float |
-Position_z | float |
-Orientation | float |
-Map | smallint(5) unsigned |
-Name | varchar(100) |
+# game\_tele
+
+`Back-to:World`
+
+**Table Structure**
+
+This table contains a list of teleport locations that can be used with the *.tele* command in-game. Entries in this table can be added/deleted manually or with the *.tele add* and *.tele delete* commands.
+
+<table style="width:100%;">
+<colgroup>
+<col width="14%" />
+<col width="14%" />
+<col width="14%" />
+<col width="14%" />
+<col width="14%" />
+<col width="14%" />
+<col width="14%" />
+</colgroup>
+<tbody>
+<tr class="odd">
+<td><p><strong>Field</strong></p></td>
+<td><p><strong>Type</strong></p></td>
+<td><p><strong>Attributes</strong></p></td>
+<td><p><strong>Key</strong></p></td>
+<td><p><strong>Null</strong></p></td>
+<td><p><strong>Default</strong></p></td>
+<td><p><strong>Extra</strong></p></td>
+</tr>
+<tr class="even">
+<td><p><a href="#game_tele-id">id</a></p></td>
+<td><p>mediumint(8)</p></td>
+<td><p>unsigned</p></td>
+<td><p>PRI</p></td>
+<td><p>NO</p></td>
+<td><p>NULL</p></td>
+<td><p>Auto increment</p></td>
+</tr>
+<tr class="odd">
+<td><p><a href="#game_tele-position_x">position_x</a></p></td>
+<td><p>float</p></td>
+<td><p>signed</p></td>
+<td><p> </p></td>
+<td><p>NO</p></td>
+<td><p>0</p></td>
+<td><p> </p></td>
+</tr>
+<tr class="even">
+<td><p><a href="#game_tele-position_y">position_y</a></p></td>
+<td><p>float</p></td>
+<td><p>signed</p></td>
+<td><p> </p></td>
+<td><p>NO</p></td>
+<td><p>0</p></td>
+<td><p> </p></td>
+</tr>
+<tr class="odd">
+<td><p><a href="#game_tele-position_z">position_z</a></p></td>
+<td><p>float</p></td>
+<td><p>signed</p></td>
+<td><p> </p></td>
+<td><p>NO</p></td>
+<td><p>0</p></td>
+<td><p> </p></td>
+</tr>
+<tr class="even">
+<td><p><a href="#game_tele-orientation">orientation</a></p></td>
+<td><p>float</p></td>
+<td><p>signed</p></td>
+<td><p> </p></td>
+<td><p>NO</p></td>
+<td><p>0</p></td>
+<td><p> </p></td>
+</tr>
+<tr class="odd">
+<td><p><a href="#game_tele-map">map</a></p></td>
+<td><p>smallint(5)</p></td>
+<td><p>unsigned</p></td>
+<td><p> </p></td>
+<td><p>NO</p></td>
+<td><p>0</p></td>
+<td><p> </p></td>
+</tr>
+<tr class="even">
+<td><p><a href="#game_tele-name">name</a></p></td>
+<td><p>varchar(100)</p></td>
+<td><p>signed</p></td>
+<td><p> </p></td>
+<td><p>NO</p></td>
+<td><p>NULL</p></td>
+<td><p> </p></td>
+</tr>
+</tbody>
+</table>
+
+**
+**
+
+**Field Descriptions**
+
+### id
+
+The ID of the teleport location. This number is unique to every location added.
+
+### position\_x
+
+The x-axis coordinate of the teleport location. This can be attained by using the *.gps* command.
+
+### position\_y
+
+The y-axis coordinate of the teleport location. This can be attained by using the *.gps* command.
+
+### position\_z
+
+The z-axis coordinate of the teleport location. This can be attained by using the *.gps* command.
+
+### orientation
+
+The direction that the player will face after arriving at the teleport location. This can be attained by using the *.gps* command.
+
+(North = 0, South = 3.14159)
+
+### map
+
+The map ID of the location. See the [Map DBC file](http://collab.kpsn.org/display/tc/Map) for the IDs of all of the zones.
+
+### name
+
+A descriptive name for the teleport location. The name *cannot* have any spaces in it. It is also not recommended to use special characters such as periods, commas, slashes, etc...