Skocz do zawartości
  • Drogi gościu!

    Tutaj możesz się zarejestrować lub zalogować:

[RSS Pluginy] [ANY]Simple Chatter Bot


GLOBALELITE.pl

Rekomendowane odpowiedzi

  • GLOBALELITE.PL
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/.
  • Put the AutomaticallyAnswerBot.cfg in the cfg/sourcemod/.
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"
    
{
        
"equal"        "nth"
        "answer"    "okay."
        "condition"    "1"                            
//If player want to trigger this answer, then he must trigger Key "1" answer first.
    
}
    
"2"
    
{
        
"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.
    
}
    
"3"
    
{
        
"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."
    
}
    
"4"
    
{
        
"equal"            "slap my ass baby"
        "answer"        "okay."
        "action"        "sm_slap #{userid}"        
//Support servercommand.
    
}
    
"5"
    
{
        
"contains"            "WTF"                //A part of full text match.
        
"answer"        "okay."
    
}

Video:
https://youtu.be/vxIFX3nD9ds

Attached Files zip.gifSimple Chatter Bot.zip (39.2 KB) sp.gifGet Plugin or Get Source (simplechatterbot.sp - 10.5 KB) cfg.gifAutomaticallyAnswerBot.cfg (335 Bytes)


Pełny artykuł: https://forums.alliedmods.net/showthread.php?t=300251&goto=newpost

Odnośnik do odpowiedzi
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający

    Brak zarejestrowanych użytkowników przeglądających tę stronę.


O GLOBALELITE.PL


Chcemy pokazać absolutnie wszystkim, że człowiek jest zdolny do rzeczy wielkich! Potrzebujemy tylko waszej pomocy. Dzięki ciężkiej pracy chcemy udowodnić, że razem możemy wszystko! Szukamy ludzi ambitnych i skorych do poświeceń, ludzi którzy są godni, aby dołączyć do globalnej elity społeczności, którą traktuje się jak drugą rodzinę!

Istniejemy od 2014 r.

Motyw zrobiony przez doc

Strona zarządzana przez: Adam Plicha

Linki społecznościowe

Gdzie można nas znaleźć?


Facebook Teamspeak Discord

Linki forumowe

Linki z różnego rodzaju podaniami


Podanie o admina Prośba o unbana Propozycja Złóż skargę

Administracja

Oni odpowiedzą na Twoje pytania ;)


×
×
  • Dodaj nową pozycję...