Raised This Month: $32 Target: $400
 8% 

Power Bot Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Hawk552 (427)
[DeathTV] Sid 6.7
Member
Join Date: Oct 2007
Old 10-06-2007 , 18:32   Power Bot Chat
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (powerbotchat.sma - 2874 views - 8.6 KB)
__________________
Power Votes Core << Democracy at your fingertips
Get Mortal Kombat Miscstats for CS

Last edited by [DeathTV] Sid 6.7; 11-15-2007 at 00:17.
[DeathTV] Sid 6.7 is offline
mando127
Veteran Member
Join Date: Dec 2006
Location: virginia
Old 10-06-2007 , 22:34   Re: Power Bot Chat
Reply With Quote #2

cool
__________________
mando127 is offline
Send a message via Skype™ to mando127
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-06-2007 , 23:04   Re: Power Bot Chat
Reply With Quote #3

Pretty weird function and var names
__________________
M249-M4A1 is offline
Old 10-07-2007, 02:24
Angelina
This message has been deleted by Angelina.
BlackMilk
Veteran Member
Join Date: Jun 2007
Old 10-07-2007 , 06:03   Re: Power Bot Chat
Reply With Quote #4

So with this I can do something like
amx_botsay Stone Bla
And the bot called Stone will say Bla?
__________________
Mod:
User:
BlackMilk is offline
Pro Patria Finland
Senior Member
Join Date: Apr 2006
Location: BaronPub.com
Old 10-07-2007 , 09:19   Re: Power Bot Chat
Reply With Quote #5

Lol at the code.
__________________
I am not a number. I am Gordon Freeman!
Pro Patria Finland is offline
[DeathTV] Sid 6.7
Member
Join Date: Oct 2007
Old 10-07-2007 , 19:50   Re: Power Bot Chat
Reply With Quote #6

Quote:
Originally Posted by Angelina View Post
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
__________________
Power Votes Core << Democracy at your fingertips
Get Mortal Kombat Miscstats for CS
[DeathTV] Sid 6.7 is offline
BeasT
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 10-08-2007 , 10:36   Re: Power Bot Chat
Reply With Quote #7

Funny. I will try it.
BeasT is offline
Send a message via Skype™ to BeasT
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 10-08-2007 , 11:57   Re: Power Bot Chat
Reply With Quote #8

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.

Last edited by purple_pixie; 10-08-2007 at 12:00.
purple_pixie is offline
[DeathTV] Sid 6.7
Member
Join Date: Oct 2007
Old 10-09-2007 , 01:34   Re: Power Bot Chat
Reply With Quote #9

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
__________________
Power Votes Core << Democracy at your fingertips
Get Mortal Kombat Miscstats for CS

Last edited by [DeathTV] Sid 6.7; 10-09-2007 at 01:35. Reason: amx_botsay
[DeathTV] Sid 6.7 is offline
BlackMilk
Veteran Member
Join Date: Jun 2007
Old 10-09-2007 , 01:45   Re: Power Bot Chat
Reply With Quote #10

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?
__________________
Mod:
User:
BlackMilk is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:34.


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