Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.
Comentarios: Moved the option_id list into a 4x22 table. Modified description text for option_text.

...

This table holds infos about menu options a gossip NPC can have.
Examples of options : "Train me!", "I want to unlearn my talents",..

Structure

Field

Type

Attributes

Key

Null

Default

Extra

Comment

menu_id

smallint(6)

unsigned

PRI

NO

0

 

 

id

smallint(6)

unsigned

PRI

NO

0

 

 

option_icon

smallint(6)

unsigned

PRI

NO

0

 

 

option_text

text

signed

 

YES

NULL

 

 

OptionBroadcastTextIDmediumint(6)  NO   

option_id

tinyint(3)

unsigned

 

NO

0

 

 

npc_option_npcflag

int(10)

unsigned

 

NO

0

 

 

action_menu_id

mediumint(8)

unsigned

 

NO

0

 

 

action_poi_id

mediumint(8)

unsigned

 

NO

0

 

 

box_coded

tinyint(3)

unsigned

 

NO

0

 

 

box_money

int(11)

unsigned

 

NO

0

 

 

box_text

text

signed

 

YES

NULL

 

 

BoxBroadcastTextIDmediumint(6)  NO0  

Description of the fields

...

This is is the text that you want displayed for this in the player selectable option. Examples would be "Train Me!" "Get off my lawnPlease train me.", "I would like to browse your goods.", "Learn Dual Spec".

option_id

Panel
option_id nameoption_id valuenpcflag name (& comment)npcflag value
GOSSIP_OPTION_NONE
=
0
, //
UNIT_NPC_FLAG_NONE
(
0
)
GOSSIP_OPTION_GOSSIP
=
1
, //
UNIT_NPC_FLAG_GOSSIP
(
1
)
GOSSIP_OPTION_QUESTGIVER
=
2
, //
UNIT_NPC_FLAG_QUESTGIVER
(
2
)
GOSSIP_OPTION_VENDOR
=
3
, //

UNIT_NPC_FLAG_VENDOR

(128)

(Make sure there is npc_vendor data for this creature)

128
GOSSIP_OPTION_TAXIVENDOR
=
4
, //
UNIT_NPC_FLAG_TAXIVENDOR
(
8192
)
GOSSIP_OPTION_TRAINER
=
5
, //

UNIT_NPC_FLAG_TRAINER

(16)

(Remember to set trainer_class in creature_template) 

16
GOSSIP_OPTION_SPIRITHEALER
=
6
, //
UNIT_NPC_FLAG_SPIRITHEALER
(
16384
)
GOSSIP_OPTION_SPIRITGUIDE
=
7
, //
UNIT_NPC_FLAG_SPIRITGUIDE
(
32768
)
GOSSIP_OPTION_INNKEEPER
=
8
, //
UNIT_NPC_FLAG_INNKEEPER
(
65536
)
GOSSIP_OPTION_BANKER
=
9
, //
UNIT_NPC_FLAG_BANKER
(
131072
)
GOSSIP_OPTION_PETITIONER
=
10
, //
UNIT_NPC_FLAG_PETITIONER
(
262144
)
GOSSIP_OPTION_TABARDDESIGNER
=
11
, //
UNIT_NPC_FLAG_TABARDDESIGNER
(
524288
)
GOSSIP_OPTION_BATTLEFIELD
=
12
, //
UNIT_NPC_FLAG_BATTLEFIELDPERSON
(
1048576
)
GOSSIP_OPTION_AUCTIONEER
=
13
, //
UNIT_NPC_FLAG_AUCTIONEER
(
2097152
)
GOSSIP_OPTION_STABLEPET
=
14
, //
UNIT_NPC_FLAG_STABLE
(
4194304
)
GOSSIP_OPTION_ARMORER
=
15
, //
UNIT_NPC_FLAG_ARMORER
(4096)
(not used)4096
GOSSIP_OPTION_UNLEARNTALENTS
=
16
, //
UNIT_NPC_FLAG_TRAINER
(16)
(bonus option for GOSSIP_OPTION_TRAINER)16
GOSSIP_OPTION_UNLEARNPETTALENTS
=
17
, //
UNIT_NPC_FLAG_TRAINER
(16)
(bonus option for GOSSIP_OPTION_TRAINER)16
GOSSIP_OPTION_LEARNDUALSPEC
=
18
, //
UNIT_NPC_FLAG_TRAINER
(16)
(bonus option for GOSSIP_OPTION_TRAINER)16
GOSSIP_OPTION_OUTDOORPVP
= 19, //added
19Added by code (option for outdoor
pvp
PvP creatures) 
GOSSIP_OPTION_MAX   

npc_option_npcflag

This is the npcflag (Creature_template.npcflag ) that the NPC must have to have this option display. See comments (after //) in previous table)

...