AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
GossipDef.h File Reference
#include "Common.h"
#include "NPCHandler.h"
#include "Object.h"
#include "QuestDef.h"

Go to the source code of this file.

Classes

struct  GossipMenuItem
 
struct  GossipMenuItemData
 
struct  QuestMenuItem
 
class  GossipMenu
 
class  QuestMenu
 
class  PlayerMenu
 

Macros

#define GOSSIP_MAX_MENU_ITEMS   32
 
#define DEFAULT_GOSSIP_MESSAGE   0xffffff
 

Typedefs

typedef std::map< uint32, GossipMenuItemGossipMenuItemContainer
 
typedef std::map< uint32, GossipMenuItemDataGossipMenuItemDataContainer
 
typedef std::vector< QuestMenuItemQuestMenuItemList
 

Enumerations

enum  Gossip_Option {
  GOSSIP_OPTION_NONE = 0 ,
  GOSSIP_OPTION_GOSSIP = 1 ,
  GOSSIP_OPTION_QUESTGIVER = 2 ,
  GOSSIP_OPTION_VENDOR = 3 ,
  GOSSIP_OPTION_TAXIVENDOR = 4 ,
  GOSSIP_OPTION_TRAINER = 5 ,
  GOSSIP_OPTION_SPIRITHEALER = 6 ,
  GOSSIP_OPTION_SPIRITGUIDE = 7 ,
  GOSSIP_OPTION_INNKEEPER = 8 ,
  GOSSIP_OPTION_BANKER = 9 ,
  GOSSIP_OPTION_PETITIONER = 10 ,
  GOSSIP_OPTION_TABARDDESIGNER = 11 ,
  GOSSIP_OPTION_BATTLEFIELD = 12 ,
  GOSSIP_OPTION_AUCTIONEER = 13 ,
  GOSSIP_OPTION_STABLEPET = 14 ,
  GOSSIP_OPTION_ARMORER = 15 ,
  GOSSIP_OPTION_UNLEARNTALENTS = 16 ,
  GOSSIP_OPTION_UNLEARNPETTALENTS = 17 ,
  GOSSIP_OPTION_LEARNDUALSPEC = 18 ,
  GOSSIP_OPTION_OUTDOORPVP = 19 ,
  GOSSIP_OPTION_DUALSPEC_INFO = 20 ,
  GOSSIP_OPTION_MAX
}
 
enum  GossipOptionIcon {
  GOSSIP_ICON_CHAT = 0 ,
  GOSSIP_ICON_VENDOR = 1 ,
  GOSSIP_ICON_TAXI = 2 ,
  GOSSIP_ICON_TRAINER = 3 ,
  GOSSIP_ICON_INTERACT_1 = 4 ,
  GOSSIP_ICON_INTERACT_2 = 5 ,
  GOSSIP_ICON_MONEY_BAG = 6 ,
  GOSSIP_ICON_TALK = 7 ,
  GOSSIP_ICON_TABARD = 8 ,
  GOSSIP_ICON_BATTLE = 9 ,
  GOSSIP_ICON_DOT = 10 ,
  GOSSIP_ICON_CHAT_11 = 11 ,
  GOSSIP_ICON_CHAT_12 = 12 ,
  GOSSIP_ICON_CHAT_13 = 13 ,
  GOSSIP_ICON_UNK_14 = 14 ,
  GOSSIP_ICON_UNK_15 = 15 ,
  GOSSIP_ICON_CHAT_16 = 16 ,
  GOSSIP_ICON_CHAT_17 = 17 ,
  GOSSIP_ICON_CHAT_18 = 18 ,
  GOSSIP_ICON_CHAT_19 = 19 ,
  GOSSIP_ICON_CHAT_20 = 20 ,
  GOSSIP_ICON_MAX
}
 
