summaryrefslogtreecommitdiff
path: root/docs/gossip_menu.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/gossip_menu.md
parentd8d1823802ded97300fa57405d80b16736603489 (diff)
downloadwiki-a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3.tar.gz
wiki-a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3.tar.bz2
wiki-a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3.zip
Import DB wiki from TC 335
Diffstat (limited to 'docs/gossip_menu.md')
-rw-r--r--docs/gossip_menu.md75
1 files changed, 70 insertions, 5 deletions
diff --git a/docs/gossip_menu.md b/docs/gossip_menu.md
index 5825e5b..fc4d1d8 100644
--- a/docs/gossip_menu.md
+++ b/docs/gossip_menu.md
@@ -1,6 +1,71 @@
-[Database Structure](Database-Structure) > [World-Database](World-Database) > [gossip_menu](gossip_menu)
+# gossip\_menu335
-Column | Type | Description
---- | --- | ---
-Entry | smallint(5) unsigned |
-Text_id | mediumint(8) unsigned |
+` Back-to:World `
+
+**The \`gossip\_menu\` table**
+
+This table is used for displaying gossip when a player talks to an NPC with [npcflag](creature_template) set.
+
+**Structure**
+
+<table>
+<colgroup>
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+<col width="12%" />
+</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>
+<td><p><strong>Comment</strong></p></td>
+</tr>
+<tr class="even">
+<td><p><a href="#gossip_menu335-entry">entry</a></p></td>
+<td><p>smallint(6)</p></td>
+<td><p>unsigned</p></td>
+<td><p>PRI</p></td>
+<td><p>NO</p></td>
+<td><p>0</p></td>
+<td><p><br />
+</p></td>
+<td><p><br />
+</p></td>
+</tr>
+<tr class="odd">
+<td><p><a href="#gossip_menu335-text_id">text_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>0</p></td>
+<td><p><br />
+</p></td>
+<td><p><br />
+</p></td>
+</tr>
+</tbody>
+</table>
+
+**Description of the fields**
+
+### entry
+
+This must match the entry you added to [creature\_template.gossip\_menu\_id](https://trinitycore.atlassian.net/wiki/display/tc/creature_template#creature_template-gossip_menu_id). This also
+groups the options from gossip\_menu\_option335 and displays all options associated with this ID.
+
+**Note:** If adding your own custom menu options, then it is common practice to start with an ID at or above 50,000 just to be safe that it doesn't conflict with other gossip menu id's.
+
+### text\_id
+
+This links to the [npc\_text.ID](npc_text_2130250.html#npc_text-ID) for the gossip you want to be initially displayed. Also this tells the NPC what to say at the top of the options menu when it is displayed.