Update Player Hand: Difference between revisions

From Club Penguin Protocol
Jump to navigation Jump to search
imported>Arthur
Arthur moved page Set Player Hand to Update Player Hand without leaving a redirect: Proper naming
imported>Arthur
No edit summary
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 [[Player|ID of player]] 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%s#upa%'''[[Room|room_id]]'''%'''[[Item|item_id]]'''%
| %xt%s%s#upa%interal_room%'''item_id'''%
|-
|-
| Server-side
| Server-side
| %xt%upa%'''room_id'''%'''penguin_id'''%'''item_id'''%
| %xt%upa%interal_room%'''penguin_id'''%'''item_id'''%
|}
|}


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

Revision as of 06:21, 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%