• Welcome to Valhalla Legends Archive.
 

Hello everyone!

Started by Stuck, November 23, 2005, 03:50 PM

Previous topic - Next topic

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.
Stuck@useast, Stuck@Azeroth

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.

Stuck

#2
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  :(

Stuck@useast, Stuck@Azeroth

QwertyMonster


Mangix

Quote from: Stuck on November 23, 2005, 04:01 PM
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?
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#?

Explicit

I'm awake in the infinite cold.

[13:41:45]<@Fapiko> Why is TehUser asking for wang pictures?
[13:42:03]<@TehUser> I wasn't asking for wang pictures, I was looking at them.
[13:47:40]<@TehUser> Mine's fairly short.

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.
Stuck@useast, Stuck@Azeroth

Mangix

#7
Quote from: Stuck on November 26, 2005, 06:29 PM
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.
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

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!
Stuck@useast, Stuck@Azeroth

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
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

Stuck

#10
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!!
Stuck@useast, Stuck@Azeroth