• Welcome to Valhalla Legends Archive.
 

I need some help starting my chat client

Started by gotcha_ass, January 24, 2003, 07:18 PM

Previous topic - Next topic

gotcha_ass

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?

RhiNo

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.

gotcha_ass

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

RhiNo

#3
o what i posted isnt for a binary log in thats just a chat bot that can only go to public chans

Noodlez

#4
Chr(3) & Chr(4) is a carriage return, you could also use vbCrLf

Spht

#5
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.

gotcha_ass

#6
ohh ok

yall have any info on the binary logon??

celluloid

#7
theres tons of it floating around on this forum.

btw check out http://botdev.valhallalegends.com
it has some good docs to check out.

ILurker

#8
Studying other bot sources often helps, just dont copy the sources completely  ;)

Crypticflare

#9
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