Core/PacketIO: Updated packet structures to 9.2.0

Port From (https://github.com/TrinityCore/TrinityCore/commit/9f30afe3528441571f89cb2e1775c756774fa0cd)
This commit is contained in:
hondacrx
2022-05-09 23:14:38 -04:00
parent 1ca851db26
commit 0bbabbd667
32 changed files with 1309 additions and 1023 deletions
+7 -4
View File
@@ -19,6 +19,7 @@ using Framework.Constants;
using Game.Entities;
using Game.Groups;
using Game.Maps;
using Game.Networking.Packets;
using Game.Scripting;
namespace Game.DungeonFinding
@@ -84,12 +85,14 @@ namespace Game.DungeonFinding
return;
}
for (GroupReference refe = group.GetFirstMember(); refe != null; refe = refe.Next())
QueryPlayerNameResponse response = new();
foreach (MemberSlot memberSlot in group.GetMemberSlots())
{
Player member = refe.GetSource();
if (member)
player.GetSession().SendNameQuery(member.GetGUID());
player.GetSession().BuildNameQueryData(memberSlot.guid, out NameCacheLookupResult nameCacheLookupResult);
response.Players.Add(nameCacheLookupResult);
}
player.SendPacket(response);
if (Global.LFGMgr.SelectedRandomLfgDungeon(player.GetGUID()))
player.CastSpell(player, SharedConst.LFGSpellLuckOfTheDraw, true);