[Help Request ] About Packets

12/20/2013 03:14 Eslam Galull#1
Hallo Guys !

i just Get some info about packets and connection

i already connected to phCOnnter

Login Game success

Here is the Problem :

We i used That Function TO send Packets :
HTML Code:
Sub SendPacket(ByVal OpCode As String, ByVal sData As String)
        Using buffer As New IO.MemoryStream
            Using w As New IO.BinaryWriter(buffer)
                w.Write(CUShort(0))
                w.Write(CUShort("&H" + OpCode))
                w.Write(CUShort(1))

                For i = 0 To sData.Length / 2 - 1
                    w.Write(CByte("&H" & sData.Substring(i * 2, 2)))
                Next

                w.BaseStream.Position = 0
                w.Write(CUShort(w.BaseStream.Length - 6))
                w.Flush()

                sroSocket.Send(buffer.ToArray)
            End Using
        End Using
    End Sub
and The Send Code is

Quote:
SendPacket("704F", "04")
it Works Good For Setdown and Stand Up
this packet C>S like that
[C -> S][704F]
04

But How Can i Send Packet Like that :
[C -> S][7074]
01
02
01
6E 05 1A 00


i know my it a Stupid Question But i Dunno !
12/20/2013 17:25 worldgs#2
7074 --> I think you want to make pick items with by character.
01 // nothing
02// nothing
01 // nothing
6E 05 1A 00 // char id

but this part doesn't work without spawn packet so you need to parse spawn packet and check drops.
12/20/2013 18:26 Eslam Galull#3
Forget this i mean how i can send that lenght of msg

SendPacket("704F", "04")
this is only 2 Lines frist one name of packet sec i dunno what is that

but the others packets is like what i Post more than 1 line .. Understand my Question ?
12/20/2013 21:17 ^AquaFresh^#4
SendPacket("7074", "0102016E051A00")
12/21/2013 04:05 Eslam Galull#5
Quote:
Originally Posted by ^AquaFresh^ View Post
SendPacket("7074", "0102016E051A00")
<3 thats all xD


Closed Tell i FOund another problem :D