From a35d4f08a3f9f086eae94dccbfda2ff0c8eb5ae3 Mon Sep 17 00:00:00 2001 From: FrancescoBorzi Date: Mon, 25 Feb 2019 19:24:20 +0100 Subject: Import DB wiki from TC 335 --- docs/gossip_menu.md | 75 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 70 insertions(+), 5 deletions(-) (limited to 'docs/gossip_menu.md') 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** + + ++++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Field

Type

Attributes

Key

Null

Default

Extra

Comment

entry

smallint(6)

unsigned

PRI

NO

0


+


+

text_id

mediumint(8)

unsigned

PRI

NO

0


+


+

+ +**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. -- cgit