PDA

View Full Version : Power Bot Chat


[DeathTV] Sid 6.7
10-06-2007, 18:32
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
cool :)

M249-M4A1
10-06-2007, 23:04
Pretty weird function and var names

BlackMilk
10-07-2007, 06:03
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
Lol at the code. :D

[DeathTV] Sid 6.7
10-07-2007, 19:50
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
Funny. I will try it.

purple_pixie
10-08-2007, 11:57
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
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
This works with CZ bots too?

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

_Tool_
10-11-2007, 11:14
Excellent, original idea, but horribly coded.

bmann_420
10-12-2007, 22:01
Sid 6.7;539449']
I'd like to thank Hawk and the AMX Super coders because I learned from viewing their code

Explains everything eh Tool lol

killlotz
10-17-2007, 22:46
I've had this on my server for a few days and I dont use it much. When I do it works w/ o flaws. Just wondering, I try to make ppl say things and you ahve taht message taht tells you you can't; so I guess you've already thought abouthat. You should enable making anyone talk and jsut call it powerplayerchat.
No complaints, good plugin.
+karma if i make u feel good :D (lol jk)

killlotz
10-17-2007, 22:48
This works with CZ bots too?

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

BlackMilk
10-18-2007, 15:50
Nah I meant tag. Different example, I add a tag called [NBS] in front of all the terrorist bot's names, and I execute
amx_botsay NBS lol
Would all the terrorist bots then say lol?

[DeathTV] Sid 6.7
10-19-2007, 03:04
I've had this on my server for a few days and I dont use it much. When I do it works w/ o flaws. Just wondering, I try to make ppl say things and you ahve taht message taht tells you you can't; so I guess you've already thought abouthat. You should enable making anyone talk and jsut call it powerplayerchat.
No complaints, good plugin.
+karma if i make u feel good :D (lol jk)
Actually yes you have made me feel lots better after a few rude and ambiguous comments about my 'code' here just because I have a few things named funny like an init method called beer(). Im gonna give u karma for that

Yeah I don't use it much either, but sometimes the autoresponses make ppl suprised when I run thru the chat logs lol

As for forcing real players to say that, yeah, I blocked that action because I use amx_exec for that and I didn't want to be redundant

[DeathTV] Sid 6.7
10-19-2007, 03:14
Nah I meant tag. Different example, I add a tag called [NBS] in front of all the terrorist bot's names, and I execute
amx_botsay NBS lol
Would all the terrorist bots then say lol?
There isnt any group functionality built into it right now but if you really reaaaaaaallly want it I could do it or you could do this
amx_botsay slappy "lol i peed my pants";amx_botsay pepper "lol";etc...

BlackMilk
10-19-2007, 15:26
Well I'm not gonna bother you for it xD
I won't miss it, nice if you make it but I won't be kept awake at night if you don't :wink:

I like it just as much as is.

jusbond007
10-20-2007, 02:11
this is so hilarious love the mod i love pissing ppl off hahah xD roflmao
+Karma

killlotz
10-24-2007, 16:20
BlackMilk, I know this is completely irrelevant but... I gotta comment on ur avatar. I was at a childrens hospital recently. And they had a computer, so I go to play it. NO internet... 1 game. The game was Tetris... Guess what. No keyboard. I thought I was good at tetris... this comp proved me wrong. :mrgreen:

BlackMilk
10-25-2007, 14:40
*gasp*
Blasphemy!
:shock:

purple_pixie
10-31-2007, 08:13
On that note, I was trying to remove Vista from someone's box the other day ... it actually came up with that.

(Not exactly that, I think it said "No keyboard detected or keyboard error. Press F1 to continue" )

I laughed.

Pro Patria Finland
10-31-2007, 12:44
On that note, I was trying to remove Vista from someone's box the other day ... it actually came up with that.

(Not exactly that, I think it said "No keyboard detected or keyboard error. Press F1 to continue" )

I laughed.
It happened to me when I got mah old server bukkit. :)

dr.death
04-02-2012, 18:58
Chat logger are incompatible with this.

rohit ranjan
09-18-2013, 20:33
hay i just want to add more them 10 lines may be a thousand or ten thousand
it gives awesome feeling'

can any one please give the source code for it

BLacking98
09-20-2013, 17:56
hay i just want to add more them 10 lines may be a thousand or ten thousand
it gives awesome feeling'

can any one please give the source code for it

Follow the structure instructions in the first page