Core/PacketIO: Fixed packet structres changed after build 54449
Port From (https://github.com/TrinityCore/TrinityCore/commit/f20fa7aeb59240b3425e2e4f52324e3aea63e564)
This commit is contained in:
@@ -262,7 +262,7 @@ namespace Game.Networking.Packets
|
|||||||
public uint PetCreatureFamilyId;
|
public uint PetCreatureFamilyId;
|
||||||
public bool BoostInProgress; // @todo
|
public bool BoostInProgress; // @todo
|
||||||
public uint[] ProfessionIds = new uint[2]; // @todo
|
public uint[] ProfessionIds = new uint[2]; // @todo
|
||||||
public VisualItemInfo[] VisualItems = new VisualItemInfo[InventorySlots.ReagentBagEnd];
|
public VisualItemInfo[] VisualItems = new VisualItemInfo[19];
|
||||||
public List<string> MailSenders = new();
|
public List<string> MailSenders = new();
|
||||||
public List<uint> MailSenderTypes = new();
|
public List<uint> MailSenderTypes = new();
|
||||||
public bool RpeResetAvailable = false;
|
public bool RpeResetAvailable = false;
|
||||||
@@ -304,6 +304,7 @@ namespace Game.Networking.Packets
|
|||||||
data.WriteBit(HasAchievement);
|
data.WriteBit(HasAchievement);
|
||||||
data.WriteBit(HasHeritageArmor);
|
data.WriteBit(HasHeritageArmor);
|
||||||
data.WriteBit(IsLocked);
|
data.WriteBit(IsLocked);
|
||||||
|
data.WriteBit(Unused1027);
|
||||||
data.FlushBits();
|
data.FlushBits();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -312,6 +313,7 @@ namespace Game.Networking.Packets
|
|||||||
public bool HasAchievement;
|
public bool HasAchievement;
|
||||||
public bool HasHeritageArmor;
|
public bool HasHeritageArmor;
|
||||||
public bool IsLocked;
|
public bool IsLocked;
|
||||||
|
public bool Unused1027;
|
||||||
}
|
}
|
||||||
|
|
||||||
public struct UnlockedConditionalAppearance
|
public struct UnlockedConditionalAppearance
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace Game.Networking.Packets
|
|||||||
TargetGUID = _worldPacket.ReadPackedGuid();
|
TargetGUID = _worldPacket.ReadPackedGuid();
|
||||||
TargetVirtualRealmAddress = _worldPacket.ReadUInt32();
|
TargetVirtualRealmAddress = _worldPacket.ReadUInt32();
|
||||||
|
|
||||||
uint targetLen = _worldPacket.ReadBits<uint>(6);
|
uint targetLen = _worldPacket.ReadBits<uint>(9);
|
||||||
uint textLen = _worldPacket.ReadBits<uint>(11);
|
uint textLen = _worldPacket.ReadBits<uint>(11);
|
||||||
|
|
||||||
if (targetLen > 1)
|
if (targetLen > 1)
|
||||||
@@ -118,8 +118,8 @@ namespace Game.Networking.Packets
|
|||||||
PlayerGUID = _worldPacket.ReadPackedGuid();
|
PlayerGUID = _worldPacket.ReadPackedGuid();
|
||||||
PlayerVirtualRealmAddress = _worldPacket.ReadUInt32();
|
PlayerVirtualRealmAddress = _worldPacket.ReadUInt32();
|
||||||
|
|
||||||
uint playerNameLength = _worldPacket.ReadBits<uint>(6);
|
uint playerNameLength = _worldPacket.ReadBits<uint>(9);
|
||||||
uint channelNameLength = _worldPacket.ReadBits<uint>(6);
|
uint channelNameLength = _worldPacket.ReadBits<uint>(8);
|
||||||
|
|
||||||
if (playerNameLength > 1)
|
if (playerNameLength > 1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user