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

[ANY] Simple Learning Bot


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Simple Learning Bot
Description:
  • 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: 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
File Type: zip Simple-Learning-Bot.zip (162.6 KB)
File Type: sp Get Plugin or Get Source (slb.sp - 18.1 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ę...