TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ItemPackets.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 ItemPackets_h__
19 #define ItemPackets_h__
20 
21 #include "Packet.h"
22 #include "Item.h"
23 #include "PacketUtilities.h"
24 
25 struct VoidStorageItem;
26 
27 namespace WorldPackets
28 {
29  namespace Item
30  {
32  {
34  std::vector<int32> BonusListIDs;
35 
36  bool operator==(ItemBonusInstanceData const& r) const;
37  bool operator!=(ItemBonusInstanceData const& r) const { return !(*this == r); }
38  };
39 
40  struct ItemInstance
41  {
42  void Initialize(::Item const* item);
43  void Initialize(::LootItem const& lootItem);
44  void Initialize(::VoidStorageItem const* voidItem);
45 
51 
52  bool operator==(ItemInstance const& r) const;
53  bool operator!=(ItemInstance const& r) const { return !(*this == r); }
54  };
55 
56  class BuyBackItem final : public ClientPacket
57  {
58  public:
59  BuyBackItem(WorldPacket&& packet) : ClientPacket(CMSG_BUY_BACK_ITEM, std::move(packet)) { }
60 
61  void Read() override;
62 
64  uint32 Slot = 0;
65  };
66 
67  class BuyItem final : public ClientPacket
68  {
69  public:
70  BuyItem(WorldPacket&& packet) : ClientPacket(CMSG_BUY_ITEM, std::move(packet)) { }
71 
72  void Read() override;
73 
76  uint32 Muid = 0u;
77  uint32 Slot = 0u;
81  };
82 
83  class BuySucceeded final : ServerPacket
84  {
85  public:
86  BuySucceeded() : ServerPacket(SMSG_BUY_SUCCEEDED, 16 + 4 + 4 + 4 + 4) { }
87 
88  WorldPacket const* Write() override;
89 
91  uint32 Muid = 0u;
94  };
95 
96  class BuyFailed final : ServerPacket
97  {
98  public:
99  BuyFailed() : ServerPacket(SMSG_BUY_FAILED, 16 + 4 + 1) { }
100 
101  WorldPacket const* Write() override;
102 
104  uint32 Muid = 0u;
106  };
107 
108  class GetItemPurchaseData final : public ClientPacket
109  {
110  public:
112 
113  void Read() override;
114 
116  };
117 
119  {
122  };
123 
125  {
128  };
129 
131  {
135  };
136 
137  class SetItemPurchaseData final : public ServerPacket
138  {
139  public:
140  SetItemPurchaseData() : ServerPacket(SMSG_SET_ITEM_PURCHASE_DATA, 4 + 4 + 4 + 5 * (4 + 4) + 5 * (4 + 4) + 16) { }
141 
142  WorldPacket const* Write() override;
143 
148  };
149 
150  class ItemPurchaseRefund final : public ClientPacket
151  {
152  public:
154 
155  void Read() override;
156 
158  };
159 
161  {
162  public:
163  ItemPurchaseRefundResult() : ServerPacket(SMSG_ITEM_PURCHASE_REFUND_RESULT, 1 + 4 + 5 * (4 + 4) + 5 * (4 + 4) + 16) { }
164 
165  WorldPacket const* Write() override;
166 
170  };
171 
173  {
174  public:
176 
177  WorldPacket const* Write() override;
178 
180  };
181 
182  class RepairItem final : public ClientPacket
183  {
184  public:
185  RepairItem(WorldPacket&& packet) : ClientPacket(CMSG_REPAIR_ITEM, std::move(packet)) { }
186 
187  void Read() override;
188 
191  bool UseGuildBank = false;
192  };
193 
194  class SellItem final : public ClientPacket
195  {
196  public:
197  SellItem(WorldPacket&& packet) : ClientPacket(CMSG_SELL_ITEM, std::move(packet)) { }
198 
199  void Read() override;
200 
204  };
205 
206  class ItemTimeUpdate final : public ServerPacket
207  {
208  public:
210 
211  WorldPacket const* Write() override;
212 
215  };
216 
217  class SetProficiency final : public ServerPacket
218  {
219  public:
221 
222  WorldPacket const* Write() override;
223 
226  };
227 
228  struct InvUpdate
229  {
230  struct InvItem
231  {
233  uint8 Slot = 0;
234  };
235 
236  std::vector<InvItem> Items;
237  };
238 
240  {
241  public:
243 
244  WorldPacket const* Write() override;
245 
254  };
255 
256  class SplitItem final : public ClientPacket
257  {
258  public:
259  SplitItem(WorldPacket&& packet) : ClientPacket(CMSG_SPLIT_ITEM, std::move(packet)) { }
260 
261  void Read() override;
262 
269  };
270 
271  class SwapInvItem final : public ClientPacket
272  {
273  public:
275 
276  void Read() override;
277 
279  uint8 Slot1 = 0;
280  uint8 Slot2 = 0;
281  };
282 
283  class SwapItem final : public ClientPacket
284  {
285  public:
286  SwapItem(WorldPacket&& packet) : ClientPacket(CMSG_SWAP_ITEM, std::move(packet)) { }
287 
288  void Read() override;
289 
295  };
296 
297  class AutoEquipItem final : public ClientPacket
298  {
299  public:
301 
302  void Read() override;
303 
304  uint8 Slot = 0;
307  };
308 
309  class AutoEquipItemSlot final : public ClientPacket
310  {
311  public:
313 
314  void Read() override;
315 
319  };
320 
321  class AutoStoreBagItem final : public ClientPacket
322  {
323  public:
325 
326  void Read() override;
327 
332  };
333 
334  class DestroyItem final : public ClientPacket
335  {
336  public:
337  DestroyItem(WorldPacket&& packet) : ClientPacket(CMSG_DESTROY_ITEM, std::move(packet)) { }
338 
339  void Read() override;
340 
344  };
345 
346  class SellResponse final : public ServerPacket
347  {
348  public:
350 
351  WorldPacket const* Write() override;
352 
356  };
357 
358  class ItemPushResult final : public ServerPacket
359  {
360  public:
362  {
366  };
367 
368  ItemPushResult() : ServerPacket(SMSG_ITEM_PUSH_RESULT, 16 + 1 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 16 + 1 + 1 + 1 + 1) { }
369 
370  WorldPacket const* Write() override;
371 
373  uint8 Slot = 0;
376  uint32 QuestLogItemID = 0; // Item ID used for updating quest progress
377  // only set if different than real ID (similar to CreatureTemplate.KillCredit)
386  bool Pushed = false;
388  bool Created = false;
389  bool IsBonusRoll = false;
390  bool IsEncounterLoot = false;
391  };
392 
393  class ReadItem final : public ClientPacket
394  {
395  public:
396  ReadItem(WorldPacket&& packet) : ClientPacket(CMSG_READ_ITEM, std::move(packet)) { }
397 
398  void Read() override;
399 
401  uint8 Slot = 0;
402  };
403 
404  class ReadItemResultFailed final : public ServerPacket
405  {
406  public:
408 
409  WorldPacket const* Write() override;
410 
414  };
415 
416  class ReadItemResultOK final : public ServerPacket
417  {
418  public:
420 
421  WorldPacket const* Write() override;
422 
424  };
425 
426  class WrapItem final : public ClientPacket
427  {
428  public:
429  WrapItem(WorldPacket&& packet) : ClientPacket(CMSG_WRAP_ITEM, std::move(packet)) { }
430 
431  void Read() override;
432 
434  };
435 
436  class CancelTempEnchantment final : public ClientPacket
437  {
438  public:
440 
441  void Read() override;
442 
443  int32 Slot = 0;
444  };
445 
446  class ItemCooldown final : public ServerPacket
447  {
448  public:
450 
451  WorldPacket const* Write() override;
452 
456  };
457 
458  class ItemEnchantTimeUpdate final : public ServerPacket
459  {
460  public:
462 
463  WorldPacket const* Write() override;
464 
469  };
470 
472  {
477  };
478 
479  class TransmogrifyItems final : public ClientPacket
480  {
481  public:
482  enum
483  {
485  };
486 
488 
489  void Read() override;
490 
493  };
494 
495  class UseCritterItem final : public ClientPacket
496  {
497  public:
499 
500  void Read() override;
501 
503  };
504 
505  class SocketGems final : public ClientPacket
506  {
507  public:
508  SocketGems(WorldPacket&& packet) : ClientPacket(CMSG_SOCKET_GEMS, std::move(packet)) { }
509 
510  void Read() override;
511 
514  };
515 
516  class SocketGemsResult final : public ServerPacket
517  {
518  public:
520 
521  WorldPacket const* Write() override;
522 
526  };
527 
528  ByteBuffer& operator>>(ByteBuffer& data, InvUpdate& invUpdate);
529  }
530 }
531 
532 ByteBuffer& operator<<(ByteBuffer& data, WorldPackets::Item::ItemBonusInstanceData const& itemBonusInstanceData);
536 
537 #endif // ItemPackets_h__
Definition: ItemPackets.h:516
uint32 Slot
Definition: ItemPackets.h:468
Definition: Opcodes.h:1152
ObjectGuid SrcContainer
Definition: ItemPackets.h:248
int32 Quantity
Definition: ItemPackets.h:79
InvUpdate Inv
Definition: ItemPackets.h:267
Optional< CompactArray< int32 > > Modifications
Definition: ItemPackets.h:50
Definition: ItemPackets.h:194
#define MAX_GEM_SOCKETS
Definition: Item.h:195
bool Created
Definition: ItemPackets.h:388
BuyBackItem(WorldPacket &&packet)
Definition: ItemPackets.h:59
ByteBuffer & operator>>(ByteBuffer &data, WorldPackets::Item::ItemBonusInstanceData &itemBonusInstanceData)
ObjectGuid ItemGuid
Definition: ItemPackets.h:502
ObjectGuid NpcGUID
Definition: ItemPackets.h:189
uint32 DurationLeft
Definition: ItemPackets.h:214
uint8 PackSlot
Definition: ItemPackets.h:400
Definition: Opcodes.h:1435
ObjectGuid ItemGUID
Definition: ItemPackets.h:115
ObjectGuid VendorGUID
Definition: ItemPackets.h:90
uint8 FromSlot
Definition: ItemPackets.h:268
WorldPacket const * Write() override
Definition: ItemPackets.cpp:480
SellResult
Definition: Item.h:161
Definition: Item.h:167
Definition: ByteBuffer.h:70
Definition: ItemPackets.h:56
int8_t int8
Definition: Define.h:148
uint32 DungeonEncounterID
Definition: ItemPackets.h:380
WrapItem(WorldPacket &&packet)
Definition: ItemPackets.h:429
Definition: ItemPackets.h:309
ObjectGuid ItemGuid
Definition: ItemPackets.h:512
uint32 Amount
Definition: ItemPackets.h:203
uint8 Result
Definition: ItemPackets.h:167
void Read() override
Definition: ItemPackets.cpp:69
uint32 Cooldown
Definition: ItemPackets.h:455
bool operator!=(ItemInstance const &r) const
Definition: ItemPackets.h:53
DestroyItem(WorldPacket &&packet)
Definition: ItemPackets.h:337
int32 BattlePetBreedID
Definition: ItemPackets.h:381
uint32 SpellID
Definition: ItemPackets.h:454
WorldPacket const * Write() override
Definition: ItemPackets.cpp:452
ObjectGuid VendorGUID
Definition: ItemPackets.h:353
uint32 ProficiencyMask
Definition: ItemPackets.h:224
int32 BattlePetLevel
Definition: ItemPackets.h:384
WorldPacket const * Write() override
Definition: ItemPackets.cpp:50
int32 SlotInBag
Definition: ItemPackets.h:374
Definition: ItemPackets.h:458
int32 Quantity
Definition: ItemPackets.h:266
WorldPacket const * Write() override
Definition: ItemPackets.cpp:406
uint8 Slot1
Definition: ItemPackets.h:279
ObjectGuid GemItem[MAX_GEM_SOCKETS]
Definition: ItemPackets.h:513
Definition: ItemPackets.h:230
DisplayType
Definition: ItemPackets.h:361
int32 Sockets[MAX_GEM_SOCKETS]
Definition: ItemPackets.h:524
Definition: Opcodes.h:1148
Definition: ItemPackets.h:393
ReadItem(WorldPacket &&packet)
Definition: ItemPackets.h:396
BuyResult
Definition: Item.h:148
ItemEnchantTimeUpdate()
Definition: ItemPackets.h:461
ItemPurchaseRefund(WorldPacket &&packet)
Definition: ItemPackets.h:153
ObjectGuid Item
Definition: ItemPackets.h:411
Definition: Opcodes.h:79
uint8 Slot
Definition: ItemPackets.h:233
ObjectGuid ContainerGUID
Definition: ItemPackets.h:80
Definition: Opcodes.h:666
void Read() override
Definition: ItemPackets.cpp:399
WorldPacket const * Write() override
Definition: ItemPackets.cpp:539
int32 CurrencyID
Definition: ItemPackets.h:126
Definition: ItemPackets.h:471
Definition: ItemPackets.h:416
STL namespace.
Optional< ItemPurchaseContents > Contents
Definition: ItemPackets.h:169
Definition: ItemTemplate.h:291
bool operator!=(ItemBonusInstanceData const &r) const
Definition: ItemPackets.h:37
Definition: Opcodes.h:80
BuyItem(WorldPacket &&packet)
Definition: ItemPackets.h:70
void Read() override
Definition: ItemPackets.cpp:368
GetItemPurchaseData(WorldPacket &&packet)
Definition: ItemPackets.h:111
ObjectGuid VendorGUID
Definition: ItemPackets.h:103
Definition: Opcodes.h:665
void Read() override
Definition: ItemPackets.cpp:136
void Read() override
Definition: ItemPackets.cpp:519
Definition: Opcodes.h:841
uint8 ContainerBSlot
Definition: ItemPackets.h:247
SellResponse()
Definition: ItemPackets.h:349
ByteBuffer & operator>>(ByteBuffer &data, InvUpdate &invUpdate)
Definition: ItemPackets.cpp:236
BuySucceeded()
Definition: ItemPackets.h:86
ReadItemResultFailed()
Definition: ItemPackets.h:407
ObjectGuid ItemGUID
Definition: ItemPackets.h:179
InvUpdate Inv
Definition: ItemPackets.h:329
SplitItem(WorldPacket &&packet)
Definition: ItemPackets.h:259
Definition: ItemPackets.h:150
InvUpdate Inv
Definition: ItemPackets.h:305
Definition: Opcodes.h:1505
Definition: Opcodes.h:708
WorldPacket const * Write() override
Definition: ItemPackets.cpp:463
int32 ItemCount
Definition: ItemPackets.h:121
ItemTimeUpdate()
Definition: ItemPackets.h:209
ObjectGuid ItemGUID
Definition: ItemPackets.h:354
uint32 Slot
Definition: ItemPackets.h:476
ObjectGuid OwnerGuid
Definition: ItemPackets.h:465
Definition: ItemPackets.h:426
Definition: Opcodes.h:122
uint32 RandomPropertiesSeed
Definition: ItemPackets.h:47
ItemVendorType ItemType
Definition: ItemPackets.h:78
void Read() override
Definition: ItemPackets.cpp:361
Definition: ItemPackets.h:182
WorldPacket const * Write() override
Definition: ItemPackets.cpp:129
uint32 Flags
Definition: ItemPackets.h:145
int32 ItemID
Definition: ItemPackets.h:120
ByteBuffer & operator<<(ByteBuffer &data, WorldPackets::Item::ItemBonusInstanceData const &itemBonusInstanceData)
Definition: ItemPackets.cpp:166
int32 SocketMatch
Definition: ItemPackets.h:525
uint8 Slot
Definition: ItemPackets.h:373
Optional< ObjectGuid > SrcItemGUID
Definition: ItemPackets.h:473
ObjectGuid ItemGUID
Definition: ItemPackets.h:168
WorldPacket const * Write() override
Definition: ItemPackets.cpp:489
uint8 Slot
Definition: ItemPackets.h:304
uint8 ProficiencyClass
Definition: ItemPackets.h:225
TransmogrifyItems(WorldPacket &&packet)
Definition: ItemPackets.h:487
Optional< ObjectGuid > SrcVoidItemGUID
Definition: ItemPackets.h:474
Definition: ItemPackets.h:217
uint32 PurchaseTime
Definition: ItemPackets.h:144
Definition: ItemPackets.h:31
void Read() override
Definition: ItemPackets.cpp:112
WorldPacket const * Write() override
Definition: ItemPackets.cpp:102
uint32 RandomPropertiesID
Definition: ItemPackets.h:48
ItemInstance Item
Definition: ItemPackets.h:75
uint8 ToSlot
Definition: ItemPackets.h:263
uint8 Slot2
Source Slot.
Definition: ItemPackets.h:280
Definition: Opcodes.h:1145
uint8 PackSlot
Definition: ItemPackets.h:306
Definition: Packet.h:59
bool operator==(ItemInstance const &r) const
Definition: ItemPackets.cpp:304
Definition: Item.h:48
Definition: ItemPackets.h:239
Definition: Opcodes.h:655
BuyResult Reason
Definition: ItemPackets.h:105
Definition: Opcodes.h:1524
CancelTempEnchantment(WorldPacket &&packet)
Definition: ItemPackets.h:439
bool operator==(ItemBonusInstanceData const &r) const
Definition: ItemPackets.cpp:21
ItemVendorType
Definition: ItemTemplate.h:289
void Read() override
Definition: ItemPackets.cpp:391
uint8 ItemDstSlot
Definition: ItemPackets.h:317
uint8 SlotA
Definition: ItemPackets.h:291
ObjectGuid ItemGuid
Definition: ItemPackets.h:466
void Read() override
Definition: ItemPackets.cpp:532
Definition: Opcodes.h:81
std::vector< int32 > BonusListIDs
Definition: ItemPackets.h:34
ItemInstance Item
Definition: ItemPackets.h:475
int32 Level
Definition: ItemPackets.h:252
uint32 BattlePetBreedQuality
Definition: ItemPackets.h:382
Definition: Opcodes.h:151
int32 NewQuantity
Definition: ItemPackets.h:93
uint8 ContainerSlotA
Definition: ItemPackets.h:294
WorldPacket const * Write() override
Definition: ItemPackets.cpp:117
AutoStoreBagItem(WorldPacket &&packet)
Definition: ItemPackets.h:324
ObjectGuid ItemGUID
Definition: ItemPackets.h:190
Definition: Opcodes.h:356
ObjectGuid ItemGUID
Definition: ItemPackets.h:202
ObjectGuid VendorGUID
Definition: ItemPackets.h:201
Definition: Opcodes.h:1436
Definition: ItemPackets.h:67
uint8 ContainerSlot
Definition: ItemPackets.h:232
uint32 DurationLeft
Definition: ItemPackets.h:467
uint8 Subcode
Definition: ItemPackets.h:412
ObjectGuid Item
Definition: ItemPackets.h:423
uint32 Slot
Definition: ItemPackets.h:77
Optional< ItemBonusInstanceData > ItemBonus
Definition: ItemPackets.h:49
ItemExpirePurchaseRefund()
Definition: ItemPackets.h:175
Definition: Packet.h:46
Definition: Item.h:150
Definition: ItemPackets.h:505
uint32 QuantityBought
Definition: ItemPackets.h:92
uint8 SlotNum
Definition: ItemPackets.h:342
int32 QuantityInInventory
Definition: ItemPackets.h:379
Definition: Opcodes.h:649
Definition: Item.h:259
Definition: Opcodes.h:1150
SellItem(WorldPacket &&packet)
Definition: ItemPackets.h:197
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
WorldPacket const * Write() override
Definition: ItemPackets.cpp:321
ItemCooldown()
Definition: ItemPackets.h:449
ObjectGuid PlayerGUID
Definition: ItemPackets.h:372
uint8 SlotB
Definition: ItemPackets.h:293
Definition: ItemPackets.h:118
ObjectGuid Item
Definition: ItemPackets.h:316
InvUpdate Inv
Definition: ItemPackets.h:290
Definition: ItemPackets.h:256
Definition: ItemPackets.h:206
bool Pushed
Definition: ItemPackets.h:386
ItemPurchaseContents Contents
Definition: ItemPackets.h:146
Definition: ItemPackets.h:479
BuyFailed()
Definition: ItemPackets.h:99
boost::optional< T > Optional
Optional helper class to wrap optional values within.
Definition: Common.h:170
ObjectGuid VendorGUID
Definition: ItemPackets.h:63
uint8 ContainerSlotB
Definition: ItemPackets.h:292
AutoEquipItemSlot(WorldPacket &&packet)
Definition: ItemPackets.h:312
int32 Slot
Definition: ItemPackets.h:443
void Read() override
Definition: ItemPackets.cpp:475
std::vector< InvItem > Items
Definition: ItemPackets.h:236
Definition: Opcodes.h:1153
InvUpdate Inv
Definition: ItemPackets.h:433
InvUpdate Inv
Definition: ItemPackets.h:318
int8 BagResult
Definition: ItemPackets.h:246
SocketGems(WorldPacket &&packet)
Definition: ItemPackets.h:508
uint8 ToPackSlot
Definition: ItemPackets.h:264
SellResult Reason
Definition: ItemPackets.h:355
int32 LimitCategory
Definition: ItemPackets.h:251
int32 SrcSlot
Definition: ItemPackets.h:250
ObjectGuid ItemGuid
Definition: ItemPackets.h:453
Definition: BattlegroundMgr.h:57
Definition: LootMgr.h:157
uint32 QuestLogItemID
Definition: ItemPackets.h:376
Definition: ItemPackets.h:446
Definition: Opcodes.h:1151
Definition: ItemPackets.h:346
void Read() override
Definition: ItemPackets.cpp:446
Definition: Opcodes.h:1514
ObjectGuid ItemGUID
Definition: ItemPackets.h:147
ItemPurchaseRefundCurrency Currencies[5]
Definition: ItemPackets.h:134
Definition: Opcodes.h:1480
RepairItem(WorldPacket &&packet)
Definition: ItemPackets.h:185
Definition: ItemPackets.h:271
InventoryChangeFailure()
Definition: ItemPackets.h:242
bool UseGuildBank
Definition: ItemPackets.h:191
InvUpdate Inv
Definition: ItemPackets.h:278
uint32 Money
Definition: ItemPackets.h:132
SocketGemsResult()
Definition: ItemPackets.h:519
SetProficiency()
Definition: ItemPackets.h:220
AutoEquipItem(WorldPacket &&packet)
Definition: ItemPackets.h:300
ItemInstance Item
Definition: ItemPackets.h:375
void Read() override
Definition: ItemPackets.cpp:38
Definition: Opcodes.h:555
int32 Quantity
Definition: ItemPackets.h:378
void Read() override
Definition: ItemPackets.cpp:377
SetItemPurchaseData()
Definition: ItemPackets.h:140
Definition: ItemPackets.h:495
ItemPushResult()
Definition: ItemPackets.h:368
uint8 Slot
Definition: ItemPackets.h:401
ReadItemResultOK()
Definition: ItemPackets.h:419
ObjectGuid Npc
Definition: ItemPackets.h:491
uint8 Context
Definition: ItemPackets.h:33
ItemPurchaseRefundItem Items[5]
Definition: ItemPackets.h:133
Definition: ItemPackets.h:283
Definition: Opcodes.h:685
void Initialize(::Item const *item)
Definition: ItemPackets.cpp:248
WorldPacket const * Write() override
Definition: ItemPackets.cpp:60
Definition: ItemPackets.h:130
void Read() override
Definition: ItemPackets.cpp:351
DisplayType DisplayText
Definition: ItemPackets.h:387
Definition: ItemPackets.h:96
uint8_t uint8
Definition: Define.h:152
Array< TransmogrifyItem, MAX_TRANSMOGRIFY_ITEMS > Items
Definition: ItemPackets.h:492
ObjectGuid VendorGUID
Definition: ItemPackets.h:74
ObjectGuid ItemGUID
Definition: ItemPackets.h:385
void Read() override
Definition: ItemPackets.cpp:384
ItemPurchaseRefundResult()
Definition: ItemPackets.h:163
Definition: ItemPackets.h:297
Definition: Opcodes.h:595
uint32 Count
Definition: ItemPackets.h:341
ObjectGuid ItemGuid
Definition: ItemPackets.h:213
Definition: ItemPackets.h:40
WorldPacket const * Write() override
Definition: ItemPackets.cpp:158
Definition: ItemPackets.h:436
Definition: ObjectGuid.h:189
uint32 Slot
Definition: ItemPackets.h:64
uint8 FromPackSlot
Definition: ItemPackets.h:265
SwapItem(WorldPacket &&packet)
Definition: ItemPackets.h:286
Definition: Opcodes.h:292
ObjectGuid Item
Definition: ItemPackets.h:523
Definition: ItemPackets.h:137
ObjectGuid ItemGUID
Definition: ItemPackets.h:157
Definition: ItemPackets.h:404
uint32 Muid
Definition: ItemPackets.h:76
uint8 ContainerSlotB
Definition: ItemPackets.h:328
Definition: Opcodes.h:1149
Definition: Opcodes.h:120
uint32 Muid
Definition: ItemPackets.h:104
bool IsBonusRoll
Definition: ItemPackets.h:389
void Read() override
Definition: ItemPackets.cpp:32
SwapInvItem(WorldPacket &&packet)
Definition: ItemPackets.h:274
uint8 ContainerId
Definition: ItemPackets.h:343
Definition: ItemPackets.h:83
Definition: ItemPackets.h:228
Definition: Opcodes.h:549
void Read() override
Definition: ItemPackets.cpp:470
bool IsEncounterLoot
Definition: ItemPackets.h:390
void Read() override
Definition: ItemPackets.cpp:527
int32 CurrencyCount
Definition: ItemPackets.h:127
Definition: Opcodes.h:842
uint32 Delay
Definition: ItemPackets.h:413
UseCritterItem(WorldPacket &&packet)
Definition: ItemPackets.h:498
Definition: Opcodes.h:240
Definition: Opcodes.h:722
Definition: WorldPacket.h:26
Definition: ItemPackets.h:321
uint8 SlotA
Definition: ItemPackets.h:331
uint32 Muid
Definition: ItemPackets.h:91
void Read() override
Definition: ItemPackets.cpp:143
uint32 ItemID
Definition: ItemPackets.h:46
uint8 ContainerSlotA
Definition: ItemPackets.h:330
int32 BattlePetSpeciesID
Definition: ItemPackets.h:383
Definition: ItemPackets.h:334
WorldPacket const * Write() override
Definition: ItemPackets.cpp:150
Definition: PacketUtilities.h:68
WorldPacket const * Write() override
Definition: ItemPackets.cpp:415
ObjectGuid DstContainer
Definition: ItemPackets.h:249
Definition: ItemPackets.h:358
Definition: ItemPackets.h:108