AlienX Posted April 7, 2008 Share Posted April 7, 2008 Hello chaps and chapesses. Just thought i would release my version of vrockers IRC Echo LUA files that are shipped with his IRC Echo module. Here is a rundown of what it can do: IRC Commands !players - returns a very detailed list of all players in the server via IRC PM !getPlayer - returns a very detailed message of the player given (ping, etc, etc) !resource - gives the IRC Admin the ability to start, stop and restart resources from within IRC !kick - kicks the specified player !ban - bans the specified player (IP Ban) !banserial - bans the specified player via Serial Number !say - broadcasts a chat message into the server !refresh - refreshes the bot by hopping the channel (refreshing the users privs within the IRC channel) Other Things Automatic channel rejoin on admin join detection. (names to be changed within the ircecho resource, top most table) Automatic notification and rejoin when the module looses connection with the server Things to note when using this module You must run each resource in this sequence: <resource src="ircecho" startup="true"/> <resource src="ircechocore" startup="true"/> Download: Click here Enjoy. Link to comment
The_Stig Posted April 7, 2008 Share Posted April 7, 2008 Hey, Thanks for these. I was wondering if you could tell me how to use them, if i need anything else its just i tried the other Vrockers IRC and couldnt get if working for then life of me. Any help would be great thanks Link to comment
Cazomino05 Posted April 7, 2008 Share Posted April 7, 2008 an interesting idea would be to include a report command to send a message to irc admins btw nice function names Link to comment
[Ska]Vladmo Posted April 9, 2008 Share Posted April 9, 2008 May I ask how this works? Like, where do I put these commands? Link to comment
DazzaJay Posted April 11, 2008 Share Posted April 11, 2008 The commands (such as ban) can anyone in the IRC channel use them? or only ops? Link to comment
The_Stig Posted April 12, 2008 Share Posted April 12, 2008 Hi, Ok got it working kind of lol When i connect to my irc channel this happens [12:26:17] Querying game-monitor.com master server... success![12:26:17] Server started and is ready to accept connections! [12:26:17] >>>IRC[Connected to IRC Server, Waiting for auth notice to join channels] [12:26:17] >>>IRC[NOTICE[GTANet -> ServerEcho: [Logon News - Jul 15 2007] The most up-to-date copy of the network's rules can always be found at http://www.gtaconnection.net/page/policy/rules/main]] [12:26:17] VRCON <> LUA ERROR: ...r/mods/deathmatch/resources/IrcEchoCore/IRC Echo.lua:160: attempt to compare number with nil [12:26:17] >>>IRC[NOTICE[GTANet -> ServerEcho: [Logon News - Aug 06 2007] Your host will be scanned for open proxies. Please disregard any firewall messages originating from our servers. If you do not agree to this scan please leave the network now.]] [12:26:17] VRCON <> LUA ERROR: ...r/mods/deathmatch/resources/IrcEchoCore/IRC Echo.lua:160: attempt to compare number with nil Note the LUA error. Any idea what could be causing this? In the IRC room i get " freeroam :CONNECTION TO THE SERVERS CORE HAS BEEN ESTABLISHED" but nothing is relayed Cheers Link to comment
Cazomino05 Posted April 12, 2008 Share Posted April 12, 2008 (edited) ah wait change line 161 to if ( trash ~= nil and trash >= 0 ) then and line 160 to trash = string.find(szText, "Password accepted") Edited April 12, 2008 by Guest Link to comment
The_Stig Posted April 12, 2008 Share Posted April 12, 2008 register your bots nick then edit line 158 with its password Silly question but how do i do that? Cheers. Link to comment
Cazomino05 Posted April 12, 2008 Share Posted April 12, 2008 i edited my post i didn't look at your post properly and noticed gtanet has a welcome message using notices Link to comment
The_Stig Posted April 12, 2008 Share Posted April 12, 2008 ah wait change line 160 to if ( trash ~= nil and trash >= 0 ) then and line 159 to trash = string.find(szText, "Password accepted") Thanks for that but im a little confused. Line 159 is 'end' and line 160 is 'trash = string.find(szText, "Password accepted") >= 0' Link to comment
Cazomino05 Posted April 12, 2008 Share Posted April 12, 2008 your right i was looking at my edited version updated again Link to comment
The_Stig Posted April 12, 2008 Share Posted April 12, 2008 your right i was looking at my edited version updated again Ok did that but i had a problem. The way the script came the ircechocore has this root = getRootElement() szChans = {} local s_Server = "91.192.210.54" local s_Port = 6667 local s_Channel = "#freeroam" local s_BotName = "ServerEcho" local autoConnectionRetryTimer local autoConnectionRetryTimer_onDC Now with the changes you told me to do it connected to that IRC prefectly fine but silly me forgot to add the network and channel i wanted. So i changed it to this:- root = getRootElement() szChans = {} local s_Server = "irc.gtanet.com" local s_Port = 6667 local s_Channel = "#MgCFreeroam" local s_BotName = "ServerEcho" local autoConnectionRetryTimer local autoConnectionRetryTimer_onDC local allreadyInit = false and now it wont connect Well it does connect. In my channel #MgCFreeroam channel it still says:- CONNECTION TO THE SERVERS CORE HAS BEEN ESTABLISHED But still no relay of any chat. Link to comment
The_Stig Posted April 12, 2008 Share Posted April 12, 2008 OK looks like it might be gtanet that wont allow this bot. Any other irc networks that will allow it? I tried registering the bot and it told me it didnt exist Link to comment
The_Stig Posted April 13, 2008 Share Posted April 13, 2008 OK, got Vrockers original script working fine but this one i cant because i cant find where to put the password in lol Any hints? Link to comment
AlienX Posted April 14, 2008 Author Share Posted April 14, 2008 Line 158 - ircMessage ( pIRC, "nickserv", "identify hellobaboon" ) hellobaboon is the current password, change it there Link to comment
useless1 Posted September 9, 2009 Share Posted September 9, 2009 i know this an old topic, but if anyone has this or a current link to it, it would be greatly appreciated. especially the Linux version Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now