[Help] Simple Sit Packet.

01/06/2013 11:51 idohadar#1
I programing C++, And I amde in the past a simple program that connect to the PhConnector and make the character Sit or Stand.
I don't have the source now and I try to rember how I did it ..

PHP Code:
BYTE Pack[7] =
{
    
0x010x00// Packet length
    
0x4F0x70// Opcode
    
0x000x00// Direction to send it
    
0x04 // Packet data    
}; 
PHP Code:
send(Socket, (char*)Pack70); 
or
PHP Code:
send(Socket, (char*)&Pack70); 
I'm using TCP and its not working ..
01/06/2013 12:06 Schickl#2
This one
Code:
send(Socket, (char*)Pack, 7, 0);
is correct

I never used phConnector, but i guess it's not different from nuconnector/srproxy, so the 5th byte must be either 1 or 2.
Can't remember if 1 means that it should be sent to the server, or if it was 2. Just try it out
01/06/2013 13:37 idohadar#3
Nvm working. thanks.
01/12/2013 16:14 intercsaki#4
What was the solution, if I can ask? (Educational purposes here)
01/13/2013 05:30 Vinator#5
Quote:
Originally Posted by intercsaki View Post
What was the solution, if I can ask? (Educational purposes here)
Like Schickl said the Proxy needs it's Security Byte, which can be 1, 2, 3 and 4.

For phConnector:
0x0001 Unencrypted to the Server
0x0002 Unencrypted to the Client

0x0003 Encrypted to the Server
0x0004 Encrypted to the Client
02/24/2013 18:22 [GM]Obvlision#6
Wish I could help dude