O.P. RE: artificial intelligence script(close window)
fixed script
if (Message.match(/(^|\s+)(\*)?add(d|s)?(\*)?($|\s+)/i)!=null)
{
Message=Message.substring(3);
ChatWnd.SendMessage("attempting to add now..");
ChatWnd.SendMessage("Message is now"+Message);
var anExpression = Message;
var total = eval(anExpression); // Assigns the value 5 to the variable total.
ChatWnd.SendMessage(total.toString());
}
extensive and n00by bot script...
current bot commands:
google dog ....
image dog ....(google images)
huh ...(disses you up)
add mathetmatical operation
ex:
add 7 * 8 + 1 ...==>gives 57
Attachment: AutoBot.zip (5.74 KB)
This file has been downloaded 177 time(s).
This post was edited on 09-20-2006 at 04:01 AM by xsouldeath.
|