Join Room: Difference between revisions

From Club Penguin Protocol
Jump to navigation Jump to search
imported>Jadbalout
No edit summary
imported>Lisured
No edit summary
 
Line 1: Line 1:
{{Stub}}
{{PacketInfobox
[[Category:Navigation Handlers]]
|title = Join Room
The packet is sent by the client to the server requesting a user be added to the room. In response, the server can deny the the client room if the room ID doesn't exist. The client could also join a game. If he does, the packet form would change. Learn more about this in the coming soon page: Join Game Response.
|handler = j
If the client meets the other requirements; The server would send the jr packet with the room string. The server also sends the ap (ADD PLAYER) packet. Learn more about this packet in the coming soon page: Add Player.
|name = jr
}}
 
The packet is sent by the client to the server requesting a user to be added to the room. In response, the server can deny the the client room if the room ID doesn’t exist. If the client meets the other requirements; the server would send the response packet with the room string. The server also sends the [[Add Player]] packet.
 
Alternatively the client can join a room using a [[Join Game Response]] when joining a game.
 
== Examples ==
== Examples ==
{| class="wikitable"
{{Examples
| Client-side
|client = %xt%s%j#jr%1%800%644%243%
| %xt%s%j#jr%1%800%644%243%
|server = %xt%jr%35%800%101|Jadbalout|45|4|0|0|0|0|0|0|0|0|0|0|1|1|0|0|{"spriteScale":100,"spriteSpeed":100,"ignoresBlockLayer":false,"invisible":false,"floating":false}%
|-
}}
| Server-side
| %xt%jr%35%800%101|Jadbalout|45|4|0|0|0|0|0|0|0|0|0|0|1|1|0|0|{"spriteScale":100,"spriteSpeed":100,"ignoresBlockLayer":false,"invisible":false,"floating":false}%
|}


== Structure ==
== Structure ==
Line 21: Line 24:
| align="center"| 101|Jadbalout|45|4|0|0|0|0|0|0|0|0|0|0|1|1|0|0|{"spriteScale":100,"spriteSpeed":100,"ignoresBlockLayer":false,"invisible":false,"floating":false}
| align="center"| 101|Jadbalout|45|4|0|0|0|0|0|0|0|0|0|0|1|1|0|0|{"spriteScale":100,"spriteSpeed":100,"ignoresBlockLayer":false,"invisible":false,"floating":false}
|}
|}
[[Category:Navigation Handlers]]

Latest revision as of 18:33, 2 May 2015

Join Room
Handler j
Name jr

The packet is sent by the client to the server requesting a user to be added to the room. In response, the server can deny the the client room if the room ID doesn’t exist. If the client meets the other requirements; the server would send the response packet with the room string. The server also sends the Add Player packet.

Alternatively the client can join a room using a Join Game Response when joining a game.

Examples

Client side %xt%s%j#jr%1%800%644%243%
Server side %xt%jr%35%800%101


Structure

Room ID Room String
800 101|Jadbalout|45|4|0|0|0|0|0|0|0|0|0|0|1|1|0|0|{"spriteScale":100,"spriteSpeed":100,"ignoresBlockLayer":false,"invisible":false,"floating":false}