19 #ifndef TRINITYCORE_QUEST_H
20 #define TRINITYCORE_QUEST_H
43 #define MAX_QUEST_LOG_SIZE 25
45 #define QUEST_ITEM_DROP_COUNT 4
46 #define QUEST_REWARD_CHOICES_COUNT 6
47 #define QUEST_REWARD_ITEM_COUNT 4
48 #define QUEST_DEPLINK_COUNT 10
49 #define QUEST_REWARD_REPUTATIONS_COUNT 5
50 #define QUEST_EMOTE_COUNT 4
51 #define QUEST_REWARD_CURRENCY_COUNT 4
287 void LoadQuestDetails(
Field* fields);
288 void LoadQuestRequestItems(
Field* fields);
289 void LoadQuestOfferReward(
Field* fields);
290 void LoadQuestTemplateAddon(
Field* fields);
291 void LoadQuestObjective(
Field* fields);
292 void LoadQuestObjectiveVisualEffect(
Field* fields);
349 uint32 GetRewMoneyMaxLevel()
const;
364 bool IsAutoAccept()
const;
365 bool IsAutoComplete()
const;
380 bool IsRaidQuest(
Difficulty difficulty)
const;
381 bool IsAllowedInRaid(
Difficulty difficulty)
const;
float GetXPMultiplier() const
Definition: QuestDef.h:329
Definition: QuestDef.h:178
uint32 GetRewChoiceItemsCount() const
Definition: QuestDef.h:385
Definition: QuestDef.h:128
std::vector< int32 > ObjectiveData
Definition: QuestDef.h:510
Definition: QuestDef.h:226
QuestSpecialFlags
Definition: QuestDef.h:197
Definition: QuestDef.h:174
uint32 GetRewTitle() const
Definition: QuestDef.h:354
uint32 RewardSkillId
Definition: QuestDef.h:439
Definition: QuestDef.h:111
uint32 GetRequiredSkill() const
Definition: QuestDef.h:314
Definition: QuestDef.h:115
int32 GetRewDisplaySpell() const
Definition: QuestDef.h:351
uint32 ID
Definition: QuestDef.h:403
Difficulty
Definition: DBCEnums.h:402
float POIy
Definition: QuestDef.h:434
Definition: QuestDef.h:147
Definition: QuestDef.h:193
std::string LogTitle
Definition: QuestDef.h:455
Definition: QuestDef.h:211
Definition: QuestDef.h:130
Definition: SharedDefines.h:3833
uint32 GetRewCurrencyCount() const
Definition: QuestDef.h:387
uint32 GetRewardReputationMask() const
Definition: QuestDef.h:372
Definition: QuestDef.h:75
Definition: QuestDef.h:81
Definition: QuestDef.h:231
Definition: QuestDef.h:98
Definition: QuestDef.h:201
Definition: QuestDef.h:102
Definition: QuestDef.h:58
int32 RewardMoney
Definition: QuestDef.h:414
Definition: QuestDef.h:177
int8_t int8
Definition: Define.h:148
Definition: QuestDef.h:93
std::string const & GetPortraitGiverText() const
Definition: QuestDef.h:341
Definition: QuestDef.h:221
std::string PortraitGiverName
Definition: QuestDef.h:460
uint32 GetPOIContinent() const
Definition: QuestDef.h:355
Definition: QuestDef.h:149
Definition: QuestDef.h:279
Definition: QuestDef.h:214
uint32 GetSuggestedPlayers() const
Definition: QuestDef.h:320
float RewardMoneyMultiplier
Definition: QuestDef.h:416
Definition: QuestDef.h:194
uint32 GetAllowableClasses() const
Definition: QuestDef.h:312
std::string const & GetQuestDescription() const
Definition: QuestDef.h:336
uint32 GetIncompleteEmote() const
Definition: QuestDef.h:361
Definition: QuestDef.h:209
uint32 GetQuestGiverPortrait() const
Definition: QuestDef.h:373
std::string OfferRewardText
Definition: QuestDef.h:481
Definition: QuestDef.h:96
Definition: QuestDef.h:74
uint32 Timer
Definition: QuestDef.h:509
int32 GetZoneOrSort() const
Definition: QuestDef.h:307
Definition: QuestDef.h:179
Definition: QuestDef.h:202
uint32 RewardSpell
Definition: QuestDef.h:419
Definition: QuestDef.h:125
uint32 RewardKillHonor
Definition: QuestDef.h:421
Definition: QuestDef.h:184
std::string const & GetPortraitGiverName() const
Definition: QuestDef.h:342
int32 GetRewArenaPoints() const
Definition: QuestDef.h:327
Definition: QuestDef.h:99
uint32 GetRewItemsCount() const
Definition: QuestDef.h:386
Definition: QuestDef.h:86
std::string LogDescription
Definition: QuestDef.h:456
Definition: QuestDef.h:133
Definition: QuestDef.h:261
Definition: QuestDef.h:180
Definition: SharedDefines.h:3830
Definition: QuestDef.h:77
Definition: QuestDef.h:502
#define QUEST_EMOTE_COUNT
Definition: QuestDef.h:50
StringVector OfferRewardText
Definition: QuestDef.h:252
Class used to access individual fields of database query result.
Definition: Field.h:56
std::string const & GetRequestItemsText() const
Definition: QuestDef.h:339
uint32 SoundTurnIn
Definition: QuestDef.h:450
std::string QuestDescription
Definition: QuestDef.h:457
bool IsWeekly() const
Definition: QuestDef.h:376
uint32 GetFlags() const
Definition: QuestDef.h:366
QuestObjectives const & GetObjectives() const
Definition: QuestDef.h:345
Definition: QuestDef.h:154
Definition: QuestDef.h:158
Definition: QuestDef.h:239
uint32 GetRequiredMinRepFaction() const
Definition: QuestDef.h:316
StringVector AreaDescription
Definition: QuestDef.h:244
Definition: QuestDef.h:233
Definition: QuestDef.h:203
Definition: SharedDefines.h:3838
uint32 ID
Definition: QuestDef.h:263
Definition: QuestDef.h:63
float RewardXPMultiplier
Definition: QuestDef.h:413
QuestStatus
Definition: QuestDef.h:108
Definition: QuestDef.h:204
uint32 GetNextQuestInChain() const
Definition: QuestDef.h:325
Definition: QuestDef.h:136
int32 GetAllowableRaces() const
Definition: QuestDef.h:313
Definition: QuestDef.h:92
Definition: QuestDef.h:163
int8 StorageIndex
Definition: QuestDef.h:265
uint32 GetRewKillHonor() const
Definition: QuestDef.h:348
Definition: QuestDef.h:213
Definition: QuestDef.h:94
StringVector PortraitGiverText
Definition: QuestDef.h:245
Definition: QuestDef.h:224
Definition: QuestDef.h:212
Definition: QuestDef.h:188
int32 AllowableRaces
Definition: QuestDef.h:453
uint32 GetQuestTurnInPortrait() const
Definition: QuestDef.h:374
Definition: QuestDef.h:78
std::string PortraitTurnInName
Definition: QuestDef.h:462
bool IsSeasonal() const
Definition: QuestDef.h:378
uint32 POIContinent
Definition: QuestDef.h:432
Definition: QuestDef.h:141
Definition: QuestDef.h:132
Definition: QuestDef.h:117
std::string Description
Definition: QuestDef.h:270
uint32 GetSrcSpell() const
Definition: QuestDef.h:333
uint32 GetQuestPackageID() const
Definition: QuestDef.h:306
Definition: QuestDef.h:199
uint32 GetSpecialFlags() const
Definition: QuestDef.h:368
Definition: QuestDef.h:160
Definition: QuestDef.h:225
StringVector RequestItemsText
Definition: QuestDef.h:253
Definition: QuestDef.h:162
int32 GetRequiredMaxRepValue() const
Definition: QuestDef.h:319
bool IsDaily() const
Definition: QuestDef.h:375
uint32 PackageID
Definition: QuestDef.h:406
Definition: QuestDef.h:161
Definition: QuestDef.h:155
uint32 Flags
Definition: QuestDef.h:268
Definition: SharedDefines.h:3840
std::string AreaDescription
Definition: QuestDef.h:458
Definition: QuestDef.h:110
Definition: QuestDef.h:103
Definition: QuestDef.h:62
void SetFlag(uint32 flag)
Definition: QuestDef.h:298
Definition: QuestDef.h:183
uint32 RewardXPDifficulty
Definition: QuestDef.h:412
std::string const & GetOfferRewardText() const
Definition: QuestDef.h:338
uint32 GetRewHonor() const
Definition: QuestDef.h:347
uint32 GetFlagsEx() const
Definition: QuestDef.h:367
uint32 GetRewMoneyDifficulty() const
Definition: QuestDef.h:346
uint32 GetSrcItemCount() const
Definition: QuestDef.h:332
uint32 RewardTitleId
Definition: QuestDef.h:436
int32 RewardArenaPoints
Definition: QuestDef.h:438
uint32 QuestInfoID
Definition: QuestDef.h:409
QuestObjectiveType
Definition: QuestDef.h:218
bool IsMonthly() const
Definition: QuestDef.h:377
uint32 GetRewardSkillId() const
Definition: QuestDef.h:370
uint32 RewardHonor
Definition: QuestDef.h:420
#define QUEST_REWARD_CURRENCY_COUNT
Definition: QuestDef.h:51
Definition: QuestPackets.h:214
Definition: QuestDef.h:228
Definition: QuestDef.h:123
Definition: QuestDef.h:91
StringVector Description
Definition: QuestDef.h:258
uint32 RewardMoneyDifficulty
Definition: QuestDef.h:415
Definition: QuestDef.h:82
Definition: QuestDef.h:64
Definition: QuestDef.h:152
bool IsRepeatable() const
Definition: QuestDef.h:363
Definition: QuestDef.h:68
uint32 GetSrcItemId() const
Definition: QuestDef.h:331
Definition: QuestDef.h:126
Definition: QuestDef.h:61
QuestFailedReason
Definition: QuestDef.h:53
Definition: QuestDef.h:185
Definition: QuestDef.h:116
uint32 RewardDisplaySpell
Definition: QuestDef.h:418
Definition: QuestDef.h:65
uint32 GetBonusTalents() const
Definition: QuestDef.h:326
Definition: QuestDef.h:230
Definition: QuestDef.h:156
StringVector PortraitTurnInText
Definition: QuestDef.h:247
Definition: QuestDef.h:66
uint32 GetRequiredSkillValue() const
Definition: QuestDef.h:315
Definition: SharedDefines.h:3802
Definition: QuestDef.h:220
int32 QuestSortID
Definition: QuestDef.h:408
PrevChainQuests prevChainQuests
Definition: QuestDef.h:394
uint32 GetQuestId() const
Definition: QuestDef.h:304
uint32 RewardTalents
Definition: QuestDef.h:437
uint32 QuestGiverPortrait
Definition: QuestDef.h:441
Definition: QuestDef.h:143
uint32 POIPriority
Definition: QuestDef.h:435
std::string QuestCompletionLog
Definition: QuestDef.h:463
uint32 GetLimitTime() const
Definition: QuestDef.h:321
std::string const & GetPortraitTurnInName() const
Definition: QuestDef.h:344
std::vector< QuestObjective > QuestObjectives
Definition: QuestDef.h:274
Definition: QuestDef.h:55
uint32 GetRewMailDelaySecs() const
Definition: QuestDef.h:353
float GetPOIx() const
Definition: QuestDef.h:356
bool HasSpecialFlag(uint32 flag) const
Definition: QuestDef.h:300
std::string RequestItemsText
Definition: QuestDef.h:476
uint32 GetCompleteEmote() const
Definition: QuestDef.h:362
uint32 GetRewardSkillPoints() const
Definition: QuestDef.h:371
int32_t int32
Definition: Define.h:146
Definition: QuestDef.h:146
std::vector< int32 > VisualEffects
Definition: QuestDef.h:271
Definition: QuestDef.h:97
uint32 RewardBonusMoney
Definition: QuestDef.h:417
std::vector< uint32 > PrevChainQuests
Definition: QuestDef.h:393
Definition: ObjectMgr.h:702
uint32_t uint32
Definition: Define.h:150
StringVector PortraitTurnInName
Definition: QuestDef.h:248
Definition: QuestDef.h:101
uint32 GetQuestType() const
Definition: QuestDef.h:305
Definition: QuestDef.h:95
uint32 GetMaxLevel() const
Definition: QuestDef.h:309
std::string PortraitGiverText
Definition: QuestDef.h:459
std::string PortraitTurnInText
Definition: QuestDef.h:461
uint32 GetRewSpell() const
Definition: QuestDef.h:350
Definition: QuestDef.h:159
Definition: QuestDef.h:84
Definition: QuestDef.h:227
QuestGiverStatus
Definition: QuestDef.h:120
Definition: QuestDef.h:104
Definition: QuestDef.h:157
Definition: QuestDef.h:153
uint32 SuggestedPlayers
Definition: QuestDef.h:410
Definition: QuestDef.h:191
Definition: QuestDef.h:176
Definition: QuestDef.h:145
uint32 GetAreaGroupID() const
Definition: QuestDef.h:369
Definition: QuestDef.h:76
Definition: QuestDef.h:181
Definition: QuestDef.h:144
Definition: BattlegroundMgr.h:57
Definition: QuestDef.h:73
int32 ObjectID
Definition: QuestDef.h:266
Definition: SharedDefines.h:3834
Definition: QuestDef.h:127
Definition: QuestDef.h:173
std::string const & GetPortraitTurnInText() const
Definition: QuestDef.h:343
Definition: QuestDef.h:142
Definition: QuestDef.h:59
Definition: QuestDef.h:175
Definition: QuestDef.h:100
uint32 _rewChoiceItemsCount
Definition: QuestDef.h:397
float GetPOIy() const
Definition: QuestDef.h:357
Definition: QuestDef.h:229
Definition: QuestDef.h:131
void SetSpecialFlag(uint32 flag)
Definition: QuestDef.h:301
std::vector< int32 > PrevQuests
Definition: QuestDef.h:391
std::vector< std::string > StringVector
Definition: Common.h:142
std::string const & GetAreaDescription() const
Definition: QuestDef.h:337
Definition: QuestDef.h:83
StringVector PortraitGiverName
Definition: QuestDef.h:246
StringVector LogTitle
Definition: QuestDef.h:241
uint32 LimitTime
Definition: QuestDef.h:452
uint32 GetRequiredMaxRepFaction() const
Definition: QuestDef.h:318
uint32 GetSoundAccept() const
Definition: QuestDef.h:359
QuestPushReason
Definition: QuestDef.h:71
uint32 QuestTurnInPortrait
Definition: QuestDef.h:442
bool IsDFQuest() const
Definition: QuestDef.h:382
uint32 FlagsEx
Definition: QuestDef.h:424
Definition: QuestDef.h:189
Definition: QuestDef.h:79
QuestFlagsEx
Definition: QuestDef.h:171
#define QUEST_REWARD_CHOICES_COUNT
Definition: QuestDef.h:46
Definition: QuestDef.h:223
bool HasFlag(uint32 flag) const
Definition: QuestDef.h:297
uint32 RewardSkillPoints
Definition: QuestDef.h:440
#define TC_GAME_API
Definition: Define.h:134
int32 GetNextQuestId() const
Definition: QuestDef.h:323
uint32 GetQuestInfoID() const
Definition: QuestDef.h:311
QuestStatus Status
Definition: QuestDef.h:508
int32 GetRequiredMinRepValue() const
Definition: QuestDef.h:317
Definition: QuestDef.h:80
uint32 GetRewMailTemplateId() const
Definition: QuestDef.h:352
Definition: QuestDef.h:182
Definition: QuestDef.h:129
float POIx
Definition: QuestDef.h:433
Definition: QuestDef.h:234
Definition: QuestDef.h:113
uint32 SourceItemId
Definition: QuestDef.h:422
Definition: QuestDef.h:232
uint8_t uint8
Definition: Define.h:152
Definition: QuestDef.h:105
StringVector QuestCompletionLog
Definition: QuestDef.h:249
Definition: QuestDef.h:215
Definition: QuestDef.h:57
std::string const & GetLogTitle() const
Definition: QuestDef.h:334
Definition: QuestDef.h:56
Definition: QuestDef.h:124
uint32 GetXPDifficulty() const
Definition: QuestDef.h:328
#define QUEST_REWARD_ITEM_COUNT
Definition: QuestDef.h:47
Definition: QuestDef.h:85
int32 GetQuestLevel() const
Definition: QuestDef.h:310
Definition: QuestDef.h:222
Definition: QuestDef.h:60
int32 MinLevel
Definition: QuestDef.h:407
Definition: QuestDef.h:190
int32 GetMinLevel() const
Definition: QuestDef.h:308
Definition: QuestDef.h:150
int32 GetExclusiveGroup() const
Definition: QuestDef.h:324
uint32 NextQuestInChain
Definition: QuestDef.h:411
Definition: QuestDef.h:122
#define QUEST_ITEM_DROP_COUNT
Definition: QuestDef.h:45
StringVector QuestDescription
Definition: QuestDef.h:243
Type
Type of JSON value.
Definition: rapidjson.h:642
StringVector LogDescription
Definition: QuestDef.h:242
QuestTradeSkill
Definition: QuestDef.h:89
Definition: QuestDef.h:236
float GetMoneyMultiplier() const
Definition: QuestDef.h:330
float UnkFloat
Definition: QuestDef.h:269
PrevQuests prevQuests
Definition: QuestDef.h:392
Definition: QuestDef.h:186
uint32 AreaGroupID
Definition: QuestDef.h:451
uint32 _rewItemsCount
Definition: QuestDef.h:398
uint32 _rewCurrencyCount
Definition: QuestDef.h:399
QuestStatusData()
Definition: QuestDef.h:504
int32 GetPrevQuestId() const
Definition: QuestDef.h:322
Definition: QuestDef.h:256
std::string const & GetLogDescription() const
Definition: QuestDef.h:335
Definition: QuestDef.h:235
QuestFlags
Definition: QuestDef.h:139
int32 Amount
Definition: QuestDef.h:267
uint32 RewardReputationMask
Definition: QuestDef.h:446
uint32 SoundAccept
Definition: QuestDef.h:449
Definition: QuestDef.h:206
Definition: QuestDef.h:192
QuestObjectives Objectives
Definition: QuestDef.h:454
uint32 GetSoundTurnIn() const
Definition: QuestDef.h:360
bool IsDailyOrWeekly() const
Definition: QuestDef.h:379
uint32 GetPOIPriority() const
Definition: QuestDef.h:358
#define QUEST_REWARD_REPUTATIONS_COUNT
Definition: QuestDef.h:49
Definition: QuestDef.h:148
std::string const & GetQuestCompletionLog() const
Definition: QuestDef.h:340
uint32 Type
Definition: QuestDef.h:404
int32 Level
Definition: QuestDef.h:405
Definition: SharedDefines.h:3824
Definition: QuestDef.h:187
Definition: QuestDef.h:205
uint32 Flags
Definition: QuestDef.h:423
Definition: QuestDef.h:67
Definition: QuestDef.h:151