/// <summary>
        /// Send a generic message.
        /// </summary>
        /// <param name="client"></param>
        /// <param name="senderName"></param>
        /// <param name="senderLevel"></param>
        /// <param name="speechType"></param>
        /// <param name="channelId"></param>
        /// <param name="position"></param>
        /// <param name="time"></param>
        /// <returns></returns>
        public static bool Send(Objects.Client client, string senderName, ushort senderLevel, string message, SpeechType speechType, ChatChannel channelId, Objects.Location position, uint time)
        {
            CreatureSpeechPacket p = new CreatureSpeechPacket(client);

            p.SenderName  = senderName;
            p.SenderLevel = senderLevel;
            p.Message     = message;
            p.SpeechType  = speechType;
            p.ChannelId   = channelId;
            p.Position    = position;
            p.Time        = time;
            return(p.Send());
        }
Example #2
0
 /// <summary>
 /// Send a generic message.
 /// </summary>
 /// <param name="client"></param>
 /// <param name="senderName"></param>
 /// <param name="senderLevel"></param>
 /// <param name="speechType"></param>
 /// <param name="channelId"></param>
 /// <param name="position"></param>
 /// <param name="time"></param>
 /// <returns></returns>
 public static bool Send(Objects.Client client, string senderName, ushort senderLevel, string message, SpeechType speechType, ChatChannel channelId, Objects.Location position, uint time)
 {
     CreatureSpeechPacket p = new CreatureSpeechPacket(client);
     p.SenderName = senderName;
     p.SenderLevel = senderLevel;
     p.Message = message;
     p.SpeechType = speechType;
     p.ChannelId = channelId;
     p.Position = position;
     p.Time = time;
     return p.Send();
 }