AlienX

[REL] VRocker's IRC Echo Advanced LUA Scripts

Recommended Posts

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.

Share this post


Link to post

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 :D

Share this post


Link to post

an interesting idea would be to include a report command to send a message to irc admins btw nice function names :P

Share this post


Link to post

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

Share this post


Link to post

ah wait change line 161 to

if ( trash ~= nil and trash >= 0 ) then

and line 160 to

trash = string.find(szText, "Password accepted")

Edited by Guest

Share this post


Link to post
register your bots nick then edit line 158 with its password

Silly question but how do i do that?

Cheers.

Share this post


Link to post

i edited my post i didn't look at your post properly and noticed gtanet has a welcome message using notices

Share this post


Link to post
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'

Share this post


Link to post
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 :redhotevil:

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.

Share this post


Link to post

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 :redhotevil:

Share this post


Link to post

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?

Share this post


Link to post

Line 158 - ircMessage ( pIRC, "nickserv", "identify hellobaboon" )

hellobaboon is the current password, change it there :)

Share this post


Link to post

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

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.