mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
20 lines
565 B
C#
20 lines
565 B
C#
using System.Text;
|
|
|
|
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 playerActorID, uint targetActorID, string name)
|
|
{
|
|
if (Encoding.Unicode.GetByteCount(name) >= 0x20)
|
|
name = "ERR: Too Long";
|
|
return new SubPacket(OPCODE, playerActorID, targetActorID, Encoding.ASCII.GetBytes(name));
|
|
}
|
|
}
|
|
}
|