Poll

Who is the best scripter that can teach me?

Danny Boy
Truce
Xalos
jes00

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

OK, downloaded Notepad++, using FFSO's code

It might work, but its doing nothing, do I need to put it in a .zip file?

EDIT: I might need to use a namecheck file...

Sorry for Double Post (DP)
« Last Edit: March 24, 2012, 07:40:23 AM by Deoxys And One Noob »

It might work, but its doing nothing, do I need to put it in a .zip file?

EDIT: I might need to use a namecheck file...

Sorry for Double Post (DP)

You dont need a namecheck file, but it does need to be in a zip


OK, found some errors, fixing, might work

You shouldn't generally listen to FFSO

I used Kaladunes template, lemme fix the error in it.

omfg guys
where did he say that
A: he packaged it properly (description.txt, has an underscore in the file path, etc)
B: he executed it

fun fact
he didn't
we ought to get the file executed first

omfg guys
where did he say that
A: he packaged it properly (description.txt, has an underscore in the file path, etc)
B: he executed it

fun fact
he didn't
we ought to get the file executed first


Yah, it works, until... (I was updating it, BTW)

if (%name $= Deoxys & One Noob)
^^^^^^^^^^^^^^^^^^^^^^^^
Any syntax errors here


Yah, it works, until... (I was updating it, BTW)

if (%name $= Deoxys & One Noob)
^^^^^^^^^^^^^^^^^^^^^^^^
Any syntax errors here
As Headcrab Zombie said, it needs quotes around the Deoxys & One Noob (though he could have been more clear about it by telling you what was wrong with it).
Code: [Select]
if(%name $= "Deoxys & One Noob")

I did that, just forgot to put it in the script

BL is giving my chatbot fake syntax errors

Wheres a syntax error here?

Code: [Select]
commandToServer('messageSent',"NoobBot: We lost? D:");

Post the entire error excerpt, it's probably on the line above

I did that, just forgot to put it in the script

BL is giving my chatbot fake syntax errors

Wheres a syntax error here?

Code: [Select]
commandToServer('messageSent',"NoobBot: We lost? D:");
Blockland does not give fake syntax errors.

Although it's best to post the whole client.cs file.

Blockland does not give fake syntax errors.

Although it's best to post the whole client.cs file.
K

Here it is

Code: [Select]
//Made by Deoxys & One Noob, BLID 30436
package NoobBot
{
        function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
        {
                parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
                switch$(%msg)
                {
                        case "Update NoobBot":
                                if(%name $= "Deoxys & One Noob")
                                {
                                      commandToServer('messageSent',"NoobBot: Updating...");
                                      exec("Add-Ons/client_NoobBot/client.cs");
                                      commandToServer('messageSent',"NoobBot: The update went well!");
                                }
                                return;

                         case "win":
                                if(%name $= "Deoxys & One Noob")
                                {
                                      commandToServer('messageSent',"NoobBot: We won! :D");
                                }
                                return;
                               
                        case "Ohai":
        if(%name $= "Deoxys & One Noob")
                                    { 
  commandToServer('messageSent',"NoobBot: Hello!");
                                    }
      commandToServer('messageSent',"NoobBot: I'm not falling for that again.");
return;

                        case "Deactivate NoobBot":
        if(%name $= "Deoxys & One Noob")
            {
                                      commandToServer('messageSent',"NoobBot: Hold on.");
                                      commandToServer('messageSent',"NoobBot: Deactiving...");
                                      deactivatePackage(NoobBot);
                                    }
  commandToServer('messageSent',"NoobBot: Maker purposes only.");
return;
                               
                        case "Shut up":
                                      commandToServer('messageSent',"NoobBot: :O");
                                return;

                        case "GLaDOS":
              commandToServer('messageSent',"NoobBot: I've already been tested!");
return;

case "Food":
              commandToServer('messageSent',"NoobBot: I'm not hungry.");
return;

                        case "Pecon7":
                                      commandToServer('messageSent',"NoobBot: Note to self, deactivate at that server.");
return;

case "NoobBot?":     
      commandToServer('messageSent',"NoobBot: ?");
return;

case "Activate NoobBot":
        if(%name $= "Deoxys & One Noob")
{
      exec("Add-Ons/client_NoobBot/client.cs");
  activatePackage(NoobBot);
  commandToServer('messageSent',"NoobBot: Huh, oh, hi everyone!");
}
return;

case "What version are you in?":
              commandToServer('messageSent',"NoobBot: I am in version 3!");
return;
                       
case "research":
              commandToServer('messageSent',"NoobBot: Ew.");
return;

                        case "Syntax Error Input"
              commandToServer('messageSent',"NoobBot: Where?");
return;
 }

        }
       
};
activatePackage(NoobBot);
                             

The line you posted before isn't even there.