# openShiren SPAW variable #

SPAW is a fixed 528-bit (66-byte) string sent by the client to the
server. It contains a fixed record of the player's stats at the time
of dungeon exit. Following the 528 bits is a variable length string
containing the player's character name.

There are two ways to exit the dungeon: die or complete a quest.

## Analysis of Bits ##

<pre> 28 bits – Score
  8 bits – Year
  4 bits – Month
  8 bits – Day
  8 bits – Unknown 1
  8 bits – Floor number
  8 bits – Area name
  8 bits – Level
  8 bits – Current HP
  8 bits – Max HP
 20 bits – Gold
 16 bits – Attempts at dungeon
 24 bits – Unknown 2 (appears to be mission number?)
  8 bits – Current food
  8 bits – Max food
  8 bits – Current STR
  8 bits – Max STR
 20 bits – EXP
  8 bits – Weapon name
  8 bits – Weapon adjustment (signed 8-bit)
  8 bits – Weapon state
  8 bits – Shield name
  8 bits – Shield adjustment (signed 8-bit)
  8 bits – Shield state
  4 bits – Unknown 3
variable – Hex representation of player name (max 8 chars)</pre>

Unknown 2 appears to be the mission name. The initial quest to save
Nagi is mission 0x0f, then the next becomes 0x01, 0x02 and so on.

We need data from a totally complete game with memos for which exits
were successful to see if it increments in unison.


Copyright (c) 2005 Derrick Sobodash. Some Rights Reserved.

This work is licensed under a CC Attribution-ShareAlike 4.0 International
License (http://creativecommons.org/licenses/by-sa/4.0/).