Jump to content

[Share]HLDS connected to IRC


Sponz

Recommended Posts

Cvars:
irc_server (default "") - The irc server to connect to
irc_port (default "") - The irc server's port
irc_nick (default "") - The nick to use while connecting
irc_username (default "") - The "real name" of the bot
irc_channel (default "") - The channel to join
irc_identify (default 0; 0|1) - If you want to identify set this to 1
irc_ident (default "") - See info below
irc_map_change (default 1; 0|1) - Set whether or not to display Server name, ip, map and players connected on map change and server start.
irc_show_joins (default 1; 0|1) - Set whether or not to display a message when a player joins the server
irc_to_hlds_say_auto (default 1; 0|1) - Set whether or not to automatically forward messages from IRC to the server
irc_from_hlds_say_auto (default 1; 0|1) - Set whether or not to automatically forward messages from in game to IRC
irc_to_hlds_say_activator (default "@hlds") - If irc_to_hlds_say_auto is 0, the string that needs to be included in the message to have it forwarded to the server
irc_from_hlds_say_activator (default "!irc") - If irc_from_hlds_say_auto is 0, the string that needs to be included in the message to have it forwarded to IRC
------------
Say Cvars (set any of these to "" to disable them):
irc_msg_srvjoin (default "$name ($steamid) has joined the server") - Message to IRC when user joins
irc_msg_srvpart (default "$name ($steamid) has left the server") - Message to IRC when user leaves
irc_msg_srvsay (default "<$name> $message") - Message to IRC when user says something in game
irc_msg_srvteamsay (default "<($team) $name> $message") - Message to IRC when user team_say's something in game
irc_msg_ircsay (default "*IRC* $name : $message") - Message, said to players, when IRC user says something
irc_msg_startup (default "$servername - $ip Current Map: $map $curplayers / $maxplayers players") - Message to IRC when server starts or map changes.
Available vars for irc_msg_srv*
* $name - Person's name
* $steamid - Person's steamid
* $team - Person's team
* $teamn - Person's team number
* $message - What they said
* $connected - How long they have been connected
* $access - Persons access
Available vars for irc* (except irc_msg_startup)
* $name - Persons name
* $message - Message
Available vars for irc_msg_startup
* $servername - Name of the server
* $ip - IP of the server
* $map - Name of the current map
* $curplayers - Current number of players on the server
* $maxplayers - Maximum players allowed on server
------------
Commands:
irc connect - Connect to irc
irc disconnect - Disc from irc
irc say - Send message to irc
irc help - Tells you where to go 
------------
Commands from IRC:
To use commands in the channel, add @ to the front of the command (ie @cmds)
-cmds/commands/info/help - The bot will private message you (display from here on) a list of commands available from IRC. If you have admin access it will also PM you the list of admin commands you have access to.
-map - Display current map
-nextmap - Display nextmap
-timeleft - Display timeleft
-ip - Display server IP
-users - Display users currently on the server
-login <username> <password> - Login as an IRC admin
-logout - Log out of IRC admining. You will be automatically logged out if you part the channel or quit IRC.
------------
Admin Commands from IRC (PM these to the bot):
-amx_rcon <command line> - Just like the normal amx_rcon, but in IRC. You must put quotes around the string, ie. amx_rcon "map de_dust".
-amx_cfg <config file name> - Just like the normal command.
-amx_map <map name> - Just like the normal command.
-amx_slay <name or #userid> - Just like the normal command.
-amx_slap <name or #userid> <times> <damage> - Slap a player in game <times> times for <damage> damage each.
-amx_kick <name or #userid> [reason] - Just like the normal command.
------------
Adding IRC Admins:
1) Start the server with the plugin installed, two files will be created: configs/ircadmins.ini and data/ircloggedin.list
2) In ircadmins.ini put users on seperate lines in the form "username" "password" "access flags" "unique id"
3) Have the user log in by PMing the bot: login username password

Notes: 
-Access flags are exactly like the ones in users.ini, some flags have no commands attached right now but new versions will have more commands
-Unique id MUST be unique for each user and can be whatever you want. The plugin uses it to keep track of admins.
-Admins will stay logged in through map changes, nick changes and even server shut downs if they dont log out.
-Admins will be automatically logged out if they part the channel or quit IRC (if the bot is there).
-DO NOT edit ircloggedin.list, although it's plaintext, leave it alone.
------------
Ok, about irc_ident.. you have to use the raw IRC syntax for sending messages, it really isn't too complex.
To do what /nickserv or /ns does in mirc
"PRIVMSG nickserv :BLAHBLAH"
To send a message to someone:
"PRIVMSG someone :I'm Online"
Get the picture?
If you need help, either post or grab me on the channels mentioned above

Menu stuff:
Use the commands amx_ircmenu or say /irc. Default access level is admin_level_a which can be changed in the plugin. Access to this gives you control of main bot functions, like disc/connect 

FIX BELOW

ok heres the ping fix .. i have tested for a day or two ... and this seems to be working ... 

