Blockland Forums > Help
Chatbot Coding help!
Pages: (1/1)
termianallyCapricious:
Hello, I just started learning Chatbots, Could someone please help me. I repeat the phrase to trigger it, But It wont say anything! Here is the code.
//Captor
//6023
package chatbot
{
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg)
{
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if (%msg $= "testing testing 123")
{
if(%name $= "Captor")
{
commandToServer('messageSent',"Your testing is win, Captor!");
}
}
}
};
ActivatePackage(chatbot);
Zeblote:
--- Quote from: termibrown townlyCapricious on February 22, 2013, 01:22:18 PM ---function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg)
--- End quote ---
You put %fmsg twice
termianallyCapricious:
--- Quote from: Zeblote on February 22, 2013, 01:32:15 PM ---You put %fmsg twice
--- End quote ---
Which one do I delete?
Zeblote:
(%a,%b,%c,%msg,%cp,%name,%cs,%fmsg)
Pages: (1/1)