Commit 0e82007
Add optional Zero field to ScriptPacket for step ack (#438)
* Add ScriptCompletePacket for official "script 0 <id> <step>" ack
The official NosTale server emits `script 0 <scriptId> <stepId>` after
each tutorial script step to acknowledge completion. Without it the
client freezes on interactive steps (e.g. the quest accept dialog does
nothing when pressed). The existing ScriptPacket only covers the
2-field `script <scriptId> <stepId>` form used to enter a step, so this
adds a sibling ServerPackets class with a literal leading `0` to match
the ack shape.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Add optional leading Zero field to ScriptPacket for step ack
The official NosTale server emits two `script` shapes: `script <scriptId>
<stepId>` to enter a step, and `script 0 <scriptId> <stepId>` to
acknowledge that step has completed. Without the ack the client freezes
on interactive steps (e.g. the quest-accept dialog does nothing when
pressed). Add an optional leading Zero byte so the same packet class
emits both shapes — Zero=null for advance, Zero=0 for ack.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 43f02b1 commit 0e82007
3 files changed
Lines changed: 34 additions & 3 deletions
File tree
- src/NosCore.Packets
- ServerPackets/Quest
- test/NosCore.Packets.Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
170 | 198 | | |
171 | 199 | | |
172 | 200 | | |
| |||
0 commit comments