• Welcome to Valhalla Legends Archive.
 

How to connect bot to bnet.

Started by shout, June 19, 2004, 11:11 PM

Previous topic - Next topic

shout

I have started to teach myself how to program, and I would like to create a bnet client, but truth is, im a programming noob. Could someone tell me how to connect?

dodge

depends on how much VB you know, if not a lot then go here http://www.valhallalegends.com/cuphead/ocx_me.txt theres a tutorial

but, one thing has changed, the accept is: 579728

you'll know what i mean when you read more into the tutorial.

shout

#2
Im not using vb, Im using C#.Net, and Ive tried using VB and the OCX to make a bot but found it far too EZ. I kind of want a challenge.

dodge

alright then i cant help you. or if you want a challenge use VB and use winsocks to connect. then teach me! lol

Blaze

You can get a cleanslatebot to connect to botnet?
Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No

UserLoser.

Quote from: Kk)Blaze(kK on June 20, 2004, 02:18 PM
You can get a cleanslatebot to connect to botnet?

Nobody mentioned BotNet...

shout

I got a bot to connect to battle.net with the OCX, and I had it in the channel, but it took me like 10 minutes to make and that is kind of the noobs way out...

Here is what I know: When I connect, I have to send something like "Chr(1)", but I have no idea what that is. Then I send 0x50, and battle.net send 0x50 and 0x25 back. (I think).

Please help a failing noob!

CrAz3D

I remember seeing that Myndfyre has posted quite a bit abuot C# Battle.Net prograqmming.  It has been rather recently also, try just scanning the topic names in this forum for aobut 4-5 pages.
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Eli_1

#8
Quote from: shout on June 20, 2004, 03:36 PM
I got a bot to connect to battle.net with the OCX, and I had it in the channel, but it took me like 10 minutes to make and that is kind of the noobs way out...

If you want to make it a little more challenging, try doing it using the API calls instead of the OCX (there's a post about this in the Visual Basic forum, only 4-5 topics down).

Quote
Here is what I know: When I connect, I have to send something like "Chr(1)", but I have no idea what that is.

Chr(1) is the "character" equivalent of 1. Exactly the same as the character equivalent of 61 is "a" ( Chr(61) ).

Quote
Then I send 0x50, and battle.net send 0x50 and 0x25 back. (I think).

Yes, I think that's right too. But note, you don't literally send "0x50." 0x50 is an identifier of a packet. To figure out what that packet (0x50) contains, you could packet log a client sending it, and figure it out from there, or go on bnetdocs and look it up there.

StepAside


shout

Now how would I packet log, assuming that packet log is a verb phrase.

GoSuGaMING

#11
Quote from: shout on June 20, 2004, 09:19 PM
Now how would I packet log, assuming that packet log is a verb phrase.

download WPE Pro?

1  Hide  Hide  67  Send  
0000  01 FF 50 3A 00 00 00 00 00 36 38 58 49 50 58 45    ..P:.....68XIPXE
0010  53 C9 00 00 00 00 00 00 00 00 00 00 00 00 00 00    S...............
0020  00 00 00 00 00 00 00 00 00 55 53 41 00 55 6E 69    .........USA.Uni
0030  74 65 64 20 53 74 61 74 65 73 00 FF 25 08 00 00    ted States..%...
0040  00 00 00                                           ...

there is 0x50 which is the first packet you send to battle.net

shout


GoSuGaMING


shadypalm88

Well, if you don't want to packetlog, there's always BnetDocs.  It contains much information on the messages sent back and forth between you and Battle.Net, how they're formatted, and the correct orders to do so.  If you understand network programming, or can teach yourself, you'll want to check this out.