Valhalla Legends Forums Archive | Visual Basic Programming | Making a bot

AuthorMessageTime
Warzone2005
I would want to learn how to make a bot. Not a bot for battle.net. But a bot like for yahoo chat rooms and so on.
I would like to find some tutorials on this.
Are if you can teach me
My aim is: Warrior zone3
November 16, 2005, 6:00 PM
LivedKrad
I'm not sure about Yahoo! protocol tutorials or resources, but this forum has an adequate reference for the AIM and OSCAR protocols (which is the most popular Instant Messenging client, I think) as long as you know the Visual Basic language enough to utilize the information to its full potential.
November 16, 2005, 10:29 PM
Warzone2005
Okay but I'm not talking about just yahoo. I'm talking about really in chat room.
November 17, 2005, 2:08 AM
LivedKrad
When I say the Yahoo! messenger protocol or the AIM protocol, I mean everything that is included with these networks, therefore would include chat as well as individual messaging.
November 17, 2005, 3:00 AM
Mangix
Open Source Messengers such as gaim have source which you can look at :P
November 18, 2005, 5:23 AM
FrOzeN
I don't see how the source code 'C' of GAIM is going to help him make a bot in 'Visual Basic 6'. If you've ever looked at the source code of a large program, unless you fully understand CVS's and such, and the given language. The source will be pretty much rendered useless to him.
November 18, 2005, 6:28 AM
Mangix
of course you have to know the language if you want to convert it to vb or some other langiage. there is also documentation that can help him look in a specific file :P
November 19, 2005, 12:07 AM
Quarantine
Okay Mangix let me take this slow.

He  is  making  a  bot  in  VB  .
He  does  not  know  C.
November 19, 2005, 12:36 AM
Mangix
Then This is what he wants :P
November 19, 2005, 5:00 AM
FrOzeN
Congradulations Mangix, you know how to use google.

