• Welcome to Valhalla Legends Archive.
 

BNLS Problem...

Started by TriCk, November 15, 2003, 05:35 PM

Previous topic - Next topic

TriCk

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

TriCk

Anyone going to help ....?

Grok

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.

TriCk

Sorry Grok its just that i posted that like 4 hrs ago and noone has answered -.-

Kp

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.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Dyndrilliac

#5
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.
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

Kp

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.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

TriCk

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 >:(

Kp

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?
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

TriCk

Ok..
I forgot to

Dim Buffer As String

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

Then sends it later -.-

Kp

but it seems you won't give a good one anyway.  I was hoping it might be informative to others, but nevermind.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!