Author Topic: How to make a Bot Talk?  (Read 2887 times)

I want someone to help make a Script where this Bot is named Bob so when you say "I hate Bob" it replies "I hate you more Maxwell". So if someone could make this simple script then i would be very happy.

You would need to package over servercmdmessagesent and check if(strlwr(%text)$="i hate bob") and if so have it do a announce("\c3Bob\c6:I hate you more" SPC %client.name @ "."); (note,  I may have the colors wrong in the \c_s) then have it call the parent::servercmdmessagesent so chatting still works.

i think i got what you mean is it suppose to look like this?

{
servercmdmessagesent
(strlwr(%text)$="i hate bob")
("\c3Bob\c6:I hate you more" SPC %client.name @ ".");
parent::servercmdmessagesent

}

{
servercmdmessagesent
(strlwr(%text)$="i hate bob")
("\c3Bob\c6:I hate you more" SPC %client.name @ ".");
parent::servercmdmessagesent

}
That looks more like pseudo code...

Code: [Select]
{
function servercmdmessagesent(%client,%text){
  if(strlwr(%text)$="i hate bob"))
  announce("\c3Bob\c6:I hate you more" SPC %client.name @ ".");
parent::servercmdmessagesent(%client,%text);
}

And all that in a package. Untested, so there's likely an error.

I see Max is making his own chatbot :D.

I see Max is making his own chatbot :D.
lol, and Falcondude there is a error it has a buffer overrun D:, Bling could you help i may try to fix also.

{
servercmdmessagesent
(strlwr(%text)$="i hate bob")
("\c3Bob\c6:I hate you more" SPC %client.name @ ".");
parent::servercmdmessagesent

}
That looks more like pseudo code...

Code: [Select]
Package MyChatBot
{
function servercmdmessagesent(%client,%text){
  if(strlwr(%text)$="i hate bob"){
   announce("\c3Bob\c6:I hate you more" SPC %client.name @ ".");
 }
parent::servercmdmessagesent(%client,%text);
}
};
activatepackage("MyChatBot");

And all that in a package.now in a package Untested, so there's likely an error.

It would also be a good idea to have it load responses and things from a file, to make it cleaner and allow you to modify copies of the file for special circumstances without changing the file itself.

There's at least four people currently making chat bots. Do we need a fifth?

There's at least one person currently making an events system. Do we need a second?

There's at least four people currently making chat bots. Do we need a fifth?
Me?

Spation, NiXiLL, Grimreaper and Rkynick are the ones I know.



There's at least one person currently making an events system. Do we need a second?
Daaaammmmmnnn....