Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Hero on July 07, 2005, 06:46 PM

Title: Diablo 2 Expansion Connection Problems
Post by: Hero on July 07, 2005, 06:46 PM
It ip bans me when I try to connect to diablo 2 expansion, all other clients work.

    InsertDWORD dblkey
    InsertDWORD version
    InsertDWORD CheckSum
    If varProduct = "PX2D" Then
    InsertDWORD &H2
    Else
    InsertDWORD 1
    End If
    InsertDWORD 0
    InsertDWORD Len(varCDkey)
    InsertDWORD CLng(dblProdID)
    InsertDWORD CLng(dblValue1)
    InsertDWORD 0
    InsertNonNTString AccountHash
    InsertNTString exeinfo
    InsertNTString "Register"
    sendPacket 81


Please help.
Title: Re: Diablo 2 Expansion Connection Problems
Post by: warz on July 07, 2005, 06:53 PM
Diablo 2 XP has 2 cdkeys. You need to supply the hashed information for both. Also, if you're going to be using the dec. value for packet id's - it'd probably be easiest to make some consts.

private const SID_AUTH_CHECK = 81
Title: Re: Diablo 2 Expansion Connection Problems
Post by: Archangel on July 07, 2005, 07:00 PM
(DWORD)       Client Token
(DWORD)       EXE Version
(DWORD)       EXE Hash
(DWORD)       Number of keys in this packet
(BOOLEAN)    Using Spawn (32-bit)

For Each Key:
(DWORD)       Key Length
(DWORD)       CD key's product value
(DWORD)       CD key's public value
(DWORD)       Unknown (0)
(DWORD[5])    Hashed Key Data

(STRING)     Exe Information
(STRING)     CD Key owner name

Packet Format from BNETDOCS.


    InsertDWORD dblkey
    InsertDWORD version
    InsertDWORD CheckSum

    'Number of Cd-Keys in the packet.
    If varProduct = "PX2D" Then
    '2 Cd-Keys in this packet.
    InsertDWORD &H2
    Else
    '1 Cd-Key in this packet.
    InsertDWORD 1
    End If

    InsertDWORD 0

    'Cd-Key 1 Data.
    InsertDWORD Len(varCDkey)
    InsertDWORD CLng(dblProdID)
    InsertDWORD CLng(dblValue1)
    InsertDWORD 0
    InsertNonNTString AccountHash

    If varProduct = "PX2D" Then
    'Cd-Key 2 Data.
    End if

    InsertNTString exeinfo
    InsertNTString "Register"
    sendPacket 81
Title: Re: Diablo 2 Expansion Connection Problems
Post by: Hero on July 07, 2005, 07:19 PM
thanks arch angel, i'm good now.
Title: Re: Diablo 2 Expansion Connection Problems
Post by: Networks on July 07, 2005, 07:22 PM
That's the spirit just give the newbies the code!
Title: Re: Diablo 2 Expansion Connection Problems
Post by: Blaze on July 07, 2005, 07:27 PM
Quote from: Networks.fe on July 07, 2005, 07:22 PM
That's the spirit just give the newbies the code!
Actually he just added comments to the person he was helpings code...
Title: Re: Diablo 2 Expansion Connection Problems
Post by: Hero on July 07, 2005, 07:33 PM
i love your networks, go make a bot.
Title: Re: Diablo 2 Expansion Connection Problems
Post by: Networks on July 07, 2005, 07:37 PM
Quote from: Blaze on July 07, 2005, 07:27 PM
Quote from: Networks.fe on July 07, 2005, 07:22 PM
That's the spirit just give the newbies the code!
Actually he just added comments to the person he was helpings code...

So does bnetdocs! Imagine that!

Quote
i love your networks, go make a bot.

I know you love my networks, they have good bandwidth. Nah, you're leeching one already, what's the point?
Title: Re: Diablo 2 Expansion Connection Problems
Post by: Hero on July 07, 2005, 07:46 PM
What one?
Title: Re: Diablo 2 Expansion Connection Problems
Post by: Warrior on July 07, 2005, 08:06 PM
What's with the sudden wave of arrogance? He seeked help, he got it. You havn't contributed anything to this thread except bitch about someone was helped. Good job.
Title: Re: Diablo 2 Expansion Connection Problems
Post by: LivedKrad on July 07, 2005, 09:17 PM
Networks is a supremacist for the racial group: Fans of Networks!
Title: Re: Diablo 2 Expansion Connection Problems
Post by: Hero on July 09, 2005, 12:37 AM
As I said before some one deleted my post, I shall lock this topic before networks says more stupid ass shit.