Valhalla Legends Forums Archive | Battle.net Bot Development | Diablo 2 Expansion Connection Problems

AuthorMessageTime
HeRo
It ip bans me when I try to connect to diablo 2 expansion, all other clients work.

[code]    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
[/code]

Please help.
July 7, 2005, 11:46 PM
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
July 7, 2005, 11:53 PM
Archangel
(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.

[code]
    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
[/code]
July 8, 2005, 12:00 AM
HeRo
thanks arch angel, i'm good now.
July 8, 2005, 12:19 AM
Networks
That's the spirit just give the newbies the code!
July 8, 2005, 12:22 AM
KkBlazekK
[quote author=Networks.fe link=topic=12134.msg119544#msg119544 date=1120782173]
That's the spirit just give the newbies the code!
[/quote]Actually he just added comments to the person he was helpings code...
July 8, 2005, 12:27 AM
HeRo
i love your networks, go make a bot.
July 8, 2005, 12:33 AM
Networks
[quote author=Blaze link=topic=12134.msg119545#msg119545 date=1120782460]
[quote author=Networks.fe link=topic=12134.msg119544#msg119544 date=1120782173]
That's the spirit just give the newbies the code!
[/quote]Actually he just added comments to the person he was helpings code...
[/quote]

So does bnetdocs! Imagine that!

[quote]
i love your networks, go make a bot.
[/quote]

I know you love my networks, they have good bandwidth. Nah, you're leeching one already, what's the point?
July 8, 2005, 12:37 AM
HeRo
What one?
July 8, 2005, 12:46 AM
Quarantine
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.
July 8, 2005, 1:06 AM
LivedKrad
Networks is a supremacist for the racial group: Fans of Networks!
July 8, 2005, 2:17 AM
HeRo
As I said before some one deleted my post, I shall lock this topic before networks says more stupid ass shit.
July 9, 2005, 5:37 AM

Search