Slash commands

/knowledgewindow_sort

Sort the client knowledge/spell book.

Implemented · Source comparison: October 6, 2026.

Reviewed October 6, 2026. This page covers the root, registered subcommands and documented internal actions.

Registration permissions

Registration Handler Required status (local DB, Oct 6) Implementation
/knowledgewindow_sort 511 0 Implemented

Sort the client knowledge/spell book.

Implementation: Implemented.

Syntax

/knowledgewindow_sort <book> <sort_by> <order> [pattern]

Arguments

Position is zero-based in sep, after a registered database subcommand has been removed. Internal action tokens remain at position 0. Angle brackets are required; square brackets are optional. Alternative forms may change field meanings.

Position Argument Accepted value / type Meaning
0 book integer 0 spells, 1 combat, 2 abilities, 3 tradeskill.
1 sort_by integer 0 alpha, 1 level, 2 category.
2 order integer 0 ascending, 1 descending.
3 pattern integer 0 zigzag, 1 down, 2 across.

Behavior and restrictions

  • The handler accepts three arguments on clients <=561 or four arguments generally. A later fifth max-level-only field is read in the code but fails this argument-count gate; do not advertise it as accepted syntax.

Current argument/client/target checks (exact source excerpts; branch-dependent):

if (sep && (client->GetVersion() <= 561 && sep->GetArgNumber() == 3) || sep->GetArgNumber() == 4)
if (client->GetVersion() <= 561 && book == SPELL_BOOK_TYPE_ABILITY)
if(client->GetVersion() > 561 && sep->arg[4][0]) {

Permissions

Local database snapshot, October 6, 2026: /knowledgewindow_sort requires status 0 (handler 511). Other worlds may configure different values.

The dispatcher checks the resolved registration status before invoking the handler. In-handler guild, group, ownership, client-version and target checks still apply.

Examples

The syntax forms above are the source-based invocation examples. Replace identifiers with values valid for your world; client callback fields are supplied by the game client.

Source evidence

Dispatch: COMMAND_KNOWLEDGEWINDOWSORT (handler 511).

  • WorldServer/Commands/Commands.cpp:4321 — COMMAND_KNOWLEDGEWINDOWSORT.

Reviewed local revision: 9efddf962ffee075d0db2059d3914c36b0acbdf3; working-tree file checksums identify the exact reviewed bytes. Reviewed dispatch/helper evidence · Reconciliation report.

Original upstream Markdown · Archived original. The original text is historical evidence; the corrected contract above takes precedence.

Permissions are from a read-only snapshot of the configured local world database on October 6, 2026; deployed worlds may differ. Argument and behavior evidence comes from the reviewed WorldServer checkout. Examples were checked against source and were not executed in a live world.