示例#1
0
        private void OnTextMessage(Packet props)
        {
            ClientMessage Message = (ClientMessage)props["Message"];

            DefaultChannel.Add(Message);
            //Log.Debug(Message.Text, this);
        }
示例#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);
        }