enum  Poi_Icon {
  ICON_POI_BLANK = 0 ,
  ICON_POI_GREY_AV_MINE = 1 ,
  ICON_POI_RED_AV_MINE = 2 ,
  ICON_POI_BLUE_AV_MINE = 3 ,
  ICON_POI_BWTOMB = 4 ,
  ICON_POI_SMALL_HOUSE = 5 ,
  ICON_POI_GREYTOWER = 6 ,
  ICON_POI_REDFLAG = 7 ,
  ICON_POI_TOMBSTONE = 8 ,
  ICON_POI_BWTOWER = 9 ,
  ICON_POI_REDTOWER = 10 ,
  ICON_POI_BLUETOWER = 11 ,
  ICON_POI_RWTOWER = 12 ,
  ICON_POI_REDTOMB = 13 ,
  ICON_POI_RWTOMB = 14 ,
  ICON_POI_BLUETOMB = 15 ,
  ICON_POI_16 = 16 ,
  ICON_POI_17 = 17 ,
  ICON_POI_18 = 18 ,
  ICON_POI_19 = 19 ,
  ICON_POI_20 = 20 ,
  ICON_POI_GREYLOGS = 21 ,
  ICON_POI_BWLOGS = 22 ,
  ICON_POI_BLUELOGS = 23 ,
  ICON_POI_RWLOGS = 24 ,
  ICON_POI_REDLOGS = 25 ,
  ICON_POI_26 = 26 ,
  ICON_POI_27 = 27 ,
  ICON_POI_28 = 28 ,
  ICON_POI_29 = 29 ,
  ICON_POI_30 = 30 ,
  ICON_POI_GREYHOUSE = 31 ,
  ICON_POI_BWHOUSE = 32 ,
  ICON_POI_BLUEHOUSE = 33 ,
  ICON_POI_RWHOUSE = 34 ,
  ICON_POI_REDHOUSE = 35 ,
  ICON_POI_GREYHORSE = 36 ,
  ICON_POI_BWHORSE = 37 ,
  ICON_POI_BLUEHORSE = 38 ,
  ICON_POI_RWHORSE = 39 ,
  ICON_POI_REDHORSE = 40
}
 

Macro Definition Documentation

◆ DEFAULT_GOSSIP_MESSAGE

#define DEFAULT_GOSSIP_MESSAGE   0xffffff

◆ GOSSIP_MAX_MENU_ITEMS

#define GOSSIP_MAX_MENU_ITEMS   32

Typedef Documentation

◆ GossipMenuItemContainer

◆ GossipMenuItemDataContainer

◆ QuestMenuItemList

typedef std::vector<QuestMenuItem> QuestMenuItemList

Enumeration Type Documentation

◆ Gossip_Option

