private void OnTextMessage(Packet props) { ClientMessage Message = (ClientMessage)props["Message"]; DefaultChannel.Add(Message); //Log.Debug(Message.Text, this); }
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); }