Valhalla Legends Forums Archive | Battle.net Bot Development | Create Account For BnetAuth users out there

AuthorMessageTime
Turbo
[code]
Private Declare Function CreateAccount Lib "bnetauth.dll" (ByVal outbuf As String, ByVal password As String) As Long


Public Sub caCreateAccount()
Dim cahash As String
cahash = String(5 * 4, vbNullChar)
Call CreateAccount(cahash , varPassword)

Packet.InsertNonNTString cahash
Packet.InsertNTString varAccount
Packet.SendPacket &H3D
End Sub
[/code]
November 23, 2003, 12:22 AM
Stealth
You're hashing the password into the variable cahash, then attaching accounthash to the outgoing packet, thus getting absolutely nowhere. I'd recommend adding Option Explicit to the top of your module so you can't reference variables without declaring them, it'll probably help you avoid errors like that in the future.
November 23, 2003, 12:24 AM
Maddox
[quote author=Stealth link=board=17;threadid=3775;start=0#msg30767 date=1069547050]
You're hashing the password into the variable cahash, then attaching accounthash to the outgoing packet, thus getting absolutely nowhere. I'd recommend adding Option Explicit to the top of your module so you can't reference variables without declaring them, it'll probably help you avoid errors like that in the future.
[/quote]

What are you talking about?
November 23, 2003, 1:18 AM
Kp
[quote author=Maddox link=board=17;threadid=3775;start=0#msg30780 date=1069550280]
What are you talking about?[/quote]

Look at the edit times. After Stealth told him about it, he changed the code.
November 23, 2003, 1:36 AM
Maddox
[quote author=Kp link=board=17;threadid=3775;start=0#msg30788 date=1069551399]
[quote author=Maddox link=board=17;threadid=3775;start=0#msg30780 date=1069550280]
What are you talking about?[/quote]

Look at the edit times. After Stealth told him about it, he changed the code.
[/quote]

Damn edit, should be disabled after a certain number of minutes.
November 23, 2003, 4:57 AM
Adron
That's stupid. Edits shouldn't be disabled. This was an example posted for people to use; if there's a flaw in the example it should be corrected. People shouldn't have to read all the way to the bottom of a possibly 10 page long thread to find out that there was a bug in the original example posted.
November 24, 2003, 5:02 PM
Skywing
[quote author=Adron link=board=17;threadid=3775;start=0#msg31121 date=1069693339]
That's stupid. Edits shouldn't be disabled. This was an example posted for people to use; if there's a flaw in the example it should be corrected. People shouldn't have to read all the way to the bottom of a possibly 10 page long thread to find out that there was a bug in the original example posted.
[/quote]
It would, however, be nice if the poster had left a note explaining what they had changed.
November 24, 2003, 5:20 PM
Adron
[quote author=Skywing link=board=17;threadid=3775;start=0#msg31122 date=1069694413]
It would, however, be nice if the poster had left a note explaining what they had changed.
[/quote]

Absolutely. I mostly do that when I edit posts, i.e. add it any time I think someone might wonder.
November 24, 2003, 6:12 PM
Kp
[quote author=Adron link=board=17;threadid=3775;start=0#msg31126 date=1069697567]
[quote author=Skywing link=board=17;threadid=3775;start=0#msg31122 date=1069694413]
It would, however, be nice if the poster had left a note explaining what they had changed.
[/quote]

Absolutely. I mostly do that when I edit posts, i.e. add it any time I think someone might wonder.
[/quote]

and if everybody was polite enough to do that, it wouldn't be necessary to go blocking edits after a certain period of time. As a minor workaround to our workaround, moderators could still edit his source to fix it once he decides what he wants it to be.
November 24, 2003, 8:34 PM

Search