Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: ChR0NiC on November 24, 2003, 09:11 PM

Title: Create Account (tested and works)
Post by: ChR0NiC on November 24, 2003, 09:11 PM
Public Declare Function X Lib "BnetAuth.dll" _
(ByVal outbuf As String, ByVal password As String) As Long

Public Sub CreateAccount(Username As String, password As String)
   Dim Result As Boolean
   Dim Hash As String
   Hash = String(5 * 4, vbNullChar)
   Result = X(Hash, password)

   If Result = True Then
       packetbuf.InsertNonNTString Hash
       packetbuf.InsertNTString Username
       packetbuf.SendPacket frmMain.sckBnet, &H3D
       addText "Created " & Username & "/" & password & " successfully!", AtomicGreen
   Else
       addText "Error:  Failed to create the account " & Username, AtomicRed
       frmMain.sckBnet.Close
   End If
End Sub


I hope this will help anyone who is trying to get the "Create Account" to work.
Title: Re:Create Account (tested and works)
Post by: Turbo on November 24, 2003, 09:13 PM
Quote from: ChR0NiC on November 24, 2003, 09:11 PM
Public Declare Function X Lib "BnetAuth.dll" _
(ByVal outbuf As String, ByVal password As String) As Long

Public Sub CreateAccount(Username As String, password As String)
   Dim Result As Boolean
   Dim Hash As String
   Hash = String(5 * 4, vbNullChar)
   Result = X(Hash, password)

   If Result = True Then
       packetbuf.InsertNonNTString Hash
       packetbuf.InsertNTString Username
       packetbuf.SendPacket frmMain.sckBnet, &H3D
       addText "Created " & Username & "/" & password & " successfully!", AtomicGreen
   Else
       addText "Error:  Failed to create the account " & Username, AtomicRed
       frmMain.sckBnet.Close
   End If
End Sub


I hope this will help anyone who is trying to get the "Create Account" to work.

I already posted code for account creation like a few days ago.
Title: Re:Create Account (tested and works)
Post by: ChR0NiC on November 24, 2003, 09:16 PM
Quote from: Turbo on November 24, 2003, 09:13 PM

I already posted code for account creation like a few days ago.

I just wanted to feel special  ;D
Don't take that away from me  >:(
Title: Re:Create Account (tested and works)
Post by: Soul Taker on November 25, 2003, 09:48 AM
ANd 90% of it is done by a dll neither of you made, so hush.
Title: Re:Create Account (tested and works)
Post by: ObsidianWolf on November 25, 2003, 01:50 PM
and how much of the code is original?
Title: Re:Create Account (tested and works)
Post by: Banana fanna fo fanna on November 25, 2003, 02:35 PM
probably from ethbot.
Title: Re:Create Account (tested and works)
Post by: ObsidianWolf on November 25, 2003, 02:49 PM
not too much original code floating out there these days.
Title: Re:Create Account (tested and works)
Post by: l)ragon on November 26, 2003, 08:37 AM
Quote from: UserLoser. on November 25, 2003, 05:38 PM
Quote from: Soul Taker on November 25, 2003, 09:48 AM
ANd 90% of it is done by a dll neither of you made, so hush.

Who originally made BnetAuth.dll?

Zorm did.
Title: Re:Create Account (tested and works)
Post by: Mesiah / haiseM on November 26, 2003, 01:15 PM
wrong, Stu did, and he gave the source to zorm (BTW i still have the original BnetAuth.dll source if anybody wants it) Stu decided to go ahead and release it, then Raihan and other people got there hands on it, and now u see those lame functions named A and C and whatever else is in them.

/me feels like a history teacher :-D
Title: Re:Create Account (tested and works)
Post by: Bannable on November 30, 2003, 11:45 AM
Quote from: MesiaH on November 26, 2003, 01:15 PM
wrong, Stu did, and he gave the source to zorm (BTW i still have the original BnetAuth.dll source if anybody wants it) Stu decided to go ahead and release it, then Raihan and other people got there hands on it, and now u see those lame functions named A and C and whatever else is in them.

/me feels like a history teacher :-D

I would like to see how BnetAuth.dll works, I haven't been able to figure out how to do the stuff it does yet  :-\
Title: Re:Create Account (tested and works)
Post by: Zakath on November 30, 2003, 08:34 PM
It's simply a DLL written in C++ containing implementations of various functions used during the logon process. It contains Yobguls' CheckRevision function, for example, although it exports it as 'Z' for some idiotic reason. Everything in it is available to the public, I think.

There have almost certainly been additions to this library since the revision of the source that I have, but I doubt there have been any significant alterations to it aside from that.
Title: Re:Create Account (tested and works)
Post by: Mesiah / haiseM on December 01, 2003, 12:02 AM
For those of you who have PM'ed me and are interested in the somewhat original source to BnetAuth.dll, please visit this thread:

http://forum.valhallalegends.com/phpbbs/index.php?board=30;action=display;threadid=3986
Title: Re:Create Account (tested and works)
Post by: Maddox on December 02, 2003, 12:49 AM
IIRC, bnetauth was compiled by stu from code from the old botdev forum.