Core/Loot: Update and enable SMSG_LOOT_RESPONSE

Also correct SMSG_NOTIFICATION initializaiton.
This commit is contained in:
Epicurus4
2015-03-12 23:42:26 -04:00
parent 5feee1e69b
commit a860c62fed
4 changed files with 5 additions and 6 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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);

View File

@@ -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,