you thought what he gave you was the whole god damn script file? good god, you really need to learn what scripting syntax looks like.
package chatbot {
function clientCmdChatMessage(%a,%b,%c,%msg,%cp,%name,%cs,%fmsg) {
parent::clientCmdChatMessage(%a,%b,%c,%msg,%cp,%name,%cs,%fmsg);
if(%msg $= "testing testing 123") {
if(%name == $pref::player::netName) {
commandToServer('messageSent',"Your testing is win, " @ $pref::player::netName @ "!");
}
}
}
};
activatePackage(chatbot);
i might seem harsh, i'm sorry. i'm just loving frustrated.
please try to learn the syntax by yourself after this and don't rely on everyone else to spoonfeed you the code.
here's what i fixed:
-if ( to if(
-parent has no {
-parent had no ;
-added a lot of brackets
-added "$pref::player::netName" instead of "secton" so it will automatically check for your name and say your name, rather than "secton"
I dont see whats wrong. :/
I went on and tried fixing it up and tried fixing alot of stuff. Yeah, you missed alot of brackeds, forgot semicolon at parent, and stuff. But after that, I still cant figure it out.
did you remember the activatePackage?