Got party leader working. Added linkshell world/zone requests.

This commit is contained in:
Filip Maj
2016-12-21 08:27:23 -05:00
parent a68866617f
commit bf9095822e
13 changed files with 270 additions and 71 deletions

View File

@@ -1,14 +1,15 @@
using System;
using System.IO;
using System.Text;
namespace FFXIVClassic_World_Server.Packets.WorldPackets.Receive.Group
{
class DeleteGroupPacket
class DeleteLinkshellPacket
{
public bool invalidPacket = false;
public ulong groupId;
public string name;
public DeleteGroupPacket(byte[] data)
public DeleteLinkshellPacket(byte[] data)
{
using (MemoryStream mem = new MemoryStream(data))
{
@@ -16,7 +17,7 @@ namespace FFXIVClassic_World_Server.Packets.WorldPackets.Receive.Group
{
try
{
groupId = binReader.ReadUInt64();
name = Encoding.ASCII.GetString(binReader.ReadBytes(0x20)).Trim(new[] { '\0' });
}
catch (Exception)
{

View File

@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace FFXIVClassic_World_Server.Packets.WorldPackets.Receive.Group
{
class SetActiveLinkshellPacket
{
public bool invalidPacket = false;
public string name;
public SetActiveLinkshellPacket(byte[] data)
{
using (MemoryStream mem = new MemoryStream(data))
{
using (BinaryReader binReader = new BinaryReader(mem))
{
try
{
name = Encoding.ASCII.GetString(binReader.ReadBytes(0x20)).Trim(new[] { '\0' });
}
catch (Exception)
{
invalidPacket = true;
}
}
}
}
}
}