Providing a source code isn't actually 'teaching' him nor is it in any way like a tutorial. Though depending on how well he know's Visual Basic 6, is whether or not he'll be able to grasp any information from the source. Then of course he could just rip it.  :-\
November 19, 2005, 5:31 AM
Yegg
[quote author=FrOzeN link=topic=13258.msg134625#msg134625 date=1132378299]
Congradulations Mangix, you know how to use google.

Providing a source code isn't actually 'teaching' him nor is it in any way like a tutorial. Though depending on how well he know's Visual Basic 6, is whether or not he'll be able to grasp any information from the source. Then of course he could just rip it.  :-\
[/quote]
Then instead of reminding him of that, why not find a link yourself?
November 19, 2005, 1:50 PM
LivedKrad
Why does it seem like it's usually the same people who reply to threads started by a person who doesn't know the language? Is it because the people who know what they're talking about don't bother, or is it because the people that like to think they know what they're talking about consider the day wasted unless they get their useless two cents in?
November 26, 2005, 2:44 PM
Quarantine
<3
November 26, 2005, 5:26 PM
Explicit[nK]
[quote author=LivedKrad.fe link=topic=13258.msg135377#msg135377 date=1133016254]
Why does it seem like it's usually the same people who reply to threads started by a person who doesn't know the language? Is it because the people who know what they're talking about don't bother, or is it because the people that like to think they know what they're talking about consider the day wasted unless they get their useless two cents in?
[/quote]

LK, it's more or less for the feeling of superiority, as MyndFyre pointed out to me awhile back.  The request for help gets repetitive after awhile, and answering the same questions over and over can become irritating.  This happens especially when you know that using the search feature could answer the majority of bot-related questions, yet the ones making the request just overlook it.
November 28, 2005, 9:24 PM
LivedKrad
If it's so irritating to read these threads because it's repetative, then is it not equally as repetative to reply to these threads with the same useless help? It could be a possibility that someone would be too dull to realize that they're as irritating as the one asking the questions, but isn't even more stupid if no one gives a useful answer to end the monotony of infinite repetition of stupid questions and equally as stupid answers?
November 28, 2005, 9:57 PM
Myndfyr
[quote author=LivedKrad.fe link=topic=13258.msg135599#msg135599 date=1133215074]
If it's so irritating to read these threads because it's repetative, then is it not equally as repetative to reply to these threads with the same useless help? It could be a possibility that someone would be too dull to realize that they're as irritating as the one asking the questions, but isn't even more stupid if no one gives a useful answer to end the monotony of infinite repetition of stupid questions and equally as stupid answers?
[/quote]

Most likely the people intelligent enough to use the Search feature would be rebuffed by the neverending plethora of ignorant responses as well.  ;)
November 28, 2005, 10:41 PM
JoeTheOdd
AIM/ICQ (Oscar)
On this website, under the Oscar section, it says that TOC has been released. I don't remember if the TOC logon clients are allowed to use chatrooms, but if they are, you've got this one easy.

If TOC isn't allowed to access chatrooms, there's plenty of documentation out there for the Oscar protocol. This looks promising. I've used this in my small endeavor of the Oscar protocol. Its a little bit confusing, but I'm sure someone here can figure it out if you ask. :).

Last but not least, we have a Oscar Protocol Forum, where many of your questions may already be answered, and protocol specific questions should be posted.

[hr]

Yahoo! Messenger
According to this, Yahoo changed their protocol to block third-party clients. I remember this happening about 6 months ago, though, so I asume a good deal of research has been done since, and you can log on. Even though you can't read C, Gaim has been fixed to use the new protocol, and its open source, so if you want to try to use this, I'm sure someone will be willing to help you.

As for documentation on the new protocol, you might want to read this. A quick glance at the first packet shows protocol version 0x000B, which is 12 when converted to decimal. I don't know what version the current one is, but you could packetlog the first packet using a tool such as Etherea. Remember, though, Ethereal will output the TCP packet header as well, so you'll want to skip to the 0x37th byte (remove rows 0x0000, 0x0010, 0x0020, and the first six characters of row 0x0030). They included the TCP header on that page as well.

[hr]

Microsoft Network Messenger
For reasons of personal opinion, which some may say are biased *cough*, I'm not going to go in depth on the MSNM protocol, but again, we have a forum devoted to it. MSN was once an open protocol, but has aparently been changed so much since that time that it required reverse-engineering to even work. Skywing[vL] has done some work with the MSN protocol, resulting in his MSNClient (scroll down). Its a BinaryChat plugin, but theres a standalone EXE, as well as the source code (written in C++, I believe).

[hr]

Feel free to contact me (info to the left) with any questions on programming terminology or how to do something, but I'm afraid I'll be of little help with protocol analysis. Hope I helped.
November 28, 2005, 11:37 PM
LivedKrad
Blah, I think I remember posting something to that effect earlier in the thread. My lack of links was most likely due to the fact that I wanted to help yet still wanted to keep the subtle undertone that I was slightly annoyed about having to make the post initially. :P
November 28, 2005, 11:46 PM
JoeTheOdd
I wasn't slightly annoyed. In fact, the only reason I went out of my way for a good 15-minutes link-searching is because I failed (from lack of effort, not understanding, but I failed none-the-less) to write this project, and would like to see it be done in VisualBasic. Writing a combination YIM/MSN/Oscar IM client in VB would bring redemtion to its name as a "newb" language, to some degree. It doesn't change the fact that next to anyone can use it (we use it in entry-level computer science, in fact..), but is it really a bad thing that average users can tell their computer what to do?

Wow, that was a ramble. =p
November 29, 2005, 12:03 AM
LivedKrad
Next-to-anyone can use it? Aside from mental cases from a person who can't even process cutting a piece of string in half, anyone could use any programming language. The fact that one language is better-suited for a specific purpose or has a more complex syntax or operation spectrum does not mean that someone you consider to be a "next-to-anyone" would not be able to use a more complex language. To make my point simple: why would this "next-to-anyone" not be able to use a language like C++ when it's basically more of the same, with slightly more complexity?
November 29, 2005, 12:19 AM
JoeTheOdd
Because C++ is not an RAD, nor easy to learn. Sure, its the love of your life once you learn it, but you simply can't learn it without devoting an unreasonable (to most people) ammount of time to it. Last year in Language Arts class, we were asked what our greatest dreams were. Someone said "to be a computer programmer". Its not hard, its just unreasonably time consuming, whereas VB is easy to learn and easy to use.

EDIT -
And before someone asks me why I, a mere student, know C++, yet claim it to take an unreasonable amount of time to learn, just remember, I am an unreasonably weird person, and have (next to) no life.

EDIT -
Not to be an insult, but just a question. LivedKrad, do you know C++?
November 30, 2005, 12:54 AM
rabbit
If you're being taught the language, spending a lot of time on it is not required.
November 30, 2005, 1:26 AM
LivedKrad
[quote author=Joe link=topic=13258.msg135767#msg135767 date=1133312042]
Because C++ is not an RAD, nor easy to learn. Sure, its the love of your life once you learn it, but you simply can't learn it without devoting an unreasonable (to most people) ammount of time to it. Last year in Language Arts class, we were asked what our greatest dreams were. Someone said "to be a computer programmer". Its not hard, its just unreasonably time consuming, whereas VB is easy to learn and easy to use.

EDIT -
And before someone asks me why I, a mere student, know C++, yet claim it to take an unreasonable amount of time to learn, just remember, I am an unreasonably weird person, and have (next to) no life.

EDIT -
Not to be an insult, but just a question. LivedKrad, do you know C++?
[/quote]

Do you know the English language? If you program in C++ as you say, and know the syntax and a lot of functions and routines and keywords and blah blah, what makes you think you know the language? I would assume very few people in this world know a language, and even those people are the ones who were around when it was being developed originally. So to answer your question, no, I do not know C++.
November 30, 2005, 9:38 PM
Networks
[quote author=Joe link=topic=13258.msg135767#msg135767 date=1133312042]
Because C++ is not an RAD, nor easy to learn. Sure, its the love of your life once you learn it, but you simply can't learn it without devoting an unreasonable (to most people) ammount of time to it. Last year in Language Arts class, we were asked what our greatest dreams were. Someone said "to be a computer programmer". Its not hard, its just unreasonably time consuming, whereas VB is easy to learn and easy to use.

EDIT -
And before someone asks me why I, a mere student, know C++, yet claim it to take an unreasonable amount of time to learn, just remember, I am an unreasonably weird person, and have (next to) no life.

EDIT -
Not to be an insult, but just a question. LivedKrad, do you know C++?
[/quote]

Wow you make it seem like knowing C++ is becoming godly. Puh-lease...
Anyhow, any language is tough to learn with little to no past programming experience. Joe I'd say you have little experience so in your case I'd say you'd have trouble compared to those of us who have stuck with a language longer then 3 months. I wouldn't say most people devote an unreasonable amount of time, I'd say we devote the same amount of time anyone passionate about their hobby would. (ie: Skateboarders, Basketball players, etc.)

Also if you're attempting to brag that you spend LOTS of time learning C++, you do it poorly since what you show to the public is very simple and requires very LITTLE time.

My conclusion: Joe you're not 'cool' just because you know a little bit of C++. Stop being an attention whore all the time and posting in topics in which you have 1% knowledge over the subject or the subject of the argument at hand (in this case).

To contribute to the thread...(it's so hard these days with all the attention whores)

I'd suggest 3 golden rules:
- Google
- Reading
- Experimentation

(The G.R.E METHOD (c) 2005-2006)

Often google covers everything from finding open source projects and places where you can read.
December 1, 2005, 12:40 AM
JoeTheOdd
LivedKrad, I realize that most people could learn C++, but I still don't see why you're arguing this with me.

VB is easy.
C++ is a little bit harder.

Obviously, if efficency isn't a matter, your choice is VB.
December 1, 2005, 3:04 AM
LivedKrad
If you say that you realize that most people have the ability to learn and use C++, then you not only agree with but confirm my argument. Thus, I consider this particular off-topicness to be done with.
December 1, 2005, 3:33 AM
Quarantine
Generally I'd make a decision if I want to sacrifice a little bit of ease for a shitload of power (meaning flexibility, not benchmarking any of the two). It's generally like this: If I want something done fast which doesn't need a lot of thought such as a client to a chat server or a battle.net bot or anything client side for the most part, then I'd use VB.

I'd only use C if I want to do the memory management myself or if I'm on a different platform and of course if I'm OSDeving but once you learn both of them there seems to be little difference between the two (Not talking syntax, but in the way you understand it)

I wouldn't claim to know C fluently as I am still learning new things each day but I know enough and have enough C projects under my belt to help along the way. The way I see it is once you know the basis (Syntax, flow control, memory management, bit manipulation, etc) everything else is either reusing an open source library or doing some googling.
December 1, 2005, 3:58 AM
LivedKrad
http://www.javaop.com/~joe/JBBE/screenshots/channellist.png

Apparently, you are: "inefficient, easy, and a common schmuck who is considered to be a next-to-anyone"! To quote Maddox, "Congratulations! You're mediocre!"
December 1, 2005, 4:04 AM
Grok
Chill out on the personal attacks.
December 1, 2005, 4:34 AM
JoeTheOdd
I don't see why you feel the need to play devils advocate in this, which isn't even about languages, but protocols, but oh well.

Yes, I do agree that the majority of the population can learn C++. I've agreed with you from the start. I'm simply saying that the majority doesn't have the time (or want to devote it) to learn C++.

I don't claim to be more than mediocre, as programmers go. As far as the average Visual Basic user goes, that which has just finished Computer Literacy and learned how to multipy a few numbers, I consider myself far beyond that, not to mention those who don't even know the BASIC language.

Now, to take MyndFyre's advice. Take the last laugh if you want, I could really care less, because I agree with you anyhow. This conflict is over, as far as I care.

EDIT -
Grok, I'm not sure if his were ment to be taken personally, but I know mine weren't. Its just devils advocacy taken way too far.
December 1, 2005, 4:39 AM
LivedKrad
[quote author=Grok link=topic=13258.msg135900#msg135900 date=1133411650]
Chill out on the personal attacks.
[/quote]

Won't happen again.
December 1, 2005, 5:03 AM
Grok
Threads like this are why "language wars" are a discouraged topic on THIS forum.  This is a Visual Basic forum and it is presumed the people in it wish to discuss and use Visual Basic.  It is not a place to argue with someone about using it vs some other language.  There is a language wars thread somewhere (do a search, I don't particularly care to), that you can argue C++ vs VB all you want.
December 1, 2005, 3:52 PM
LivedKrad
My intent originally when replying to Joe's post was just to argue the ability required to use the language. It wasn't supposed to be an analysis on why Visual Basic is better than C++ or vice versa. At any rate, I shall say it again: the personal attacks won't happen again, and I suppose I won't start an argument about a language .. again .. either.
December 2, 2005, 12:51 AM
JoeTheOdd
Or in other words, as said on AIM, "I was bored".

Well, the guy hasn't come back. Maybe someone should IM him and tell him he's received a plethora of replys and should check back.
December 2, 2005, 3:12 AM

Search