docs: character creation packets documented
All checks were successful
Build, Package and Push Images / preprocess (push) Successful in 2s
Build documentation / preprocess (push) Successful in 3s
Build documentation / docs (push) Successful in 24s
Build, Package and Push Images / build (push) Successful in 27s
Build, Package and Push Images / sonarqube (push) Has been skipped
Build, Package and Push Images / sbom-scan (push) Successful in 36s
Build documentation / build-docs-container (push) Successful in 55s
Build documentation / deploy-wiki (push) Successful in 5s
Build, Package and Push Images / container-build (push) Successful in 1m27s
Build, Package and Push Images / container-sbom-scan (push) Successful in 31s

This commit is contained in:
Timothy Schenk 2023-11-16 14:58:38 +01:00
parent 6e406b4b00
commit bdc3b149fe
3 changed files with 80 additions and 0 deletions

View file

@ -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 |

View file

@ -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 |

View file

@ -7,6 +7,8 @@
<toc-element topic="Home.md"/>
<toc-element topic="Packets.md" id="packets">
<toc-element topic="Character-Creation-Response-Packet.md"/>
<toc-element topic="Character-Creation-Packet.md"/>
<toc-element topic="Channel-Selection-Response.md"/>
<toc-element topic="Channel-Selection.md"/>
<toc-element topic="Login-Info.md"/>