Packets are usually described from the Serverside view. So incoming means from client to server. Outgoing means from server to client.
Every packet that is being send
from the client to the server can be logged (Which you should enable manually).
You cannot create your own custom packets. The only thing you can do is sending a packet to the client with a certain header value (Often called identifier / header id) and a certain body (The message). The client then checks that in its own list of headers what packet you just send. Then it reads the body and then knows what to show.
In theory it is possible to modify the Habbo.swf to add custom packets and thus being able to trigger certain features by sending a custom created packet
however, nobody has ever tried that.
Here is a packet that sends a alert with a certain message to the client:
Code:
this.response.start(1548);
this.response.appendString(this.message);
What this does it 'starts' a new packet.
Then it adds a string to the packet and then it sends the packet to the client.
What the client does is:
What header is it? Oh it is header 1548 then that means I must use that certain class (class can be instantiated to create a new something in this case class alert).
Because the class has its own structure it knows it should read a string.
Then when the string has been read it knows what to do, in this case show a new alert box and the message is the string we just send.
I'm not sure what parts you're willing to learn. If you could just post here I'll tell you what I know