First of all if your on QuakeNet or on GameSurge pick the closes irc server to your HLDS Server From the list below

Quakenet Servers
http://staff.quakenet.org/servers.phtml

GameSurge
http://www.gamesurge.net/servers/

Next 

heres an sample of that should be in your Server.cfg

irc_server "Netfire.TX.US.GameSurge.Net" <= Your Server From list above

irc_port 6667 <= port for HLDS to connect to IRC also in lists above

irc_nick Servdd <= nick as Seen in IRC ROOM.

irc_channel #nothingmatters <= chan

irc_username servddd <= user name as Seen by IRC server could be wrong but it works LOL

irc_identify 1 <=Set to one olny if you have an auth user name and password From your IRC Server IE GAMESURGE QUAKENET EFNET

irc_ident "authserv auth USERNAME PASS " <=== given or made when you Create an Auth with the IRC Server E GAMESURGE QUAKENET EFNET

irc_debug 0 <= if your having Problems use this Set to one and post any error msg...

the Best way to stop from disconnecting it auth with the server for some reason it works ... 

Exsample OF WORKING GAME SURGE ACCOUNT !! as Seen in #randommapfun or #IRCHLDS 

Code:
irc_server "65.19.161.32"
irc_port "6667"
irc_nick "Server"
irc_channel #randommapfun
irc_username "NMServer101"
irc_identify 1
irc_ident "authserv auth NMServer101 PASS"

Credits:

Devicenull

twistedeuphoria & {NM}JRBLOODMIST

Download irc.sma:

http://www.megaupload.com/?d=8XRB2DAK

Download irc.amxx:

http://www.megaupload.com/?d=F0OABDYU

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • From my personal experiences 🙂   Few months ago I decided to create my own Essence project. Project needs website, and I do not specialize in frontend development (t.y. i can make web work, but it won't be pretty for eye). So I search and find a guy in Discord, which claims he can make me a good looking HTML website for 30 EUR, prove some screenshots from his previous work. I agree. 1 week later, I get my HTML website, make few changes to contents, update URLs and upload it to FTP. Site looks good, I am happy that this headache is no more.   Few months passes. I randomly crawl through other Essence server websites scouting for good ideas for my own project. Suddenly one of russians project website opens and.. it's the same website as one I have 😉 perfectly absolutely same layout, colours, etc etc etc. I contact my guy to ask what the hell, to get blocked 😉  So I find a weekend worth of my time. Find HTML5 boilerplate generator and ask it to include Bootstrap 5 and some other stuff. Open Bootstrap documentation, drink two energy drinks on instant and start working my backend-inspired HTML black magic... Once I found suiting firefly effect for header, result looked oikay for me: Absolutely no magic or beauty here, but: * Unique (and probably nobody cares to rip it) * Done for free in ~10 hours by non-frontend dev * Most modern browsers friendly * Completely static content, loads instantly. No PHP at all * Sidebar statuses (online, pvp, pk) are pulled from account manager REST API endpoint and is cached for 5 minutes. Account manager runs separately from website frontend and has access to server DB. Where could/will it get better? * Code in Vue instead of HTML - time concerns only, but Vue is superior compared to HTML/PHP for supporting desktop/mobile, easing development by miles. Need to learn how to use it properly. * Way to manage content from backend - in my instance I think account manager is not really meant for that. Vue can help here too - there are components for content building. * Currently default Bootstrap components are used. Would be nice to have custom and more vibrant buttons. Guess what, Vue can help here too.   tl;dr don't buy 30EUR website, it will be ripped or shit. you better make your own website. Be curious. I am backend developer, I obviously have general idea how frontend works. But imho everyone who can make L2 server by editing NPC HTMLs, also can make their own simple website. ChatGPT and other AIs are your friends. Bootstrap. jQuery documentations are your friends. And when you feel good and comfortable with HTML, if you like, you can continue learning Vue, or going backend. Now, as for the top sites. You really need to invest money to make new project work. I mean really, really much money. For this concept to work, top website itself must get visited. But if you can sort that your top site would be popular amongst players, then it's a really very simple concept, as far as current 2004-ish sites goes. I think simple, working concept of this, maybe without proper frontend, but with implemented backend logics (add/edit/disable server, sort by votes count (top list), vote for server with verification, callback to server endpoint - all of that can be done using Symfony in mostly 5 days, with lots of breaks for coffee and a smoke 😉. Experienced mid frontend dev would make a Vue/React frontend for it in another 5 days. it's really really simple concept 🙂  
    • Need cheap aged discord accounts ? :  https://campsite.bio/utchihaamkt DISCORD USERNAME : utchiha_market TELEGRAM : https://t.me/utchiha_market Discover new products in our exclusive server today : https://discord.gg/hoodservices
    • i've copyed the files from a server that has it , like all except system folder to another that didn't had the feature and it worked but i can't find any file to resemble save acc or something
  • Topics

×
×
  • Create New...