Edit on GitHub

GameService Client User Equipment Change

Summary

This packet changes the user's equipment while in a room.

The response is GameService Server 0x004B User Equipment Change Announce.

See Also:

Aliases:

Structure

gameservice_client_000c_user_equipment_change

Name Type Summary
equipment_type u1
equipment_payload switch(equipment_type)
case equipped_caddie change_caddie 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 change_character Case when equipment_type == equipped_character
case equipped_07_unknown change_07_unknown Case when equipment_type == equipped_07_unknown

Subtypes

change_caddie

Name Type Summary
roster_slot_caddie u4 Roster slot of chosen caddie.

change_ball

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

change_clubs

Name Type Summary
inventory_slot_clubs u4 Inventory slot of the chosen clubset.

change_character

Name Type Summary
roster_slot_character u4 Roster slot of the chosen character.

change_07_unknown

Name Type Summary
roster_slot_character_type07 u4 Same as in subtype 0x04.
roster_slot_caddie_type07 u4 Same as in subtype 0x01.
inventory_slot_clubs_type07 u4 Same as in subtype 0x03.
item_id_ball_type07 u4 Same as in subtype 0x02.

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
equipment_type::equipped_07_unknown 7

Definition

meta:
  id: gameservice_client_000c_user_equipment_change
  title: GameService Client User Equipment Change
  encoding: ASCII
  endian: le
  imports:
    - ../../common/pstring
seq:
  - id: equipment_type
    type: u1
    enum: equipment_type
  - id: equipment_payload
    type:
      switch-on: equipment_type
      cases:
        equipment_type::equipped_caddie: change_caddie
        equipment_type::equipped_ball: change_ball
        equipment_type::equipped_clubs: change_clubs
        equipment_type::equipped_character: change_character
        equipment_type::equipped_07_unknown: change_07_unknown
types:
  change_caddie:
    seq:
      - id: roster_slot_caddie
        type: u4
  change_ball:
    seq:
      - id: item_id_ball
        type: u4
  change_clubs:
    seq:
      - id: inventory_slot_clubs
        type: u4
  change_character:
    seq:
      - id: roster_slot_character
        type: u4
  change_07_unknown:
    seq:
      - id: roster_slot_character_type07
        type: u4
      - id: roster_slot_caddie_type07
        type: u4
      - id: inventory_slot_clubs_type07
        type: u4
      - id: item_id_ball_type07
        type: u4
enums:
  equipment_type:
    1: equipped_caddie
    2: equipped_ball
    3: equipped_clubs
    4: equipped_character
    7: equipped_07_unknown

Examples

No examples available. Contribute one?