Slash commands

/alignment

Inspect or persist player alignment.

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
/alignment 1013 200 Implemented

Inspect or persist player alignment.

Implementation: Implemented.

Syntax

/alignment get [self|target|player]
/alignment set <good|evil|-128..127> [self|target|player]

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 action text get or set.
1 value_or_target text or signed integer set: good=1, evil=0, or a custom signed 8-bit value. get: optional player selector.
2 target text set: optional self, target or player name.

Behavior and restrictions

  • Defaults to the selected player, or self when there is no target. Named players must be online and ready in the current zone; selecting a non-player fails.
  • set marks the character sheet changed and immediately saves the recipient. Invalid values and extra arguments are rejected.

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

if (!target || !target->IsPlayer()) {

Handler failure/help feedback (sent to the player or logged; % fields are formatted at runtime):

Defaults to selected player, or self with no target; named players must be in this zone.
Alignment must be good (1), evil (0), or an integer from -128 to 127.
The player must be online in your current zone.

Permissions

Local database snapshot, October 6, 2026: /alignment requires status 200 (handler 1013). 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

/alignment get self

Source-checked forms; not executed against a live world.

Source evidence

Dispatch: COMMAND_ALIGNMENT (handler 1013).

  • WorldServer/Commands/Commands.cpp:6330 — COMMAND_ALIGNMENT.
  • WorldServer/Commands/Commands.cpp:8797 — Command_Alignment.
  • WorldServer/Commands/Commands.cpp:8630 — GMPlayerArg.
  • WorldServer/Commands/Commands.cpp:8634 — ParseGMPlayerInteger.
  • WorldServer/Commands/Commands.cpp:8655 — ResolveGMPlayer.
  • WorldServer/Commands/Commands.cpp:8793 — GMAlignmentName.

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

No upstream Markdown file exists for this registration in the retrieved revision.

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.