mirror of
https://github.com/ServUO/ServUO
synced 2026-08-11 20:23:04 -04:00
- Removed unneeded usings - World chat log now has a Config option. Turned off by default now. - Added two new timer priorities. - Fixed a crash with box of ropes. - Consolidation of the Pathing movements and algorithms. - Correctly makes sure you are inside the house you are trying to place addons in.
29 lines
No EOL
753 B
C#
29 lines
No EOL
753 B
C#
using Server.Network;
|
|
|
|
namespace Server.Engines.Chat
|
|
{
|
|
public sealed class ChatMessagePacket : Packet
|
|
{
|
|
public ChatMessagePacket(Mobile who, int number, string param1, string param2)
|
|
: base(0xB2)
|
|
{
|
|
if (param1 == null)
|
|
param1 = string.Empty;
|
|
|
|
if (param2 == null)
|
|
param2 = string.Empty;
|
|
|
|
EnsureCapacity(13 + ((param1.Length + param2.Length) * 2));
|
|
|
|
m_Stream.Write((ushort)(number - 20));
|
|
|
|
if (who != null)
|
|
m_Stream.WriteAsciiFixed(who.Language, 4);
|
|
else
|
|
m_Stream.Write(0);
|
|
|
|
m_Stream.WriteBigUniNull(param1);
|
|
m_Stream.WriteBigUniNull(param2);
|
|
}
|
|
}
|
|
} |