Enumerator
GOSSIP_OPTION_NONE 
GOSSIP_OPTION_GOSSIP 
GOSSIP_OPTION_QUESTGIVER 
GOSSIP_OPTION_VENDOR 
GOSSIP_OPTION_TAXIVENDOR 
GOSSIP_OPTION_TRAINER 
GOSSIP_OPTION_SPIRITHEALER 
GOSSIP_OPTION_SPIRITGUIDE 
GOSSIP_OPTION_INNKEEPER 
GOSSIP_OPTION_BANKER 
GOSSIP_OPTION_PETITIONER 
GOSSIP_OPTION_TABARDDESIGNER 
GOSSIP_OPTION_BATTLEFIELD 
GOSSIP_OPTION_AUCTIONEER 
GOSSIP_OPTION_STABLEPET 
GOSSIP_OPTION_ARMORER 
GOSSIP_OPTION_UNLEARNTALENTS 
GOSSIP_OPTION_UNLEARNPETTALENTS 
GOSSIP_OPTION_LEARNDUALSPEC 
GOSSIP_OPTION_OUTDOORPVP 
GOSSIP_OPTION_DUALSPEC_INFO 
GOSSIP_OPTION_MAX 
33{
34 GOSSIP_OPTION_NONE = 0, //UNIT_NPC_FLAG_NONE (0)
35 GOSSIP_OPTION_GOSSIP = 1, //UNIT_NPC_FLAG_GOSSIP (1)
36 GOSSIP_OPTION_QUESTGIVER = 2, //UNIT_NPC_FLAG_QUESTGIVER (2)
37 GOSSIP_OPTION_VENDOR = 3, //UNIT_NPC_FLAG_VENDOR (128)
38 GOSSIP_OPTION_TAXIVENDOR = 4, //UNIT_NPC_FLAG_TAXIVENDOR (8192)
39 GOSSIP_OPTION_TRAINER = 5, //UNIT_NPC_FLAG_TRAINER (16)
40 GOSSIP_OPTION_SPIRITHEALER = 6, //UNIT_NPC_FLAG_SPIRITHEALER (16384)
41 GOSSIP_OPTION_SPIRITGUIDE = 7, //UNIT_NPC_FLAG_SPIRITGUIDE (32768)
42 GOSSIP_OPTION_INNKEEPER = 8, //UNIT_NPC_FLAG_INNKEEPER (65536)
43 GOSSIP_OPTION_BANKER = 9, //UNIT_NPC_FLAG_BANKER (131072)
44 GOSSIP_OPTION_PETITIONER = 10, //UNIT_NPC_FLAG_PETITIONER (262144)
45 GOSSIP_OPTION_TABARDDESIGNER = 11, //UNIT_NPC_FLAG_TABARDDESIGNER (524288)
46 GOSSIP_OPTION_BATTLEFIELD = 12, //UNIT_NPC_FLAG_BATTLEFIELDPERSON (1048576)
47 GOSSIP_OPTION_AUCTIONEER = 13, //UNIT_NPC_FLAG_AUCTIONEER (2097152)
48 GOSSIP_OPTION_STABLEPET = 14, //UNIT_NPC_FLAG_STABLE (4194304)
49 GOSSIP_OPTION_ARMORER = 15, //UNIT_NPC_FLAG_ARMORER (4096)
50 GOSSIP_OPTION_UNLEARNTALENTS = 16, //UNIT_NPC_FLAG_TRAINER (16) (bonus option for GOSSIP_OPTION_TRAINER)
51 GOSSIP_OPTION_UNLEARNPETTALENTS = 17, //UNIT_NPC_FLAG_TRAINER (16) (bonus option for GOSSIP_OPTION_TRAINER)
52 GOSSIP_OPTION_LEARNDUALSPEC = 18, //UNIT_NPC_FLAG_TRAINER (16) (bonus option for GOSSIP_OPTION_TRAINER)
53 GOSSIP_OPTION_OUTDOORPVP = 19, //added by code (option for outdoor pvp creatures)
54 GOSSIP_OPTION_DUALSPEC_INFO = 20, //UNIT_NPC_FLAG_TRAINER (16) (bonus option for GOSSIP_OPTION_TRAINER)
56};
@ GOSSIP_OPTION_AUCTIONEER
Definition: GossipDef.h:47
@ GOSSIP_OPTION_UNLEARNTALENTS
Definition: GossipDef.h:50
@ GOSSIP_OPTION_TRAINER
Definition: GossipDef.h:39
@ GOSSIP_OPTION_ARMORER
Definition: GossipDef.h:49
@ GOSSIP_OPTION_UNLEARNPETTALENTS
Definition: GossipDef.h:51
@ GOSSIP_OPTION_VENDOR
Definition: GossipDef.h:37
@ GOSSIP_OPTION_OUTDOORPVP
Definition: GossipDef.h:53
@ GOSSIP_OPTION_BATTLEFIELD
Definition: GossipDef.h:46
@ GOSSIP_OPTION_TABARDDESIGNER
Definition: GossipDef.h:45
@ GOSSIP_OPTION_TAXIVENDOR
Definition: GossipDef.h:38
@ GOSSIP_OPTION_QUESTGIVER
Definition: GossipDef.h:36
@ GOSSIP_OPTION_LEARNDUALSPEC
Definition: GossipDef.h:52
@ GOSSIP_OPTION_INNKEEPER
Definition: GossipDef.h:42
@ GOSSIP_OPTION_NONE
Definition: GossipDef.h:34
@ GOSSIP_OPTION_SPIRITGUIDE
Definition: GossipDef.h:41
@ GOSSIP_OPTION_DUALSPEC_INFO
Definition: GossipDef.h:54
@ GOSSIP_OPTION_MAX
Definition: GossipDef.h:55
@ GOSSIP_OPTION_PETITIONER
Definition: GossipDef.h:44
@ GOSSIP_OPTION_BANKER
Definition: GossipDef.h:43
@ GOSSIP_OPTION_GOSSIP
Definition: GossipDef.h:35
@ GOSSIP_OPTION_SPIRITHEALER
Definition: GossipDef.h:40
@ GOSSIP_OPTION_STABLEPET
Definition: GossipDef.h:48

