Core: Updated to 10.2.5
Port From (https://github.com/TrinityCore/TrinityCore/commit/a4a4d010a0e329d4dbd82c0be5feab1fc06c8834)
This commit is contained in:
@@ -22,7 +22,7 @@ namespace Game.Networking.Packets
|
||||
Serial = _worldPacket.ReadUInt32();
|
||||
Latency = _worldPacket.ReadUInt32();
|
||||
}
|
||||
|
||||
|
||||
public uint Serial;
|
||||
public uint Latency;
|
||||
}
|
||||
@@ -153,7 +153,7 @@ namespace Game.Networking.Packets
|
||||
if (SuccessInfo.NumPlayersAlliance.HasValue)
|
||||
_worldPacket.WriteUInt16(SuccessInfo.NumPlayersAlliance.Value);
|
||||
|
||||
if(SuccessInfo.ExpansionTrialExpiration.HasValue)
|
||||
if (SuccessInfo.ExpansionTrialExpiration.HasValue)
|
||||
_worldPacket.WriteInt64(SuccessInfo.ExpansionTrialExpiration.Value);
|
||||
|
||||
if (SuccessInfo.NewBuildKeys != null)
|
||||
@@ -188,7 +188,7 @@ namespace Game.Networking.Packets
|
||||
}
|
||||
|
||||
if (WaitInfo.HasValue)
|
||||
WaitInfo.Value.Write(_worldPacket);
|
||||
WaitInfo.Value.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public AuthSuccessInfo SuccessInfo; // contains the packet data in case that it has account information (It is never set when WaitInfo is set), otherwise its contents are undefined.
|
||||
@@ -412,13 +412,17 @@ namespace Game.Networking.Packets
|
||||
{
|
||||
data.WriteUInt32(WaitCount);
|
||||
data.WriteUInt32(WaitTime);
|
||||
data.WriteUInt32(AllowedFactionGroupForCharacterCreate);
|
||||
data.WriteBit(HasFCM);
|
||||
data.WriteBit(CanCreateOnlyIfExisting);
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public uint WaitCount; // position of the account in the login queue
|
||||
public uint WaitTime; // Wait time in login queue in minutes, if sent queued and this value is 0 client displays "unknown time"
|
||||
public uint AllowedFactionGroupForCharacterCreate;
|
||||
public bool HasFCM; // true if the account has a forced character migration pending. @todo implement
|
||||
public bool CanCreateOnlyIfExisting; ///< Can create characters on realm only if player has other existing characters there
|
||||
}
|
||||
|
||||
struct VirtualRealmNameInfo
|
||||
|
||||
@@ -398,7 +398,7 @@ namespace Game.Networking.Packets
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteUInt8((byte)Reason);
|
||||
_worldPacket.WriteInt32((int)Reason);
|
||||
}
|
||||
|
||||
ChatRestrictionType Reason;
|
||||
|
||||
@@ -264,7 +264,7 @@ namespace Game.Networking.Packets
|
||||
public uint RollTime;
|
||||
public LootMethod Method;
|
||||
public RollMask ValidRolls;
|
||||
public Array<LootRollIneligibilityReason> LootRollIneligibleReason = new Array<LootRollIneligibilityReason>(4);
|
||||
public Array<LootRollIneligibilityReason> LootRollIneligibleReason = new Array<LootRollIneligibilityReason>(5);
|
||||
public LootItemData Item = new();
|
||||
public uint DungeonEncounterID;
|
||||
|
||||
|
||||
@@ -106,8 +106,8 @@ namespace Game.Networking.Packets
|
||||
|
||||
_worldPacket.WriteFloat(Stats.HpMulti);
|
||||
_worldPacket.WriteFloat(Stats.EnergyMulti);
|
||||
|
||||
_worldPacket.WriteInt32(Stats.QuestItems.Count);
|
||||
_worldPacket.WriteInt32(Stats.QuestCurrencies.Count);
|
||||
_worldPacket.WriteUInt32(Stats.CreatureMovementInfoID);
|
||||
_worldPacket.WriteInt32(Stats.HealthScalingExpansion);
|
||||
_worldPacket.WriteUInt32(Stats.RequiredExpansion);
|
||||
@@ -128,6 +128,9 @@ namespace Game.Networking.Packets
|
||||
|
||||
foreach (var questItem in Stats.QuestItems)
|
||||
_worldPacket.WriteUInt32(questItem);
|
||||
|
||||
foreach (var currencyItem in Stats.QuestCurrencies)
|
||||
_worldPacket.WriteInt32(currencyItem);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -671,7 +674,7 @@ namespace Game.Networking.Packets
|
||||
public uint Unused1;
|
||||
public ObjectGuid Unused2;
|
||||
public string Unused3 = "";
|
||||
|
||||
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
data.WriteUInt32(Unused1);
|
||||
@@ -739,6 +742,7 @@ namespace Game.Networking.Packets
|
||||
public float EnergyMulti;
|
||||
public bool Leader;
|
||||
public List<uint> QuestItems = new();
|
||||
public List<int> QuestCurrencies = new();
|
||||
public uint CreatureMovementInfoID;
|
||||
public int HealthScalingExpansion;
|
||||
public uint RequiredExpansion;
|
||||
|
||||
Reference in New Issue
Block a user