Edit on GitHub

GameService Server Item Transact

Summary

This packet acknowledges an item entering or leaving the user's inventory.

Type 0x00 (get_item) is a response to:

Type 0x01 (lose_item) is a response to:

Structure

gameservice_server_00ec_item_transact

Name Type Summary
unknown_a bytes[4]
transaction_type u1
transaction switch(transaction_type)
case get_item get_item Case when transaction_type == get_item
case lose_item lose_item Case when transaction_type == lose_item

Subtypes

get_item

In locker withdrawals, 'local' and 'remote' fields are identical.

Name Type Summary
pang_amount u4 Local user's new pang balance after acquisition.
unknown_b bytes[8]
remote_item_id u4 From pangya_xx.iff/Item.iff. Seller's item ID for acquired item.
remote_inventory_slot u4 Seller's inventory slot for acquired item.
item_quantity u4
unknown_c bytes[3]
item_cost u4 The pang cost of each acquired item.
unknown_d bytes[150]
local_inventory_slot u4 Buyer's inventory slot for acquired item.
local_item_id u4 Buyer's item ID for acquired item. Ought to be identical to remote_item_id.
unknown_e bytes[188]

lose_item

Name Type Summary
unknown_f bytes[12]
local_item_id u4 From pangya_xx.iff/Item.iff. Item ID for lost item.
local_inventory_slot u4
item_quantity u4
unknown_g bytes[156]

Enums

transaction_type

Key Value
transaction_type::get_item 0
transaction_type::lose_item 1

Definition

meta:
  id: gameservice_server_00ec_item_transact
  title: GameService Server Item Transact
  encoding: ASCII
  endian: le
  imports:
    - ../../common/pstring
seq:
  - id: unknown_a
    size: 4
  - id: transaction_type
    type: u1
    enum: transaction_type
  - id: transaction
    type:
      switch-on: transaction_type
      cases:
        transaction_type::get_item: get_item
        transaction_type::lose_item: lose_item
types:
  get_item:
    seq:
      - id: pang_amount
        type: u4
      - id: unknown_b
        size: 8
      - id: remote_item_id
        type: u4
      - id: remote_inventory_slot
        type: u4
      - id: item_quantity
        type: u4
      - id: unknown_c
        size: 3
      - id: item_cost
        type: u4
      - id: unknown_d
        size: 150
      - id: local_inventory_slot
        type: u4
      - id: local_item_id
        type: u4
      - id: unknown_e
        size: 188
  lose_item:
    seq:
      - id: unknown_f
        size: 12
      - id: local_item_id
        type: u4
      - id: local_inventory_slot
        type: u4
      - id: item_quantity
        type: u4
      - id: unknown_g
        size: 156
enums:
  transaction_type:
    0: get_item
    1: lose_item

Examples

No examples available. Contribute one?