AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Power Bot Chat (https://forums.alliedmods.net/showthread.php?t=61662)

[DeathTV] Sid 6.7 10-06-2007 18:32

Power Bot Chat
 
1 Attachment(s)
Hello,
I've finished this maybe a month ago and its created some funny situations on my server

Module required: Regex
This plugin replaces the canned chat that comes with bots with anything you want.
You can also talk to players thru bots with amx_botsay
(wth that bot smarttt lol)

documentation:
There are key phrases that will make a bot respond with 1 out of 10(default maximum) combacks. These key phrases can be regular expressions

~~~file structure~~~
(powerbotchat.ini file is created for you)
in configs/powerbotsay.ini, the format is as follows:

regex line
comeback line 1
comeback line 2
etc.. up to 10(default)
<----this is a blank line
regex line, with blank line above
comeback line 1
comeback line 2
etc..

until EOF or MAX_LINES regex lines


I'd like to thank Hawk and the AMX Super coders because I learned from viewing their code. The silly var/func names are my idea.

mando127 10-06-2007 22:34

Re: Power Bot Chat
 
cool :)

M249-M4A1 10-06-2007 23:04

Re: Power Bot Chat
 
Pretty weird function and var names

BlackMilk 10-07-2007 06:03

Re: Power Bot Chat
 
So with this I can do something like
amx_botsay Stone Bla
And the bot called Stone will say Bla?

Pro Patria Finland 10-07-2007 09:19

Re: Power Bot Chat
 
Lol at the code. :D

[DeathTV] Sid 6.7 10-07-2007 19:50

Re: Power Bot Chat
 
Quote:

Originally Posted by Angelina (Post 539544)
does not work on my (linux)-server...
the file powerbotchat.ini file is created

are very much interested! pls help

it verifiably works with rcbot and podbot, not with OZdm bots, thats all i can say

Yes
amx_botsay Stone "I just got back from the toilet"
works for any player marked as bot:up:

BeasT 10-08-2007 10:36

Re: Power Bot Chat
 
Funny. I will try it.

purple_pixie 10-08-2007 11:57

Re: Power Bot Chat
 
I thought you could replace their chat anyway ...

Either way, being able to speak through bots is freaking sweet.

EDIT: Just FYI, muliple "write_file"'s are vastly less efficient than making a huge array (with {10,13}'s for EOL or w/e ) and writing that.

[DeathTV] Sid 6.7 10-09-2007 01:34

Re: Power Bot Chat
 
I just had to post this, Coors is the bot I am speaking thru
-------------------------------

*DEAD*Shrugs : hacks
[DeathTV] Sid 6.7 : surf?
*DEAD*Shrugs : see hacks the bots hack
*DEAD*Coors : I do not hack
Coors : I do not hack
Shrugs : lol
Shrugs : stfu
Coors : y dont u
Coors : ahahaha
*DEAD*Shrugs : lol
*DEAD*Shrugs : this is nuts
Coors : ill get you
*DEAD*SHugaR : eeee
Coors : owned
Shrugs : your bots are mouthing off
[DeathTV] Sid 6.7 : sorry.
Shrugs : lol
Shrugs : its cool stuff
Coors : shrugs u die
Coors : cool stuff in your mouth
Shrugs : suck it
Shrugs : a
Coors : come get me
Coors : noob
SHugaR : isnt coors immature
Shrugs : hacker
Coors : ahahaha
Coors : yes, report me to sid, lol
Shrugs : lol
Shrugs : i will
Shrugs : demo
Coors : do it
SHugaR : shingles killed me
Coors : my teamm8 sucks
Shrugs : lol
*DEAD*SHugaR : coors
*DEAD*Coors : sup
SHugaR : coors isnt shrugs a boob np im jk
SHugaR : watup darling
Coors : lets date shugar
Shrugs : coors is cool
SHugaR : yo free friday night coors
*DEAD*Coors : i need a hot date your it
SHugaR : coors wanna make out
Coors : bring the beer
*DEAD*Shrugs : lol
Coors : die sid
*DEAD*SHugaR : coors wanna make out\
*DEAD*SHugaR : ahaha
*DEAD*Shrugs : dude you have gay bots
SHugaR : coors wanna makeput
Coors : chipmunk
Coors : why do i even play here
[DeathTV] Sid 6.7 : lol not my fault

BlackMilk 10-09-2007 01:45

Re: Power Bot Chat
 
This works with CZ bots too?

EDIT: If this is a yes;
If I added a tag to the bot's names (eg. just [BOT]) and I executed
amx_botsay BOT Lol
Then all the bots would say Lol?


All times are GMT -4. The time now is 10:51.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.