TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
QuestDef.h File Reference
#include "Define.h"
#include "DatabaseEnv.h"
#include "SharedDefines.h"
#include "WorldPacket.h"
#include "DBCEnums.h"
#include <string>
#include <vector>
+ Include dependency graph for QuestDef.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QuestTemplateLocale
 
struct  QuestObjectivesLocale
 
struct  QuestObjective
 
class  Quest
 
struct  QuestStatusData
 

Namespaces

 WorldPackets
 
 WorldPackets::Quest
 

Macros

#define MAX_QUEST_LOG_SIZE   25
 
#define QUEST_ITEM_DROP_COUNT   4
 
#define QUEST_REWARD_CHOICES_COUNT   6
 
#define QUEST_REWARD_ITEM_COUNT   4
 
#define QUEST_DEPLINK_COUNT   10
 
#define QUEST_REWARD_REPUTATIONS_COUNT   5
 
#define QUEST_EMOTE_COUNT   4
 
#define QUEST_REWARD_CURRENCY_COUNT   4
 

Typedefs

typedef std::vector
< QuestObjective
QuestObjectives
 

Enumerations

enum  QuestFailedReason {
  QUEST_ERR_NONE = 0, QUEST_ERR_FAILED_LOW_LEVEL = 1, QUEST_ERR_FAILED_WRONG_RACE = 6, QUEST_ERR_ALREADY_DONE = 7,
  QUEST_ERR_ONLY_ONE_TIMED = 12, QUEST_ERR_ALREADY_ON1 = 13, QUEST_ERR_FAILED_EXPANSION = 16, QUEST_ERR_ALREADY_ON2 = 18,
  QUEST_ERR_FAILED_MISSING_ITEMS = 21, QUEST_ERR_FAILED_NOT_ENOUGH_MONEY = 23, QUEST_ERR_FAILED_CAIS = 24, QUEST_ERR_ALREADY_DONE_DAILY = 26,
  QUEST_ERR_FAILED_SPELL = 28, QUEST_ERR_HAS_IN_PROGRESS = 30
}
 
enum  QuestPushReason {
  QUEST_PUSH_SUCCESS = 0, QUEST_PUSH_INVALID = 1, QUEST_PUSH_ACCEPTED = 2, QUEST_PUSH_DECLINED = 3,
  QUEST_PUSH_BUSY = 4, QUEST_PUSH_DEAD = 5, QUEST_PUSH_LOG_FULL = 6, QUEST_PUSH_ONQUEST = 7,
  QUEST_PUSH_ALREADY_DONE = 8, QUEST_PUSH_NOT_DAILY = 9, QUEST_PUSH_TIMER_EXPIRED = 10, QUEST_PUSH_NOT_IN_PARTY = 11,
  QUEST_PUSH_DIFFERENT_SERVER_DAILY = 12, QUEST_PUSH_NOT_ALLOWED = 13
}
 
enum  QuestTradeSkill {
  QUEST_TRSKILL_NONE = 0, QUEST_TRSKILL_ALCHEMY = 1, QUEST_TRSKILL_BLACKSMITHING = 2, QUEST_TRSKILL_COOKING = 3,
  QUEST_TRSKILL_ENCHANTING = 4, QUEST_TRSKILL_ENGINEERING = 5, QUEST_TRSKILL_FIRSTAID = 6, QUEST_TRSKILL_HERBALISM = 7,
  QUEST_TRSKILL_LEATHERWORKING = 8, QUEST_TRSKILL_POISONS = 9, QUEST_TRSKILL_TAILORING = 10, QUEST_TRSKILL_MINING = 11,
  QUEST_TRSKILL_FISHING = 12, QUEST_TRSKILL_SKINNING = 13, QUEST_TRSKILL_JEWELCRAFTING = 14
}
 
enum  QuestStatus {
  QUEST_STATUS_NONE = 0, QUEST_STATUS_COMPLETE = 1, QUEST_STATUS_INCOMPLETE = 3, QUEST_STATUS_FAILED = 5,
  QUEST_STATUS_REWARDED = 6, MAX_QUEST_STATUS
}
 
