Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: TriCk on November 15, 2003, 05:35 PM

Title: BNLS Problem...
Post by: TriCk on November 15, 2003, 05:35 PM
vb6,

Okay, after I send packet &HE on the Winsock's Connect...

Private Sub sck1_Connect()
   AddText "Connected to BNLS!"
   InsertNTString BNLSUsername
   sendBNLSPacket &HE
End Sub


It doesn't go any further, i investigated this, and on sck1_Close i put


AddText "Disconnected from BNLS"



And it's disconnecting when it sends the BNLSPacket &HE ... i thought it might have been a wrong password but i tested it and it works on my other bot ...

I realised &HE sends the Chr(14) ... then its supposed to send Chr(15) and Chr(13) but it only sends Chr(14) and disconnects...
Title: Re:BNLS Problem...
Post by: TriCk on November 15, 2003, 06:11 PM
Anyone going to help ....?
Title: Re:BNLS Problem...
Post by: Grok on November 15, 2003, 07:08 PM
Quote from: TriCk on November 15, 2003, 06:11 PM
Anyone going to help ....?

Dude, this isn't a chat room.  Don't expect to snap your fingers and get a useful response.
Title: Re:BNLS Problem...
Post by: TriCk on November 15, 2003, 07:23 PM
Sorry Grok its just that i posted that like 4 hrs ago and noone has answered -.-
Title: Re:BNLS Problem...
Post by: Kp on November 15, 2003, 07:40 PM
Quote from: TriCk on November 15, 2003, 07:23 PM
Sorry Grok its just that i posted that like 4 hrs ago and noone has answered -.-
You waited less than 40 minutes before responding to it the first time.  Even now, it's only just been 2 hours since your original request.
Title: Re:BNLS Problem...
Post by: Dyndrilliac on November 15, 2003, 07:51 PM
Hmm, it may not be working because the bot is reading the sent packet as 0xE, which to my knowledge, doesn't exist. The correct packet for BNLS_AUTHORIZE is 0x0E (According to BnetDocs) - which is probably why it disconnects you.Private Sub sck1_Connect()
   AddText "Connected to BNLS!"
   InsertNTString BNLSUsername
   sendBNLSPacket &H0E
End Sub
Try that and get back to me. also check your sendBNLSpacket function.

Edit: Btw - If im wrong about the above, let me know.
Title: Re:BNLS Problem...
Post by: Kp on November 15, 2003, 09:11 PM
Quote from: Dyndrilliac on November 15, 2003, 07:51 PM
Hmm, it may not be working because the bot is reading the sent packet as 0xE, which to my knowledge, doesn't exist. The correct packet for BNLS_AUTHORIZE is 0x0E (According to BnetDocs) - which is probably why it disconnects you.Private Sub sck1_Connect()
   AddText "Connected to BNLS!"
   InsertNTString BNLSUsername
   sendBNLSPacket &H0E
End Sub
Try that and get back to me. also check your sendBNLSpacket function.

Edit: Btw - If im wrong about the above, let me know.
You're wrong. :)  The leading zero should have no effect on the number.  Whether to write 0xe, 0xE, 0x0e, or 0x0E is entirely a matter of personal style.
Title: Re:BNLS Problem...
Post by: TriCk on November 15, 2003, 11:36 PM
It's ok, it wasnt the packets fault, i simply didnt dim Buffer as String, as i was using buffer to send the packets...  :-X >:(
Title: Re:BNLS Problem...
Post by: Kp on November 15, 2003, 11:50 PM
Quote from: TriCk on November 15, 2003, 11:36 PM
It's ok, it wasnt the packets fault, i simply didnt dim Buffer as String, as i was using buffer to send the packets...  :-X >:(
Explain?
Title: Re:BNLS Problem...
Post by: TriCk on November 15, 2003, 11:56 PM
Ok..
I forgot to

Dim Buffer As String

As buffer was sending the info... like Buffer = Buffer & bleh bleh bleh ..

Then sends it later -.-
Title: That wasn't an explanation.
Post by: Kp on November 16, 2003, 10:42 AM
but it seems you won't give a good one anyway.  I was hoping it might be informative to others, but nevermind.