Hey, I made a chatbot.
//This is made by the glorious elephant hugger, Johnny Blockhead 26
package chatbot {
function
clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
{
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if (%msg $= "I have a chatbot. Her name is Carl.")
if (%name $= "Johnny Blockhead 26") {
commandToServer('messagesent',"CarlBot: My name is Carl!");
}
}
};
activatepackage(chatbot);
How would I make it so she would respond to more then just one command?
I tried various ways, loaded em, and got errors.
I am not really shure what to do...
Do I have to make a whole entire new addon?
Please help
It would be the most appreciated if you just added it in using correct formatting
if (%msg $= "Carl, how are you doing?.")
if (%name $= "Johnny Blockhead 26") {
commandToServer('messagesent',Well, today some gangstas beat me up.");
Edit: Most of the first page is from a different subject matter