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

nIRC - An AMXX irc-bot


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Hawk552 (427)
naeo
Member
Join Date: Apr 2006
Old 02-07-2009 , 16:46   nIRC - An AMXX irc-bot
Reply With Quote #1

nIRC:
Well... It's an amxx ircbot.
Uses for it is:
1. Monitor chat on server
2. Give an option to irc users on your public-channel to check how many players are on server, aswell as current map, and list of playernames
3. Let admins see when a certain player join the server (Possible cheater maybe?)
4. Chat to players on server (Maybe tell someone to be nice to other players)
5. kick\slay\change name of players on server
6. Change map.
7. Use rcon or xclient
And much, much more wich you will see when you open the config file...

nWORD:
Extra plugin used with nIRC.
Basicly it sends certain say messages to a channel other than the livechannel.. Makes sense to use this if admins do not want to see ALL the chat in the livechannel.
They way I used this and nIRC was:
#public <- Channel for players, admins and whoever wants to be there.
#admin <- Used for admins only, where nword would send lines with defined keywords
#live <- nIRC mainchan


I grouped these two together since nWORD can only be used when nIRC is running ... Hope thats OK.

Sample screenshots:
NIRC
[IMG]http://img519.**************/img519/3014/nircsampleoutputut1.th.png[/IMG]
[IMG]http://img136.**************/img136/5887/nircsampleoutput2ts1.th.png[/IMG]

NWORD:
[IMG]http://img136.**************/img136/8742/nwordsampleoutputpp4.th.png[/IMG]




Here's some of the features:


publicchan(secchan) commands:
!cs - Similar to @status, just with playernames aswell as map and playercount - Works without being added in the bot.(So everyone can use it)
Sample output:
(00:20:1 @pRole }{ !cs
(00:20:1 dotorg-bot }{ Players[14/19] @ de_nuke: Avapawa<3, Ro_0ger, mel i bag'en, Adelante > Justinsane, PandaBear <3 bLaME, Klinee, baSIS`, (1)JewJitsu, 4pl4y3d, BeIaRlAkS, pL4y3ddddd, RobzaQ-.-, [family.cs] staale, h(/)NA,


privmsg commands (PM)
@raw SOME_IRC_COMMAND
example: @raw PRIVMSG #mychan :Get on the server you bastards!


Livechan commands (irc_mychan)
@status
example output: -my-bot- Players [18/19] @ de_dust2

@players
example output:
@naeo }{ @players
-my-bot- #01:[#mychan @ Quakenet] BOT 127.0.0.1
-my-bot- #02:James bond STEAM_0:0:19352270 CE.NS.OR.ED:58571
.......

@say [#id] What do you want to say?
Explanation: Add #id if you want to say something to ONE player. if not dont use #id.
Examples:
@say #01 Hi player1!
@say Hi everyone!

@rcon some string
examples:
@rcon banid 0.0 STEAM_0:137 ;writeid
@rcon quit

@slay #id
Example:
@slay #01

@kick #id ["reason"]
Examples:
@kick #01
@kick #01 "Calm down!"

@map some_map
Example:
@map de_dust2
@map cs_italy

@name #id newnick
Examples:
@name #01 Player
@name #05 Player2

@info #id infostring
Explanation: This will show you the infostring of a player
Examples:
@info #12 name
@info #10 rate
@info #11 cl_updaterate



Well.. Thats some of the features.


To install:
read below
download
extract all files in each folder to your scripting dir.
re-read below
edit *_config.inc
compile the usual way
copy amxx file to plugins directory
enable plugin in configs/plugins.ini


If you have problems getting the bot to connect do this:
1. Check that you are using a valid host:port (Check with a client such as mirc) "/server -m server.address port"
2. Make sure the rest of the config looks correct
3. Make sure you are allowed to connect to the server's ip and port (Some serverproviders block irc ports)(Try having the bot connect to google.com port 80 with debug enabled - If it gives you a different error message chances are the provider is blocking the irc ports (Then you have to be creative...google fpipe,netcat or inetd)


If you have problems getting the bot compiled, Start from scratch using default config - Be careful not to change these symbols: " , ; ^ [ ] ^n
However you do need to place them in the 4 admin sections and in perform - Just do it the same way I did it.
in irc_perform and the 4 arrays where you add admin-info, make sure the last line has no comma at end of line, and all others do!

Update @ 17 Feb 09 - nirc_config.inc and nirc.sma cleanups - Should be easyer to configure the bot now.

Update @ 8 March 09 - Changed irc_user to lowercase. Some servers(gamesurge!) doesent allow uppercase for some weird reason.
If you had problems getting it to connect that might have been the reason.
Attached Files
File Type: zip nirc.zip (10.9 KB, 1917 views)
__________________

Last edited by naeo; 03-07-2009 at 18:32. Reason: changed irc_user to lowercase, since some servers wont allow uppercase
naeo is offline
Old 02-09-2009, 02:26
Stixsmaster
This message has been deleted by YamiKaitou. Reason: incorrect
Old 02-09-2009, 03:18
bmann_420
This message has been deleted by YamiKaitou. Reason: reply to deleted post
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 02-09-2009 , 10:44   Re: nIRC
Reply With Quote #2

Quote:
Originally Posted by naeo View Post
nWORD:
i lol'd
BOYSplayCS is offline
mazmaajinsh
Senior Member
Join Date: Apr 2005
Location: Latvia
Old 02-09-2009 , 13:11   Re: nIRC
Reply With Quote #3

How is this better than HLDS<=>IRC?
__________________
Ahujena
mazmaajinsh is offline
naeo
Member
Join Date: Apr 2006
Old 02-10-2009 , 02:25   Re: nIRC
Reply With Quote #4

No idea about current versions of irc<->hlds, but when I tried there were major problems getting the bot to connect - thats the reason why I made this bot.

I suggest you try the bot to see if you like it better.

It has some nice features
__________________
naeo is offline
Lt Llama
Senior Member
Join Date: Aug 2004
Old 02-10-2009 , 02:52   Re: nIRC
Reply With Quote #5

Have you tested this on Q-net?
I gave up on the other one as it never connected and did some wierdo things.
__________________
A dodo: Used to describe someone without common sense and who always has the pathetic confused look on their face when a question is asked.
Lt Llama is offline
naeo
Member
Join Date: Apr 2006
Old 02-10-2009 , 02:53   Re: nIRC
Reply With Quote #6

This one works on Q-Net.
That was the major problem with irc <-> hlds ..
__________________
naeo is offline
mazmaajinsh
Senior Member
Join Date: Apr 2005
Location: Latvia
Old 02-10-2009 , 09:36   Re: nIRC
Reply With Quote #7

i thought that this plugin is using the same way of connecting to irc.
__________________
Ahujena
mazmaajinsh is offline
naeo
Member
Join Date: Apr 2006
Old 02-10-2009 , 10:02   Re: nIRC
Reply With Quote #8

Quote:
Originally Posted by mazmaajinsh View Post
i thought that this plugin is using the same way of connecting to irc.
Not really. This plugin gives the server more time to say hello before indentifying itself.
__________________
naeo is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 02-10-2009 , 10:16   Re: nIRC
Reply With Quote #9

Quote:
Originally Posted by naeo View Post
Not really. This plugin gives the server more time to say hello before indentifying itself.
What...
BOYSplayCS is offline
naeo
Member
Join Date: Apr 2006
Old 02-10-2009 , 10:43   Re: nIRC
Reply With Quote #10

Alright... To say it another way - This bot is connecting in a different way that works on more irc servers(including quakenet).
__________________
naeo is offline
Reply



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 00:07.


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