Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: pianka on April 26, 2003, 02:55 PM

Title: D2DV
Post by: pianka on April 26, 2003, 02:55 PM
What happened to to Diablo II original...did they patch the verbyte like they did starcraft...? It says the hashes or version data is wrong, did they patch it or something...grrr...
Title: Re:D2DV
Post by: Camel on April 26, 2003, 03:39 PM
it works fine. do exactly what you do for d2xp, except send 'D2DV' instead of 'D2XP'

[edit] err, don't send your d2xp cd key though =P
Title: Re:D2DV
Post by: pianka on April 26, 2003, 04:46 PM
Quote from: Camel on April 26, 2003, 03:39 PM
[edit] err, don't send your d2xp cd key though =P
lol, its my hashes, they are too old
Title: Re:D2DV
Post by: pianka on April 26, 2003, 05:06 PM
Well... maybe it isn't look at this response I got from trying to load D2DV:

[18:02:16] Unknown Verification Return Value, may need to upgrade game client.

Wtf is that shit, they must have changed the verbyte or SOMETHING...could it still be my hashes, I just downloaded the d2 ones from liquid phlux... it only said diablo 2, it might have been the expansion hashes...? hmm who knows....
Title: Re:D2DV
Post by: Tazo on April 26, 2003, 05:41 PM
get them from www.madz.tk. The exp ones on madz are old, though. The original are fine. Also, what bot are you using...
Title: Re:D2DV
Post by: tA-Kane on April 26, 2003, 05:43 PM
Quote from: PiaNKA on April 26, 2003, 05:06 PMI just downloaded the d2 ones from liquid phlux... it only said diablo 2, it might have been the expansion hashes...? hmm who knows....
Try D2XP and see if the hashes work.
Title: Re:D2DV
Post by: pianka on April 26, 2003, 06:53 PM
Few things:
1) Got it to load D2DV
2) Can't figure out D2XP login sequence, and bnet docs is down :(
3) I downloaded the ones from madz.tk instead, and they worked (obviously)
4) I'm using Chat Nine, a bot that I made...I am now working on statstring parsing and D2 realm stuff (Not working well, cept the statstring parsing, thats working fine)
Uh... I think that's it :)
Title: Re:D2DV
Post by: Camel on April 26, 2003, 08:18 PM
               Select Case GetID
                   Case "PX2D"
                       KeyCount = 2
                       hashout = HashThisCDKey(frmSetup.Cdkey, seed) & _
                                 HashThisCDKey(frmSetup.Cdkey2, seed)
                   Case Else
                       KeyCount = 1
                       hashout = HashThisCDKey(frmSetup.Cdkey, seed)
               End Select
               
               hashout = _
                   MKL(KeyCount) & _
                   MKL(IIf(frmSetup.Spawn, 1, 0)) & _
                   hashout
               
               SendPacket &H51, _
                   MKL(seed) & _
                   MKL(version) & _
                   MKL(CheckSum) & _
                   hashout & _
                   ExeInfo & Chr(0) & _
                   Left(frmSetup.uLogin, 15) & Chr(0)


that's the only difference, IIRC correctly, between D2DV and D2XP

[edit] obviously, you have to send 'D2XP' instead of 'D2DV' though =P

[edit2] that should say 'D2DV' instead of 'D2XP' (> .<)
Title: Re:D2DV
Post by: pianka on April 27, 2003, 05:37 PM
I got it, lol, it wasn't my code, it was the binaries, and I've yet to figure out the D2XP logon sequence. I looked at a bunch of public sources, but they all look completely different from each other, and my source. I wish BNET Docs might get itself up one of these days... *COUGH*
Title: Re:D2DV
Post by: Zakath on April 28, 2003, 09:58 AM
You understand the hashing process and what data you send that pertains to the CD-Key in packet 0x51?

If so, set the CD-Key count to 2 instead of 1, and send the 2nd CD-Key immediately after the first. That's the only difference.
Title: Re:D2DV
Post by: Camel on April 28, 2003, 09:41 PM
+1 to zak for repeating what i said and not calling himself "st0rm"
Title: Re:D2DV
Post by: Banana fanna fo fanna on April 29, 2003, 07:15 PM
...?
Title: Re:D2DV
Post by: Tazo on April 30, 2003, 05:19 AM
Quote from: Camel on April 28, 2003, 09:41 PM
+1 to zak for repeating what i said and not calling himself "st0rm"
I don't get it either ^^