enum  QuestGiverStatus {
  DIALOG_STATUS_NONE = 0x000, DIALOG_STATUS_UNK = 0x001, DIALOG_STATUS_UNAVAILABLE = 0x002, DIALOG_STATUS_LOW_LEVEL_AVAILABLE = 0x004,
  DIALOG_STATUS_LOW_LEVEL_REWARD_REP = 0x008, DIALOG_STATUS_LOW_LEVEL_AVAILABLE_REP = 0x010, DIALOG_STATUS_INCOMPLETE = 0x020, DIALOG_STATUS_REWARD_REP = 0x040,
  DIALOG_STATUS_AVAILABLE_REP = 0x080, DIALOG_STATUS_AVAILABLE = 0x100, DIALOG_STATUS_REWARD2 = 0x200, DIALOG_STATUS_REWARD = 0x400,
  DIALOG_STATUS_SCRIPTED_NO_STATUS = 0x1000
}
 
enum  QuestFlags {
  QUEST_FLAGS_NONE = 0x00000000, QUEST_FLAGS_STAY_ALIVE = 0x00000001, QUEST_FLAGS_PARTY_ACCEPT = 0x00000002, QUEST_FLAGS_EXPLORATION = 0x00000004,
  QUEST_FLAGS_SHARABLE = 0x00000008, QUEST_FLAGS_HAS_CONDITION = 0x00000010, QUEST_FLAGS_HIDE_REWARD_POI = 0x00000020, QUEST_FLAGS_RAID = 0x00000040,
  QUEST_FLAGS_TBC = 0x00000080, QUEST_FLAGS_NO_MONEY_FROM_XP = 0x00000100, QUEST_FLAGS_HIDDEN_REWARDS = 0x00000200, QUEST_FLAGS_TRACKING = 0x00000400,
  QUEST_FLAGS_DEPRECATE_REPUTATION = 0x00000800, QUEST_FLAGS_DAILY = 0x00001000, QUEST_FLAGS_FLAGS_PVP = 0x00002000, QUEST_FLAGS_UNAVAILABLE = 0x00004000,
  QUEST_FLAGS_WEEKLY = 0x00008000, QUEST_FLAGS_AUTOCOMPLETE = 0x00010000, QUEST_FLAGS_DISPLAY_ITEM_IN_TRACKER = 0x00020000, QUEST_FLAGS_OBJ_TEXT = 0x00040000,
  QUEST_FLAGS_AUTO_ACCEPT = 0x00080000, QUEST_FLAGS_UNK1 = 0x00100000, QUEST_FLAGS_AUTO_TAKE = 0x00200000
}
 
enum  QuestFlagsEx {
  QUEST_FLAGS_EX_NONE = 0X000000, QUEST_FLAGS_EX_KEEP_ADDITIONAL_ITEMS = 0X000001, QUEST_FLAGS_EX_SUPPRESS_GOSSIP_COMPLETE = 0X000002, QUEST_FLAGS_EX_SUPPRESS_GOSSIP_ACCEPT = 0X000004,
  QUEST_FLAGS_EX_DISALLOW_PLAYER_AS_QUESTGIVER = 0X000008, QUEST_FLAGS_EX_DISPLAY_CLASS_CHOICE_REWARDS = 0X000010, QUEST_FLAGS_EX_DISPLAY_SPEC_CHOICE_REWARDS = 0X000020, QUEST_FLAGS_EX_REMOVE_FROM_LOG_ON_PERIDOIC_RESET = 0X000040,
  QUEST_FLAGS_EX_ACCOUNT_LEVEL_QUEST = 0X000080, QUEST_FLAGS_EX_LEGENDARY_QUEST = 0X000100, QUEST_FLAGS_EX_NO_GUILD_XP = 0X000200, QUEST_FLAGS_EX_RESET_CACHE_ON_ACCEPT = 0X000400,
  QUEST_FLAGS_EX_NO_ABANDON_ONCE_ANY_OBJECTIVE_COMPLETE = 0X000800, QUEST_FLAGS_EX_RECAST_ACCEPT_SPELL_ON_LOGIN = 0X001000, QUEST_FLAGS_EX_UPDATE_ZONE_AURAS = 0X002000, QUEST_FLAGS_EX_NO_CREDIT_FOR_PROXY = 0X004000,
  QUEST_FLAGS_EX_DISPLAY_AS_DAILY_QUEST = 0X008000, QUEST_FLAGS_EX_PART_OF_QUEST_LINE = 0X010000, QUEST_FLAGS_EX_QUEST_FOR_INTERNAL_BUILDS_ONLY = 0X020000, QUEST_FLAGS_EX_SUPPRESS_SPELL_LEARN_TEXT_LINE = 0X040000,
  QUEST_FLAGS_EX_DISPLAY_HEADER_AS_OBJECTIVE_FOR_TASKS = 0X080000, QUEST_FLAGS_EX_GARRISON_NON_OWNERS_ALLOWED = 0X100000
}
 
