PDA

View Full Version : [FilterScript] [FS] Chat Bot


domidom
10/12/2007, 07:44 PM
Chat Bot 0.3

Hello All, its been a very long while since i released anything and i began to feel left out.
Heres some info about Chat Bot:

What is Chat Bot?
Well, Chat Bot is a Filterscript i made to simulate a talking robot on any server, and before i continue, i wanna make sure that people dont get confused, this is a CHAT Bot not a bot like everyone fantisises over.

What can i do with it?
Currently, you can say the bots name (for example, Fluffy) like "DragSta: Fluffy?", Saying that will make the bot say one of your customised responces from the array in the configurations part of the script.

If you say the bots name then a Colon ( : ) (like "DragSta: Fluffy:" you will get Another response from the EmptyQuestion array, with something like "U genna ask a question or not?", if you DO include a question ("DragSta: Fluffy: Will i eat pie soon?" for example) the bot will become a 'magic eight ball' and reply from one of the answers in the Answer Array.

You can also ask the bot how old it is by asking the bot (with "DragSta: Fluffy: ") the question defined at the top of the script (#define AgeQuestion).

Any commands?
Yes:
/bothelp - For all, just some info ;)
/bot [name/age/say/raw/toggle] - Admin commands.

/bot explained:

/bot name - Set the bots name
/bot age - Set the bots age
/bot say - make the bot say something
/bot raw - Make the bot execute a command, like /me for example
/bot toggle - Turns the bot on or off.


How Do i use it?
Ok, so here are the simple steps to get the Chat bot going on your server ;)

1. Download the FS from one of the linkes below (or copy it from pastebin)
2. Open up chat.pwn and look at the top of the script, youll see some configurable stuff, tweek this to what you want, its stuff like, Bot name, Age, etc...
3. Once you have configured the bot, Compile the script.
4. Copy the newly compiled chat.amx file to your servers filterscripts directory.
5. Open up your servers server.cfg file, add 'chat' to the filterscripts line.
6. Restart/start your server
7. Have fun!

NOTE: If you use a custom colour system in your gamemode, you MUST Comment out #define ColourSync in the configurations part of the script otherwise it will probably stop your gamemode colour system working, ColourSync is in this FS because GetPlayerColor doesnt work until SetPlayerColor is. So, i asked Y_Less for a list of the player colours, and he kindly gave them to me (So credits to him for them!) And i set the player colours the same as sa-mp would, but with SetPlayerColor, which causes GetPlayerColor to work.

Downloads:

Tagnet22 (http://tn22.com/samp/gamemodes/chat.zip)
Sampnet (http://file.sampnet.com/uploads/1205122914.zip)

Edit: Updated download links, fixed a small bug!

Other stuff:
Please post ALL Bugs and suggestions in here!



Thanks,
DragSta

Khaled
10/12/2007, 07:46 PM
Nice [FS] i will try it

Grove
10/12/2007, 07:46 PM
Nice!

domidom
10/12/2007, 07:49 PM
Thanks guys, i edited the first post with a big 'NOTE:' so have a read ;)

yom
10/12/2007, 07:50 PM
Lol, i remember my first chat bot (http://forum.sa-mp.com/index.php?topic=12197.msg91089#msg91089) :)

domidom
10/12/2007, 07:52 PM
Ahh Shit Crapsticks, i thought it was unique :'(

yom
10/12/2007, 07:57 PM
Nothing unique anymore :(. I haven't tested yours, but its more advanced than mine i think. Basically the same process ;)

domidom
10/12/2007, 08:34 PM
Nothing unique anymore :(. I haven't tested yours, but its more advanced than mine i think. Basically the same process ;)


Yeah same process, but mine has more stuff :P

scar
11/12/2007, 04:17 PM
i helped with the beta tesings :)

domidom
11/12/2007, 04:17 PM
Yes indeed you did scar :)

g@k
11/12/2007, 06:48 PM
OMG !!! Crazy work !!! nice , good , beautiful .. !
thanks for the script

domidom
11/12/2007, 06:53 PM
OMG !!! Crazy work !!! nice , good , beautiful .. !
thanks for the script


Thanks for the nice comment :)

Has anyone got any suggestions? i cant really think of anything to add, so anyone got any ideas?

kaisersouse
11/12/2007, 07:24 PM
OMG !!! Crazy work !!! nice , good , beautiful .. !
thanks for the script


Thanks for the nice comment :)

Has anyone got any suggestions? i cant really think of anything to add, so anyone got any ideas?


A place where server owners can put keywords to look for, linked to specific responses.

/pm bot help
"I see you need help! Type /cmds for commands or /teles for a list of teleports

