public static RemoveCreatureTextPacket Create(ConnectionProvider connection, int CreatureID, string CreatureName) { PipePacketBuilder p = new PipePacketBuilder(connection, PipePacketType.RemoveCreatureText); p.AddLong(CreatureID); p.AddString(CreatureName); return new RemoveCreatureTextPacket(connection, p.GetPacket()); }
public static UpdateCreatureTextPacket Create(ConnectionProvider connection, int CreatureID, string CreatureName, Location TextLoc, string NewText) { PipePacketBuilder p = new PipePacketBuilder(connection, PipePacketType.UpdateCreatureText); p.AddLong(CreatureID); p.AddString(CreatureName); p.AddShort(TextLoc.X); p.AddShort(TextLoc.Y); p.AddString(NewText); return new UpdateCreatureTextPacket(connection, p.GetPacket()); }
public static DisplayCreatureTextPacket Create(ConnectionProvider connection, int creatureID, string creatureName, Location loc, Color color, ClientFont font, string text) { PipePacketBuilder p = new PipePacketBuilder(connection, PipePacketType.DisplayCreatureText); p.AddLong(creatureID); p.AddString(creatureName); p.AddShort(loc.X); p.AddShort(loc.Y); p.AddInt(color.R); p.AddInt(color.G); p.AddInt(color.B); p.AddInt((int)font); p.AddString(text); return new DisplayCreatureTextPacket(connection, p.GetPacket()); }