Overview
The command panel is a window of command buttons that players click instead of typing commands in the chat box. Normal characters only see the Player tab; GM characters also see the GM command tab (this tab exists only when the account is a GM). It is opened / closed with the key set in [CommandPanel] Hotkey (default F1); when that is set, the game's original Help window no longer opens on this key.
[Plugin].Requirements
- Client:
Main.dllandData\Interface\GFx\CommandPanel.ozg. The panel's fixed text (title, tabs, buttons) comes from the client'stext.bmd(IDs 116 to 122). - The server sends the button list when the character enters the game.
Configuration of the [CommandPanel] section
| Key | Value | Default | Meaning |
|---|---|---|---|
Hotkey | F1 to F12; empty or any other value = no key | F1 | Key that opens / closes the command panel. |
[CommandPanel]
Hotkey = F1
Choosing which commands get a button
The button list comes from Data\Commands\Commands.xml: only commands with Show="1" get a button.
| Attribute | Value | Default | Meaning |
|---|---|---|---|
Show | 1 | no button shown | 1 = the command has a button in the panel. The stat-adding commands addstr/addagi/addvit/addene/addcmd always have a button. |
Authority | 0 or 2 | - | 0 = all players (Player tab); 2 = GM only (GM tab). The server does not send GM commands to non-GMs. |
Description | syntax string | - | Command syntax; each word starting with # becomes 1 input box, in order (for example /addstr #points). |
Options | comma-separated list | - | Values sent with the command, one button per value (for example on,off becomes /request on). |
UI | run, confirm, input, choice | automatic | The window style when the button is clicked: run = runs immediately; confirm = asks for confirmation; input = input box; choice = choose one value from Options. If not given: choice if there is Options, input if there is #, confirm if there is a guide in Lang, otherwise run. |
<Command ID="6" name="request" Description="/request status" Authority="0" Show="1" UI="choice" Options="on,off"/>
<Command ID="16" name="offattack" Description="" Authority="0" Show="1"/>
<Command ID="17" name="clearpk" Description="" Authority="0" Show="1"/>
Displayed text (Lang)
Button names, titles, guides, input box names and choice button names come from the language files in Data\Lang\, group 48 "Command Panel", using the same Type and ID as Commands.xml:
<CommandSystem Type="..."><Command ID="..." title="Button name" Guide="Guide, /n = line break" Params="Box 1,Box 2" Options="On,Off"/>
The server uses the language file from LangBase.xml, falling back to English.xml. A command that is not in Lang uses name / Description in Commands.xml. In Guide you can use substitution codes such as {name}, {level}, {reset}, {zen}... (see the notes at the top of the Commands.xml file).
Applying changes
After editing Commands.xml or Hotkey, type the GM command .reload config: the server sends the new list and key to players who are online. Renaming a command (name) requires restarting GameServer or .reload config.