Blockland Forums > Modification Help

My chatbot is not working

Pages: << < (4/23) > >>

Deoxys And One Noob:


--- Quote from: Wordy on March 09, 2012, 06:37:47 PM ---It's %msg. I guarantee. Don't waste your time bout this.

--- End quote ---
K then, poll locked, though I still need to find a way to activate the chatbot.

Darkness ZXW:


--- Quote from: Deoxys And One Noob on March 09, 2012, 06:40:32 PM ---K then, poll locked, though I still need to find a way to activate the chatbot.

--- End quote ---

Try saying "NoobBot".

Deoxys And One Noob:


--- Quote from: Darkness ZXW on March 09, 2012, 07:20:53 PM ---Try saying "NoobBot".

--- End quote ---
I did.

FFSO:

use switch() not if()

Deoxys And One Noob:


--- Quote from: FFSO on March 09, 2012, 10:44:09 PM ---use switch() not if()

--- End quote ---

OK.

Congrats, this was a EPIC FAIL.

Script:

//Made by Deoxys & One Noob, BLID 30436
package chatbot
{
   function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg)
   {
      parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg);
      switch(%msg $= "NoobBot")
      {
         switch(%name $= "Deoxys & One Noob")
         {
            commandToServer('messageSent', "What a cool chatbot!");
            }
      }
   }
};
activatePackage(chatbot);

Description.txt:

"NoobBot, Deoxys & One Noobs cool chatbot"

Anything wrong?




Pages: << < (4/23) > >>

Go to full version