◆ GossipOptionIcon

Enumerator
GOSSIP_ICON_CHAT 
GOSSIP_ICON_VENDOR 
GOSSIP_ICON_TAXI 
GOSSIP_ICON_TRAINER 
GOSSIP_ICON_INTERACT_1 
GOSSIP_ICON_INTERACT_2 
GOSSIP_ICON_MONEY_BAG 
GOSSIP_ICON_TALK 
GOSSIP_ICON_TABARD 
GOSSIP_ICON_BATTLE 
GOSSIP_ICON_DOT 
GOSSIP_ICON_CHAT_11 
GOSSIP_ICON_CHAT_12 
GOSSIP_ICON_CHAT_13 
GOSSIP_ICON_UNK_14 
GOSSIP_ICON_UNK_15 
GOSSIP_ICON_CHAT_16 
GOSSIP_ICON_CHAT_17 
GOSSIP_ICON_CHAT_18 
GOSSIP_ICON_CHAT_19 
GOSSIP_ICON_CHAT_20 
GOSSIP_ICON_MAX 
59{
60 GOSSIP_ICON_CHAT = 0, // white chat bubble
61 GOSSIP_ICON_VENDOR = 1, // brown bag
62 GOSSIP_ICON_TAXI = 2, // flightmarker (paperplane)
63 GOSSIP_ICON_TRAINER = 3, // brown book (trainer)
64 GOSSIP_ICON_INTERACT_1 = 4, // golden interaction wheel
65 GOSSIP_ICON_INTERACT_2 = 5, // golden interaction wheel
66 GOSSIP_ICON_MONEY_BAG = 6, // brown bag (with gold coin in lower corner)
67 GOSSIP_ICON_TALK = 7, // white chat bubble (with "..." inside)
68 GOSSIP_ICON_TABARD = 8, // white tabard
69 GOSSIP_ICON_BATTLE = 9, // two crossed swords
70 GOSSIP_ICON_DOT = 10, // yellow dot/point
71 GOSSIP_ICON_CHAT_11 = 11, // white chat bubble
72 GOSSIP_ICON_CHAT_12 = 12, // white chat bubble
73 GOSSIP_ICON_CHAT_13 = 13, // white chat bubble
74 GOSSIP_ICON_UNK_14 = 14, // INVALID - DO NOT USE
75 GOSSIP_ICON_UNK_15 = 15, // INVALID - DO NOT USE
76 GOSSIP_ICON_CHAT_16 = 16, // white chat bubble
77 GOSSIP_ICON_CHAT_17 = 17, // white chat bubble
78 GOSSIP_ICON_CHAT_18 = 18, // white chat bubble
79 GOSSIP_ICON_CHAT_19 = 19, // white chat bubble
80 GOSSIP_ICON_CHAT_20 = 20, // white chat bubble
82};
@ GOSSIP_ICON_CHAT_20
Definition: GossipDef.h:80
@ GOSSIP_ICON_CHAT_11
Definition: GossipDef.h:71
@ GOSSIP_ICON_CHAT
Definition: GossipDef.h:60
@ GOSSIP_ICON_DOT
Definition: GossipDef.h:70
@ GOSSIP_ICON_CHAT_17
Definition: GossipDef.h:77
@ GOSSIP_ICON_TABARD
Definition: GossipDef.h:68
@ GOSSIP_ICON_CHAT_18
Definition: GossipDef.h:78
@ GOSSIP_ICON_CHAT_16
Definition: GossipDef.h:76
@ GOSSIP_ICON_MONEY_BAG
Definition: GossipDef.h:66
@ GOSSIP_ICON_INTERACT_2
Definition: GossipDef.h:65
@ GOSSIP_ICON_CHAT_13
Definition: GossipDef.h:73
@ GOSSIP_ICON_CHAT_19
Definition: GossipDef.h:79
@ GOSSIP_ICON_CHAT_12
Definition: GossipDef.h:72
@ GOSSIP_ICON_INTERACT_1
Definition: GossipDef.h:64
@ GOSSIP_ICON_TAXI
Definition: GossipDef.h:62
@ GOSSIP_ICON_BATTLE
Definition: GossipDef.h:69
@ GOSSIP_ICON_TRAINER
Definition: GossipDef.h:63
@ GOSSIP_ICON_MAX
Definition: GossipDef.h:81
@ GOSSIP_ICON_VENDOR
Definition: GossipDef.h:61
@ GOSSIP_ICON_UNK_15
Definition: GossipDef.h:75
@ GOSSIP_ICON_TALK
Definition: GossipDef.h:67
@ GOSSIP_ICON_UNK_14
Definition: GossipDef.h:74

