Command
From DKPLP Doc
A command is a special line that can be entered through games and then interpreted by the parser. For instance if someone mentions the loot command then that person probably means something that is entered through a game to tell the parser that loot has dropped.
Behind the scenes
The commands are created by creating patterns that match the resulting lines in the log. If one would for instance want to create a command that can be issued through any chat channel by the logger then one would begin by examining how the resulting lines look in the log. For example the following is how a line looks in EverQuest's log when one has said Hello in channel foo.
[Fri Aug 26 11:39:05 2005] You tell foo:1, 'Hello'
So if we want the parser to start the raid whenever we say Hello in channel foo then we would use the above line as begin pattern (capturing the time).
Syntax
Commands specified in predefined pattern sets follow a specific syntax, namely
*<command> <param 1> - <param 2> - ... - <param n>
where <command> could for instance be Loot and <param 1> to <param n> would be the parameters to the command (e.g. the buyer's name, the item's name and the price). The predefined pattern sets' commands are always designed to only trigger when the logger issues the command through any chat channel. But that is easy to change.
