• Welcome to Valhalla Legends Archive.
 

Sending/Recieving Packets

Started by dodge, May 18, 2004, 08:16 AM

Previous topic - Next topic

Eli_1

Quote from: dodge on May 19, 2004, 11:28 AM
I'm confused but here's a little guess on sending "0x65"

Winsock1.SendData 0x65


No you don't literally send 0x65. 0x65 is the packet ID. You need to go on bnetdocs and figure out what packet 0x65 actually contains, and send that.

As for how to send it, most people use the PacketBuffer class.

AntiFlame

If you just want to get a bot up and running, this tutorial may be able to help out:

http://cuphead.valhallalegends.com/tutorials/lesson1.htm

If not, I suggest you go learn the basics of Winsock programming with Visual Basic.  There are several good tutorials out there.

http://pscode.com/vb/scripts/ShowCode.asp?txtCodeId=30413&lngWId=1
http://pscode.com/vb/scripts/ShowCode.asp?txtCodeId=38262&lngWId=1

After you understand the basics of Winsock, you will be better able to understand the inner workings of a binary protocol.  Hope that helps.