Author Topic: Finish  (Read 546 times)

Okay I got an error yet again

package chatbot
{
function clientcmdchatmessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg)
 {
parent::clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg);
   if (%msg $= "Zazzlebot")
   {
      if (%name $=$Pref::Player::Netname)
      {   
      commandtoserver('messagesent',"Yissir");
      }
   }
}
};
activatepackage(chatbot);

Ive decided that Ive run into too many errors with this and Im going to move back to something else to help with my scripting. If anyone could lead me to a good tutorial without problems, that'd be amazing. I'll also like if someone could tell me of another script I could try that would be more useful for practice. Thank you all for the support. Ill make sure to keep what you've all said in mind

Crap accidentally made another post.
« Last Edit: August 05, 2014, 05:53:03 PM by Neji980 »

For clarification, this topic was accidentally posted instead of a post inside an already existing thread. You can find the intended destination of this post here:

http://forum.blockland.us/index.php?topic=264030.msg7757212#msg7757212

package myChatbot
{
   function clientcmdchatmessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg)
   {
      parent::clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg);
      
      if (%msg $= "Zazzlebot")
      {
         if (%name $=$Pref::Player::Netname)
         {  
            commandtoserver('messagesent',"Yissir");
         }
      }
   }
};
activatePackage(myChatbot);


This should work. Get notepad++ for scripting.