From 77f3a9d388dc4f73d1c8e31a9933d2d12dacc120 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Mon, 13 Nov 2023 17:54:17 +0100 Subject: [PATCH] docs: channel selection --- Packets_Channel-Selection-Response.md | 52 +++++++++++++++++++++++++++ Packets_Channel-Selection.md | 10 ++++++ _Sidebar.md | 14 ++++---- 3 files changed, 70 insertions(+), 6 deletions(-) create mode 100644 Packets_Channel-Selection-Response.md create mode 100644 Packets_Channel-Selection.md diff --git a/Packets_Channel-Selection-Response.md b/Packets_Channel-Selection-Response.md new file mode 100644 index 0000000..0647039 --- /dev/null +++ b/Packets_Channel-Selection-Response.md @@ -0,0 +1,52 @@ +# Metadata + +## Structure + +**Operation Code**: 13 + +| Identifier | Datatype | Size in bytes | +|------------------|----------------|----------------------| +| UnknownFlag | byte | 1 | +| IP Endpoint | string | 16 | +| Port | unsigned short | 2 | +| Character amount | unsigned short | 2 | +| Character data | CharacterData | 5 * Character amount | + +## Subtypes + +### CharacterData + +| Identifier | Datatype | Size in bytes | +|------------------------|------------------|---------------| +| Character Slot | int | 4 | +| Character Name | string | 20 | +| Jobs | Job Data | 4 | +| Gender | byte | 1 | +| Level | byte | 1 | +| Unknown | byte | 1 | +| Exp? | byte | 1 | +| Stats | BaseStats | 20 | +| Health | int | 4 | +| Mana | int | 4 | +| Equipped Item Ids | unsigned short[] | 20 * 2 | +| Equipped Cash Item Ids | unsigned short[] | 20 * 2 | + +### Job Data + +| Identifier | Datatype | Size in bytes | +|------------|----------|---------------| +| First Job | byte | 1 | +| Second Job | byte | 1 | +| Third Job | byte | 1 | +| Fourth Job | byte | 1 | + +### BaseStats + +| 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/Packets_Channel-Selection.md b/Packets_Channel-Selection.md new file mode 100644 index 0000000..c01edea --- /dev/null +++ b/Packets_Channel-Selection.md @@ -0,0 +1,10 @@ +# Metadata + +## Structure + +**Operation Code**: 13 + +| Identifier | Datatype | Size in bytes | +|------------|----------------|---------------| +| Server Id | unsigned short | 2 | +| Channel Id | unsigned short | 2 | diff --git a/_Sidebar.md b/_Sidebar.md index f9384ad..2209c9e 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,6 +1,8 @@ -**Architecture** - -**Packets** -- [Login Info](Packets_Login-Info) -- [Login Response](Packets_Login-Response) - +**Architecture** + +**Packets** + +- [Login Info](Packets_Login-Info) +- [Login Response](Packets_Login-Response) +- [Channel Selection](Packets_Channel-Selection) +- [Channel Selection Response](Packets_Channel-Selection-Response)