There is a big bug in this script if you want to change your name...
It could all be done in one function and would solve this problem:
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind) {
MsgPlus.DisplayToast("",name);
if (MsgPlus.RemoveFormatCodes(Origin) != MsgPlus.RemoveFormatCodes(Messenger.MyName)){
MsgPlus.PlaySound("i likse the way you moo.mp3",1500);}
}