/pm bot stuck
"You're stuck? Lets see if this helps..." (player gets teleported to same xy but +5 z)

^^those are just examples.

domidom
11/12/2007, 08:04 PM
OMG !!! Crazy work !!! nice , good , beautiful .. !
thanks for the script


Thanks for the nice comment :)

Has anyone got any suggestions? i cant really think of anything to add, so anyone got any ideas?


A place where server owners can put keywords to look for, linked to specific responses.

/pm bot help
"I see you need help! Type /cmds for commands or /teles for a list of teleports

/pm bot stuck
"You're stuck? Lets see if this helps..." (player gets teleported to same xy but +5 z)

^^those are just examples.


Yeah being able to PM the bot ould be nice, but the native /pm cmd in samp would get in the way, so ill figure something out.
Maybe /msg bot 'keyword' or something, Thanks for the suggestion :)

kaisersouse
11/12/2007, 08:04 PM
yeah sorry...i don't know what i was thinking on that one lol.

domidom
11/12/2007, 08:24 PM
yeah sorry...i don't know what i was thinking on that one lol.


LoL, 0.4 is coming alone slowly because i havent got any suggestions, so far its just genna be this Private message system, which by the way, is almost done, im just trying to find the colour of private messages :D

[SWK]Acid
11/12/2007, 08:29 PM
Would be more nice with an intelligent chat bot.

domidom
11/12/2007, 09:23 PM
Acid ]
Would be more nice with an intelligent chat bot.


Wanna explain? Do you mean like you can ask it equations? like "Bot: Whats 3 + 1?"

Antironix
11/12/2007, 09:27 PM
Here a suggestion:

Run the bot on a crowded place. If people are "playing" with the bot. Like saying things: Bot go away. and all of those sentences, you can make a respond on that. But it's a lot of work to get all different messages. (Good luck with this :D).

Francis[French]
11/12/2007, 10:22 PM
Here a suggestion:

Run the bot on a crowded place. If people are "playing" with the bot. Like saying things: Bot go away. and all of those sentences, you can make a respond on that. But it's a lot of work to get all different messages. (Good luck with this :D).
Trust me, he wont. LOL!

domidom
12/12/2007, 02:54 PM
Francis ]

Here a suggestion:

Run the bot on a crowded place. If people are "playing" with the bot. Like saying things: Bot go away. and all of those sentences, you can make a respond on that. But it's a lot of work to get all different messages. (Good luck with this :D).
Trust me, he wont. LOL!


What are you talking about? You confused me...
@Antironix: I already started work on the system where you can input your own text and how the bot responds to it.

kaisersouse
12/12/2007, 03:00 PM
I dont think it would be as hard as some of you think.

Use certain keywords and group them together using categories. If someone is chatting near the bot, or sends the bot a message, it will look for those key words and act accordingly.

Example: cheat hack flying minigun {insert names of cheat apps} etc would all be cheat-related key words.

Player 1: "omfg you ass stop cheating!"
Bot: "{player 1 name} do you need to report a cheater? Type /report <id> to report someone."

That sort of thing. Could have a fairly limited amount of responses to cover many different key words or combinations of key words.

its not perfect, but it should still be relatively accurate (unless someone just decides to fuck with the bot).

GTAIV
12/12/2007, 03:02 PM
Mhm, can I change the answers of the bot somewhere?
They aren't in the script... or am I wrong?
If yes, on wich lines?

EDIT. I'm so silly! Found it, thx!

domidom
12/12/2007, 03:09 PM
The Answers to what? All the configuration is in the top bit of the pwn script, just edit whats needed.

dacads
12/12/2007, 03:57 PM
Very nice :P

domidom
12/12/2007, 04:01 PM
Dacads ]
Very nice :P


Thankyou Mr.Dacads :)

Donvalley
09/03/2008, 02:28 PM
Linkz Are Down :(

domidom
09/03/2008, 02:31 PM
Linkz Are Down :(


Only the pastebin link is but never mind, heres another: http://file.sampnet.com/uploads/1205122914.zip

killa_4990
09/03/2008, 02:41 PM
Nice work :)

domidom
09/03/2008, 02:48 PM
Nice work :)


Thankyou :P

dacads
09/03/2008, 02:51 PM
It is surprising how useful bots are :P
Drag talk on msn

