• Welcome to Valhalla Legends Archive.
 

Diablo 2 Expansion Connection Problems

Started by Hero, July 07, 2005, 06:46 PM

Previous topic - Next topic

Hero

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.

warz

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

Archangel

#2
(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
I'm not an Addict.

Hero


Networks

That's the spirit just give the newbies the code!

Blaze

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...
Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No

Hero


Networks

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?

Hero


Warrior

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.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

LivedKrad

Networks is a supremacist for the racial group: Fans of Networks!

Hero

As I said before some one deleted my post, I shall lock this topic before networks says more stupid ass shit.