Edit on GitHub

GameService Server Login Bonus Status Response

Summary

This packet contains what the current login bonus item is, whether it's been collected or not, as well as the next login bonus item.

This packet is sent as the response to GameService Client 0x016e Login Bonus Status Request.

Structure

gameservice_server_0248_login_bonus_status_response

Name Type Summary
unknown_a bytes Possibly padding?
bonus_collected u1 00 if uncollected, 01 if previously collected.
current_item_id u4 From pangya_xx.iff/Item.iff. The current login bonus item.
current_item_quantity u4
bonus_preview switch(bonus_collected)
case 0 current_bonus Case when bonus_collected == 0
case 1 preview_bonus Case when bonus_collected == 1

Subtypes

current_bonus

This only occurs on first login of the day, before the bonus has been collected.

Name Type Summary
padding_a bytes Unused.
current_bonus_day u4 Current bonus is for the nth day.

preview_bonus

This only occurs on all subsequent logins after collecting the daily bonus.

Name Type Summary
future_item_id u4 From pangya_xx.iff/Item.iff. The next login bonus item.
future_item_quantity u4
future_bonus_day u4 Next bonus will be awarded on nth day.

Definition

meta:
  id: gameservice_server_0248_login_bonus_status_response
  title: GameService Server Login Bonus Status Response
  encoding: ASCII
  endian: le
  imports:
    - ../../common/pstring
seq:
  - id: unknown_a
    size: 4
  - id: bonus_collected
    type: u1
  - id: current_item_id
    type: u4
  - id: current_item_quantity
    type: u4
  - id: bonus_preview
    type:
      switch-on: bonus_collected
      cases:
        0: current_bonus
        1: preview_bonus
types:
  current_bonus:
    seq:
      - id: padding_a
        size: 8
      - id: current_bonus_day
        type: u4
  preview_bonus:
    seq:
      - id: future_item_id
        type: u4
      - id: future_item_quantity
        type: u4
      - id: future_bonus_day
        type: u4

Examples

No examples available. Contribute one?