Home mm2k6 Help Files Commands Miscellaneous Commands
21 | 04 | 2018
Miscellaneous Commands
Article Index
Miscellaneous Commands
Speedwalk
File Commands
All Pages
A variety of commands which somehow escaped the other categories exist for display output, speedwalking, some calcualtions, file input and output, and of course help. 

Display Output

changes cr scrollgrep
showme showmeViaWeb showother
showtoast

Speed Walk Commands

pace speedwalk walkstop

File Commands

dir filedelete
editcurrent spam
textin textout
viewlog
write writegroup

Other

intersection math presubstitute
help version

Changes

Format: /changes {[optional URL]}

Retrieves and displays the current latest changes to mm2k6 if no URL is provided otherwise it retrieves the text at the URL and displays it.

CR

Format: /cr

Sends a carriage return to the mud.

Scrollgrep

Format: /scrollgrep # {search criteria}
Format: /scrollgrep {search criteria}

# can be any number between 0 and 0xFFFFFFFE and is used to limit the number of matches shown.
search criteria can be most regular expression syntax. New to version 4.1 the regular expression parser is based on Perl regular expressions. See the Boost.org regular expression syntax reference for complete details.

Important Note /scrollgrep requires a complete match. This means if you want a partial match use the .* wildcard either before and / or  after the partial pattern you want to match.

. Matches any single character.
[ ] Indicates a character class. Matchs any character inside brackets

example: [abc] matches "a", "b", and "c").

^ If this metacharacter occurs at the start of a character class, it
negates the character class. A negated character class matches any
character except those inside the brackets.

example: [^abc] matches all characters except "a", "b", and "c").

If ^ is at the beginning of the regular expression, it matches the
beginning of the input.

example: ^[abc] only matches input begins with "a", "b", or "c").

- In a character class, indicates a range of characters.

example: [0-9] matches any of the digits "0" through "9").

? Indicates the preceding expression is optional: it matches once or
not at all.

example: [0-9][0-9]? matches "2" and "12").

+ Indicates that the preceding expression matches one or more times

example: [0-9]+ matches "1", "13", "666", and so on).

* Indicates that the preceding expression matches zero or more times.
??, +?, *? Non-greedy versions of ?, +, and *. These match as little as
possible, unlike the greedy versions which match as much as possible.

Example: the input "<abc><def>", <.*?> matches "<abc>" while <.*>
matches "<abc><def>".

( ) Grouping operator. Example: (\d+,)*\d+ matches a list of numbers
separated by commas (such as "1" or "1,23,456").
{ } Indicates a match group. The actual text in the input that matches
the expression inside the braces can be retrieved through the
CAtlREMatchContext object.

\ Escape character: interpret the next character literally.

example: [0-9]+ matches one or more digits, but [0-9]\+ matches
a digit followed by a plus character).

Also used for abbreviations (such as \a for any alphanumeric character;
see table below).

If \ is followed by a number n, it matches the nth match group (starting
from 0).

Example: <{.*?}>.*?</\0> matches "<head>Contents</head>".

$ At the end of a regular expression, this character matches the end of
the input.

Example: [0-9]$ matches a digit at the end of the input.

| Alternation operator: separates two expressions, exactly one of which
matches.

Example, T|the matches "The" or "the").

(?!expression) Negation operator: the expression following ! does not match the input.

