• Welcome to Valhalla Legends Archive.
 

Vb Chat bot

Started by Wing87, April 24, 2006, 02:29 PM

Previous topic - Next topic

Wing87

i know vb good in my opinion and a bit of winsock so i wanted to try to write a B.net client (D2) i tried this code
http://botdev.valhallalegends.com/documents/vbwinsockhlp.html
At the homepage but how do i make it to log in and so on i dont get it >.<  ???

Yegg

Winsock just needs for you to connect to a server (includes the port number it uses) and send certain pieces of data to that server. You can look at open source projects from http://zeroforce.net to get an idea of how things work. I'd also recommend you check out http://bnetdocs.valhallalegends.com for a large variety of Battle.net packets which are neatly documented and explain how they work or what they do (most of them).

rabbit

EmptyChat2, a relatively simple bot with not much more than a connection.  Again, we stress you NOT copy & paste...
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

MysT_DooM

Also searching on this forum will provide you with information which you can learn off of and accomplish that goal of yours.


vb6, something about that combination of numbers and letters is sexy

rabbit

Stupid me!

BnetDocs is essential!  (How could I forget?)
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

Wing87

tnx alot for the help ill look on the links when i got time (=

Wing87

after reading the http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=2
i tryed to make some thing that sends the connection info but i just get disconnected )= can some one look what i did wrong? heres a link to my small test -> http://www.gamers-wish.com/wing/d2ringar/d2chat.zip

Ringo

Quote from: Wing87 on April 25, 2006, 09:36 AM
after reading the http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=2
i tryed to make some thing that sends the connection info but i just get disconnected )= can some one look what i did wrong? heres a link to my small test -> http://www.gamers-wish.com/wing/d2ringar/d2chat.zip
hi
I dont think u was sending the 0x01 protocol byte before you were sending 0x50.
Try it now, Iv added a quick send buffer class and a few functions to get you started.

Hope this helps

Wing87

tnx alot looking on it you added a bit (=

Wing87

one question must i do this evert time b4 i send some thing

    With Buf
        'put a byte into the buffer
        .InsertBYTE &H1
        'send and clear the buffer
        .SendPacket Me.ws

MyndFyre

No.  The BNCS protocol is started by sending a protocol identifier as soon as you connect.  This is a byte; 1 for binary, 2 for FTP, and 3 for Telnet (which is no longer supported). 
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Wing87

ok tnx how do i get CheckRevision()?
and what does
(BOOLEAN)    Using Spawn (32-bit)
(DWORD)       CD key's product value
(DWORD)       CD key's public value
(STRING)                     Exe Information
(DWORD[5])    Hashed Key Data

mean?


sorry for my noobies >.<

MyndFyre

It means that the packet contains a 32-bit boolean value (1 or 0) about whether you are using a Spawned version of the game, 2 double-words (32 bit values) containing the CD key's product and public values, a null-terminated string containing the file information, and an array of 5 double-words containing a hash of the CD key's private value.

You might want to consider using BNCSUtil to do CheckRevision.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Wing87

i meant what is a CD key's product value is that the CD in its own? or what and the public what is that how do i get these values?
and what exakty is Exe Information the diablo II.exe or what?
what is a Spawned version of the game?

MyndFyre

RTFM.  BNCSUtil (linked above) will get you the CD key and CheckRevision stuff.  The .exe info is included also in BNCSUtil.

Spawn is a feature of Diablo Retail (DRTL) and Starcraft Retail (STAR) that allows you to install a subset of the game to play one map on multiplayer with the CD key owner.

It is very clear to me that you have not attempted a packet capture, because it would be plainly obvious from a packet capture what the .exe information is.  Until you begin to help yourself, you will find very few people here who are willing to help you.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.