This commit is contained in:
Longfeng Qin 2024-09-20 23:11:17 +08:00
parent 0edfcde8cd
commit c534a0e816
6 changed files with 6 additions and 6 deletions

View File

@ -33,7 +33,7 @@ namespace PSO2SERVER.Packets.Handlers
{
// Set Account ID
//var setPlayerId = new PacketWriter();
//setPlayerId.WritePlayerHeader((uint)context._account.AccountId);
//setPlayerId.WriteAccountHeader((uint)context._account.AccountId);
//context.SendPacket(0x06, 0x00, 0, setPlayerId.ToArray());
context.SendPacket(new SetPlayerIDPacket(context._account.AccountId));

View File

@ -51,7 +51,7 @@ namespace PSO2SERVER.Packets.Handlers
Logger.Write("[CHT] <{0}> 频道{1}说 {2}", context.Character.Name, channel, message);
var writer = new PacketWriter();
writer.WritePlayerHeader((uint) context._account.AccountId);
writer.WriteAccountHeader((uint) context._account.AccountId);
writer.Write(channel);
writer.WriteUtf16(message, 0x9D3F, 0x44);

View File

@ -20,7 +20,7 @@ namespace PSO2SERVER.Packets.PSOPackets
public override byte[] Build()
{
var pkt = new PacketWriter();
pkt.WritePlayerHeader((uint)_PlayerId);
pkt.WriteAccountHeader((uint)_PlayerId);
return pkt.ToArray();
}

View File

@ -38,7 +38,7 @@ namespace PSO2SERVER.Packets.PSOPackets
var writer = new PacketWriter();
// Account header
writer.WritePlayerHeader((uint)_character.Account.AccountId);
writer.WriteAccountHeader((uint)_character.Account.AccountId);
// Spawn position
writer.Write(Position);

View File

@ -129,7 +129,7 @@ namespace PSO2SERVER.Packets
Write(Helper.FloatToHalfPrecision(s.PosZ));
}
public void WritePlayerHeader(uint id)
public void WriteAccountHeader(uint id)
{
Write(id);
Write((uint) 0);

View File

@ -141,7 +141,7 @@ namespace PSO2SERVER.Zone
}
//var setPlayerId = new PacketWriter();
//setPlayerId.WritePlayerHeader((uint)c._account.AccountId);
//setPlayerId.WriteAccountHeader((uint)c._account.AccountId);
//c.SendPacket(0x06, 0x00, 0, setPlayerId.ToArray());
c.SendPacket(new SetPlayerIDPacket(c._account.AccountId));