v0.8 Build 5898 Revision 30044
- New - Functions:
- repeat(string, number) - will repeat string # of times
- string(mixed) - will force the return value to always be string
- ascii(string) - returns the ascii value of the first character of the string.
- char(number) - returns the ascii charcter of number
- number(string) - converts string into #
- round(number) - rounds a number off
- floor(number) - returns largest integer less that or equal to #
- ceil(number) - returns smallest integer less that or equal to #
- trim(string) - trim leading and trailing whitespace
- trimleft(string) - trim leading whitespace
- trimright(string) - trim trailing whitespace
- contact(string1, ..., stringN) - concate all strings into one string
- left(string, len) - return the leftmost len characters of the string
- leftback(string, fromend) - return the leftmost part of string until fromend characters from the end
- right(string, fromleft) - return the rightmost part of string starting at the fromleft position (the first character is position 1)
- rightback(string, len) - return the rightmost len characters of the string.
- numwords(string, delimiter) - return the number of words in string, delimited by string delimiter (if delimiter is missing, a space is used as the word delimiter)
- word(string, n, delimiter) - return the nth word of string, delimited by string delimiter (if delimiter is missing, a space is used)
- copy(string, start, len) - return a portion of string, starting at character position start (the first character is position 1), and returning len characters. If len is missing, then the rest of the characters in the string are returned. If start is less than zero, then the start position is relative to the end of the string instead of the beginning.
- delete(string, start, n) - return the string with n characters starting at position start removed. The first character of a string has a start position of 1.
- remove(item, string) - Remove substring item from string and return the result. Note that it only removes the first occurrence. To remove all occurrences, use the %replace function.
- insert(item, string, start) - return the string with item inserted at position start.
- replace(string, old, new) - return string with all occurrences of old replaced with new, if new is left off it will default to ""
- subchar(string, oldlist, newlist) - Replaces characters of string contained in oldlist with the corresponding character in newlist and return the result. if newlist is left off it will default to ""
- eval(expression) - this will eval the expression as if you had used [expression] from the command line.
- subregex(string, regular-expression, substring) - test is string matches the regualr expression, if matches, the matched part will be replaced with substring. This uses the .net regular expression library so any .net regular expression is allowed, you may use $# to match grouping in the substring, for example #subregex("100 gold coins", "(\d+)", "$1+10") will replaced 100 with 100+10, or #subregex("100 gold coins", "(\d+)", "%eval($1+10)") will replace 100 with 110
- begins(string1, string2) - returns true if string1 begins with string2
- ends(string1, string2) - returns true if string1 ends with string2
- pos(pattern, string) - returns position of pattern in string, 0 if not found
- yesno(message, button1, button2, ..., buttonN)- displays a message box and returns 0 or 1, optional buttons are formated as value or title:value, if no title is supply the value will be set as the title, if button 1 and button 2 and no title it will default to "Yes" and "No"
- pref(setting, value) - set or get preferance value, where settings it the name of the setting, does support zmud %pref key values where possible, if not supported will return nothing, more zmud pref wills be mapped over time as supported right now it only supports the ansi colors (ForeCol#, BackCol#) and the ansi styles (ANSIstyle), if value is missing it will return the setting value
- color(fore|style, back) - converts a descriptive color into an attribute value.
- ansi(fore, ..., back) - return formated ansi code string
- New - Commands:
- MXP - Echo the text to the screen like the SHOW command. However, Secure MXP commands are allowed in the text.
- New - Misc:
- Copy Url context item when right clicking a url.
- Context menus now support menu seperators, just set the caption as - and it will appear as a menu seperator.
- Macro daisy chaining - this allows you to combine macros and have them auto sent to the mud depending on the macro values or command line text.
- Parsing now allows escaping of ( or ) so things like %clip\(\) will return the value of clip followed by ().
- Cleaned up Reference Library » Commands to be easier to read, now has a syntax column.
- Fixed - Profile Editor
- Fixed bugs when editing context menus, the additional options where not saving or updating.
- Fixed a bug when editing context menus and it would ask you to save even if you had already clicked the saved button.
- Fixed a bug where context menus and control editors where not setting the changed flag when being edited.
- Fixed - Misc:
- Fixed a bug dealing with local echo and xterm colors
- Fixed priority sorting for profile objects, it was ignoring prioirty when sorting triggers, context menus and other items when setting item order.
- Fixed a bug in telnet processing when UTF is enabled and it not correctly inserting newlines and other characters into the UTF string, it would append them instead causing malformed text.
- Fixed a bug in the scripting system not correctly accepting escaped characters
- Fixed a bug in parameter parsing if parameter was not found it would not correctly append the (string) to the output instead just returning %param.
- Fixed a bug in parameter parsing when constants (letters/numbers) where parsed and contained a comma
- Fixed parsing of string constants in user or inline functions to not be as stritch so things like %pos(ABC, 12ABC) will correctly work even if not quoted strings.
- Readded len, upper, lower, and proper functions
- Fixed - MXP:
- Fixed sound and music default url issues
- Fixed an issue where the tag arguments where being cut by one letter
- Fixed music tag not correctly continuing, it would instead restart when no C=# used, it should default to 1 which is continue where out and repeat the sound when it reaches the end.
- Fixed - MSP:
- Fixed relation to MXP sound and music tag and default url
- Fixed music downloading, if last played and played again it was trying to redownload the file instead of correctly loading from disk.
- Fixed music continue not correctly counting repeats
- Fixed music and sound process where if an exception happened it would crash the client.
- Fixed music not starting downloading of file.
- Fixed downloading freezing the progress dialog when starting a download.
- Fixed autoplay after download has completed.
- Fixed download size display to have correct amount of bytes received displayed.
- Fixed off argument not always working