From bdc3b149fec443e101fb579487cbcffe72ec6d25 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Thu, 16 Nov 2023 14:58:38 +0100 Subject: [PATCH] docs: character creation packets documented --- Wiki/topics/Character-Creation-Packet.md | 20 +++++++ .../Character-Creation-Response-Packet.md | 58 +++++++++++++++++++ Wiki/wiki.tree | 2 + 3 files changed, 80 insertions(+) create mode 100644 Wiki/topics/Character-Creation-Packet.md create mode 100644 Wiki/topics/Character-Creation-Response-Packet.md diff --git a/Wiki/topics/Character-Creation-Packet.md b/Wiki/topics/Character-Creation-Packet.md new file mode 100644 index 0000000..8b9f11a --- /dev/null +++ b/Wiki/topics/Character-Creation-Packet.md @@ -0,0 +1,20 @@ +# Character Creation Packet + +## Metadata + +**Operation Code**: 15 + +### Structure + +| Identifier | Datatype | Size in bytes | +|------------|----------|---------------| +| Slot | byte | 1 | +| Unknown | byte | 1 | +| Id | ushort | 2 | +| Name | string | 20 | +| First Job | byte | 1 | +| Gender | byte | 1 | +| Hair | byte | 1 | +| Eyes | byte | 1 | +| Shirt | byte | 1 | +| Pants | byte | 1 | diff --git a/Wiki/topics/Character-Creation-Response-Packet.md b/Wiki/topics/Character-Creation-Response-Packet.md new file mode 100644 index 0000000..3a4f2c6 --- /dev/null +++ b/Wiki/topics/Character-Creation-Response-Packet.md @@ -0,0 +1,58 @@ +# Character Creation Response Packet + +## Metadata + +**Operation Code**: 13 + +### Structure + +Total size: 1 + 132 + +| Identifier | Datatype | Size in bytes | +|----------------|---------------|---------------| +| Is Duplicate | byte | 1 | +| Character data | CharacterData | 132 | + +### Subtypes + +#### CharacterData + +Total size: 132 bytes + +| Identifier | Datatype | Size in bytes | +|------------------------|------------------|---------------| +| Character Slot | int | 4 | +| Character Name | string | 20 | +| Jobs | Job Data | 4 | +| Gender | byte | 1 | +| Level | unsigned short | 2 | +| Exp? | byte | 1 | +| Stats | BaseStats | 12 | +| Health | int | 4 | +| Mana | int | 4 | +| Equipped Item Ids | unsigned short[] | 20 * 2 (40) | +| Equipped Cash Item Ids | unsigned short[] | 20 * 2 (40) | + +#### Job Data + +Total size: 4 bytes + +| Identifier | Datatype | Size in bytes | +|------------|----------|---------------| +| First Job | byte | 1 | +| Second Job | byte | 1 | +| Third Job | byte | 1 | +| Fourth Job | byte | 1 | + +#### BaseStats + +Total size: 12 bytes + +| Identifier | Datatype | Size in bytes | +|--------------|----------|---------------| +| Strength | short | 2 | +| Dexterity | short | 2 | +| Intelligence | short | 2 | +| Vitality | short | 2 | +| Luck | short | 2 | +| Wisdom | short | 2 | diff --git a/Wiki/wiki.tree b/Wiki/wiki.tree index 0e3a3fb..b0cc25e 100644 --- a/Wiki/wiki.tree +++ b/Wiki/wiki.tree @@ -7,6 +7,8 @@ + +