mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/Loot: Update and enable SMSG_LOOT_RESPONSE
Also correct SMSG_NOTIFICATION initializaiton.
This commit is contained in:
@@ -200,8 +200,7 @@ namespace WorldPackets
|
||||
class PrintNotification final : public ServerPacket
|
||||
{
|
||||
public:
|
||||
PrintNotification() : ServerPacket(SMSG_NOTIFICATION, 3) { }
|
||||
PrintNotification(std::string const& notifyText) : ServerPacket(SMSG_NOTIFICATION, 3), NotifyText(notifyText) { }
|
||||
PrintNotification(std::string const& notifyText) : ServerPacket(SMSG_NOTIFICATION, 2 + notifyText.size()), NotifyText(notifyText) { }
|
||||
|
||||
WorldPacket const* Write() override;
|
||||
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace WorldPackets
|
||||
|
||||
struct LootItem
|
||||
{
|
||||
uint8 Type = 0;
|
||||
uint8 UIType = 0;
|
||||
uint8 Type = 2;
|
||||
uint8 UIType = 4;
|
||||
uint32 Quantity = 0;
|
||||
uint8 LootItemType = 0;
|
||||
uint8 LootListID = 0;
|
||||
|
||||
@@ -1411,7 +1411,7 @@ void OpcodeTable::Initialize()
|
||||
DEFINE_SERVER_OPCODE_HANDLER(SMSG_LOOT_RELEASE, STATUS_UNHANDLED, CONNECTION_TYPE_REALM);
|
||||
DEFINE_SERVER_OPCODE_HANDLER(SMSG_LOOT_RELEASE_ALL, STATUS_UNHANDLED, CONNECTION_TYPE_REALM);
|
||||
DEFINE_SERVER_OPCODE_HANDLER(SMSG_LOOT_REMOVED, STATUS_UNHANDLED, CONNECTION_TYPE_INSTANCE);
|
||||
DEFINE_SERVER_OPCODE_HANDLER(SMSG_LOOT_RESPONSE, STATUS_UNHANDLED, CONNECTION_TYPE_INSTANCE);
|
||||
DEFINE_SERVER_OPCODE_HANDLER(SMSG_LOOT_RESPONSE, STATUS_NEVER, CONNECTION_TYPE_INSTANCE);
|
||||
DEFINE_SERVER_OPCODE_HANDLER(SMSG_LOOT_ROLL, STATUS_UNHANDLED, CONNECTION_TYPE_REALM);
|
||||
DEFINE_SERVER_OPCODE_HANDLER(SMSG_LOOT_ROLLS_COMPLETE, STATUS_UNHANDLED, CONNECTION_TYPE_REALM);
|
||||
DEFINE_SERVER_OPCODE_HANDLER(SMSG_LOOT_ROLL_WON, STATUS_UNHANDLED, CONNECTION_TYPE_REALM);
|
||||
|
||||
@@ -1347,7 +1347,7 @@ enum OpcodeServer : uint32
|
||||
SMSG_LOOT_RELEASE = 0xBADD,
|
||||
SMSG_LOOT_RELEASE_ALL = 0xBADD,
|
||||
SMSG_LOOT_REMOVED = 0xBADD,
|
||||
SMSG_LOOT_RESPONSE = 0xBADD,
|
||||
SMSG_LOOT_RESPONSE = 0x1939,
|
||||
SMSG_LOOT_ROLL = 0xBADD,
|
||||
SMSG_LOOT_ROLLS_COMPLETE = 0xBADD,
|
||||
SMSG_LOOT_ROLL_WON = 0xBADD,
|
||||
|
||||
Reference in New Issue
Block a user