yeah but that isn't the problem. edx injects a dll or code into the sro_client and hackshield probably detects it and gives you the problem.
You could write them with binarywriter still, you only have to get the data from bwriter as string and use it as parameter . :)Quote:
This function is a bad one of sarkoplata because using a string is bad.Code:Public Sub SendPacket(ByVal OpCode As String, ByVal sData As String, ByVal Enc As Boolean) Using buffer As New IO.MemoryStream Using w As New IO.BinaryWriter(buffer) w.Write(CUShort(0)) w.Write(CUShort("&H" + OpCode)) If Enc = True Then w.Write(CUShort(3)) Else w.Write(CUShort(2)) End If For n = 0 To sData.Length / 2 - 1 w.Write(CByte("&H" & sData.Substring(n * 2, 2))) Next w.BaseStream.Position = 0 w.Write(CUShort(w.BaseStream.Length - 6)) w.Flush() Client.Send(buffer.ToArray) End Using End Using End Sub 'Thanks to sarkoplata
You should change the 2nd parameter too an array of bytes and add those with the binary writer with the list. There are also more things missing in that function but that would do it for now.
Owh and you might want too take a look at some emulators since there are many of them written in C# and some in vb. check out how they handle the packets and there is even a source of phbot available which is vb so you should check it out