暂存
This commit is contained in:
parent
33ce4d4333
commit
67486fdb68
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using PSO2SERVER.Packets.PSOPackets;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@ -31,9 +32,10 @@ namespace PSO2SERVER.Packets.Handlers
|
||||
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
|
||||
{
|
||||
// Set Player ID
|
||||
var setPlayerId = new PacketWriter();
|
||||
setPlayerId.WritePlayerHeader((uint)context.User.PlayerId);
|
||||
context.SendPacket(0x06, 0x00, 0, setPlayerId.ToArray());
|
||||
//var setPlayerId = new PacketWriter();
|
||||
//setPlayerId.WritePlayerHeader((uint)context.User.PlayerId);
|
||||
//context.SendPacket(0x06, 0x00, 0, setPlayerId.ToArray());
|
||||
context.SendPacket(new SetPlayerIDPacket(context.User.PlayerId));
|
||||
|
||||
// Spawn Player
|
||||
new CharacterSpawn().HandlePacket(context, flags, data, position, size);
|
||||
|
@ -137,7 +137,8 @@ namespace PSO2SERVER.Packets.Handlers
|
||||
if (c.Character == null || c == context || c.CurrentZone != context.CurrentZone)
|
||||
continue;
|
||||
|
||||
c.SendPacket(0x4, 0x7, flags, data);
|
||||
c.SendPacket(0x04, 0x07, flags, data);
|
||||
//c.SendPacket(new MovementPacket(dstData));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,9 +8,9 @@ namespace PSO2SERVER.Packets.PSOPackets
|
||||
{
|
||||
public class SetPlayerIDPacket : Packet
|
||||
{
|
||||
private readonly uint _PlayerId;
|
||||
private readonly int _PlayerId;
|
||||
|
||||
public SetPlayerIDPacket(uint PlayerId)
|
||||
public SetPlayerIDPacket(int PlayerId)
|
||||
{
|
||||
_PlayerId = PlayerId;
|
||||
}
|
||||
@ -20,7 +20,7 @@ namespace PSO2SERVER.Packets.PSOPackets
|
||||
public override byte[] Build()
|
||||
{
|
||||
var pkt = new PacketWriter();
|
||||
pkt.WritePlayerHeader(_PlayerId);
|
||||
pkt.WritePlayerHeader((uint)_PlayerId);
|
||||
return pkt.ToArray();
|
||||
}
|
||||
|
||||
|
@ -143,7 +143,7 @@ namespace PSO2SERVER.Zone
|
||||
//var setPlayerId = new PacketWriter();
|
||||
//setPlayerId.WritePlayerHeader((uint)c.User.PlayerId);
|
||||
//c.SendPacket(0x06, 0x00, 0, setPlayerId.ToArray());
|
||||
c.SendPacket(new SetPlayerIDPacket((uint)c.User.PlayerId));
|
||||
c.SendPacket(new SetPlayerIDPacket(c.User.PlayerId));
|
||||
|
||||
// Spawn Character
|
||||
c.SendPacket(new CharacterSpawnPacket(c.Character, location));
|
||||
|
Loading…
Reference in New Issue
Block a user