Ok I am wanting to write a chat client for bnet, but I am confused w/ all the logon protocols, can somebody explain what still works and what I need to use. Also any docs about it. Is it binary logon that you use or what?
What lang? If its vb here is a lil to log on to with a chat bot.
Private Sub Connect_Click()
Winsock1.Connect "useast.battle.net", "6112"
End Sub
Private Sub Winsock1_Connect()
Winsock1.SendData Chr(3) & Chr(4) & frmOpt.txtUser.Text & vbCrLf & frmOpt.txtPass.Text & vbCrLf
End Sub
All that will do is get you connected nuttin more nuttin less.
k, thanks for that lil bit, but what about sending the cdkey and stuff so it can get into the private channels. If sum one can tell me what to send and the format to send it in, I can write the code, I jus need to know what to send.
1 more the thing, in the above code, what does the Chr(4) and Chr(3) mean??
o what i posted isnt for a binary log in thats just a chat bot that can only go to public chans
Chr(3) & Chr(4) is a carriage return, you could also use vbCrLf
QuoteChr(3) & Chr(4) is a carriage return, you could also use vbCrLf
0Dh and 0Ah is the equivalent of vbCrLf. For the chat protocol, the client sends ^C (03h) to specify the connection type and optionally sends ^D (04h) to disable ECHO.
ohh ok
yall have any info on the binary logon??
theres tons of it floating around on this forum.
btw check out http://botdev.valhallalegends.com
it has some good docs to check out.
Studying other bot sources often helps, just dont copy the sources completely ;)
It can help sometimes, but in some instances its hard, because each programmer has a certain way they like to code. I guess the best way to learn anything is grab a book and start a reading