修正
This commit is contained in:
parent
0edfcde8cd
commit
c534a0e816
@ -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));
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user