Edit on GitHub

GameService Server User Equipment Change Announce

Summary

This packet announces changes to a user's loadout to all other users in the same room.

It is the response to GameService Client 0x000B User Equipment Change and GameService Client 0x000C User Equipment Change.

Structure

gameservice_server_004b_user_equipment_announce

Name Type Summary
unknown_a bytes[4] All 0x00.
equipment_type u1
connection_id u4 The relevant connection ID for the user making changes.
equipment_payload switch(equipment_type)
case equipped_caddie user_caddie_data Case when equipment_type == equipped_caddie
case equipped_ball change_ball Case when equipment_type == equipped_ball
case equipped_clubs change_clubs Case when equipment_type == equipped_clubs
case equipped_character user_character_data Case when equipment_type == equipped_character

Subtypes

change_ball

Name Type Summary
item_id_ball u4 From pangya_xx.iff/Ball.iff. Item ID of the chosen balls.

change_clubs

Name Type Summary
inventory_slot_clubs u4 Inventory slot of the chosen clubset.
item_id_clubs u4 From pangya_xx.iff/ClubSet.iff. Item ID of the chosen clubset.
unknown_a_clubs bytes[20]

Enums

equipment_type

Key Value
equipment_type::equipped_caddie 1
equipment_type::equipped_ball 2
equipment_type::equipped_clubs 3
equipment_type::equipped_character 4

Definition

meta:
  id: gameservice_server_004b_user_equipment_announce
  title: GameService Server User Equipment Change Announce
  encoding: ASCII
  endian: le
  imports:
    - ../../common/pstring
    - ../../common/user_caddie_data
    - ../../common/user_character_data
seq:
  - id: unknown_a
    size: 4
  - id: equipment_type
    type: u1
    enum: equipment_type
  - id: connection_id
    type: u4
  - id: equipment_payload
    type:
      switch-on: equipment_type
      cases:
        equipment_type::equipped_caddie: user_caddie_data
        equipment_type::equipped_ball: change_ball
        equipment_type::equipped_clubs: change_clubs
        equipment_type::equipped_character: user_character_data
types:
  change_ball:
    seq:
      - id: item_id_ball
        type: u4
  change_clubs:
    seq:
      - id: inventory_slot_clubs
        type: u4
      - id: item_id_clubs
        type: u4
      - id: unknown_a_clubs
        size: 20
enums:
  equipment_type:
    1: equipped_caddie
    2: equipped_ball
    3: equipped_clubs
    4: equipped_character

Examples

No examples available. Contribute one?