Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: PaiD on July 05, 2004, 03:16 PM

Title: D2GS 0x065 Help
Post by: PaiD on July 05, 2004, 03:16 PM
Ok I havnt been able to decompress the packets yet but I was lookin at an old post about it and I was able to make 0x65 (I think) but when I send it to d2gs I get so answer and I get sent no packets or anythin.


 Case &HAE:
   With pBuffer
     .InsertNonNTString D2GS.Values2
     .InsertNonNTString D2GS.Values
     .InsertBYTE &H0
     .InsertBYTE &HA
     .InsertDWORD &H0
     .InsertNTString "DueL_Test"
     .InsertBYTE &H0
     .InsertBYTE &H0
     .InsertBYTE &H0
     .InsertBYTE &H0
     .InsertBYTE &H0
     .InsertBYTE &H0
     .InsertBYTE &H0
     .SendD2GSPacket &H65
   End With

Public Function SendD2GSPacket(PacketID As Byte)
If frmMain.sckD2GS.State <> sckConnected Then Exit Function
frmMain.sckD2GS.SendData Chr(PacketID) & Buffer
Clear
End Function

I have hardcoded a few things just for testin. What is wrong?

Edit:

Parsed from 0x04
D2GS.Values = Mid(Data, 6, 2)
D2GS.Values2 = Mid(Data, 14, 4)
Title: Re:D2GS 0x065 Help
Post by: Soul Taker on July 05, 2004, 05:26 PM
I can't tell what class your char is, but the byte before the version byte should identify your char class, if it doesn't already.  Additionally, the last byte in the fixed-len string that contains the char name always seems to be 0x4c (unless, of course, the char name is 15 characters long, in which case it is a null byte), so you should maybe try altering that just to see if it may be checking it.
Title: Re:D2GS 0x065 Help
Post by: PaiD on July 05, 2004, 07:17 PM
The packets sent to d2gs, are they also compressed? or is it just the server responses
Title: Re:D2GS 0x065 Help
Post by: l)ragon on July 05, 2004, 07:45 PM
Quote from: MoNeY on July 05, 2004, 07:17 PM
The packets sent to d2gs, are they also compressed? or is it just the server responses

Server to client  = compressed
client to server = raw data