Added new packets for controlling BG objects. Added group delete packet. Fixed crash if tried to warp to non-existent zone. Added a create LS db method.

This commit is contained in:
Filip Maj 2016-12-11 23:31:13 -05:00
parent feb73a8444
commit b2c1c2895d
6 changed files with 145 additions and 0 deletions

View file

@ -0,0 +1,29 @@
using System.IO;
using FFXIVClassic.Common;
using System;
namespace FFXIVClassic_Map_Server.packets.send.actor
{
class _0xD8Packet
{
public const ushort OPCODE = 0x00D8;
public const uint PACKET_SIZE = 0x28;
public static SubPacket BuildPacket(uint playerActorID, uint targetActorID, uint val1, uint val2)
{
byte[] data = new byte[PACKET_SIZE - 0x20];
using (MemoryStream mem = new MemoryStream(data))
{
using (BinaryWriter binWriter = new BinaryWriter(mem))
{
binWriter.Write((UInt32)val1);
binWriter.Write((UInt32)val2);
}
}
return new SubPacket(OPCODE, playerActorID, targetActorID, data);
}
}
}