RSSy MYGO.pl Opublikowano Sierpień 10, 2017 o 16:52 RSSy Udostępnij Opublikowano Sierpień 10, 2017 o 16:52 Simple Chatter BotDescription: A bot that automatically answer the text from player and automatically type some words. Console Variables: sm_prefix "" - Prefix, you can fill your Bot Name in here sm_suffix "" - suffix, you can fill some emoji in here(?) sm_chattime "" - Set the such automatically type words time. Commands: None Installation: Put the simplechatterbot.smx in the addons/sourcemod/plugins/. Put the autochat.cfg and speech.cfg in the addons/sourcemod/configs/. Requirement: Color variables Features: PHP Code: "Speech" { "0" //Do not forget the start is at 0 { "equal" "Bot" //Perfectly match "answer" "What?" "typetime" "1.2" //The time of typing the text, default is 0.5 //IMPORTANT!!! The data structure of typetime is float point number, do not write it like an integer such as "1" } "1" { "contains" "yo" //A part of full text match "answer" "What's up {name}" //Support {name},{steamid} and {userid} } "2" { "equal" "nth" "answer" "okay." "condition" "1" //If player want to trigger this answer, then he must trigger Key "1" answer first. } "3" { "equal" "Hello" "answer" "hi" "answer2" "Hello {name}" //Support mutli answer, the maximum of multi answer is 6. "answer3" "OHHHH {name} long time no see <3" "answer4" "bye" //A mean answer ;D "count" "4" //After using those multi answer, you must define how many answer you created. } "4" { "equal" "Fuck my life." //Support mutli equal and contains, the maximum of those censorship is 4. "equal2" "fml" //And those doesn't need to use "count" "equal3" "FML" "answer" "okay." } "5" { "equal" "slap my ass baby" "answer" "okay." "action" "sm_slap #{userid}" //Support servercommand. } } Attached Files Simple Chatter Bot.zip (39.2 KB) Get Plugin or Get Source (simplechatterbot.sp - 10.5 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się