Hi, I was coding myself a little script today. I got a peice of code off of
this thread so my Chatbot could recognize chat. This is how it turned out: (merged with a tiny bit of my code)
package bootup
{
function NMH_Type::Send(%this)
{
%word = %this.getValue();
%words = getWordCount(%word);
for(%i=0;%i<%words;%i++)
{
%word = getWord(%message, %i);
if(%word $= "Bootup, JSys" || %word $= "bootup, jsys" || %word $= "Bootup, jsys" || %word $= "Bootup, Jsys" || %word $= "Boot!")
{
activatepackage("SystemMain");
commandToServer('messagesent',"JSys²: Booting up.");
schedule(2000, 0, "commandtoServer", 'messageSent', "Beware: This is for use only with Johnny Blockhead.");
}
}
}
Parent::Send(%this);
}
activatepackage("bootup");
I'd think everything would be fine, except on
Parent::Send(%this);
It said there where errors like so:
Parent:##:##Send(%this);
I know its syntax, but because it is not my code, I don't really know what is wrong with it.
Please help :/