Example: q(?!u matches "q" not followed by "u".

Abbreviations
\l Any lowercase alphanumeric character: ([a-z])
\u Any uppercase alphanumeric character: ([A-z])
\s White space (blank): ([ \\t])
\S Non space: ([^ \\t])
\D Any alphabetic character: ([a-zA-Z])
\d Any decimal digit: ([0-9])
\n Newline: (\r|(\r?\n))
\w A simple word: ([a-zA-Z]+)

Showme

Format: /showme {text}

Showme will echo the text to the terminal screen. The text is not sent to the mud.

{text} Text to display.

ShowmeViaWeb

ShowmeViaWeb displays the response of an HTTP request to the web address
supplied. Only web requests are handled. If the address provided doesn't
include the http:// this will be prepended before making the get request.
Data can be sent to the URL by appending it to the URL in the format
http://www.somewebsite.org/?key=value&key2=value2
The web request is sent as a GET if the URL provided is less than
256 characters and as a POST when longer.
The result should be either plain text or text with ANSI text commands.
MM2k6 variables and procedures will be evaluated and replaced before being
displayed.
þ {web address} The website to get the text from.
Example:
/ShowmeViaWeb {http://mm2k6.sourceforge.net/changes.txt}
Format: /ShowmeViaWeb {web address}

ShowmeViaWeb displays the response of an HTTP request to the web address
supplied. Only web requests are handled. If the address provided doesn't
include the http:// this will be prepended before making the get request.

Data can be sent to the URL by appending it to the URL in the format
http://www.somewebsite.org/?key=value&key2=value2
The web request is sent as a GET if the URL provided is less than
256 characters and as a POST when longer.

The result should be either plain text or text with ANSI text commands.
MM2k6 variables and procedures will be evaluated and replaced before being
displayed.

/showmeviaweb  {web address} The website to get the text from.

Example:

/ShowmeViaWeb {http://mm2k6.sourceforge.net/changes.txt}

Note: If this command is used repeatedly before a previous response is complete only the last one will display.

ShowOther

Format: /showother {target session name}{ANSI text}

Just like /showme but in another open session window.
Shows text in another named session window.

Example:

/showother {helpview.mms}{Hello world!!}

or more useful:

/action {^[CLAN] %0} {/showother {helpview.mms}{@ansibold()@foreyellow()[CLAN] @forecyan() $0@ansireset()}} {channels}

sets up an action that captures any text on lines starting
with [CLAN] and shows it in cyan after a yellow [CLAN]
in a window called helpview.mms

/showtoast {text to pop up in taskbat notifier}

Similar to /showme or /showother except that a taskbar notification pops like toast above the tray when this command is used. The notification pop up is skinned using a simple bitmap toast.bmp which must be in the same directory as mudmaster.exe before a session started.

If /showtoast is executed while the toast is already up the new text is added to the old text.

If you hover the mouse over the toast it will keep the notification in place.

You can create your own custom skins for the popup. It must be a .bmp and be in the same directory as the mudmaster.exe when a session is opened for it to be used. Pure green RGB(0,ff,0) is treated as transparent. The text is displayed center justified with top margin of 40 pixels and side margins of 15 pixels. Text will not display over transparent portions of the skin.


Speedwalk

Format: /speedwalk {on/off}

When speedwalking is on anytime you send a line of text that contains only
movement characters (n, s, e, w, u and d) the client will send the commands
one at a time at a speed determined by the /pace command. If you typed
"nnnuws" the client would walk you north 3 times, up once, west once and
finally south.

Pace

Format: /pace {number of milliseconds}

Pace controls has fast commands are sent to the mud when you are speedwalking.

  • {number of milliseconds} The number of milliseconds to wait before sending the next movement command.

For those of you not metrically aware 1000 milliseconds is equal to 1 second.
500 milliseconds is half a second, etc...

Walkstop


File Commands

Dir

Format: /dir {file mask} {result list}

Dir fills a list with all the files matching the file mask.

  • {file mask} - Path and wildcard characters of files to find.
  • {result list} - The name of a list to fill with the results. If the list doesn't already exist it will be created.

/dir {*.*{DirList}
Fills a list named DirList with all the files in the Mud Master directory.

FileDelete

Format: /filedelete {filename}

Deletes a file.

{filename} - Full path and filename of a file to delete.

EditCurrent

Format: /editcurrentsession  {Filename}
/editcurrentsession

With no argument the current sesion default script file is opened in notepad.
With a file name that file is opened in notepad.
Example:

/editc

This opens the current default start up script in notepad.

Spam

format: /spam {filename with path}

Reads a text file and displays it without processing script or sending the text to the MUD. ANSI colour commands are supported.  Useful in displaying help or hint text especially in combination with the /window command to display in a separate window.

Textin

Format: /textin {filename}

Sends the contents of a textfile to the mud.

{filename} The name of the file to send.

Textout

Format: /textout {filename}{text}{append indicator}

Sends text to a textfile.

  • {filename} The name of the file to write to.
  • {text} The text to output to the file.
  • {append indicator} Optional argument. If present text will be apppended to the end of the file. Otherwise text will replace anything in the file if it exists.

Viewlog

Format: /viewlog {filename}{[ProcessScript]}

Display the contents of a log file created with the RawMudLog feature. If the second argument exists then the current script will be processed as the log is read in. This may slow down the input significantly.

Write

Format: /write {filename}

Write all currently loaded script to the file specified.

WriteGroup

Format: /writegroup {filename} {group}

Writes all your commands, aliases, actions etc... belonging to a certain group
to a command file.

  • {filename} The name of the file to write your commands to.
  • {group} The group identifying the commands to save

Intersection

Format: /itersection {X1} {Y1} {Radius1} {X2} {Y2} {Radius1} {Variable Name}

Calculates the two points where the two circles intersect.
Result is in the form of (x,y) (x,y)

{X1} X coordinate of the center of the first circle
{Y1} Y coordinate of the center of the first circle
{X2} X coordinate of the center of the second circle
{Y2} Y coordinate of the center of the second circle
{Radius1} distance from the center of the center of the first circle
{Radius2} distance from the center of the center of the second circle
{Variable Name} Variable where the result string is placed.

Math

Format: /math {variable for result} {math expression}

The math command lets you perform mathematical equations and place the result
in a variable. Math does integer math only (no floating point).

  • {variable for result} The name of the variable to place the result in. If the variable doesn't exist it will be created.
  • {math expression} Mathematical expression to be evaluated.

Operator  Description
--------  -----------
()        Precedence
*         Multiplication
/         Division
%         Modulus
+         Addition
-         Subtraction

Anything enclosed in the parens will be evaulated first. Then all the
multiplication, division and modulus operators are evaulated left to right.
Then addition and subtraction are evaluated left to right.

/math {result} {3 + 5 * 4}
Would place the number 23 in a variable called "result."

/math {result} {(3 + 5) * 4}
Would place the number 32 in a variable called "result."

/math {result} {$Result + 1}
Adds 1 to variable "result."

/math {result} {5 % 3}
The modulus operator returns the remainder of a division as an integer. This
would place the number 2 in the variable "result." 5 divided by 3 leaves a
remainder of 2.

Presubstitute

Format: /presubstitute

When on, substitutes are processed before the actions are checked. When off
actions are processed on the original text

Help

Format: /help topic

Commands           Procedures          UserGuide

To view a help topic type "/help topic name".  To see all the commands available type "/help commands" or /help /. To view a list of all procedures enter /help @

If this is the first time you are using Mud Master you will probably want to take a look at the session command first.  That is the command that connects you to a mud.  "/help session"

/help

/help {Command Name}

/help {@Procedure Name}

By itself with no arguments, this will display the starting help file. /help /  to list command help files. /help @ to list all procedures.

Using a / in front of a command name /help /commandname  will allow you to abbreviate the command. If the help is not found try spelling it out completely.

Version

Format: /version

Displays the version of the client you are using.