• Welcome to Valhalla Legends Archive.
 

D2GS 0x065 Help

Started by PaiD, July 05, 2004, 03:16 PM

Previous topic - Next topic

PaiD

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)

Soul Taker

#1
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.

PaiD

The packets sent to d2gs, are they also compressed? or is it just the server responses

l)ragon

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
*^~·.,¸¸,.·´¯`·.,¸¸,.-·~^*ˆ¨¯¯¨ˆ*^~·.,l)ragon,.-·~^*ˆ¨¯¯¨ˆ*^~·.,¸¸,.·´¯`·.,¸¸,.-·~^*