Valhalla Legends Forums Archive | /WHOAMI -- Introductions | Hello everyone!

AuthorMessageTime
Stuck
Hi everyone! I'm new to these forums. I've been programming for about a year, starting with VB.net and now working with C# :). I'm having trouble figuring out how WINSOCK works and I'm looking for a good bot sourcecode I can learn from, yea I've looked at Planet Sourcecode...but I havnt found anything I can use.

I own Visual Studio.NET Professional 2003, I don't want VB 6.0 code, can't upgrade it to .NET any help here would be greatly appreciated.


My ultimate goal so far is to create a battle.net bot from scratch for PDAs. Any help here would be appreciated, I've heard alot of great stuff about you guys.
November 23, 2005, 9:50 PM
Yegg
Welcome to the forums. If you'd like to successfully create a bot for PDA's, then C# or VB6 will not do, unless the PDA has a Windows-based operating system on it. If you're looking for Battle.net bot source codes then you should check out zeroforce.net.
November 23, 2005, 9:57 PM
Stuck
yes I know, but I want to learn the basics first

Do you know where I could get sourcecode for C#?

*Edit*

I looked at that site , alot of VB 6.0 and C++ but nothing else really. Nothing in .NET section :(
I would preferably like C# code, but its difficult to find. Help?

It would also be helpful if the program worked and connected to B.net  :)
the sourcecode I do find I can never tell if it works or not cause either it won't compile, or its outdated and can't
connect anyway  :(

November 23, 2005, 10:01 PM
QwertyMonster
Hey :P
November 24, 2005, 3:29 PM
Mangix
[quote author=Stuck link=topic=13336.msg135178#msg135178 date=1132783261]
yes I know, but I want to learn the basics first

Do you know where I could get sourcecode for C#?

*Edit*

I looked at that site , alot of VB 6.0 and C++ but nothing else really. Nothing in .NET section :(
I would preferably like C# code, but its difficult to find. Help?
[/quote]why in the world do you need sourcecode for? are you looking to copy all of it, put it in your program and make it run?

here's another question. do you know C#?
November 24, 2005, 10:04 PM
Explicit[nK]
Welcome.
November 25, 2005, 3:05 AM
Stuck
I can code in C#, yes. However I know very little about winsock. I want a sourcecode to see exactly how it works, I learn by example. Maybe a tutorial would also be helpful? Winsock hasn't been covered in many books I've read or classes I've taken.
November 27, 2005, 12:29 AM
Mangix
[quote author=Stuck link=topic=13336.msg135421#msg135421 date=1133051397]
I can code in C#, yes. However I know very little about winsock. I want a sourcecode to see exactly how it works, I learn by example. Maybe a tutorial would also be helpful? Winsock hasn't been covered in many books I've read or classes I've taken.
[/quote]Winsock isnt in .NET . however you can use the "System.Net" and "System.Net.Sockets" namespace to connect to the internet.

btw:just so you know, if you've used Winsock in VB6, then you're gonna have a hard time with .NET sockets :P

also you might wanna check this out.
http://www.ondotnet.com/pub/a/dotnet/2002/10/21/sockets.htm

also if you really want sourcecode badly, then follow the link below.
http://www.microsoft.com/downloads/details.aspx?FamilyID=08e3d5f8-033d-420b-a3b1-3074505c03f3&DisplayLang=en
November 27, 2005, 1:05 AM
Stuck
I havn't coded with VB 6.0 at all, so far I've only worked with .NET. I can code pretty well in VB.Net and I'm just finishing up a class in C#. I like C# better  so far ;).

TY for the links! Thats what I've been looking for. TY!
November 27, 2005, 11:59 PM
Newby
You can have the pieces of Hitmen Chat that I coded a while (~1 year or so, about a year and a half now! :)) ago. It's just a telnet chat client.

It's C# .NET.

Enjoy.

http://www.newbyproductions.net/downloads/frmMain.cs
http://www.newbyproductions.net/downloads/clsCommands.cs
http://www.newbyproductions.net/downloads/clsDatabase.cs
November 28, 2005, 3:42 AM
Stuck
Thanks! I found a couple tutorials I'm looking at too, thanks guys you've all been a great help!!

*EDIT*

Thanks Newby!! Just what I needed TY!!! You'll be on the ty list on all of my bots!  ;D . Do you have any bot code for a binary bot? Well you've been a great help TY!!
November 28, 2005, 9:52 PM

Search