Donvalley
09/03/2008, 02:52 PM
Linkz Are Down :(


Only the pastebin link is but never mind, heres another: http://file.sampnet.com/uploads/1205122914.zip


Could you Make Like A Admin Bot, Where It Says Hints/Helpful Tips Every [Minutes]??

dacads
09/03/2008, 02:53 PM
Linkz Are Down :(


Only the pastebin link is but never mind, heres another: http://file.sampnet.com/uploads/1205122914.zip


Could you Make Like A Admin Bot, Where It Says Hints/Helpful Tips Every [Minutes]??


I wouldn't call that a bot :P
It's more of a auto-message :lol:

Donvalley
09/03/2008, 02:54 PM
Dacads ]



Linkz Are Down :(


Only the pastebin link is but never mind, heres another: http://file.sampnet.com/uploads/1205122914.zip


Could you Make Like A Admin Bot, Where It Says Hints/Helpful Tips Every [Minutes]??


I wouldn't call that a bot :P
It's more of a auto-message :lol:


Yer Thats Kinda What I Want :D

[IB]Scorcher
09/03/2008, 02:56 PM
Genius Lol nice

Donvalley
09/03/2008, 02:58 PM
Can Someone Try And Make One?? :lol:

dacads
09/03/2008, 03:23 PM
Can Someone Try And Make One?? :lol:


Lol ask in the main scripting section ;)

bruno_orlandi
09/03/2008, 06:02 PM
DragSta that's a very nice filterscript

I attempted to make the bot have random colors, random ages and random names but i can't get it.
Try to make it. Example, some times the bot have the names: Sweet, Ryder, Woozie, Big Smoke... with diferent colours and random ages. You mean?

Sorry for my bad English

RolePlayPlayer
09/03/2008, 06:07 PM
HAHah great FS!!! Awesome!!

WackoX
09/03/2008, 07:25 PM
WooW! very nice dude!

Can you make other thinks like:
!kill (playername) (weaponname)
So:
!kill wackox knife

and that you get:
Botname: playername killed playername with a weaponname
So:
WackoX-Bot: WackoX1 killed WackoX2 with a knife

bogeymanEST
11/04/2008, 10:23 AM
Can Someone Try And Make One?? :lol:

lol, i will make this just because i am very kind xD
On top of script:

#define MESSAGE_TIME <time in milliseconds between messages>
new messages[][] = {
"Some message",
"Another message",
"A third message"
}

In OnGameModeInit:

SetTimer("messagetimer", MESSAGE_TIME, 1);

At the end of script:

public messagetimer()
{
SendClientMessageToAll(0x408080FF, messages[random(sizeof(messages))];
}

keko
11/04/2008, 04:31 PM
no .amx file :S?

Antironix
11/04/2008, 05:43 PM
keko push F5 and voila you have your .amx

chrisb345
07/06/2008, 02:09 PM
how do i make bot admins ??

Rykker
03/07/2008, 08:23 AM
how can i make the bot to read names from a list like
new friends[][]={"donut","snowman"};
becouse when i try to make it like

new insults[][]={"sick","noob"};
new bad[][]={"dont talk like that to my friend"};

new buddy[200];
format(buddy,sizeof(buddy),"%s %s",friends,insults);

...else if(strfind(text,buddy, true) == 0){
if(BotOn == 1){
format(String[playerid], 200, "%s",bad[random(sizeof(bad))]);
SetTimerEx("Send",170,0,"i", playerid);
return 1;
}
}...


but it dosnt reads the names from the list

//Onyx

Zack9764
03/07/2008, 09:46 AM
That sounds really cool! Thanks DragSta. I'll probably use it. :D

Zh3r0
03/07/2008, 05:10 PM
Nice ;D

CJoao
04/07/2008, 12:26 AM
Rolf... Nice Work :D

Sr.Rafa
16/08/2008, 03:22 PM
do I begin to speak with the bot and does my color move for black, why that?

Karlip
28/08/2008, 09:03 AM
That's nice dragsta ;)

1337haxaz
31/08/2008, 04:42 PM
ive tryed it .. but it fucking sucks . seriously dont download that he always repeat the same shit : everyone loves me , or , are you talking to me ? u cant fucking make a conversation with him :x

domidom
31/08/2008, 05:01 PM
ive tryed it .. but it fucking sucks . seriously dont download that he always repeat the same shit : everyone loves me , or , are you talking to me ? u cant fucking make a conversation with him :x


Its a robot, how do you expect to make conversation with a robot? It doesnt know what you are saying because there are trillions of possible things you could say so it tries to use a generic universal reply.
Would you like me to get some sort of gremlin then somehow turn it into computerised code then somehow put it in this FilterScript to shut you and your abusive swearing up?

Byrner
11/09/2008, 07:08 PM
ive tryed it .. but it fucking sucks . seriously dont download that he always repeat the same shit : everyone loves me , or , are you talking to me ? u cant fucking make a conversation with him :x


Its a robot, how do you expect to make conversation with a robot? It doesnt know what you are saying because there are trillions of possible things you could say so it tries to use a generic universal reply.
Would you like me to get some sort of gremlin then somehow turn it into computerised code then somehow put it in this FilterScript to shut you and your abusive swearing up?

lmfao,ownt
Nice FS Drag,I kinda use it just heavily edited :D

[SK]Lee
22/02/2009, 04:24 AM
DragSta When you create new version :P :lol:

x-cutter
22/02/2009, 04:40 AM
Lee ]
DragSta When you create new version :P :lol:


A new version isn't really needed, since this script is very complete

cj101
22/02/2009, 05:45 AM
C:\PROGRA~1\ROCKST~1\FILTER~1\chat.pwn(25) : error 001: expected token: "}", but found "-string-"
C:\PROGRA~1\ROCKST~1\FILTER~1\chat.pwn(26) : error 010: invalid function or declaration
C:\PROGRA~1\ROCKST~1\FILTER~1\chat.pwn(34) : error 001: expected token: "}", but found "-string-"
C:\PROGRA~1\ROCKST~1\FILTER~1\chat.pwn(36) : error 010: invalid function or declaration
C:\PROGRA~1\ROCKST~1\FILTER~1\chat.pwn(51) : error 001: expected token: "}", but found "-string-"
C:\PROGRA~1\ROCKST~1\FILTER~1\chat.pwn(52) : error 010: invalid function or declaration

Kotomi
05/03/2009, 04:24 PM
this work is really nice and total funny. but i think i found a bug. i dont know if somebody found it too but when i type /bot raw /ls for example, i will teleport to ls. i only want that the bot will do this. could someone explain me how to chance this thing?

best wishes

SpiderPork
05/03/2009, 04:38 PM
Awesome bot. I might use this. Keep up the good work.

Kotomi
05/03/2009, 06:09 PM
a question again. how can i change it that the bot i mean when i type /bot raw /kick ID for example that the bot can someone kick? or ban or mute or xjail?

i hope i can change it

1337connor
05/03/2009, 10:42 PM
Very Nice!! I'll use this on my server.

[MG3]Nino
13/03/2009, 05:51 AM
download link doesnt work :(

Revelator
13/03/2009, 09:56 AM
Use the tagnet one.

mascii
13/03/2009, 10:50 AM
This is cool as, gw
But I cant see myself using it

abru
26/03/2009, 05:27 PM
problem it say ADMIN ONLY when i try /bot " name "

and i am an admin

how to fix ?

skullkid
27/03/2009, 11:26 AM
how can i put this filterscript in my other filterscript without errors?

SPFoxy
29/03/2009, 12:13 PM
LOL this is awesome thanks

_BiG_DaWg_
02/04/2009, 09:16 PM
I have a lil prob lol, when i talk to the bot and say its name it pops up and say my name like

_BiG_DaWg_: hey bot
_BiG_DaWg_: _BiG_DaWg_ what do you want?

so why dose it come up as my name and not bot.. and anyway to fix that?

G_ROW_Chez
03/04/2009, 02:45 AM
search and add words to OnPlayerText public...

Jaztek_Hodzic
03/04/2009, 07:51 AM
nice

_BiG_DaWg_
03/04/2009, 06:50 PM
hmm i just shortened up the name and works great xD

elmo9000nerd
20/06/2009, 05:49 PM
THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!THANK U SOOOOOOOOOO MUCH!!!!!!!!!!!! thanx!!

candyboy
25/03/2010, 04:22 PM
Nice [FS] i will try it

stupid i cant download frm this links

Snoooopy
25/03/2010, 04:27 PM
Haha Nice :-)

not
25/03/2010, 06:31 PM
Download link doesnt work :(

Brian_Furios
25/03/2010, 06:34 PM
awesome NPC script

ivex
25/03/2010, 06:38 PM
pls fix the link!

Brian_Furios
25/03/2010, 07:02 PM
yeah we need a mirror :D

Scream[SM]
25/03/2010, 07:07 PM
Here u r:

http://solidfiles.com/info_imgs/805L.jpg (http://solidfiles.com/d/805L)

Brian_Furios
25/03/2010, 07:20 PM
Here u r:

http://solidfiles.com/info_imgs/805L.jpg (http://solidfiles.com/d/805L)


thx a lot for the mirror ;)

darkowner
07/06/2012, 01:23 PM
Cool File Script

Saleem
07/06/2012, 01:28 PM
Not bad Keep it up

pasha97
07/06/2012, 03:46 PM
lol, its really funny, thanks!
P.S If I ask bot question: "What did you eat for breakfast?" will he answer: "Yes, perhaps..." ? Its not good

Rayan_black
14/06/2012, 09:40 AM
The download links aren't working can you uplaod it in Mediafire Please

JEkvall95
10/07/2012, 08:10 AM
The links doesn't works :(!!