TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
QuestPackets.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the
6  * Free Software Foundation; either version 2 of the License, or (at your
7  * option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef QuestPackets_h__
19 #define QuestPackets_h__
20 
21 #include "Packet.h"
22 #include "QuestDef.h"
23 #include "ObjectGuid.h"
24 #include "ItemPackets.h"
25 
26 namespace WorldPackets
27 {
28  namespace Quest
29  {
30  class QuestGiverStatusQuery final : public ClientPacket
31  {
32  public:
34 
35  void Read() override;
36 
38  };
39 
40  // Empty packet, server replies with quest giver status of visible creatures
42  {
43  public:
45 
46  void Read() override { }
47  };
48 
50  {
52  QuestGiverInfo(ObjectGuid const& guid, uint32 status)
53  : Guid(guid), Status(status) { }
54 
57  };
58 
59  class QuestGiverStatus final : public ServerPacket
60  {
61  public:
63 
64  WorldPacket const* Write() override;
65 
67  };
68 
70  {
71  public:
73 
74  WorldPacket const* Write() override;
75 
76  std::vector<QuestGiverInfo> QuestGiver;
77  };
78 
79  class QuestGiverHello final : public ClientPacket
80  {
81  public:
83 
84  void Read() override;
85 
87  };
88 
89  class QueryQuestInfo final : public ClientPacket
90  {
91  public:
93 
94  void Read() override;
95 
98  };
99 
101  {
105  };
106 
107  struct QuestInfo
108  {
110  int32 QuestType = 0; // Accepted values: 0, 1 or 2. 0 == IsAutoComplete() (skip objectives/details)
111  int32 QuestLevel = 0; // may be -1, static data, in other cases must be used dynamic level: Player::GetQuestLevel (0 is not known, but assuming this is no longer valid for quest intended for client)
114  int32 QuestSortID = 0; // zone or sort to display in quest log
117  int32 RewardNextQuest = 0; // client will request this quest from NPC, if not 0
118  int32 RewardXPDifficulty = 0; // used for calculating rewarded experience
119  float RewardXPMultiplier = 1.0f;
120  int32 RewardMoney = 0; // reward money (below max lvl)
122  float RewardMoneyMultiplier = 1.0f;
124  int32 RewardDisplaySpell = 0; // reward spell, this spell will be displayed (icon)
127  float RewardKillHonor = 0.0f;
132  float POIx = 0.0f;
133  float POIy = 0.0f;
136  std::string LogTitle;
137  std::string LogDescription;
138  std::string QuestDescription;
139  std::string AreaDescription;
140  int32 RewardTitle = 0; // new 2.4.0, player gets this title (id from CharTitles)
143  int32 RewardSkillLineID = 0; // reward skill id
144  int32 RewardNumSkillUps = 0; // reward skill points
145  int32 PortraitGiver = 0; // quest giver entry ?
146  int32 PortraitTurnIn = 0; // quest turn in entry ?
147  std::string PortraitGiverText;
148  std::string PortraitGiverName;
149  std::string PortraitTurnInText;
150  std::string PortraitTurnInName;
151  std::string QuestCompletionLog;
152  int32 RewardFactionFlags = 0; // rep mask (unsure on what it does)
157  std::vector<QuestObjective> Objectives;
168  };
169 
171  {
172  public:
174 
175  WorldPacket const* Write() override;
176 
177  bool Allow = false;
180  };
181 
182  class QuestUpdateAddCredit final : public ServerPacket
183  {
184  public:
186 
187  WorldPacket const* Write() override;
188 
195  };
196 
198  {
199  public:
201 
202  WorldPacket const* Write() override;
203 
206  };
207 
209  {
212  };
213 
215  {
219  int32 XP = 0;
235  };
236 
238  {
239  QuestDescEmote(int32 type = 0, uint32 delay = 0) : Type(type), Delay(delay) {}
242  };
243 
245  {
249  bool AutoLaunched = false;
252  std::vector<QuestDescEmote> Emotes;
253  int32 QuestFlags[2] = {}; // Flags and FlagsEx
254  };
255 
257  {
258  public:
260 
261  WorldPacket const* Write() override;
262 
265  std::string QuestTitle;
266  std::string RewardText;
267  std::string PortraitGiverText;
268  std::string PortraitGiverName;
269  std::string PortraitTurnInText;
270  std::string PortraitTurnInName;
273  };
274 
276  {
277  public:
279 
280  void Read() override;
281 
285  };
286 
288  {
289  public:
291 
292  WorldPacket const* Write() override;
293 
294  bool UseQuestReward = false;
301  bool LaunchGossip = 0;
303  };
304 
306  {
307  public:
309 
310  void Read() override;
311 
312  ObjectGuid QuestGiverGUID; // NPC / GameObject guid for normal quest completion. Player guid for self-completed quests
314  bool FromScript = false; // 0 - standart complete quest mode with npc, 1 - auto-complete mode
315  };
316 
318  {
319  int32 ID = 0;
322  uint8 Type = 0;
323  };
324 
326  {
327  public:
329 
330  WorldPacket const* Write() override;
331 
339  std::vector<QuestObjectiveSimple> Objectives;
340  std::vector<QuestDescEmote> DescEmotes;
341  std::vector<int32> LearnSpells;
344  std::string PortraitGiverText;
345  std::string PortraitGiverName;
346  std::string PortraitTurnInText;
347  std::string PortraitTurnInName;
348  std::string QuestTitle;
349  std::string LogDescription;
350  std::string DescriptionText;
351  bool DisplayPopup = false;
352  bool StartCheat = false;
353  bool AutoLaunched = false;
354  };
355 
357  {
358  QuestObjectiveCollect(int32 objectID = 0, int32 amount = 0) : ObjectID(objectID), Amount(amount) { }
361  };
362 
364  {
365  QuestCurrency(int32 currencyID = 0, int32 amount = 0) : CurrencyID(currencyID), Amount(amount) { }
368  };
369 
371  {
372  public:
374 
375  WorldPacket const* Write() override;
376 
382  bool AutoLaunched = false;
385  std::vector<QuestObjectiveCollect> Collect;
386  std::vector<QuestCurrency> Currency;
389  std::string QuestTitle;
390  std::string CompletionText;
391  };
392 
394  {
395  public:
397 
398  void Read() override;
399 
402  };
403 
404  class QuestGiverQueryQuest final : public ClientPacket
405  {
406  public:
408 
409  void Read() override;
410 
413  bool RespondToGiver = false;
414  };
415 
416  class QuestGiverAcceptQuest final : public ClientPacket
417  {
418  public:
420 
421  void Read() override;
422 
425  bool StartCheat = false;
426  };
427 
428  class QuestLogRemoveQuest final : public ClientPacket
429  {
430  public:
432 
433  void Read() override;
434 
436  };
437 
439  {
440  GossipTextData(uint32 questID, uint32 questType, uint32 questLevel, uint32 questFlags, uint32 questFlagsEx, bool repeatable, std::string questTitle) :
441  QuestID(questID), QuestType(questType), QuestLevel(questLevel), QuestFlags(questFlags), QuestFlagsEx(questFlagsEx), Repeatable(repeatable), QuestTitle(questTitle) { }
448  std::string QuestTitle;
449  };
450 
451  class QuestGiverQuestList final : public ServerPacket
452  {
453  public:
455 
456  WorldPacket const* Write() override;
457 
461  std::vector<GossipTextData> GossipTexts;
462  std::string Greeting;
463  };
464 
465  class QuestUpdateComplete final : public ServerPacket
466  {
467  public:
469 
470  WorldPacket const* Write() override;
471 
473  };
474 
476  {
477  public:
479 
480  WorldPacket const* Write() override;
481 
484  std::string QuestTitle;
485  };
486 
487  class QuestConfirmAccept final : public ClientPacket
488  {
489  public:
491 
492  void Read() override;
493 
495  };
496 
498  {
499  public:
501 
502  WorldPacket const* Write() override;
503 
506  };
507 
508  class QuestLogFull final : public ServerPacket
509  {
510  public:
512 
513  WorldPacket const* Write() override { return &_worldPacket; }
514  };
515 
516  class QuestPushResult final : public ClientPacket
517  {
518  public:
520 
521  void Read() override;
522 
526  };
527 
529  {
530  public:
532 
533  WorldPacket const* Write() override;
534 
536  bool SendErrorMessage = false;
537  std::string ReasonText;
538  };
539 
541  {
542  public:
544 
545  WorldPacket const* Write() override;
546 
548  };
549 
550  class QuestGiverQuestFailed final : public ServerPacket
551  {
552  public:
554 
555  WorldPacket const* Write() override;
556 
559  };
560 
561  class PushQuestToParty final : public ClientPacket
562  {
563  public:
565 
566  void Read() override;
567 
569  };
570 
571  class DailyQuestsReset final : public ServerPacket
572  {
573  public:
575 
576  WorldPacket const* Write() override;
577 
579  };
580  }
581 }
582 
585 
586 #endif // QuestPackets_h__
uint32 GreetEmoteDelay
Definition: QuestPackets.h:459
uint32 QuestType
Definition: QuestPackets.h:443
int32 TimeAllowed
Definition: QuestPackets.h:156
QuestGiverInvalidQuest()
Definition: QuestPackets.h:531
ObjectGuid InitiatedBy
Definition: QuestPackets.h:482
bool AutoLaunched
Definition: QuestPackets.h:353
std::string QuestTitle
Definition: QuestPackets.h:348
ObjectGuid QuestGiverGUID
Definition: QuestPackets.h:332
Definition: Opcodes.h:1407
int32 SuggestedPartyMembers
Definition: QuestPackets.h:337
float POIy
Definition: QuestPackets.h:133
QuestUpdateFailedTimer()
Definition: QuestPackets.h:543
Definition: Opcodes.h:1416
int32 QuestInfoID
Definition: QuestPackets.h:115
int32 Talents
Definition: QuestPackets.h:221
Definition: QuestPackets.h:516
QuestUpdateComplete()
Definition: QuestPackets.h:468
QuestUpdateAddPvPCredit()
Definition: QuestPackets.h:200
Definition: Opcodes.h:543
int32 QuestPackageID
Definition: QuestPackets.h:112
int32 XP
Definition: QuestPackets.h:219
int32 RewardSpell
Definition: QuestPackets.h:125
Definition: QuestPackets.h:244
std::vector< QuestDescEmote > Emotes
Definition: QuestPackets.h:252
Definition: Opcodes.h:1402
int32 StartItem
Definition: QuestPackets.h:128
Definition: ByteBuffer.h:70
uint32 QuestID
Definition: QuestPackets.h:442
int32 ID
Definition: QuestPackets.h:319
ObjectGuid QuestGiver
Definition: QuestPackets.h:96
Definition: Opcodes.h:535
std::string QuestCompletionLog
Definition: QuestPackets.h:151
int32 Money
Definition: QuestPackets.h:218
int32 ItemQty[QUEST_REWARD_ITEM_COUNT]
Definition: QuestPackets.h:229
void Read() override
Definition: QuestPackets.cpp:50
int32 ObjectID
Definition: QuestPackets.h:190
std::string CompletionText
Definition: QuestPackets.h:390
int32 SuggestedGroupNum
Definition: QuestPackets.h:116
int32 RewardHonor
Definition: QuestPackets.h:126
Definition: QuestPackets.h:30
QuestType
Definition: SharedDefines.h:3769
Definition: QuestDef.h:279
std::vector< QuestObjective > Objectives
Definition: QuestPackets.h:157
QuestPushResult(WorldPacket &&packet)
Definition: QuestPackets.h:519
WorldPacket const * Write() override
Definition: QuestPackets.cpp:455
QuestGiverRequestItems()
Definition: QuestPackets.h:373
Definition: Opcodes.h:1418
std::string QuestDescription
Definition: QuestPackets.h:138
int32 RewardNextQuest
Definition: QuestPackets.h:117
WorldPacket const * Write() override
Definition: QuestPackets.cpp:390
float POIx
Definition: QuestPackets.h:132
Definition: QuestPackets.h:59
std::string PortraitGiverName
Definition: QuestPackets.h:268
Definition: QuestPackets.h:404
int32 QuestSortID
Definition: QuestPackets.h:114
float RewardMoneyMultiplier
Definition: QuestPackets.h:122
int32 CurrencyID
Definition: QuestPackets.h:366
QuestGiverStatus()
Definition: QuestPackets.h:62
int32 RewardTalents
Definition: QuestPackets.h:141
std::vector< int32 > LearnSpells
Definition: QuestPackets.h:341
int32 QuestPackageID
Definition: QuestPackets.h:335
PushQuestToParty(WorldPacket &&packet)
Definition: QuestPackets.h:564
bool RespondToGiver
Definition: QuestPackets.h:413
WorldPacket const * Write() override
Definition: QuestPackets.cpp:186
int32 AllowableRaces
Definition: QuestPackets.h:135
int32 ItemChoiceID
Definition: QuestPackets.h:284
QuestGiverOfferRewardMessage()
Definition: QuestPackets.h:259
Definition: Opcodes.h:538
ObjectGuid QuestGiverGUID
Definition: QuestPackets.h:86
WorldPackets::Item::ItemInstance ItemReward
Definition: QuestPackets.h:302
Definition: Opcodes.h:536
Definition: QuestPackets.h:197
QuestGiverQuestList()
Definition: QuestPackets.h:454
int32 CompEmoteDelay
Definition: QuestPackets.h:380
Definition: QuestPackets.h:287
QuestGiverOfferReward QuestData
Definition: QuestPackets.h:271
ObjectGuid QuestGiverGUID
Definition: QuestPackets.h:282
QuestGiverCompleteQuest(WorldPacket &&packet)
Definition: QuestPackets.h:308
int32 QuestGiverCreatureID
Definition: QuestPackets.h:378
QuestGiverInfo()
Definition: QuestPackets.h:51
int32 QuestLevel
Definition: QuestPackets.h:111
std::string PortraitGiverName
Definition: QuestPackets.h:148
Definition: Opcodes.h:1405
std::string QuestTitle
Definition: QuestPackets.h:265
int32 MoneyReward
Definition: QuestPackets.h:296
void Read() override
Definition: QuestPackets.cpp:501
ObjectGuid SenderGUID
Definition: QuestPackets.h:523
int32 FactionOverride[QUEST_REWARD_REPUTATIONS_COUNT]
Definition: QuestPackets.h:232
std::string PortraitTurnInName
Definition: QuestPackets.h:150
WorldPacket const * Write() override
Definition: QuestPackets.cpp:334
int32 SuggestedPartyMembers
Definition: QuestPackets.h:250
int32 RewardAmount[QUEST_REWARD_ITEM_COUNT]
Definition: QuestPackets.h:159
int32 RewardFactionValue[QUEST_REWARD_REPUTATIONS_COUNT]
Definition: QuestPackets.h:164
uint32 QuestID
Definition: QuestPackets.h:557
ObjectGuid QuestGiverGUID
Definition: QuestPackets.h:37
int32 ObjectID
Definition: QuestPackets.h:320
bool AutoLaunched
Definition: QuestPackets.h:382
STL namespace.
uint32 Reason
Definition: QuestPackets.h:558
Definition: QuestPackets.h:275
Definition: Opcodes.h:1422
bool StartCheat
Definition: QuestPackets.h:425
QuestConfirmAcceptResponse()
Definition: QuestPackets.h:478
int32 Amount
Definition: QuestPackets.h:360
QuestGiverInfo(ObjectGuid const &guid, uint32 status)
Definition: QuestPackets.h:52
void Read() override
Definition: QuestPackets.cpp:443
std::vector< QuestObjectiveSimple > Objectives
Definition: QuestPackets.h:339
QuestGiverHello(WorldPacket &&packet)
Definition: QuestPackets.h:82
uint32 QuestLevel
Definition: QuestPackets.h:444
Definition: Opcodes.h:1419
WorldPacket const * Write() override
Definition: QuestPackets.cpp:535
int32 PortraitGiver
Definition: QuestPackets.h:145
float RewardKillHonor
Definition: QuestPackets.h:127
int32 ItemCount
Definition: QuestPackets.h:217
int32 FactionID[QUEST_REWARD_REPUTATIONS_COUNT]
Definition: QuestPackets.h:230
QueryQuestInfo(WorldPacket &&packet)
Definition: QuestPackets.h:92
std::string PortraitTurnInText
Definition: QuestPackets.h:269
std::string PortraitTurnInName
Definition: QuestPackets.h:347
int32 RewardMoneyDifficulty
Definition: QuestPackets.h:121
void Read() override
Definition: QuestPackets.cpp:45
void Read() override
Definition: QuestPackets.cpp:303
Definition: Opcodes.h:1409
Definition: QuestPackets.h:325
uint32 QuestFlags
Definition: QuestPackets.h:445
std::vector< QuestCurrency > Currency
Definition: QuestPackets.h:386
WorldPacket _worldPacket
Definition: Packet.h:43
int32 Quantity
Definition: QuestPackets.h:103
QuestObjectiveCollect(int32 objectID=0, int32 amount=0)
Definition: QuestPackets.h:358
int32 RewardCurrencyID[QUEST_REWARD_CURRENCY_COUNT]
Definition: QuestPackets.h:166
Definition: QuestPackets.h:416
int32 RewardCurrencyQty[QUEST_REWARD_CURRENCY_COUNT]
Definition: QuestPackets.h:167
void Read() override
Definition: QuestPackets.cpp:550
int32 RewardFactionID[QUEST_REWARD_REPUTATIONS_COUNT]
Definition: QuestPackets.h:163
WorldPacket const * Write() override
Definition: QuestPackets.cpp:56
int32 CurrencyID[QUEST_REWARD_CURRENCY_COUNT]
Definition: QuestPackets.h:233
int32 AcceptedSoundKitID
Definition: QuestPackets.h:153
Definition: QuestPackets.h:393
std::vector< QuestGiverInfo > QuestGiver
Definition: QuestPackets.h:76
void Read() override
Definition: QuestPackets.cpp:327
Definition: QuestPackets.h:49
WorldPacket const * Write() override
Definition: QuestPackets.cpp:481
QuestGiverStatusQuery(WorldPacket &&packet)
Definition: QuestPackets.h:33
int32 ItemDropQuantity[QUEST_ITEM_DROP_COUNT]
Definition: QuestPackets.h:161
int32 SpellCompletionID
Definition: QuestPackets.h:224
std::string PortraitTurnInText
Definition: QuestPackets.h:346
int32 QuestID
Definition: QuestPackets.h:472
QuestLogFull()
Definition: QuestPackets.h:511
#define QUEST_REWARD_CURRENCY_COUNT
Definition: QuestDef.h:51
Definition: QuestPackets.h:214
Definition: QuestPackets.h:451
int32 QuestID
Definition: QuestPackets.h:424
int32 PortraitTurnIn
Definition: QuestPackets.h:146
std::string LogDescription
Definition: QuestPackets.h:349
std::string PortraitGiverText
Definition: QuestPackets.h:344
int32 QuestID
Definition: QuestPackets.h:283
Definition: QuestPackets.h:89
Definition: Packet.h:59
WorldPacket const * Write() override
Definition: QuestPackets.cpp:310
Entry
Definition: boss_headless_horseman.cpp:50
int32 NumSkillUpsReward
Definition: QuestPackets.h:297
int32 QuestID
Definition: QuestPackets.h:494
std::vector< GossipTextData > GossipTexts
Definition: QuestPackets.h:461
Definition: Opcodes.h:1411
ObjectGuid QuestGiverGUID
Definition: QuestPackets.h:312
int32 RewardBonusMoney
Definition: QuestPackets.h:123
Definition: Opcodes.h:540
bool Allow
Definition: QuestPackets.h:177
ByteBuffer & operator<<(ByteBuffer &data, WorldPackets::Quest::QuestRewards const &questRewards)
Definition: QuestPackets.cpp:206
Definition: QuestPackets.h:237
Definition: QuestPackets.h:528
uint32 QuestFlagsEx
Definition: QuestPackets.h:446
ObjectGuid InformUnit
Definition: QuestPackets.h:333
WorldPacket const * Write() override
Definition: QuestPackets.cpp:33
Definition: QuestPackets.h:571
int32 ItemID[QUEST_REWARD_ITEM_COUNT]
Definition: QuestPackets.h:228
int32 QuestGiverCreatureID
Definition: QuestPackets.h:247
Definition: QuestPackets.h:540
int32 AreaGroupID
Definition: QuestPackets.h:155
int32 QuestID
Definition: QuestPackets.h:401
QuestGiverQueryQuest(WorldPacket &&packet)
Definition: QuestPackets.h:407
QuestGiverAcceptQuest(WorldPacket &&packet)
Definition: QuestPackets.h:419
int32 QuestID
Definition: QuestPackets.h:248
int32 RewardArenaPoints
Definition: QuestPackets.h:142
int32 SuggestPartyMembers
Definition: QuestPackets.h:383
void Read() override
Definition: QuestPackets.h:46
Definition: Opcodes.h:1413
std::string PortraitGiverName
Definition: QuestPackets.h:345
Definition: Packet.h:46
int32 MoneyToGet
Definition: QuestPackets.h:384
std::string PortraitGiverText
Definition: QuestPackets.h:267
int32 PortraitTurnIn
Definition: QuestPackets.h:342
QuestInfoChoiceItem UnfilteredChoiceItems[QUEST_REWARD_CHOICES_COUNT]
Definition: QuestPackets.h:162
Definition: Opcodes.h:1414
bool FromScript
Definition: QuestPackets.h:314
void Read() override
Definition: QuestPackets.cpp:450
int32 DisplayID
Definition: QuestPackets.h:104
bool DisplayPopup
Definition: QuestPackets.h:351
ObjectGuid QuestGiverGUID
Definition: QuestPackets.h:458
bool AutoLaunched
Definition: QuestPackets.h:249
int32 RewardItems[QUEST_REWARD_ITEM_COUNT]
Definition: QuestPackets.h:158
int32 ItemID
Definition: QuestPackets.h:210
int32 SkillLineIDReward
Definition: QuestPackets.h:295
WorldPacket const * Write() override
Definition: QuestPackets.cpp:555
uint32 QuestID
Definition: QuestPackets.h:547
int32_t int32
Definition: Define.h:146
int32 TalentReward
Definition: QuestPackets.h:300
QuestRewards Rewards
Definition: QuestPackets.h:251
uint32_t uint32
Definition: Define.h:150
ObjectGuid QuestGiverGUID
Definition: QuestPackets.h:400
int32 RewardTitle
Definition: QuestPackets.h:140
int32 POIPriority
Definition: QuestPackets.h:134
QuestGiverInfo QuestGiver
Definition: QuestPackets.h:66
bool UseQuestReward
Definition: QuestPackets.h:294
uint16_t uint16
Definition: Define.h:151
std::string PortraitTurnInText
Definition: QuestPackets.h:149
Definition: Opcodes.h:1410
Definition: Opcodes.h:529
Definition: QuestPackets.h:497
ObjectGuid SenderGUID
Definition: QuestPackets.h:504
WorldPacket const * Write() override
Definition: QuestPackets.cpp:488
int32 Title
Definition: QuestPackets.h:220
int32 NumSkillUps
Definition: QuestPackets.h:226
WorldPacket const * Write() override
Definition: QuestPackets.cpp:278
void Read() override
Definition: QuestPackets.cpp:20
WorldPacket const * Write() override
Definition: QuestPackets.cpp:521
std::string QuestTitle
Definition: QuestPackets.h:484
std::string DescriptionText
Definition: QuestPackets.h:350
Definition: QuestPackets.h:208
Definition: QuestPackets.h:550
QuestGiverQuestDetails()
Definition: QuestPackets.h:328
int32 FactionValue[QUEST_REWARD_REPUTATIONS_COUNT]
Definition: QuestPackets.h:231
int32 Amount
Definition: QuestPackets.h:321
uint32 QuestID
Definition: QuestPackets.h:179
int32 ItemDrop[QUEST_ITEM_DROP_COUNT]
Definition: QuestPackets.h:160
ObjectGuid VictimGUID
Definition: QuestPackets.h:189
uint16 Required
Definition: QuestPackets.h:193
std::string RewardText
Definition: QuestPackets.h:266
bool SendErrorMessage
Definition: QuestPackets.h:536
Definition: QuestPackets.h:508
WorldPacket const * Write() override
Definition: QuestPackets.cpp:506
Definition: Opcodes.h:1412
int32 QuestID
Definition: QuestPackets.h:379
Definition: BattlegroundMgr.h:57
int32 QuestPackageID
Definition: QuestPackets.h:272
WorldPacket const * Write() override
Definition: QuestPackets.cpp:198
Definition: Opcodes.h:1415
int32 SkillLineID
Definition: QuestPackets.h:225
int32 QuestID
Definition: QuestPackets.h:204
int32 RewardMoney
Definition: QuestPackets.h:120
QuestGiverQuestComplete()
Definition: QuestPackets.h:290
int32 CompEmoteType
Definition: QuestPackets.h:381
Definition: QuestPackets.h:107
void Read() override
Definition: QuestPackets.cpp:430
std::string ReasonText
Definition: QuestPackets.h:537
int32 QuestID
Definition: QuestPackets.h:191
ObjectGuid QuestGiverGUID
Definition: QuestPackets.h:423
uint32 Flags
Definition: QuestPackets.h:129
WorldPacket const * Write() override
Definition: QuestPackets.h:513
QuestInfo Info
Definition: QuestPackets.h:178
Definition: QuestPackets.h:356
int32 PortraitGiver
Definition: QuestPackets.h:264
GossipTextData(uint32 questID, uint32 questType, uint32 questLevel, uint32 questFlags, uint32 questFlagsEx, bool repeatable, std::string questTitle)
Definition: QuestPackets.h:440
std::string LogTitle
Definition: QuestPackets.h:136
int32 ItemID
Definition: QuestPackets.h:102
std::string QuestTitle
Definition: QuestPackets.h:389
Definition: Opcodes.h:545
int32 PortraitGiver
Definition: QuestPackets.h:343
int32 RewardFactionFlags
Definition: QuestPackets.h:152
QuestGiverChooseReward(WorldPacket &&packet)
Definition: QuestPackets.h:278
int32 SpellCompletionDisplayID
Definition: QuestPackets.h:223
int32 POIContinent
Definition: QuestPackets.h:131
void Read() override
Definition: QuestPackets.cpp:436
uint32 QuestID
Definition: QuestPackets.h:568
bool Repeatable
Definition: QuestPackets.h:447
QuestFlagsEx
Definition: QuestDef.h:171
int32 QuestID
Definition: QuestPackets.h:109
int32 CompleteSoundKitID
Definition: QuestPackets.h:154
#define QUEST_REWARD_CHOICES_COUNT
Definition: QuestDef.h:46
QueryQuestInfoResponse()
Definition: QuestPackets.h:173
Definition: QuestPackets.h:465
std::string PortraitGiverText
Definition: QuestPackets.h:147
int32 QuestMinLevel
Definition: QuestPackets.h:113
QuestGiverStatusMultiple()
Definition: QuestPackets.h:72
uint32 Reason
Definition: QuestPackets.h:535
bool StartCheat
Definition: QuestPackets.h:352
QuestChoiceItem ChoiceItems[QUEST_REWARD_CHOICES_COUNT]
Definition: QuestPackets.h:227
int32 Amount
Definition: QuestPackets.h:367
Definition: QuestPackets.h:487
uint8 Result
Definition: QuestPackets.h:525
uint32 QuestID
Definition: QuestPackets.h:524
uint8 ObjectiveType
Definition: QuestPackets.h:194
int32 RewardDisplaySpell
Definition: QuestPackets.h:124
uint32 FlagsEx
Definition: QuestPackets.h:130
Definition: Opcodes.h:537
uint8_t uint8
Definition: Define.h:152
int32 RewardXPDifficulty
Definition: QuestPackets.h:118
Definition: Opcodes.h:1421
uint32 Status
Definition: QuestPackets.h:56
Definition: QuestPackets.h:561
float RewardXPMultiplier
Definition: QuestPackets.h:119
Definition: Opcodes.h:534
Definition: QuestPackets.h:79
Definition: QuestPackets.h:100
QuestDescEmote(int32 type=0, uint32 delay=0)
Definition: QuestPackets.h:239
std::string AreaDescription
Definition: QuestPackets.h:139
int32 XPReward
Definition: QuestPackets.h:298
uint32 GreetEmoteType
Definition: QuestPackets.h:460
DailyQuestsReset()
Definition: QuestPackets.h:574
Definition: ItemPackets.h:40
#define QUEST_REWARD_ITEM_COUNT
Definition: QuestDef.h:47
int32 QuestID
Definition: QuestPackets.h:334
Definition: ObjectGuid.h:189
QuestGiverRequestReward(WorldPacket &&packet)
Definition: QuestPackets.h:396
Definition: Opcodes.h:941
std::vector< QuestDescEmote > DescEmotes
Definition: QuestPackets.h:340
Definition: QuestPackets.h:370
Definition: Opcodes.h:542
QuestPushResultResponse()
Definition: QuestPackets.h:500
int32 StatusFlags
Definition: QuestPackets.h:387
int32 ObjectID
Definition: QuestPackets.h:359
int32 QuestID
Definition: QuestPackets.h:412
Definition: QuestDef.h:122
std::string QuestTitle
Definition: QuestPackets.h:448
uint32 Delay
Definition: QuestPackets.h:241
QuestRewards Rewards
Definition: QuestPackets.h:338
FactionFlags
Definition: ReputationMgr.h:35
#define QUEST_ITEM_DROP_COUNT
Definition: QuestDef.h:45
QuestLogRemoveQuest(WorldPacket &&packet)
Definition: QuestPackets.h:431
Type
Type of JSON value.
Definition: rapidjson.h:642
int32 RewardSkillLineID
Definition: QuestPackets.h:143
Definition: QuestPackets.h:428
uint8 Result
Definition: QuestPackets.h:505
Definition: QuestPackets.h:363
int32 QuestID
Definition: QuestPackets.h:313
Definition: QuestPackets.h:170
QuestConfirmAccept(WorldPacket &&packet)
Definition: QuestPackets.h:490
int32 QuestID
Definition: QuestPackets.h:299
uint16 Count
Definition: QuestPackets.h:205
int32 QuestID
Definition: QuestPackets.h:483
std::string PortraitTurnInName
Definition: QuestPackets.h:270
Definition: QuestPackets.h:182
Definition: Opcodes.h:539
WorldPacket const * Write() override
Definition: QuestPackets.cpp:542
std::string Greeting
Definition: QuestPackets.h:462
int32 CurrencyQty[QUEST_REWARD_CURRENCY_COUNT]
Definition: QuestPackets.h:234
Definition: QuestPackets.h:317
int32 ChoiceItemCount
Definition: QuestPackets.h:216
QuestFlags
Definition: QuestDef.h:139
Definition: WorldPacket.h:26
WorldPacket const * Write() override
Definition: QuestPackets.cpp:25
int32 QuestID
Definition: QuestPackets.h:97
int32 PortraitTurnIn
Definition: QuestPackets.h:263
QuestGiverQuestFailed()
Definition: QuestPackets.h:553
QuestUpdateAddCredit()
Definition: QuestPackets.h:185
int32 Type
Definition: QuestPackets.h:240
ObjectGuid QuestGiverGUID
Definition: QuestPackets.h:411
std::vector< QuestObjectiveCollect > Collect
Definition: QuestPackets.h:385
int32 RewardFactionOverride[QUEST_REWARD_REPUTATIONS_COUNT]
Definition: QuestPackets.h:165
int32 Quantity
Definition: QuestPackets.h:211
Definition: Opcodes.h:1408
ObjectGuid QuestGiverGUID
Definition: QuestPackets.h:377
Definition: Opcodes.h:1424
Definition: QuestPackets.h:438
int32 Count
Definition: QuestPackets.h:578
int32 RewardNumSkillUps
Definition: QuestPackets.h:144
void Read() override
Definition: QuestPackets.cpp:514
std::string LogDescription
Definition: QuestPackets.h:137
#define QUEST_REWARD_REPUTATIONS_COUNT
Definition: QuestDef.h:49
QuestGiverStatusMultipleQuery(WorldPacket &&packet)
Definition: QuestPackets.h:44
Definition: Opcodes.h:511
bool LaunchGossip
Definition: QuestPackets.h:301
uint16 Count
Definition: QuestPackets.h:192
Definition: QuestPackets.h:305
QuestCurrency(int32 currencyID=0, int32 amount=0)
Definition: QuestPackets.h:365
ObjectGuid QuestGiverGUID
Definition: QuestPackets.h:246
ObjectGuid Guid
Definition: QuestPackets.h:55