Liberty Unleashed

Scripting => Script Releases => Topic started by: PlayerX on December 16, 2010, 05:54:04 am

Title: IrcX 1.0
Post by: PlayerX on December 16, 2010, 05:54:04 am
IrcX 1.0 by [R3V]PlayerX

Max Connection: 5 bots

Functions:

IRC_isVoice(channel, user)                      // return 0 or 1
IRC_isHalfop(channel, user)                    // return 0 or 1
IRC_isOp(channel, user)                         // return 0 or 1
IRC_isProtect(channel, user)                   // return 0 or 1
IRC_isOwner(channel, user)                    // return 0 or 1
IRC_isBotConnected(botid)                      // return 0 or 1
IRC_say(botid, target, message)
IRC_notice(botid, target, message)
IRC_action(botid, target, message)
IRC_joinChannel(botid, channel, password)
IRC_leaveChannel(botid, channel, message)
IRC_isUserOnChannel(channel, user)        // return 0 or 1 (possible bug)
IRC_setMode(botid, target, mode, params [optional])
IRC_getUserLevel(channel, user)              // return ~, &, @, %, + or -
IRC_inviteUser(botid, channel, user)
IRC_kickUser(botid, channel, user, reason)
IRC_getChannelUserList(botid, channel)    // return list
IRC_setChannelTopic(botid, channel, message)
IRC_sendRaw(botid, params)
IRC_connect(server, port, botname, realname [optional], username [optional]) // return bot id
IRC_quit(botid, message [optional])
IRC_getBotName(botid)                          // return bot name
IRC_getBotUsername(botid)                   // return user name
IRC_getBotRealname(botid)                    // return real name
IRC_registerEvent(event, switch)  

Events:

IRC_onConnect(botid)
IRC_onDisconnect(botid, reason)
IRC_onJoinChannel(botid, channel)
IRC_onLeaveChannel(botid, channel, message)
IRC_onUserJoinChannel(botid, channel, user, host)
IRC_onUserLeaveChannel(botid, channel, user, host, message)
IRC_onUserDisconnect(botid, user, host, message)
IRC_onUserNickChange(botid, host, oldnick, newnick)
IRC_onUserSetChannelMode(botid, channel, user, host, mode, params)
IRC_onUserSetChannelTopic(botid, channel, user, host, topic)
IRC_onUserSay(botid, recipient, user, host, message)
IRC_onUserNotice(botid, recipient, user, host, message)
IRC_onUserDescribe(botid, recipient, user, host, message)
IRC_onUserKicked(botid, channel, user, host, kicked, message)
IRC_onReceiveRaw(botid, message)

Note: if there is a bug, let me know. do not forget to add in the credits.

Download IrcX 1.0 (http://unitedclan.110mb.com/IrcX.zip)

Support: irc.liberty-unleashed.co.uk - #playerx // For players who speak Spanish:: www.r3v-team.tk & #playerx
Title: Re: IrcX 1.0
Post by: VRocker on December 16, 2010, 09:20:34 am
Very nice work! Really well made too :)

Only a few suggestions with it, and its more due to the IRC protocol.
Messages for PRIVMSG, NOTICE, TOPIC, KICK and QUIT are missing a : before the actual text (e.g. "PRIVMSG " + target + " :" + message + "\r\n"), its not needed for all messages but if you wanna be strict about the protocol and support the most IRC servers, then it would be useful to add them :P
Doesn't really matter when your connecting to unrealircd (like on LUNet, GTANet and many others) but some IRC servers ignore you if your not adhering to the protocol.

Not really vital but just letting you know anyway :)

Oh, and it'd probably be a good idea to rename the folder to IrcX rather than main :)

Still, great work :D
Title: Re: IrcX 1.0
Post by: PlayerX on December 16, 2010, 01:50:29 pm
in 4 or 5 hours. I'll be working.  :) new version: 1.1
Title: Re: IrcX 1.0
Post by: Devian on December 16, 2010, 10:44:57 pm
nice work.  :)
Title: Re: IrcX 1.0
Post by: D4RiFT on March 05, 2011, 05:06:57 pm
I try to connect to ma server through this program, but its not accepting it, i have the script set up, 1 thing.. do i need a IRC server
Title: Re: IrcX 1.0
Post by: Orpheus on March 06, 2011, 03:30:16 am
You specifically don't need an IRC server. but you need to be able to connect to one (like gtanet or Project Apollo's server) 

What do you mean but "it's not accepting it"?
Title: Re: IrcX 1.0
Post by: D4RiFT on March 06, 2011, 11:44:15 am
You specifically don't need an IRC server. but you need to be able to connect to one (like gtanet or Project Apollo's server) 

What do you mean but "it's not accepting it"?
What I mean is, i put in my server ip into MiRC and it not accepting it. But i want to connect to my server to chat or do something like i seen playerX do.
Title: Re: IrcX 1.0
Post by: Thijn on March 06, 2011, 12:24:36 pm
You have to connect the server to an IRC network (Like LUNet: irc.liberty-unleashed.co.uk) and then connect with your IRC client (mIRC for example) to the same network and channel.
Title: Re: IrcX 1.0
Post by: D4RiFT on March 06, 2011, 02:41:04 pm
Ok but i am not sure how to connect my srver to an irc server, i think i need to edit the script ?? where it says Irc server
Title: Re: IrcX 1.0
Post by: Windlord on May 22, 2011, 03:04:13 am
Just fyi to the OP: The download link is broken.
Title: Re: IrcX 1.0
Post by: Thijn on May 22, 2011, 11:58:35 am
Works for me ???
Title: Re: IrcX 1.0
Post by: Windlord on May 22, 2011, 12:01:44 pm
Eeeh, it works now.