/// <param name="channel">The channel to send the message on, 0 is the public channel. Channels above 0
/// can be used however only scripts listening on the specified channel will see the message</param>
/// <param name="type">Denotes the type of message being sent, shout, whisper, etc.</param>
public void Chat(String message, int channel, ChatType type)
{
ChatFromViewerPacket chat = new ChatFromViewerPacket();
chat.AgentData.AgentID = this.id;
chat.AgentData.SessionID = Client.self.getSessionID();
chat.ChatData.Channel = channel;
chat.ChatData.Message = Utils.stringToBytesWithTrailingNullByte(message);
chat.ChatData.Type = (byte)type.getIndex();