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_icon freetext into a 3x12 grid table.

...

The id associated with this gossip_menu_option. Must be unique for a given menu_id

option_icon

Panel
NameIDDescription
GOSSIP_ICON_CHAT
= 0, //white
0White chat bubble
GOSSIP_ICON_VENDOR
= 1, //brown
1Brown bag
GOSSIP_ICON_TAXI
= 2, //flight
2Flight
GOSSIP_ICON_TRAINER
= 3, //book
3Book
GOSSIP_ICON_INTERACT_1
= 4, //interaction
4Interaction wheel
GOSSIP_ICON_INTERACT_2
= 5, //interaction
5Interaction wheel
GOSSIP_ICON_MONEY_BAG
= 6, //brown
6Brown bag with yellow dot (gold)
GOSSIP_ICON_TALK
= 7, //white
7White chat bubble with black dots (...)
GOSSIP_ICON_TABARD
= 8, //tabard
8Tabard
GOSSIP_ICON_BATTLE
= 9, //two
9Two swords
GOSSIP_ICON_DOT
= 10, //yellow
10Yellow dot

option_text

This is is the text that you want displayed in the player selectable option. Examples would be "Please 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_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)

...