From: Rick L Bird Date: Sun, 10 Apr 2011 17:16:50 +0000 (-0400) Subject: Merge branch '0.74-penndev' into HEAD X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=b1b6147b2d51b23f7451812a6bb7ade690f71f53;p=cobramush.git Merge branch '0.74-penndev' into HEAD Conflicts: INSTALL MANIFEST MANIFEST.new Makefile.SH Patchlevel README UPGRADING game/txt/hlp/cobra_chat.hlp game/txt/hlp/cobra_func.hlp hdrs/attrib.h hdrs/flags.h hdrs/version.h src/Makefile.SH src/attrib.c src/bsd.c src/command.c src/conf.c src/console.c src/filecopy.c src/flags.c src/function.c src/funlist.c src/funstr.c src/funtime.c src/game.c src/local.dst src/lock.c src/player.c src/rplog.c src/set.c src/wild.c utils/mkcmds.sh.SH utils/mkvershlp.pl utils/preparedist.sh --- b1b6147b2d51b23f7451812a6bb7ade690f71f53 diff --cc Makefile.SH index f0e7afb,da43021..8a42ac7 --- a/Makefile.SH +++ b/Makefile.SH @@@ -45,14 -45,11 +45,12 @@@ $spitshell >Makefile <;s;south;out;o" coming back from the kitchen to whatever room you are currently in. - + - See also: @open, @link, EXITS, @create + See also: @open, @link, EXITS, @create, DBREF & @doing @doing @doing/header @@@ -1948,10 -1930,12 +1930,12 @@@ See also: LISTENING, @ahear, @amhear, @ @lock My Toy = = me This locks the object "My Toy" to you and you alone. It is recommended that you @lock me == me in order to prevent anyone else from picking - you up. The two = signs are NOT a typo! + you up. The two = signs are NOT a typo! The first is part of the @lock + syntax (as shown at the top of "help @lock") the second is a lock key + that means "exactly this object". - + - You can lock an object -against- one other object as well, using the '!' - symbol: + You can lock an object -against- another object as well, using the '!' + symbol before any other key: @lock Shared Toy = !Vector Sigma This locks the object "Shared Toy" to everyone -except- Vector Sigma. Everyone except Vector will be able to pick up the object. diff --cc game/txt/hlp/cobra_func.hlp index 36886f8,71dc140..549922d --- a/game/txt/hlp/cobra_func.hlp +++ b/game/txt/hlp/cobra_func.hlp @@@ -25,12 -25,13 +25,13 @@@ A list of available built-in functions can be obtained via the command "@config/functions". In the help text, the list is under the topic "FUNCTION LIST". - + In addition to these built-in functions are MUSH-defined "global user - functions." These are defined by objects with the "GFuncs" power, via + functions." These are defined by objects with the "GFuncs" power, via the "@function" command. To the user, they act just like the built-in g ame functions. For details on global user functions, see "help @function". - + + See also: MUSHCODE & FUNCTION LIST Several major variants of functions are available. The help topics @@@ -58,18 -59,18 +59,19 @@@ The command "@config/functions" lists all of the game's built-in functions. The command "@function" lists all of the game's custom global functions defined via the @function command. - + & Attribute functions - All these functions access attributes on an object. + The primary purpose of these functions is to access information + stored in attributes on objects. - - aposs() attrib_set() default() edefault() eval() - get() grep() grepi() lattr() nattr() - obj() poss() regrep() regrepi() subj() - udefault() ufun() uldefault() ulocal() v-function - wildgrep() wildgrepi() xget() zfun() + + aposs() apply() default() edefault() eval() + filter() filterbool() fold() foreach() get() + grep() grepi() lattr() nattr() obj() + poss() regrep() regrepi() subj() udefault() + ufun() uldefault() ulocal() v-function xget() - zfun() ++ zwildgrep() wildgrepi() xget() fun() - See also: ATTRIBUTES, NON-STANDARD ATTRIBUTES + See also: ATTRIBUTES, NON-STANDARD ATTRIBUTES & Bitwise functions These functions treat integers as a sequence of binary bits (Either 0 or 1) and manipulate them. @@@ -93,8 -94,8 +95,8 @@@ and() cand() cor() eq() gt() gte() lt() lte() nand() neq() nor() not() or() t() xor() - + - See also: BOOLEAN VALUES, @config + See also: BOOLEAN VALUES, @config & Communication functions Communication functions are side-effect functions that send a message to an object or objects. @@@ -107,36 -108,34 +109,38 @@@ on a game, or about specific connections. cmds() conn() doing() height() hostname() - hidden() idle() ipaddr() lports() lwho() + hidden() idle() ipaddr() lports() lwho() - mwho() ports() pueblo() recv() sent() - ssl() terminfo() width() idle_average() + lwhoid() mwho() mwhoid() nmwho() nwho() + ports() pueblo() recv() sent() ssl() + terminfo() width() xmwho() xmwhoid() xwho() + xwhoid() zmwho() zwho() & Dbref functions Dbref functions return a dbref or list of dbrefs related to some value on an object. - - children() con() entrances() exit() followers() - following() home() lcon() lexits() loc() - locate() lparent() lplayers() lsearch() lvcon() - lvexits() lvplayers() namelist() next() nextdbref() - num() owner() parent() pmatch() rloc() - rnum() room() where() zone() + + children() con() entrances() + exit() followers() following() + home() lcon() lexits() + loc() locate() lparent() + lplayers() lsearch() lvcon() + lvexits() lvplayers() namelist() + next() num() owner() + parent() pmatch() rloc() + rnum() room() where() + zone() - See also: DBREF + See also: DBREF & Information functions Information functions return values related to objects or the game. - + - andflags() andlflags() config() controls() ctime() - elock() findable() flags() fullname() hasattr() - hasattrp() hasflag() haspower() hastype() iname() - lflags() lock() lstats() money() mtime() - mudname() name() nattr() nearby() objid() - objmem() orflags() orlflags() playermem() poll() - powers() quota() restarts() type() version() - visible() + alias() andflags() andlflags() config() controls() + ctime() elock() findable() flags() fullalias() + fullname() hasattr() hasattrp() hasflag() haspower() + hastype() iname() lflags() lock() lstats() + money() mtime() mudname() name() nattr() + nearby() objid() objmem() orflags() orlflags() + playermem() poll() powers() quota() restarts() + type() version() visible() & List functions List functions take at least one list of elements and return transformed @@@ -144,15 -143,17 +148,17 @@@ can take an arbitrary argument to specify what delimits list elements; if none is provided, a space is used by default. - element() elements() extract() first() grab() - graball() index() insert() itemize() items() - iter() last() ldelete() map() match() - matchall() member() mix() munge() remove() + element() elements() extract() filter() filterbool() + first() fold() grab() graball() index() + insert() itemize() items() iter() last() + ldelete() map() match() matchall() member() + mix() munge() namegrab() namegraball() remove() replace() rest() revwords() setdiff() setinter() - setunion() shuffle() sort() sortby() splice() - step() table() wordpos() words() + setunion() shuffle() sort() sortby() sortkey() + splice() step() table() unique() wordpos() + words() - + - See also: LISTS + See also: LISTS & Math functions Math functions take one or more floating point numbers and return a numeric value. @@@ -182,8 -183,8 +188,8 @@@ regmatchi() regrab() regraball() regraballi() regrabi() regrep() regrepi() reswitch() reswitchall() reswitchalli() reswitchi() - + - See also: string functions, regexp + See also: string functions, regexp & SQL functions These functions perform queries or other operations on an SQL database to which the MUSH is connected, if SQL support is @@@ -194,38 -195,39 +200,40 @@@ & String functions String functions take at least one string and return a transformed string, parts of a string, or a value related to the string(s). - + - accent() after() alphamin() alphamax() art() - before() brackets() capstr() case() caseall() - cat() center() comp() chr() decrypt() - delete() digest() edit() encrypt() escape() - if() ifelse() lcstr() left() lit() - ljust() merge() mid() ord() pos() - regedit() lpos() regmatch() repeat() reverse() - right() rjust() scramble() secure() sha0() - space() spellnum() squish() strcat() strinsert() - stripaccents()stripansi() strlen() strmatch() strreplace() - switch() trim() ucstr() wrap() - - See also: STRINGS + accent() after() align() alphamin() alphamax() + art() before() brackets() capstr() case() + caseall() cat() center() comp() chr() + decompose() decrypt() delete() digest() edit() + encrypt() escape() if() ifelse() foreach() + lcstr() left() lit() ljust() merge() + mid() ord() ordinal() pos() regedit() + lpos() regmatch() repeat() reverse() right() + rjust() scramble() secure() sha0() space() + spellnum() squish() strcat() strinsert() stripaccents() + stripansi() strlen() strmatch() strreplace() switch() + trim() ucstr() wrap() + + See also: STRINGS & Time functions These functions return times or format times. - + convsecs() convutcsecs() convtime() ctime() etimefmt() isdaylight() mtime() restarttime() secs() starttime() - stringsecs() time() timefmt() timestring() utctime() + stringsecs() time() timefmt() timestring() utctime() & Utility functions These functions don't quite fit into any other category. - - allof() ansi() atrlock() beep() checkpass() - clone() create() die() dig() firstof() - functions() isdbref() isint() isnum() isword() - localize() link() list() lnum() null() - numversion() objeval() open() pcreate() r-function - rand() s-function scan() set() setq() - setr() soundex() soundslike() speak() tel() - textentries() textfile() valid() wipe() @@() + + allof() ansi() atrlock() atrmodtime() beep() + break() checkpass() clone() create() die() + dig() firstof() functions() isdbref() isint() + isnum() isword() localize() link() list() + lnum() null() objeval() open() pcreate() + r-function rand() s-function scan() set() - setq() setr() soundex() soundslike() tel() - textfile() valid() wipe() @@() ++ setq() setr() soundex() soundslike() speak() ++ tel() textentries() textfile() valid() wipe() ++ @@() & @@() & NULL() @@@ -545,10 -560,10 +576,10 @@@ See also: BOOLEAN VALUES, or(), xor(), attrib_set(me/foo,%0) will _always_ create an attribute. Of course, if the empty_attrs configuration option is turned off, - then the above paragraph doesn't apply. See @config attribs. + then the above paragraph doesn't apply. See '@config attribs'. - + & BAND() - band(,,...) + band(, [, ... , ]) Does a bitwise AND of all its arguments, returning the result (A number with only the bits set in every argument set in it). @@@ -562,8 -577,7 +593,7 @@@ Sends "alert" bell characters. must be in the range 1 to 5, or, if unspecified, defaults to 1. - - This function may only be used by 'Admin' type players. + This function may only be used by 'Admin' type players. & BEFORE() before(, ) @@@ -634,10 -653,10 +669,10 @@@ See also: strcat( Returns the least integral value greater than or equal to . - See also: floor(), bound(), round(), trunc() + See also: floor(), bound(), round(), trunc() & CENTER() - center(,[,[,]]) + center(, [, [, ]]) - + This function will center within a field characters wide, using the string for padding on the left side of the string, and for padding on the right side. defaults @@@ -646,8 -665,8 +681,8 @@@ If divides into uneven portions, the left side will be one character shorter than the right side. - + - Example: + Examples: > say center(X,5,-) You say, "--X--" > say center(X,5,-=) @@@ -1414,15 -1432,8 +1448,8 @@@ Continued in HELP FOREACH > say [foreach(is_alphanum,jt1o+)] You say, "1 1 1 1 0 " - See also: anonymous attributes - - & ACCNAME() - accname() + See also: anonymous attributes - + - accname() returns the name of object , applying the object's - @nameaccent, if any. - - Related functions: NAME(), FULLNAME(), INAME() & FRACTION() fraction() @@@ -1476,8 -1487,8 +1503,8 @@@ extract(list, match(list, pattern, delimiter), 1, delimiter) or the regular expression variation thereof. - See also: match(), extract(), element(), elements(), index(), regmatch(), + See also: match(), extract(), element(), elements(), index(), regmatch(), - graball() + graball() & GRABALL() & REGRABALL() & REGRABALLI() @@@ -1519,12 -1530,12 +1546,12 @@@ See also: match(), matchall(), grab(), names to search. Parsing _does_ occur before this function is invoked. Therefore, - "special" characters will need to be escaped out. + "special" characters will need to be escaped out. - grep()/wildgrep()/regrep() are case-sensitive. + grep()/wildgrep()/regrep() are case-sensitive. grepi()/wildgrepi()/regrepi() are case-insensitive. & GT() - gt(,) + gt(, ) Takes two numbers, and returns 1 if and only if the first is greater than the second, and 0 otherwise. @@@ -1966,20 -1994,17 +2010,22 @@@ See also: lcon(), exit(), next(), lvexi You say, " 0foo---7 01234567" - + + See also: align(), center(), rjust() & LINK() - link(, [, ]) + link(, [, ]) This function links object to . While normally used on exits, it has all of the other capabilities of @link as well. - It returns nothing. + It returns nothing. If the optional third argument is true, acts like + @link/preserve. + An optional boolean supplied third argument may given indicating + behavior similar to @link/preserve. + This is a side-effect function and may not be enabled on some MUSHes. + + See Also: @link & LIST() list(