quote:
Originally posted by Alfredao
I tried this.js code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind)
{
ChatWnd.SendMessage(MsgPlus.RemoveFormatCodes(Message));
}
Do not use such code. It will trigger an infinate loop if it wasn't for the build-in flood checker!
If you want to output the message to check it, you should use the debug window:
js code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind) {
Debug.Trace(Message);
}
However, the sounds (both the build-in ones and custom sounds) will not trigger the
ChatWndReceiveMessage event. In other words, you can not do want you want.