Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: gotcha_ass on January 24, 2003, 07:18 PM

Title: I need some help starting my chat client
Post by: gotcha_ass on January 24, 2003, 07:18 PM
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?
Title: Re: I need some help starting my chat client
Post by: RhiNo on January 25, 2003, 01:02 PM
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.
Title: Re: I need some help starting my chat client
Post by: gotcha_ass on January 25, 2003, 01:39 PM
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??
Title: sryRe: I need some help starting my chat client
Post by: RhiNo on January 25, 2003, 01:53 PM
o what i posted isnt for a binary log in thats just a chat bot that can only go to public chans
Title: Re: I need some help starting my chat client
Post by: Noodlez on January 25, 2003, 05:11 PM
Chr(3) & Chr(4) is a carriage return, you could also use vbCrLf
Title: Re: I need some help starting my chat client
Post by: Spht on January 25, 2003, 05:24 PM
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.
Title: Re: I need some help starting my chat client
Post by: gotcha_ass on January 25, 2003, 06:22 PM
ohh ok

yall have any info on the binary logon??
Title: Re: I need some help starting my chat client
Post by: celluloid on January 25, 2003, 10:40 PM
theres tons of it floating around on this forum.

btw check out http://botdev.valhallalegends.com
it has some good docs to check out.
Title: Re: I need some help starting my chat client
Post by: ILurker on February 09, 2003, 10:11 AM
Studying other bot sources often helps, just dont copy the sources completely  ;)
Title: Re: I need some help starting my chat client
Post by: Crypticflare on February 09, 2003, 10:30 AM
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