Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: One-Way on September 09, 2005, 06:46 PM

Title: Need help with packet 0x68
Post by: One-Way on September 09, 2005, 06:46 PM
    With PB
        .InsertDWORD GetDWORD(GameHash)
        .InsertWORD GetWORD(GameByte)
        .InsertBYTE "&H" & CharByte
        .InsertPString CharName , 15
        .SendD2GSPacket2 &H68
    End With

what is wrong?
Title: Re: Need help with packet 0x68
Post by: Talora on October 15, 2005, 01:57 PM
I cannot stress this enough, stop ripping sources from random bots and read the documents that Valhalla legends Provides for you.
Quote(DWORD)       D2GS Server Hash
(WORD)       D2GS Server Token
(BYTE)       Character ID
(DWORD)       Version byte (Currently 0x0B)
(DWORD)       Unknown - Suggested Const (0xED5DCC50)
(DWORD)       Unknown - Suggested Const (0x91A519B6)
(BYTE)       Unknown - Suggested (0x00)
(STRING)     Character name
(VOID)       *See user-comment below

Possible Character IDs:
0x00 - Amazon
0x01 - Sorceress
0x02 - Necromancer
0x03 - Paladin
0x04 - Barbarian
0x05 - Druid
0x06 - Assassin

Send the version byte too maybe? And read what bnetdocs has to offer?
Also if you think Im being a jackass...
http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=447
-Talora
Title: Re: Need help with packet 0x68
Post by: LivedKrad on October 15, 2005, 02:29 PM
Quote from: One-Way on September 09, 2005, 06:46 PM
    With PB
        .InsertDWORD GetDWORD(GameHash)
        .InsertWORD GetWORD(GameByte)
        .InsertBYTE "&H" & CharByte
        .InsertPString CharName , 15
        .SendD2GSPacket2 &H68
    End With

what is wrong?

Where did you find that anyway? I added the current 0x68 documentation on BnetDocs ages ago. If you're going to look at how an already-made bot does it, at least get one up-to-date :P.
Title: Re: Need help with packet 0x68
Post by: Elneroth on October 16, 2005, 10:06 PM
Quote from: Talora on October 15, 2005, 01:57 PM
I cannot stress this enough, stop ripping sources from random bots and read the documents that Valhalla legends Provides for you.

Send the version byte too maybe? And read what bnetdocs has to offer?
Also if you think Im being a jackass...
http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=447
-Talora

.. and what proof do you have that he stole it? I see you helped him with the BNETDocs information, but flaming = not cool ;)

You're missing 3 entries, not just the version byte. (according to the information talora provided, don't know if that's up to date or not.)

With PB
        .InsertDWORD GetDWORD(GameHash)
        .InsertWORD GetWORD(GameByte)
        .InsertBYTE "&H" & CharByte
        .InsertDWORD (Version Byte Here)
        .InsertDWORD &HED5DCC50
        .InsertDWORD &H91A519B6
        .InsertPString CharName , 15
        .SendD2GSPacket2 &H68
End With
Title: Re: Need help with packet 0x68
Post by: Explicit on October 16, 2005, 10:08 PM
Elneroth, haven't seen you in awhile. :)
Title: Re: Need help with packet 0x68
Post by: Elneroth on October 16, 2005, 10:10 PM
Hey, send me an IM!: Galdunn
Title: Re: Need help with packet 0x68
Post by: Explicit on October 16, 2005, 10:10 PM
Way ahead of you.
Title: Re: Need help with packet 0x68
Post by: LivedKrad on November 16, 2005, 04:32 PM
Quote from: Elneroth on October 16, 2005, 10:06 PM
Quote from: Talora on October 15, 2005, 01:57 PM
I cannot stress this enough, stop ripping sources from random bots and read the documents that Valhalla legends Provides for you.

Send the version byte too maybe? And read what bnetdocs has to offer?
Also if you think Im being a jackass...
http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=447
-Talora

.. and what proof do you have that he stole it? I see you helped him with the BNETDocs information, but flaming = not cool ;)

You're missing 3 entries, not just the version byte. (according to the information talora provided, don't know if that's up to date or not.)

With PB
        .InsertDWORD GetDWORD(GameHash)
        .InsertWORD GetWORD(GameByte)
        .InsertBYTE "&H" & CharByte
        .InsertDWORD (Version Byte Here)
        .InsertDWORD &HED5DCC50
        .InsertDWORD &H91A519B6
        .InsertPString CharName , 15
        .SendD2GSPacket2 &H68
End With

If it isn't, let me know. I haven't been on Diablo 2 in quite some time and have lost touch with the current installment of the D2GS protocol.