Core: Updated to 11.1.5

Port From (https://github.com/TrinityCore/TrinityCore/commit/f9bf082be962d45de79f936d625f644253e9b810)
This commit is contained in:
Hondacrx
2025-08-11 21:28:27 -04:00
parent 2bded05e95
commit 0fe016c3dd
36 changed files with 587 additions and 537 deletions
@@ -597,7 +597,7 @@ namespace Game.Networking.Packets
public int PvpTierID;
public int SeasonPvpTier;
public int BestWeeklyPvpTier;
public int BestSeasonPvpTierEnum;
public byte BestSeasonPvpTierEnum;
public bool Disqualified;
public void Write(WorldPacket data)
@@ -620,7 +620,7 @@ namespace Game.Networking.Packets
data.WriteInt32(PvpTierID);
data.WriteInt32(SeasonPvpTier);
data.WriteInt32(BestWeeklyPvpTier);
data.WriteInt32(BestSeasonPvpTierEnum);
data.WriteUInt8(BestSeasonPvpTierEnum);
data.WriteBit(Disqualified);
data.FlushBits();
}
@@ -199,7 +199,7 @@ namespace Game.Networking.Packets
{
data.WritePackedGuid(Guid);
data.WriteUInt32(VirtualRealmAddress);
data.WriteUInt8(ListPosition);
data.WriteUInt16(ListPosition);
data.WriteUInt8(RaceId);
data.WriteUInt8(SexId);
data.WriteUInt8((byte)ClassId);
@@ -256,7 +256,7 @@ namespace Game.Networking.Packets
public uint VirtualRealmAddress;
public ulong GuildClubMemberID; // same as bgs.protocol.club.v1.MemberId.unique_id, guessed basing on SMSG_QUERY_PLAYER_NAME_RESPONSE (that one is known)
public string Name;
public byte ListPosition; // Order of the characters in list
public ushort ListPosition; // Order of the characters in list
public byte RaceId;
public Class ClassId;
public byte SexId;
@@ -288,7 +288,7 @@ namespace Game.Networking.Packets
public int Tier;
public int WeeklyBestTier;
public int SeasonBestRating;
public int SeasonBestTierEnum;
public byte SeasonBestTierEnum;
public int RoundsSeasonPlayed;
public int RoundsSeasonWon;
public int RoundsWeeklyPlayed;
@@ -311,7 +311,7 @@ namespace Game.Networking.Packets
data.WriteInt32(Tier);
data.WriteInt32(WeeklyBestTier);
data.WriteInt32(SeasonBestRating);
data.WriteInt32(SeasonBestTierEnum);
data.WriteUInt8(SeasonBestTierEnum);
data.WriteInt32(RoundsSeasonPlayed);
data.WriteInt32(RoundsSeasonWon);
data.WriteInt32(RoundsWeeklyPlayed);
+2 -2
View File
@@ -265,7 +265,7 @@ namespace Game.Networking.Packets
{
Ticket.Write(_worldPacket);
_worldPacket.WriteUInt8(Result);
_worldPacket.WriteInt32(Result);
_worldPacket.WriteUInt8(ResultDetail);
_worldPacket.WriteInt32(BlackList.Count);
_worldPacket.WriteInt32(BlackListNames.Count);
@@ -282,7 +282,7 @@ namespace Game.Networking.Packets
}
public RideTicket Ticket = new();
public byte Result;
public int Result;
public byte ResultDetail;
public List<LFGBlackListPkt> BlackList = new();
public List<string> BlackListNames = new();
@@ -399,6 +399,7 @@ namespace Game.Networking.Packets
public uint QuestFlags;
public uint QuestFlagsEx;
public uint QuestFlagsEx2;
public uint QuestFlagsEx3;
public void Write(WorldPacket data)
{
@@ -409,6 +410,7 @@ namespace Game.Networking.Packets
data.WriteUInt32(QuestFlags);
data.WriteUInt32(QuestFlagsEx);
data.WriteUInt32(QuestFlagsEx2);
data.WriteUInt32(QuestFlagsEx3);
data.WriteBit(Repeatable);
data.WriteBit(ResetByScheduler);
+15 -11
View File
@@ -125,6 +125,7 @@ namespace Game.Networking.Packets
_worldPacket.WriteUInt32(Info.Flags);
_worldPacket.WriteUInt32(Info.FlagsEx);
_worldPacket.WriteUInt32(Info.FlagsEx2);
_worldPacket.WriteUInt32(Info.FlagsEx3);
for (uint i = 0; i < SharedConst.QuestRewardItemCount; ++i)
{
@@ -452,7 +453,8 @@ namespace Game.Networking.Packets
_worldPacket.WriteUInt32(PortraitTurnIn);
_worldPacket.WriteUInt32(QuestFlags[0]); // Flags
_worldPacket.WriteUInt32(QuestFlags[1]); // FlagsEx
_worldPacket.WriteUInt32(QuestFlags[2]); // FlagsEx
_worldPacket.WriteUInt32(QuestFlags[2]); // FlagsEx2
_worldPacket.WriteUInt32(QuestFlags[3]); // FlagsEx3
_worldPacket.WriteUInt32(SuggestedPartyMembers);
_worldPacket.WriteInt32(LearnSpells.Count);
_worldPacket.WriteInt32(DescEmotes.Count);
@@ -513,7 +515,7 @@ namespace Game.Networking.Packets
public ObjectGuid InformUnit;
public uint QuestID;
public int QuestPackageID;
public uint[] QuestFlags = new uint[3];
public uint[] QuestFlags = new uint[4];
public uint SuggestedPartyMembers;
public QuestRewards Rewards = new();
public List<QuestObjectiveSimple> Objectives = new();
@@ -554,6 +556,7 @@ namespace Game.Networking.Packets
_worldPacket.WriteUInt32(QuestFlags[0]);
_worldPacket.WriteUInt32(QuestFlags[1]);
_worldPacket.WriteUInt32(QuestFlags[2]);
_worldPacket.WriteUInt32(QuestFlags[3]);
_worldPacket.WriteInt32(StatusFlags);
_worldPacket.WriteUInt32(QuestGiverCreatureID);
_worldPacket.WriteUInt32(QuestID);
@@ -606,7 +609,7 @@ namespace Game.Networking.Packets
public List<QuestCurrency> Currency = new();
public int StatusFlags;
public int QuestInfoID;
public uint[] QuestFlags = new uint[3];
public uint[] QuestFlags = new uint[4];
public string QuestTitle = "";
public string CompletionText = "";
public List<ConditionalQuestText> ConditionalCompletionText = new();
@@ -912,9 +915,11 @@ namespace Game.Networking.Packets
_worldPacket.WriteInt64(Duration);
_worldPacket.WriteBits(Question.GetByteCount(), 8);
_worldPacket.WriteBits(PendingChoiceText.GetByteCount(), 8);
_worldPacket.WriteBit(CloseChoiceFrame);
_worldPacket.WriteBit(InfiniteRange);
_worldPacket.WriteBit(HideWarboardHeader);
_worldPacket.WriteBit(KeepOpenAfterChoice);
_worldPacket.WriteBit(Unknown_1115_1);
_worldPacket.WriteBit(Unknown_1115_2);
_worldPacket.FlushBits();
foreach (PlayerChoiceResponse response in Responses)
@@ -934,9 +939,11 @@ namespace Game.Networking.Packets
public string Question;
public string PendingChoiceText;
public List<PlayerChoiceResponse> Responses = new();
public bool CloseChoiceFrame;
public bool InfiniteRange;
public bool HideWarboardHeader;
public bool KeepOpenAfterChoice;
public bool Unknown_1115_1;
public bool Unknown_1115_2;
}
class ChoiceResponse : ClientPacket
@@ -1139,6 +1146,7 @@ namespace Game.Networking.Packets
public uint Flags;
public uint FlagsEx;
public uint FlagsEx2;
public uint FlagsEx3;
public uint POIContinent;
public float POIx;
public float POIy;
@@ -1348,6 +1356,7 @@ namespace Game.Networking.Packets
data.WriteUInt32(QuestFlags[0]); // Flags
data.WriteUInt32(QuestFlags[1]); // FlagsEx
data.WriteUInt32(QuestFlags[2]); // FlagsEx2
data.WriteUInt32(QuestFlags[3]); // FlagsEx3
data.WriteUInt32(QuestGiverCreatureID);
data.WriteUInt32(QuestID);
data.WriteUInt32(SuggestedPartyMembers);
@@ -1373,7 +1382,7 @@ namespace Game.Networking.Packets
public uint SuggestedPartyMembers;
public QuestRewards Rewards = new();
public List<QuestDescEmote> Emotes = new();
public uint[] QuestFlags = new uint[3]; // Flags and FlagsEx
public uint[] QuestFlags = new uint[4]; // Flags and FlagsEx
public int QuestInfoID;
}
@@ -1493,7 +1502,6 @@ namespace Game.Networking.Packets
public int Unused901_1;
public int TypeArtFileID;
public int? Rarity;
public uint? RarityColor;
public int Unused901_2;
public int SpellID;
public int MaxStacks;
@@ -1506,14 +1514,10 @@ namespace Game.Networking.Packets
data.WriteInt32(SpellID);
data.WriteInt32(MaxStacks);
data.WriteBit(Rarity.HasValue);
data.WriteBit(RarityColor.HasValue);
data.FlushBits();
if (Rarity.HasValue)
data.WriteInt32(Rarity.Value);
if (RarityColor.HasValue)
data.WriteUInt32(RarityColor.Value);
}
}
@@ -1063,14 +1063,15 @@ namespace Game.Networking.Packets
public override void Write()
{
_worldPacket.WritePackedGuid(UnitGUID);
_worldPacket.WriteInt32(DisplayID);
_worldPacket.WriteInt32(SpellVisualKitID);
_worldPacket.WriteInt32(ChrModelID);
_worldPacket.WriteUInt8(RaceID);
_worldPacket.WriteUInt8(Gender);
_worldPacket.WriteUInt8(ClassID);
_worldPacket.WriteInt32(Customizations.Count);
_worldPacket.WritePackedGuid(GuildGUID);
_worldPacket.WriteInt32(ItemDisplayID.Count);
_worldPacket.WriteInt32(SpellVisualKitID);
_worldPacket.WriteInt32(Unused_1115);
foreach (ChrCustomizationChoice customization in Customizations)
{
@@ -1083,8 +1084,9 @@ namespace Game.Networking.Packets
}
public ObjectGuid UnitGUID;
public int DisplayID;
public int ChrModelID;
public int SpellVisualKitID;
public int Unused_1115;
public byte RaceID;
public byte Gender;
public byte ClassID;
@@ -2036,6 +2038,7 @@ namespace Game.Networking.Packets
data.WriteUInt32((uint)CastFlags);
data.WriteUInt32((uint)CastFlagsEx);
data.WriteUInt32(CastFlagsEx2);
data.WriteUInt32(CastTime);
MissileTrajectory.Write(data);
@@ -2087,6 +2090,7 @@ namespace Game.Networking.Packets
public SpellCastVisual Visual;
public SpellCastFlags CastFlags;
public SpellCastFlagsEx CastFlagsEx;
public uint CastFlagsEx2;
public uint CastTime;
public List<ObjectGuid> HitTargets = new();
public List<ObjectGuid> MissTargets = new();
@@ -102,7 +102,6 @@ namespace Game.Networking.Packets
_worldPacket.WriteBit(GroupFinderEnabled);
_worldPacket.WriteBit(IsPremadeGroupEnabled);
_worldPacket.WriteBit(UseActivePlayerDataQuestCompleted);
_worldPacket.WriteBit(false); // unused 10.2.7
_worldPacket.WriteBit(GuildEventsEditsEnabled);
_worldPacket.WriteBit(GuildTradeSkillsEnabled);
@@ -110,8 +109,8 @@ namespace Game.Networking.Packets
_worldPacket.WriteBit(BNSendWhisperUseV2Services);
_worldPacket.WriteBit(BNSendGameDataUseV2Services);
_worldPacket.WriteBit(IsAccountCurrencyTransferEnabled);
_worldPacket.WriteBit(false); // unused 11.0.7
_worldPacket.WriteBit(LobbyMatchmakerQueueFromMainlineEnabled);
_worldPacket.WriteBit(CanSendLobbyMatchmakerPartyCustomizations);
_worldPacket.WriteBit(AddonProfilerEnabled);
@@ -215,7 +214,6 @@ namespace Game.Networking.Packets
public bool SellAllJunkEnabled;
public bool GroupFinderEnabled = true; // classic only
public bool IsPremadeGroupEnabled = true; // classic only
public bool UseActivePlayerDataQuestCompleted = false; ///< Uses ActivePlayerData::QuestCompleted (legacy) to store completed quest bits instead of ActivePlayerData::BitVectors[9]
public bool GuildEventsEditsEnabled = true;
public bool GuildTradeSkillsEnabled = true;
public bool BNSendWhisperUseV2Services = true; ///< BNSendWhisper will send to v2.WhisperService instead of v1.NotificationService