Poll

Who is the best scripter that can teach me?

Danny Boy
Truce
Xalos
jes00

Author Topic: My chatbot is not working  (Read 8182 times)

Obiously, the chatbot script did not work. I used ThinkInvisables tutorial. I followed every step.

Here is the script.

If possible, please give me the CORRECT codeing.

Thank you.

Anyways, here is the script

client.cs:

//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);if (%msg $= "NoobBot") {if (%name $= "Deoxys & One Noob") {
}
};
activatePackage(chatbot);
         commandToServer('messageSent', "What a cool chatbot!");
   }
}

OK, thats the client.cs

description.txt:

"NoobBot, Deoxys & One Noobs cool chatbot"

Thats it.

Tell me correct code please.

BYW, I DONT have RTB.

There was so many things wrong with that I can't describe
though heres a fixed version


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

Try to make it spacier
also no ' around any package or function thing.
« Last Edit: March 09, 2012, 05:56:32 PM by Brian Smithers »

lol description.txt is failed too

lol description.txt is failed too
What? What do you mean?

There was so many things wrong with that I can't describe
though heres a fixed version


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

Try to make it spacier
also no ' around any package or function thing.
Where has %msg came from? isn't it supposed to be %fmsg?

Well confused.


There was so many things wrong with that I can't describe
though heres a fixed version


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

Try to make it spacier
also no ' around any package or function thing.

OK, copy and pasted the code, what now? I typed "NoobBot" and nothing happened

OK, copy and pasted the code, what now? I typed "NoobBot" and nothing happened
any console messages?

any console messages?

Yep, tried activatePackage(chatbot); and activatePackage(client_MyFirstBot);

Yep, tried activatePackage(chatbot); and activatePackage(client_MyFirstBot);
I mean do you get any errors in console?

I mean do you get any errors in console?
When i tryed the activatePackage(chatbot);, it said that there it could not find a package named "chatbot"

When I tryed the other one, It found the file, but it said there was a syntax error.

Uhm
is it in your addons folder?


What? What do you mean?
Where has %msg came from? isn't it supposed to be %fmsg?

Well confused.


For what?
if (%msg $= "NoobBot")?
« Last Edit: March 09, 2012, 06:30:51 PM by Deoxys And One Noob »

I made a poll to help out.

After March 29, the poll expires.

Whatever wins, I will input it.

I made a poll to help out.

After March 29, the poll expires.

Whatever wins, I will input it.
It's %msg. I guarantee. Don't waste your time bout this.