2015-09-25 18:52:25 -04:00
|
|
|
|
using FFXIVClassic_Lobby_Server.packets;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace FFXIVClassic_Map_Server.packets.send.login
|
|
|
|
|
{
|
|
|
|
|
class InitPacket
|
|
|
|
|
{
|
2015-10-15 22:17:21 -04:00
|
|
|
|
public static BasePacket buildPacket(uint actorID, uint time)
|
2015-09-25 18:52:25 -04:00
|
|
|
|
{
|
2015-10-14 23:48:49 -04:00
|
|
|
|
byte[] data = new byte[0x18];
|
2015-09-25 18:52:25 -04:00
|
|
|
|
|
|
|
|
|
using (MemoryStream mem = new MemoryStream(data))
|
|
|
|
|
{
|
|
|
|
|
using (BinaryWriter binWriter = new BinaryWriter(mem))
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
binWriter.Write((short)0x18);
|
|
|
|
|
binWriter.Write((short)0x7);
|
|
|
|
|
binWriter.Write((uint)0);
|
|
|
|
|
binWriter.Write((uint)0);
|
|
|
|
|
binWriter.Write((uint)0xFFFFFD7F);
|
|
|
|
|
|
2015-10-15 22:17:21 -04:00
|
|
|
|
binWriter.Write((uint)actorID);
|
2015-09-25 18:52:25 -04:00
|
|
|
|
binWriter.Write((uint)time);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return BasePacket.createPacket(data, false, false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|