RSSy MYGO.pl Opublikowano Wrzesień 5, 2017 o 13:19 RSSy Udostępnij Opublikowano Wrzesień 5, 2017 o 13:19 Simple Learning BotDescription: A bot that automatically learning chat messege from texts of players. Console Variables: sm_slbt "" - The interval between each chat. Default: "15.0" sm_slbnv "" - The name of simple learning bot.(using for visible) Default: "*SPEC* {#CDCDCD}YUI <3{default}" sm_slbnt "" - The name of simple learning bot.(using for trigger) Default: "YUI" Commands: sm_reloadslb - reload the configs learn.cfg and learn_a.cfg. sm_add - add a string from learn.cfg. sm_get - get a string from learn.cfg. Installation: Put the slb.smx in the addons/sourcemod/plugins/. Put the learn.cfg and learn_a.cfg in the addons/sourcemod/configs/. Put the plugin.slb.cfg in the cfg/sourcemod/. Requirement: Color variables How it works? Quote: Player[1] : YUI Player[1] : Hi Then the "Hi" string will be added in config learn.cfg question address. YUI <3 : Player[1], HI Player[1] : Bye Then the "Bye" string will be added in config learn.cfg answer address and config learn_a.cfg question address. Player[1] : YUI Player[1] : Hi YUI <3 : Bye <- If "Hi" question(learn.cfg) having an answer, plugin will get answer from config learn.cfg answer address and print it out. Player[1] : LOL Then "LOL" string will be added in config config learn_a.cfg answer address. YUI <3 : Player[1], HI Player[1] : Bye YUI <3 : LOL <- If "Bye" question(learn_a.cfg) having an answer, plugin will get answer from config learn_a.cfg and print it out. YUI <3 : Player[1], Hi After 15 seconds later. YUI <3 : Player[2], Hi Player[1] : Bye <- This answer will not be record because prevent not relative answer. Changelog: 1.0.0 Prototype of plugins GitHub:https://github.com/STARLITENAMO/Simple-Learning-Bot Attached Files Simple-Learning-Bot.zip (162.6 KB) Get Plugin or Get Source (slb.sp - 18.1 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ę