Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.

Table: gossip_menu_optionoption335

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

...

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  

VerifiedBuildsmallint(5)  

NO0  

Description of the fields

...

Panel


 
option_id NameValuenpcflag Name (& comment)npcflag value
GOSSIP_OPTION_NONE0UNIT_NPC_FLAG_NONE0
GOSSIP_OPTION_GOSSIP1UNIT_NPC_FLAG_GOSSIP1
GOSSIP_OPTION_QUESTGIVER2UNIT_NPC_FLAG_QUESTGIVER2
GOSSIP_OPTION_VENDOR3

UNIT_NPC_FLAG_VENDOR (Make sure there is npc_vendor data for this creature)

128
GOSSIP_OPTION_TAXIVENDOR4UNIT_NPC_FLAG_TAXIVENDOR8192
GOSSIP_OPTION_TRAINER5

UNIT_NPC_FLAG_TRAINER (Remember to set trainer_class in creature_template) 

16
GOSSIP_OPTION_SPIRITHEALER6UNIT_NPC_FLAG_SPIRITHEALER16384
GOSSIP_OPTION_SPIRITGUIDE7UNIT_NPC_FLAG_SPIRITGUIDE32768
GOSSIP_OPTION_INNKEEPER8UNIT_NPC_FLAG_INNKEEPER65536
GOSSIP_OPTION_BANKER9UNIT_NPC_FLAG_BANKER131072
GOSSIP_OPTION_PETITIONER10UNIT_NPC_FLAG_PETITIONER262144
GOSSIP_OPTION_TABARDDESIGNER11UNIT_NPC_FLAG_TABARDDESIGNER524288
GOSSIP_OPTION_BATTLEFIELD12UNIT_NPC_FLAG_BATTLEFIELDPERSON1048576
GOSSIP_OPTION_AUCTIONEER13UNIT_NPC_FLAG_AUCTIONEER2097152
GOSSIP_OPTION_STABLEPET14UNIT_NPC_FLAG_STABLE4194304
GOSSIP_OPTION_ARMORER15UNIT_NPC_FLAG_ARMORER (not used)4096
GOSSIP_OPTION_UNLEARNTALENTS16UNIT_NPC_FLAG_TRAINER (bonus option for GOSSIP_OPTION_TRAINER)16
GOSSIP_OPTION_UNLEARNPETTALENTS17UNIT_NPC_FLAG_TRAINER (bonus option for GOSSIP_OPTION_TRAINER)16
GOSSIP_OPTION_LEARNDUALSPEC18UNIT_NPC_FLAG_TRAINER (bonus option for GOSSIP_OPTION_TRAINER)16
GOSSIP_OPTION_OUTDOORPVP19Added by code (option for outdoor 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)

...