2016-06-08 22:29:04 +01:00
|
|
|
|
using System.Text;
|
2015-10-11 14:57:24 -04:00
|
|
|
|
|
|
|
|
|
namespace FFXIVClassic_Map_Server.packets.send.player
|
|
|
|
|
{
|
|
|
|
|
class SetChocoboNamePacket
|
|
|
|
|
{
|
|
|
|
|
public const ushort OPCODE = 0x0198;
|
|
|
|
|
public const uint PACKET_SIZE = 0x40;
|
|
|
|
|
|
2016-06-15 00:08:05 +01:00
|
|
|
|
public static SubPacket BuildPacket(uint playerActorID, uint targetActorID, string name)
|
2015-10-11 14:57:24 -04:00
|
|
|
|
{
|
|
|
|
|
if (Encoding.Unicode.GetByteCount(name) >= 0x20)
|
|
|
|
|
name = "ERR: Too Long";
|
2016-06-15 00:08:05 +01:00
|
|
|
|
return new SubPacket(OPCODE, playerActorID, targetActorID, Encoding.ASCII.GetBytes(name));
|
2015-10-11 14:57:24 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|