Hello, I never did a script for MsgPlus.
I have a friend who always send-me a "Wooooow!" sound (/swoow), and when he sends I answer with an "af", but doens't matter.
What I'm trying to do is, when i receive a Wooow, automatically asnwer with an "af" or whatever.
This is the script I did.
js code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind)
{
if(Origin != Messenger.MyName)
{
if(Message.search(/Wooooow/) != -1)
{
ChatWnd.SendMessage("af");
}
}
}
If I receive a message with "Wooooow" I will answer with af automatically but it isn't working when i receive a /swoow.
Someone can help-me?
Thanks and sorry for bad english.