Valhalla Legends Forums Archive | Battle.net Bot Development | Login and pass Invalid..

AuthorMessageTime
FLiPPY_
(Visual basic 6) Yes I double checked the password.. and username. Ok.. so I've decided to try and make a bot with hashes.. (already did the CSB) so it like says this.. when you try to connect

Connected To useast.battle.net
Battle.net Accepted Your Game Version
Sending 0x09 Packet..
Sending CDKey..
Sending Client Register..

CDKey Verified!
Sending Username..
Sending Password..
Login Failed!

The problem I'm having is with the Login Valid part..
I guess heres my code fro send username and password
[code]
Public Sub SendstrUserPassword(strUser As String, Password As String)
On Error Resume Next
Dim dbseed As Double
Dim dblkey As Double
Dim dblSeed As Double
Dim lngSeed As Long
Dim lngKey As Long
Dim lngValue1 As Long
Dim lngValue2 As Long
Dim lngValue3 As Long
Name = strUser
pass = Password
dblSeed = Val("&h" & StrToHex(StrReverse(serverhash)))
dblkey = GetTickCount
lngSeed = CLng(dblSeed)
lngKey = CLng(dblkey)
HashPass Password, Len(Password), lngKey, lngSeed, lngValue1, lngValue2, lngValue3
pbuffer.InsertDWORD CLng(dblkey)
pbuffer.InsertDWORD CLng(dblSeed)
pbuffer.InsertDWORD lngKey
pbuffer.InsertDWORD lngSeed
pbuffer.InsertDWORD lngValue1
pbuffer.InsertDWORD lngValue2
pbuffer.InsertDWORD lngValue3
pbuffer.InsertNTString strUser
pbuffer.sendPacket &H29
AddSpeech vbYellow, "Sending Username.."
AddSpeech vbYellow, "Sending Password.."
End Sub
[/code]

Maybe something is out of date?
edit - yes i did see this post.. https://davnit.net/bnet/vL/phpbbs/index.php?board=17;action=display;threadid=2378
it didnt help..
August 29, 2003, 9:10 PM
SiMi
that error seems to come up very often, it usually appears when your connecting more then 4 users on the same name.... it happened to me a couple of times. that is just my hypthesis, im not totally sure about this because i never played around with it.
August 30, 2003, 5:56 AM
FLiPPY_
No.. thats not it.. but thanks for the sugestion.
August 30, 2003, 3:21 PM
FLiPPY_
I think I am hte most dumbest man in the world.. where i specified were to get the username and password from the Ini File.. I spelled Configuration as Congfiuration.. so it didn't load the pass.. anyways it's fixed now. :D
September 1, 2003, 1:48 PM
Soul Taker
This is why you should debug!
September 1, 2003, 6:18 PM
Adron
Yes, that should have been an obvious error when stepping through the code.
September 1, 2003, 6:35 PM

Search