Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: One-Way on September 13, 2005, 06:42 AM

Title: [VB] D2GS_LOGON C -> S 0x68
Post by: One-Way on September 13, 2005, 06:42 AM
i get the packet 0xAF then i send the packet 0x68 but i get "Game socket Error 10053 Connection is aborted due to timeout or other failure" i dont now what is wrong....can any help?

Public Sub packetgame_0x68()
    With PB
        .InsertDWORD GetDWORD(GameHash)
        .InsertWORD GetWORD(GameByte)
        .InsertBYTE &H4
        .InsertDWORD &HB
        .InsertDWORD &HED5DCC50
        .InsertDWORD &H91A519B6
        .InsertBYTE &H2
        .InsertPString CharName & functions.HexToStr("00"), 16
        .SendD2GSPacket2 &H68
    End With
    AddC vbRed, "Send Logon 0x68"
End Sub

Title: Re: [VB] D2GS_LOGON C -> S 0x68
Post by: l2k-Shadow on September 13, 2005, 08:34 AM
You are assembling the packet incorrectly, check out my user comment in Bnetdocs (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=447).
Title: Re: [VB] D2GS_LOGON C -> S 0x68
Post by: One-Way on September 13, 2005, 12:34 PM
thx Shadow...

but i send:
68 0c f9 80 27 e4 02 04 0b 00 00 00 50 cc 5d ed b6 19 a5 91 02 43 61 72 65 6e 2d 4d 69 78 49 49 00 00 00 00 00

and the orginal is:
68 53 70 1B 27 AA 03 04 0B 00 00 00 50 CC 5D ED B6 19 A5 91 00 43 61 72 65 6E 2D 4D 69 78 49 49 00 00 00 00 00

i dont now what is wrong...
Title: Re: [VB] D2GS_LOGON C -> S 0x68
Post by: l2k-Shadow on September 13, 2005, 05:29 PM
You are getting incorrect Game Token and Game Hash values... they are located in packet 0x04 - MCP_JOINGAME (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=364).

Also

        .InsertDWORD &HB
        .InsertDWORD &HED5DCC50
        .InsertDWORD &H91A519B6
        .InsertBYTE &H2


.InsertByte &H0

read bnetdocs ;p
Title: Re: [VB] D2GS_LOGON C -> S 0x68
Post by: One-Way on September 13, 2005, 05:50 PM
thx shadow !!!

i read drink too mutch du undestat that but i read that tommror i'm so happy that anny help me ;D
Title: Re: [VB] D2GS_LOGON C -> S 0x68
Post by: One-Way on September 15, 2005, 08:49 AM
i have edit my code
so the orginal:
68 33 16 0b 2f 70 03 04 0b 00 00 00 50 cc 5d ed b6 19 a5 91 02 43 61 72  65 6e 2d 4d 69 78 49 49 00 00 00 00 00

i send :

68 52 71 4b 08 70 03 04 0b 00 00 00 50 cc 5d ed b6 19 a5 91 02 43 61 72  65 6e 2d 4d 69 78 49 49 00 00 00 00 00

then i get the "02 5C" and i resend 0x66 and 0x6d is this raight?
Title: Re: [VB] D2GS_LOGON C -> S 0x68
Post by: Ringo on September 15, 2005, 08:55 AM
On recving compressed 0x5C02, then you should send a 0x6D packet, and a 0x6B packet to enter the game.
You wont need to send a 0x66 unless you recv 0xAE, but at the moment, warden client is still switched off.
Title: Re: [VB] D2GS_LOGON C -> S 0x68
Post by: One-Way on September 15, 2005, 09:35 AM
the 0x6d is the ping packet?

  .InsertDWORD GetTickCount
  .InsertDWORD &H0
  .InsertDWORD &H0
  .SendGPacket &H6D

right?
Title: Re: [VB] D2GS_LOGON C -> S 0x68
Post by: One-Way on September 15, 2005, 09:39 AM
its works but what is the exit packet?
Title: Re: [VB] D2GS_LOGON C -> S 0x68
Post by: Ringo on September 15, 2005, 09:42 AM
http://forum.valhallalegends.com/phpbbs/index.php?topic=11756.msg115221#msg115221
Iv just updated a few formats, the leave game packet is now 0x69
Title: Re: [VB] D2GS_LOGON C -> S 0x68
Post by: One-Way on September 15, 2005, 09:45 AM
big thx ;)