1
Fork 0
mirror of https://bitbucket.org/Ioncannon/project-meteor-server.git synced 2025-04-24 05:37:46 +00:00
project-meteor-server/FFXIVClassic Map Server/packets/send/player/SetChocoboNamePacket.cs

20 lines
530 B
C#
Raw Normal View History

using System.Text;
2016-08-22 10:43:04 -04:00
using FFXIVClassic.Common;
namespace FFXIVClassic_Map_Server.packets.send.player
{
class SetChocoboNamePacket
{
public const ushort OPCODE = 0x0198;
public const uint PACKET_SIZE = 0x40;
public static SubPacket BuildPacket(uint sourceActorId, string name)
{
if (Encoding.Unicode.GetByteCount(name) >= 0x20)
name = "ERR: Too Long";
return new SubPacket(OPCODE, sourceActorId, Encoding.ASCII.GetBytes(name));
}
}
}