Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Hey its me again with a questions to bear!!??Maybe i will get answers?
icon6.gif  Hey its me again with a questions to bear!!??Maybe i will get answers? [message #449481] Wed, 06 July 2011 18:18 Go to next message
Commando950 is currently offline  Commando950
Messages: 18
Registered: May 2011
Location: USA
Karma: 0
Recruit
Hey guys!First Off this is a valid discussion renegade fourms because alot of renegade servers use irc for watching people play,So this is valid.

So to begin I have seen people use bots for random stuff... Dont Get It

Fighting,uno,kicking,anti spam,anti flood,8ball,and alot more... Huh

I have seen tons of info online...

But thats the problem...

I need info in one place,so I have come here to ask renegade fourms how can i make my own bot?

Please give >>Detailed<< Info on how I can make bots for irc...

Its a pain to have to hear from so many people,bad reports,false leads,and problems...

I don't want to hear the words google,bing,or any other search provider in this fourm... Angry

I say that because thats what I hear.Not pointing out names.Rolling Eyes

I would dearly thank you for any information you may have.Sigh

Have a nice Day!

Sincerly,Commando950 Big Grin
Re: Hey its me again with a questions to bear!!??Maybe i will get answers? [message #449482 is a reply to message #449481] Wed, 06 July 2011 18:26 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Learn a programming language and either write an IRC library/interface for the language with sockets or use a library that provides IRC functionality.

You should check out libircclient if you want to write an IRC bot in C/C++, it's a pretty nice library.


Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: Hey its me again with a questions to bear!!??Maybe i will get answers? [message #449485 is a reply to message #449481] Wed, 06 July 2011 18:49 Go to previous messageGo to next message
Commando950 is currently offline  Commando950
Messages: 18
Registered: May 2011
Location: USA
Karma: 0
Recruit
A little more detail?Expect me to know less about this because so many links spam what i am trying to figure out...

Where is these links and how can i effectivly utilize them and know how to make a irc bot?I would like detail... Dont Get It
Re: Hey its me again with a questions to bear!!??Maybe i will get answers? [message #449495 is a reply to message #449481] Thu, 07 July 2011 02:12 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
You basicly want to use a library (ie the one iRANian suggested if you program C++) or a custom written program to connect to IRC and join a channel (or multiple channels).
Then you want to parse the messages that people type. You probably want commands to start with a ! or similar, so check each chat message for that.
Once you received a command (message that begun with that !), you check the word following it. If that word is 1 of your bots' commands, you check the words following that.
If word count != parameters needed, you either want to ignore the message, or state that the command needs more or less parameters.
If the word count equals the commands' parameter count, you do whatever you want to do with these, and return output.

This is the most detailed IRC bot step-by-step plan I can think of.
Maybe someone else has something to add?


EDIT: If you don't know anything about programming, I'd start learning that first. If you do know how to code, you probably want to get a library for the language you are familiar with. Wink


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Thu, 07 July 2011 02:15]

Report message to a moderator

Re: Hey its me again with a questions to bear!!??Maybe i will get answers? [message #449496 is a reply to message #449481] Thu, 07 July 2011 02:29 Go to previous messageGo to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
This is a much more complicated project than you may think. In order to create an IRC bot, you must be able to understand a programming language and be able to have it interpret messages from an IRC server. One way to do this is by using a scripting language such as mIRC's mSL. You could also program your bot in another language such as C++, Java, or most other languages(C#, VB.net, etc), but you would need to learn the proper protocol for communicating with an IRC server using these.

If you are not willing to use a search engine, then I'm unsure how much users at the renegade forums will be able to help you. Most information can be found by using search engines and searching for tutorials on whatever you'd like to learn about. I hope that someone has some more help that they can offer you, and I wish you good luck.

Here is a link to a tutorial about mSL that I found: http://www.pure-warfare.com/forums/index.php?showtopic=773


http://img694.imageshack.us/img694/9055/tunamanlmao.png
Re: Hey its me again with a questions to bear!!??Maybe i will get answers? [message #449520 is a reply to message #449481] Fri, 08 July 2011 15:55 Go to previous messageGo to next message
sla.ro(master) is currently offline  sla.ro(master)
Messages: 610
Registered: September 2010
Location: Romania
Karma: 0
Colonel
i don't recommend Java

good is C++, Lua, VB and other.

you can use a Lua IRC Bot as a example to learn how IRC Protocol works and how to make a simple irc bot.

edit: i use my own Lua SSGM and Lua IRC Bot and works perfect, i never had problems with Lua Wink , i recommended to try Lua first.


Creator of Mutant Co-Op
Developer of LuaTT

[Updated on: Fri, 08 July 2011 23:32]

Report message to a moderator

Re: Hey its me again with a questions to bear!!??Maybe i will get answers? [message #449527 is a reply to message #449481] Sat, 09 July 2011 05:12 Go to previous messageGo to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
Seeing that Lua is an interpreted language, I'm curious as to exactly how you managed to do that. Did you create your own interpreter(or download one?) or did you use an interpreter bundled with something else(like the fds plugin)?

http://img694.imageshack.us/img694/9055/tunamanlmao.png
Re: Hey its me again with a questions to bear!!??Maybe i will get answers? [message #449528 is a reply to message #449481] Sat, 09 July 2011 07:38 Go to previous message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Extending the SSGM plugin with lua_register() to add new LUA functions that call LUA wrappers for scripts.dll API functions, e.g.:

lua_register(L, "Console_Input",Lua_Console_Input);

int Lua_Console_Input(lua_State *L)
{
	const char *x = luaL_checkstring(L, 1);
	if(x)
	{
		Console_Input(x);	
	}
	return 0;
}


Then you can call Console_Input like any other LUA function.


Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases

[Updated on: Sat, 09 July 2011 07:41]

Report message to a moderator

Previous Topic: Decent map makers out there?
Next Topic: How to setup a Visual Studio 2010 SSGM plugin?
Goto Forum:
  


Current Time: Wed Dec 18 06:57:15 MST 2024

Total time taken to generate the page: 0.01344 seconds