Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

Simple Chatter Bot


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Simple Chatter Bot
Description:
  • 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: 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
File Type: zip Simple Chatter Bot.zip (39.2 KB)
File Type: sp Get Plugin or Get Source (simplechatterbot.sp - 10.5 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

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ę
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...