Update Player Hand: Difference between revisions

From Club Penguin Protocol
Jump to navigation Jump to search
imported>Lisured
Created page with "This packet is sent by the client to the server requesting to set player’s hand item to specified item. In response all clients in the room will receive `upa` packet contain..."
 
imported>Lisured
→‎Structure: +packet template
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This packet is sent by the client to the server requesting to set player’s hand item to specified item. In response all clients in the room will receive `upa` packet containing the [[Penguin|ID of penguin]] alongside with an item provided in the request.
{{Stub}}
 
This packet is sent by the client to the server when the user changes or removes their hand item. If the item is a valid hand item, the server responds by sending all the users in the room the {{Packet|%xt%upa%}} packet containing the id of the player alongside the id of item requested, or 0 if an item was removed.


== Structure ==
== Structure ==
{| class="wikitable"
{| class="wikitable"
| Client-side
| Client-side
| %xt%s#upa%'''[[Room|room_id]]'''%'''[[Item|item_id]]'''%
| {{Packet|%xt%s%s#upa%interal_room%'''item_id'''%}}
|-
|-
| Server-side
| Server-side
| %xt%upa%'''room_id'''%'''penguin_id'''%'''item_id'''%
| {{Packet|%xt%upa%interal_room%'''penguin_id'''%'''item_id'''%}}
|}
|}


[[Category:Setting_Handlers]]
[[Category:Setting_Handlers]]

Latest revision as of 21:36, 19 October 2014

This packet is sent by the client to the server when the user changes or removes their hand item. If the item is a valid hand item, the server responds by sending all the users in the room the %xt%upa% packet containing the id of the player alongside the id of item requested, or 0 if an item was removed.

Structure

Client-side %xt%s%s#upa%interal_room%item_id%
Server-side %xt%upa%interal_room%penguin_id%item_id%