◆ Poi_Icon

enum Poi_Icon
Enumerator
ICON_POI_BLANK 
ICON_POI_GREY_AV_MINE 
ICON_POI_RED_AV_MINE 
ICON_POI_BLUE_AV_MINE 
ICON_POI_BWTOMB 
ICON_POI_SMALL_HOUSE 
ICON_POI_GREYTOWER 
ICON_POI_REDFLAG 
ICON_POI_TOMBSTONE 
ICON_POI_BWTOWER 
ICON_POI_REDTOWER 
ICON_POI_BLUETOWER 
ICON_POI_RWTOWER 
ICON_POI_REDTOMB 
ICON_POI_RWTOMB 
ICON_POI_BLUETOMB 
ICON_POI_16 
ICON_POI_17 
ICON_POI_18 
ICON_POI_19 
ICON_POI_20 
ICON_POI_GREYLOGS 
ICON_POI_BWLOGS 
ICON_POI_BLUELOGS 
ICON_POI_RWLOGS 
ICON_POI_REDLOGS 
ICON_POI_26 
ICON_POI_27 
ICON_POI_28 
ICON_POI_29 
ICON_POI_30 
ICON_POI_GREYHOUSE 
ICON_POI_BWHOUSE 
ICON_POI_BLUEHOUSE 
ICON_POI_RWHOUSE 
ICON_POI_REDHOUSE 
ICON_POI_GREYHORSE 
ICON_POI_BWHORSE 
ICON_POI_BLUEHORSE 
ICON_POI_RWHORSE 
ICON_POI_REDHORSE 
86{
87 ICON_POI_BLANK = 0, // Blank (not visible)
88 ICON_POI_GREY_AV_MINE = 1, // Grey mine lorry
89 ICON_POI_RED_AV_MINE = 2, // Red mine lorry
90 ICON_POI_BLUE_AV_MINE = 3, // Blue mine lorry
91 ICON_POI_BWTOMB = 4, // Blue and White Tomb Stone
92 ICON_POI_SMALL_HOUSE = 5, // Small house
93 ICON_POI_GREYTOWER = 6, // Grey Tower
94 ICON_POI_REDFLAG = 7, // Red Flag w/Yellow !
95 ICON_POI_TOMBSTONE = 8, // Normal tomb stone (brown)
96 ICON_POI_BWTOWER = 9, // Blue and White Tower
97 ICON_POI_REDTOWER = 10, // Red Tower
98 ICON_POI_BLUETOWER = 11, // Blue Tower
99 ICON_POI_RWTOWER = 12, // Red and White Tower
100 ICON_POI_REDTOMB = 13, // Red Tomb Stone
101 ICON_POI_RWTOMB = 14, // Red and White Tomb Stone
102 ICON_POI_BLUETOMB = 15, // Blue Tomb Stone
103 ICON_POI_16 = 16, // Grey ?
104 ICON_POI_17 = 17, // Blue/White ?
105 ICON_POI_18 = 18, // Blue ?
106 ICON_POI_19 = 19, // Red and White ?
107 ICON_POI_20 = 20, // Red ?
108 ICON_POI_GREYLOGS = 21, // Grey Wood Logs
109 ICON_POI_BWLOGS = 22, // Blue and White Wood Logs
110 ICON_POI_BLUELOGS = 23, // Blue Wood Logs
111 ICON_POI_RWLOGS = 24, // Red and White Wood Logs
112 ICON_POI_REDLOGS = 25, // Red Wood Logs
113 ICON_POI_26 = 26, // Grey ?
114 ICON_POI_27 = 27, // Blue and White ?
115 ICON_POI_28 = 28, // Blue ?
116 ICON_POI_29 = 29, // Red and White ?
117 ICON_POI_30 = 30, // Red ?
118 ICON_POI_GREYHOUSE = 31, // Grey House
119 ICON_POI_BWHOUSE = 32, // Blue and White House
120 ICON_POI_BLUEHOUSE = 33, // Blue House
121 ICON_POI_RWHOUSE = 34, // Red and White House
122 ICON_POI_REDHOUSE = 35, // Red House
123 ICON_POI_GREYHORSE = 36, // Grey Horse
124 ICON_POI_BWHORSE = 37, // Blue and White Horse
125 ICON_POI_BLUEHORSE = 38, // Blue Horse
126 ICON_POI_RWHORSE = 39, // Red and White Horse
127 ICON_POI_REDHORSE = 40 // Red Horse
128};
@ ICON_POI_REDHORSE
Definition: GossipDef.h:127
@ ICON_POI_BLUETOMB
Definition: GossipDef.h:102
@ ICON_POI_BLUEHORSE
Definition: GossipDef.h:125
@ ICON_POI_20
Definition: GossipDef.h:107
@ ICON_POI_RWTOWER
Definition: GossipDef.h:99
@ ICON_POI_GREYLOGS
Definition: GossipDef.h:108
@ ICON_POI_REDHOUSE
Definition: GossipDef.h:122
@ ICON_POI_BWTOWER
Definition: GossipDef.h:96
@ ICON_POI_BWTOMB
Definition: GossipDef.h:91
@ ICON_POI_GREYTOWER
Definition: GossipDef.h:93
@ ICON_POI_REDTOMB
Definition: GossipDef.h:100
@ ICON_POI_RWTOMB
Definition: GossipDef.h:101
@ ICON_POI_REDFLAG
Definition: GossipDef.h:94
@ ICON_POI_19
Definition: GossipDef.h:106
@ ICON_POI_27
Definition: GossipDef.h:114
@ ICON_POI_BWHOUSE
Definition: GossipDef.h:119
@ ICON_POI_BLANK
Definition: GossipDef.h:87
@ ICON_POI_GREYHOUSE
Definition: GossipDef.h:118
@ ICON_POI_REDTOWER
Definition: GossipDef.h:97
@ ICON_POI_BLUETOWER
Definition: GossipDef.h:98
@ ICON_POI_26
Definition: GossipDef.h:113
@ ICON_POI_RWLOGS
Definition: GossipDef.h:111
@ ICON_POI_BWHORSE
Definition: GossipDef.h:124
@ ICON_POI_BLUEHOUSE
Definition: GossipDef.h:120
@ ICON_POI_16
Definition: GossipDef.h:103
@ ICON_POI_BLUE_AV_MINE
Definition: GossipDef.h:90
@ ICON_POI_RED_AV_MINE
Definition: GossipDef.h:89
@ ICON_POI_28
Definition: GossipDef.h:115
@ ICON_POI_18
Definition: GossipDef.h:105
@ ICON_POI_29
Definition: GossipDef.h:116
@ ICON_POI_GREY_AV_MINE
Definition: GossipDef.h:88
@ ICON_POI_GREYHORSE
Definition: GossipDef.h:123
@ ICON_POI_SMALL_HOUSE
Definition: GossipDef.h:92
@ ICON_POI_17
Definition: GossipDef.h:104
@ ICON_POI_REDLOGS
Definition: GossipDef.h:112
@ ICON_POI_30
Definition: GossipDef.h:117
@ ICON_POI_RWHORSE
Definition: GossipDef.h:126
@ ICON_POI_RWHOUSE
Definition: GossipDef.h:121
@ ICON_POI_BWLOGS
Definition: GossipDef.h:109
@ ICON_POI_TOMBSTONE
Definition: GossipDef.h:95
@ ICON_POI_BLUELOGS
Definition: GossipDef.h:110