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...
Anyone going to help ....?
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.
Sorry Grok its just that i posted that like 4 hrs ago and noone has answered -.-
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.
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: 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.
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 >:(
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?
Ok..
I forgot to
Dim Buffer As String
As buffer was sending the info... like Buffer = Buffer & bleh bleh bleh ..
Then sends it later -.-
but it seems you won't give a good one anyway. I was hoping it might be informative to others, but nevermind.