LS kicking and leaving work.

This commit is contained in:
Filip Maj
2017-01-09 00:12:11 -05:00
parent 61e4effd74
commit 771b5b6d81
7 changed files with 139 additions and 16 deletions

View File

@@ -9,8 +9,9 @@ namespace FFXIVClassic_World_Server.Packets.WorldPackets.Receive.Group
{
public bool invalidPacket = false;
public bool isDisband;
public bool isKicked;
public string lsName;
public string kickedName;
public LinkshellLeavePacket(byte[] data)
{
@@ -20,7 +21,8 @@ namespace FFXIVClassic_World_Server.Packets.WorldPackets.Receive.Group
{
try
{
isDisband = binReader.ReadUInt16() == 1;
isKicked = binReader.ReadUInt16() == 1;
kickedName = Encoding.ASCII.GetString(binReader.ReadBytes(0x20)).Trim(new[] { '\0' });
lsName = Encoding.ASCII.GetString(binReader.ReadBytes(0x20)).Trim(new[] { '\0' });
}
catch (Exception)