O.P. RE: artificial intelligence script(close window)
well i try to look up the Message.match
if (Message.match(/(add)/i))
{
Message=Message.trim();
ChatWnd.SendMessage(Message);
var plus =Message.indexOf("+");
var value1= Message.substring(0,plus);
var value2=Message.substring(plus+1,Message.length()-1);
var final=value1+value2;
ChatWnd.SendMessage(""+final);
}
i guess my program crashes there..
|