enum  QuestSpecialFlags {
  QUEST_SPECIAL_FLAGS_NONE = 0x000, QUEST_SPECIAL_FLAGS_REPEATABLE = 0x001, QUEST_SPECIAL_FLAGS_EXPLORATION_OR_EVENT = 0x002, QUEST_SPECIAL_FLAGS_AUTO_ACCEPT = 0x004,
  QUEST_SPECIAL_FLAGS_DF_QUEST = 0x008, QUEST_SPECIAL_FLAGS_MONTHLY = 0x010, QUEST_SPECIAL_FLAGS_CAST = 0x020, QUEST_SPECIAL_FLAGS_DB_ALLOWED = QUEST_SPECIAL_FLAGS_REPEATABLE | QUEST_SPECIAL_FLAGS_EXPLORATION_OR_EVENT | QUEST_SPECIAL_FLAGS_AUTO_ACCEPT | QUEST_SPECIAL_FLAGS_DF_QUEST | QUEST_SPECIAL_FLAGS_MONTHLY | QUEST_SPECIAL_FLAGS_CAST,
  QUEST_SPECIAL_FLAGS_DELIVER = 0x080, QUEST_SPECIAL_FLAGS_SPEAKTO = 0x100, QUEST_SPECIAL_FLAGS_KILL = 0x200, QUEST_SPECIAL_FLAGS_TIMED = 0x400,
  QUEST_SPECIAL_FLAGS_PLAYER_KILL = 0x800
}
 
enum  QuestObjectiveType {
  QUEST_OBJECTIVE_MONSTER = 0, QUEST_OBJECTIVE_ITEM = 1, QUEST_OBJECTIVE_GAMEOBJECT = 2, QUEST_OBJECTIVE_TALKTO = 3,
  QUEST_OBJECTIVE_CURRENCY = 4, QUEST_OBJECTIVE_LEARNSPELL = 5, QUEST_OBJECTIVE_MIN_REPUTATION = 6, QUEST_OBJECTIVE_MAX_REPUTATION = 7,
  QUEST_OBJECTIVE_MONEY = 8, QUEST_OBJECTIVE_PLAYERKILLS = 9, QUEST_OBJECTIVE_AREATRIGGER = 10, QUEST_OBJECTIVE_WINPETBATTLEAGAINSTNPC = 11,
  QUEST_OBJECTIVE_DEFEATBATTLEPET = 12, QUEST_OBJECTIVE_WINPVPPETBATTLES = 13, QUEST_OBJECTIVE_CRITERIA_TREE = 14, QUEST_OBJECTIVE_HAVE_CURRENCY = 16,
  QUEST_OBJECTIVE_OBTAIN_CURRENCY = 17
}
 

Macro Definition Documentation

#define MAX_QUEST_LOG_SIZE   25
#define QUEST_DEPLINK_COUNT   10
#define QUEST_EMOTE_COUNT   4
#define QUEST_ITEM_DROP_COUNT   4
#define QUEST_REWARD_CHOICES_COUNT   6
#define QUEST_REWARD_CURRENCY_COUNT   4
#define QUEST_REWARD_ITEM_COUNT   4
#define QUEST_REWARD_REPUTATIONS_COUNT   5

Typedef Documentation

typedef std::vector<QuestObjective> QuestObjectives

Enumeration Type Documentation

