Ejemplo n.º 1
0
        private void OnTextMessage(Packet props)
        {
            ClientMessage Message = (ClientMessage)props["Message"];

            DefaultChannel.Add(Message);
            //Log.Debug(Message.Text, this);
        }
Ejemplo n.º 2
0
        private void OnCreatureSpeak(Packet props)
        {
            ClientMessage Message = (ClientMessage)props["Message"];

            //Log.Debug(Message.Speaker + ": " + Message.Text, this);

            ClientChannel Channel = DefaultChannel;

            if (props["ChannelID"] != null && Channels.ContainsKey((UInt16)props["ChannelID"]))
            {
                Channel = Channels[(UInt16)props["ChannelID"]];
            }
            Channel.Add(Message);
        }