GLOBALELITE.PL GLOBALELITE.pl 83 Napisano 10 Sierpnia 2017 Share Napisano 10 Sierpnia 2017 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/. Put the AutomaticallyAnswerBot.cfg in the cfg/sourcemod/. 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" { "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 Simple Chatter Bot.zip (39.2 KB) Get Plugin or Get Source (simplechatterbot.sp - 10.5 KB) AutomaticallyAnswerBot.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
Rekomendowane odpowiedzi