Enumerator
QUEST_ERR_NONE 
QUEST_ERR_FAILED_LOW_LEVEL 
QUEST_ERR_FAILED_WRONG_RACE 
QUEST_ERR_ALREADY_DONE 
QUEST_ERR_ONLY_ONE_TIMED 
QUEST_ERR_ALREADY_ON1 
QUEST_ERR_FAILED_EXPANSION 
QUEST_ERR_ALREADY_ON2 
QUEST_ERR_FAILED_MISSING_ITEMS 
QUEST_ERR_FAILED_NOT_ENOUGH_MONEY 
QUEST_ERR_FAILED_CAIS 
QUEST_ERR_ALREADY_DONE_DAILY 
QUEST_ERR_FAILED_SPELL 
QUEST_ERR_HAS_IN_PROGRESS 
54 {
55  QUEST_ERR_NONE = 0,
56  QUEST_ERR_FAILED_LOW_LEVEL = 1, // "You are not high enough level for that quest.""
57  QUEST_ERR_FAILED_WRONG_RACE = 6, // "That quest is not available to your race."
58  QUEST_ERR_ALREADY_DONE = 7, // "You have completed that daily quest today."
59  QUEST_ERR_ONLY_ONE_TIMED = 12, // "You can only be on one timed quest at a time"
60  QUEST_ERR_ALREADY_ON1 = 13, // "You are already on that quest"
61  QUEST_ERR_FAILED_EXPANSION = 16, // "This quest requires an expansion enabled account."
62  QUEST_ERR_ALREADY_ON2 = 18, // "You are already on that quest"
63  QUEST_ERR_FAILED_MISSING_ITEMS = 21, // "You don't have the required items with you. Check storage."
64  QUEST_ERR_FAILED_NOT_ENOUGH_MONEY = 23, // "You don't have enough money for that quest"
65  QUEST_ERR_FAILED_CAIS = 24, // "You cannot complete quests once you have reached tired time"
66  QUEST_ERR_ALREADY_DONE_DAILY = 26, // "You have completed that daily quest today."
67  QUEST_ERR_FAILED_SPELL = 28, // "You haven't learned the required spell."
68  QUEST_ERR_HAS_IN_PROGRESS = 30 // "Progress Bar objective not completed"
69 };
Definition: QuestDef.h:58
Definition: QuestDef.h:63
Definition: QuestDef.h:62
Definition: QuestDef.h:64
Definition: QuestDef.h:68
Definition: QuestDef.h:61
Definition: QuestDef.h:65
Definition: QuestDef.h:66
Definition: QuestDef.h:55
Definition: QuestDef.h:59
Definition: QuestDef.h:57
Definition: QuestDef.h:56
Definition: QuestDef.h:60
Definition: QuestDef.h:67
enum QuestFlags
Enumerator
QUEST_FLAGS_NONE 
QUEST_FLAGS_STAY_ALIVE 
QUEST_FLAGS_PARTY_ACCEPT 
QUEST_FLAGS_EXPLORATION 
QUEST_FLAGS_SHARABLE 
QUEST_FLAGS_HAS_CONDITION 
QUEST_FLAGS_HIDE_REWARD_POI 
QUEST_FLAGS_RAID 
QUEST_FLAGS_TBC 
QUEST_FLAGS_NO_MONEY_FROM_XP 
QUEST_FLAGS_HIDDEN_REWARDS 
QUEST_FLAGS_TRACKING 
QUEST_FLAGS_DEPRECATE_REPUTATION 
QUEST_FLAGS_DAILY 
QUEST_FLAGS_FLAGS_PVP 
QUEST_FLAGS_UNAVAILABLE 
QUEST_FLAGS_WEEKLY 
QUEST_FLAGS_AUTOCOMPLETE 
QUEST_FLAGS_DISPLAY_ITEM_IN_TRACKER 
QUEST_FLAGS_OBJ_TEXT 
QUEST_FLAGS_AUTO_ACCEPT 
QUEST_FLAGS_UNK1 
QUEST_FLAGS_AUTO_TAKE 
140 {
141  QUEST_FLAGS_NONE = 0x00000000,
142  QUEST_FLAGS_STAY_ALIVE = 0x00000001, // Not used currently
143  QUEST_FLAGS_PARTY_ACCEPT = 0x00000002, // Not used currently. If player in party, all players that can accept this quest will receive confirmation box to accept quest CMSG_QUEST_CONFIRM_ACCEPT/SMSG_QUEST_CONFIRM_ACCEPT
144  QUEST_FLAGS_EXPLORATION = 0x00000004, // Not used currently
145  QUEST_FLAGS_SHARABLE = 0x00000008, // Can be shared: Player::CanShareQuest()
146  QUEST_FLAGS_HAS_CONDITION = 0x00000010, // Not used currently
147  QUEST_FLAGS_HIDE_REWARD_POI = 0x00000020, // Not used currently: Unsure of content
148  QUEST_FLAGS_RAID = 0x00000040, // Not used currently
149  QUEST_FLAGS_TBC = 0x00000080, // Not used currently: Available if TBC expansion enabled only
150  QUEST_FLAGS_NO_MONEY_FROM_XP = 0x00000100, // Not used currently: Experience is not converted to gold at max level
151  QUEST_FLAGS_HIDDEN_REWARDS = 0x00000200, // Items and money rewarded only sent in SMSG_QUESTGIVER_OFFER_REWARD (not in SMSG_QUESTGIVER_QUEST_DETAILS or in client quest log(SMSG_QUEST_QUERY_RESPONSE))
152  QUEST_FLAGS_TRACKING = 0x00000400, // These quests are automatically rewarded on quest complete and they will never appear in quest log client side.
153  QUEST_FLAGS_DEPRECATE_REPUTATION = 0x00000800, // Not used currently
154  QUEST_FLAGS_DAILY = 0x00001000, // Used to know quest is Daily one
155  QUEST_FLAGS_FLAGS_PVP = 0x00002000, // Having this quest in log forces PvP flag
156  QUEST_FLAGS_UNAVAILABLE = 0x00004000, // Used on quests that are not generically available
157  QUEST_FLAGS_WEEKLY = 0x00008000,
158  QUEST_FLAGS_AUTOCOMPLETE = 0x00010000, // Quests with this flag player submit automatically by special button in player gui
159  QUEST_FLAGS_DISPLAY_ITEM_IN_TRACKER = 0x00020000, // Displays usable item in quest tracker
160  QUEST_FLAGS_OBJ_TEXT = 0x00040000, // use Objective text as Complete text
161  QUEST_FLAGS_AUTO_ACCEPT = 0x00080000, // The client recognizes this flag as auto-accept. However, NONE of the current quests (3.3.5a) have this flag. Maybe blizz used to use it, or will use it in the future.
162  QUEST_FLAGS_UNK1 = 0x00100000, //
163  QUEST_FLAGS_AUTO_TAKE = 0x00200000, // Automatically suggestion of accepting quest. Not from npc.
164  //QUEST_FLAGS_UNK2 = 0x00400000,
165  //QUEST_FLAGS_UNK3 = 0x00800000, // Found in quest 14069
166  //QUEST_FLAGS_UNK4 = 0x01000000,
167  // ... 4.x added flags up to 0x80000000 - all unknown for now
168 };
Definition: QuestDef.h:147
Definition: QuestDef.h:149
Definition: QuestDef.h:154
Definition: QuestDef.h:158
Definition: QuestDef.h:163
Definition: QuestDef.h:141
Definition: QuestDef.h:160
Definition: QuestDef.h:162
Definition: QuestDef.h:161
Definition: QuestDef.h:155
Definition: QuestDef.h:152
Definition: QuestDef.h:156
Definition: QuestDef.h:143
Definition: QuestDef.h:146
Definition: QuestDef.h:159
Definition: QuestDef.h:157
Definition: QuestDef.h:153
Definition: QuestDef.h:145
Definition: QuestDef.h:144
Definition: QuestDef.h:142
Definition: QuestDef.h:150
Definition: QuestDef.h:148
Definition: QuestDef.h:151
Enumerator
QUEST_FLAGS_EX_NONE 
QUEST_FLAGS_EX_KEEP_ADDITIONAL_ITEMS 
QUEST_FLAGS_EX_SUPPRESS_GOSSIP_COMPLETE 
QUEST_FLAGS_EX_SUPPRESS_GOSSIP_ACCEPT 
QUEST_FLAGS_EX_DISALLOW_PLAYER_AS_QUESTGIVER 
QUEST_FLAGS_EX_DISPLAY_CLASS_CHOICE_REWARDS 
QUEST_FLAGS_EX_DISPLAY_SPEC_CHOICE_REWARDS 
QUEST_FLAGS_EX_REMOVE_FROM_LOG_ON_PERIDOIC_RESET 
QUEST_FLAGS_EX_ACCOUNT_LEVEL_QUEST 
QUEST_FLAGS_EX_LEGENDARY_QUEST 
QUEST_FLAGS_EX_NO_GUILD_XP 
QUEST_FLAGS_EX_RESET_CACHE_ON_ACCEPT 
QUEST_FLAGS_EX_NO_ABANDON_ONCE_ANY_OBJECTIVE_COMPLETE 
QUEST_FLAGS_EX_RECAST_ACCEPT_SPELL_ON_LOGIN 
QUEST_FLAGS_EX_UPDATE_ZONE_AURAS 
QUEST_FLAGS_EX_NO_CREDIT_FOR_PROXY 
QUEST_FLAGS_EX_DISPLAY_AS_DAILY_QUEST 
QUEST_FLAGS_EX_PART_OF_QUEST_LINE 
QUEST_FLAGS_EX_QUEST_FOR_INTERNAL_BUILDS_ONLY 
QUEST_FLAGS_EX_SUPPRESS_SPELL_LEARN_TEXT_LINE 
QUEST_FLAGS_EX_DISPLAY_HEADER_AS_OBJECTIVE_FOR_TASKS 
QUEST_FLAGS_EX_GARRISON_NON_OWNERS_ALLOWED 
172 {
173  QUEST_FLAGS_EX_NONE = 0X000000,
183  QUEST_FLAGS_EX_NO_GUILD_XP = 0X000200,
195 };
Definition: QuestDef.h:174
Definition: QuestDef.h:184
Definition: QuestDef.h:188
Definition: QuestDef.h:183
Definition: QuestDef.h:176
Definition: QuestDef.h:181
Definition: QuestDef.h:173
Definition: QuestDef.h:175
Definition: QuestDef.h:189
Definition: QuestDef.h:182
Definition: QuestDef.h:190
Definition: QuestDef.h:187
Enumerator
DIALOG_STATUS_NONE 
DIALOG_STATUS_UNK 
DIALOG_STATUS_UNAVAILABLE 
DIALOG_STATUS_LOW_LEVEL_AVAILABLE 
DIALOG_STATUS_LOW_LEVEL_REWARD_REP 
DIALOG_STATUS_LOW_LEVEL_AVAILABLE_REP 
DIALOG_STATUS_INCOMPLETE 
DIALOG_STATUS_REWARD_REP 
DIALOG_STATUS_AVAILABLE_REP 
DIALOG_STATUS_AVAILABLE 
DIALOG_STATUS_REWARD2 
DIALOG_STATUS_REWARD 
DIALOG_STATUS_SCRIPTED_NO_STATUS 
121 {
122  DIALOG_STATUS_NONE = 0x000,
123  DIALOG_STATUS_UNK = 0x001,
128  DIALOG_STATUS_INCOMPLETE = 0x020,
129  DIALOG_STATUS_REWARD_REP = 0x040,
131  DIALOG_STATUS_AVAILABLE = 0x100,
132  DIALOG_STATUS_REWARD2 = 0x200, // no yellow dot on minimap
133  DIALOG_STATUS_REWARD = 0x400, // yellow dot on minimap
134 
135  // Custom value meaning that script call did not return any valid quest status
137 };
Definition: QuestDef.h:128
Definition: QuestDef.h:130
Definition: QuestDef.h:125
Definition: QuestDef.h:133
Definition: QuestDef.h:136
Definition: QuestDef.h:132
Definition: QuestDef.h:123
Definition: QuestDef.h:126
Definition: QuestDef.h:127
Definition: QuestDef.h:131
Definition: QuestDef.h:129
Definition: QuestDef.h:124
Definition: QuestDef.h:122
Enumerator
QUEST_OBJECTIVE_MONSTER 
QUEST_OBJECTIVE_ITEM 
QUEST_OBJECTIVE_GAMEOBJECT 
QUEST_OBJECTIVE_TALKTO 
QUEST_OBJECTIVE_CURRENCY 
QUEST_OBJECTIVE_LEARNSPELL 
QUEST_OBJECTIVE_MIN_REPUTATION 
QUEST_OBJECTIVE_MAX_REPUTATION 
QUEST_OBJECTIVE_MONEY 
QUEST_OBJECTIVE_PLAYERKILLS 
QUEST_OBJECTIVE_AREATRIGGER 
QUEST_OBJECTIVE_WINPETBATTLEAGAINSTNPC 
QUEST_OBJECTIVE_DEFEATBATTLEPET 
QUEST_OBJECTIVE_WINPVPPETBATTLES 
QUEST_OBJECTIVE_CRITERIA_TREE 
QUEST_OBJECTIVE_HAVE_CURRENCY 
QUEST_OBJECTIVE_OBTAIN_CURRENCY 
219 {
235  QUEST_OBJECTIVE_HAVE_CURRENCY = 16, // requires the player to have X currency when turning in but does not consume it
236  QUEST_OBJECTIVE_OBTAIN_CURRENCY = 17 // requires the player to gain X currency after starting the quest but not required to keep it until the end (does not consume)
237 };
Definition: QuestDef.h:226
Definition: QuestDef.h:231
Definition: QuestDef.h:221
Definition: QuestDef.h:233
Definition: QuestDef.h:224
Definition: QuestDef.h:225
Definition: QuestDef.h:228
Definition: QuestDef.h:230
Definition: QuestDef.h:220
Definition: QuestDef.h:227
Definition: QuestDef.h:229
Definition: QuestDef.h:223
Definition: QuestDef.h:234
Definition: QuestDef.h:232
Definition: QuestDef.h:222
Definition: QuestDef.h:236
Definition: QuestDef.h:235
Enumerator
QUEST_PUSH_SUCCESS 
QUEST_PUSH_INVALID 
QUEST_PUSH_ACCEPTED 
QUEST_PUSH_DECLINED 
QUEST_PUSH_BUSY 
QUEST_PUSH_DEAD 
QUEST_PUSH_LOG_FULL 
QUEST_PUSH_ONQUEST 
QUEST_PUSH_ALREADY_DONE 
QUEST_PUSH_NOT_DAILY 
QUEST_PUSH_TIMER_EXPIRED 
QUEST_PUSH_NOT_IN_PARTY 
QUEST_PUSH_DIFFERENT_SERVER_DAILY 
QUEST_PUSH_NOT_ALLOWED 
72 {
73  QUEST_PUSH_SUCCESS = 0, // "Sharing quest with %s..."
74  QUEST_PUSH_INVALID = 1, // "%s is not eligible for that quest"
75  QUEST_PUSH_ACCEPTED = 2, // "%s has accepted your quest"
76  QUEST_PUSH_DECLINED = 3, // "%s has declined your quest"
77  QUEST_PUSH_BUSY = 4, // "%s is busy"
78  QUEST_PUSH_DEAD = 5, // "%s is dead."
79  QUEST_PUSH_LOG_FULL = 6, // "%s's quest log is full"
80  QUEST_PUSH_ONQUEST = 7, // "%s is already on that quest"
81  QUEST_PUSH_ALREADY_DONE = 8, // "%s has completed that quest"
82  QUEST_PUSH_NOT_DAILY = 9, // "That quest cannot be shared today"
83  QUEST_PUSH_TIMER_EXPIRED = 10, // "Quest sharing timer has expired"
84  QUEST_PUSH_NOT_IN_PARTY = 11, // "You are not in a party"
85  QUEST_PUSH_DIFFERENT_SERVER_DAILY = 12, // "%s is not eligible for that quest today"
86  QUEST_PUSH_NOT_ALLOWED = 13 // "That quest cannot be shared"
87 };
Definition: QuestDef.h:75
Definition: QuestDef.h:81
Definition: QuestDef.h:74
Definition: QuestDef.h:86
Definition: QuestDef.h:77
Definition: QuestDef.h:78
Definition: QuestDef.h:82
Definition: QuestDef.h:84
Definition: QuestDef.h:76
Definition: QuestDef.h:73
Definition: QuestDef.h:83
Definition: QuestDef.h:79
Definition: QuestDef.h:80
Definition: QuestDef.h:85
Enumerator
QUEST_SPECIAL_FLAGS_NONE 
QUEST_SPECIAL_FLAGS_REPEATABLE 
QUEST_SPECIAL_FLAGS_EXPLORATION_OR_EVENT 
QUEST_SPECIAL_FLAGS_AUTO_ACCEPT 
QUEST_SPECIAL_FLAGS_DF_QUEST 
QUEST_SPECIAL_FLAGS_MONTHLY 
QUEST_SPECIAL_FLAGS_CAST 
QUEST_SPECIAL_FLAGS_DB_ALLOWED 
QUEST_SPECIAL_FLAGS_DELIVER 
QUEST_SPECIAL_FLAGS_SPEAKTO 
QUEST_SPECIAL_FLAGS_KILL 
QUEST_SPECIAL_FLAGS_TIMED 
QUEST_SPECIAL_FLAGS_PLAYER_KILL 
198 {
199  QUEST_SPECIAL_FLAGS_NONE = 0x000,
200  // Trinity flags for set SpecialFlags in DB if required but used only at server
201  QUEST_SPECIAL_FLAGS_REPEATABLE = 0x001, // Set by 1 in SpecialFlags from DB
202  QUEST_SPECIAL_FLAGS_EXPLORATION_OR_EVENT = 0x002, // Set by 2 in SpecialFlags from DB (if required area explore, spell SPELL_EFFECT_QUEST_COMPLETE casting, table `FECT_QUEST_COMPLETE casting, table `*_script` command SCRIPT_COMMAND_QUEST_EXPLORED use, set from script)
203  QUEST_SPECIAL_FLAGS_AUTO_ACCEPT = 0x004, // Set by 4 in SpecialFlags in DB if the quest is to be auto-accepted.
204  QUEST_SPECIAL_FLAGS_DF_QUEST = 0x008, // Set by 8 in SpecialFlags in DB if the quest is used by Dungeon Finder.
205  QUEST_SPECIAL_FLAGS_MONTHLY = 0x010, // Set by 16 in SpecialFlags in DB if the quest is reset at the begining of the month
206  QUEST_SPECIAL_FLAGS_CAST = 0x020, // Set by 32 in SpecialFlags in DB if the quest requires RequiredOrNpcGo killcredit but NOT kill (a spell cast)
207  // room for more custom flags
208 
210 
211  QUEST_SPECIAL_FLAGS_DELIVER = 0x080, // Internal flag computed only
212  QUEST_SPECIAL_FLAGS_SPEAKTO = 0x100, // Internal flag computed only
213  QUEST_SPECIAL_FLAGS_KILL = 0x200, // Internal flag computed only
214  QUEST_SPECIAL_FLAGS_TIMED = 0x400, // Internal flag computed only
215  QUEST_SPECIAL_FLAGS_PLAYER_KILL = 0x800 // Internal flag computed only
216 };
Definition: QuestDef.h:211
Definition: QuestDef.h:201
Definition: QuestDef.h:214
Definition: QuestDef.h:209
Definition: QuestDef.h:203
Definition: QuestDef.h:204
Definition: QuestDef.h:213
Definition: QuestDef.h:212
Definition: QuestDef.h:199
Definition: QuestDef.h:215
Definition: QuestDef.h:206
Definition: QuestDef.h:205
Enumerator
QUEST_STATUS_NONE 
QUEST_STATUS_COMPLETE 
QUEST_STATUS_INCOMPLETE 
QUEST_STATUS_FAILED 
QUEST_STATUS_REWARDED 
MAX_QUEST_STATUS 
109 {
110  QUEST_STATUS_NONE = 0,
112  //QUEST_STATUS_UNAVAILABLE = 2,
114  //QUEST_STATUS_AVAILABLE = 4,
116  QUEST_STATUS_REWARDED = 6, // Not used in DB
118 };
Definition: QuestDef.h:111
Definition: QuestDef.h:115
Definition: QuestDef.h:117
Definition: QuestDef.h:110
Definition: QuestDef.h:116
Definition: QuestDef.h:113
Enumerator
QUEST_TRSKILL_NONE 
QUEST_TRSKILL_ALCHEMY 
QUEST_TRSKILL_BLACKSMITHING 
QUEST_TRSKILL_COOKING 
QUEST_TRSKILL_ENCHANTING 
QUEST_TRSKILL_ENGINEERING 
QUEST_TRSKILL_FIRSTAID 
QUEST_TRSKILL_HERBALISM 
QUEST_TRSKILL_LEATHERWORKING 
QUEST_TRSKILL_POISONS 
QUEST_TRSKILL_TAILORING 
QUEST_TRSKILL_MINING 
QUEST_TRSKILL_FISHING 
QUEST_TRSKILL_SKINNING 
QUEST_TRSKILL_JEWELCRAFTING 
90 {
106 };
Definition: QuestDef.h:98
Definition: QuestDef.h:102
Definition: QuestDef.h:93
Definition: QuestDef.h:96
Definition: QuestDef.h:99
Definition: QuestDef.h:92
Definition: QuestDef.h:94
Definition: QuestDef.h:103
Definition: QuestDef.h:91
Definition: QuestDef.h:97
Definition: QuestDef.h:101
Definition: QuestDef.h:95
Definition: QuestDef.h:104
Definition: QuestDef.h:100
Definition: QuestDef.h:105