Aura.Channel.Network.Sending.Send.SystemMessageFrom C# (CSharp) Méthode

SystemMessageFrom() public static méthode

Sends system message (special Chat) to creature's client.
public static SystemMessageFrom ( Creature creature, string from, string format ) : void
creature Creature
from string
format string
Résultat void
		public static void SystemMessageFrom(Creature creature, string from, string format, params object[] args)
		{
			var packet = new Packet(Op.Chat, creature.EntityId);

			foreach (var msg in string.Format(format, args).Chunkify(100)) // Mabi displays up to 100 chars
			{
				packet.PutByte(0);
				packet.PutString(from);
				packet.PutString(msg);
				packet.PutByte(true);
				packet.PutUInt(0xFFFF8080);
				packet.PutInt(0);
				packet.PutByte(0);

				creature.Client.Send(packet);

				packet.Clear(packet.Op, packet.Id);
			}
		}
Send