^#^
alias^#^
SUBTOPIC-player^#^
-=[ Help ]=-
command: alias
Usuage: alias <alias> <command>
Description: The alias command allows you to substitute an
alias for a command. You are allowed to have 30 aliases.
Example: alias 1 buy beer
Related topics: do.
^#^
ansi^#^
SUBTOPIC-player^#^
-=[ Help ]=-
command: ansi
Usuage: ansi
Description: ansi toggles a flag in the character. If the
flag is not on, ansi characters will be
filtered. This is tested, as some net people
cannot use ansi graphic codes.
Related topics: none.
^#^
align^#^
SUBTOPIC-creator^#^
-=[ Help ]=-
command: align
Usuage: align
align <alignment title>
Description: Every player's title is broken into 3 parts: pretitle,
title, and alignment title. This command allows you to
set your alignment title. If no alignment title is
given it defaults to "Lazy".
Example: align Busy
Related topics: mhome, mclone, minvis, mtrans, mmin, min, mmout, mout,
edtitle, review, title, pretitle.
^#^
animal friendship^#^
SUBTOPIC-cleric^#^
________________________________________________________________
()_______________________________________________________________)
| Prayer: Animal Friendship Sphere: Nature |
| Level: 3 Cost: 3 |
| Component: None. Usage: animal friendship who |
| Description: |
| |
| This prayer will cause small animals to be more trusting |
| with the cleric. The cleric may be able to persuade the |
| animal to follow, stay, get, drop or kill things. |
| |
| |
|_______________________________________________________________|
()_______________________________________________________________)
^#^
animate skeleton^#^
SUBTOPIC-cleric^#^
________________________________________________________________
()_______________________________________________________________)
| Prayer: Animate Skeleton Sphere: Necromancy |
| Level: 11 Cost: 11 |
| Component: skeleton Usage: ani skeleton |
| Description: |
| |
| This prayer will allow the cleric to animate a skeleton. The |
| skeleton will help the cleric combating. It will follow the |
| the cleric. |
| |
| |
|_______________________________________________________________|
()_______________________________________________________________)
^#^
animate zombie^#^
SUBTOPIC-cleric^#^
________________________________________________________________
()_______________________________________________________________)
| Prayer: Animate Zombie Sphere: Necromancy |
| Level: 14 Cost: 14 |
| Component: corpse Usage: ani zombie |
| Description: |
| |
| This prayer will allow the cleric to animate a corpse. The |
| zombie will help the cleric combating. It will follow the |
| the cleric. |
| |
| |
|_______________________________________________________________|
()_______________________________________________________________)
^#^
atone^#^
SUBTOPIC-cleric^#^
________________________________________________________________
()_______________________________________________________________)
| Prayer: Atone Sphere: Divination |
| Level: 15 Cost: 15 |
| Component: none. Usage: atone who |
| Description: |
| |
| This prayer will allow the cleric to read a persons alignment,|
| then alter it to match their own. You cannot atone players |
| of a higher level then you. |
| |
| |
|_______________________________________________________________|
()_______________________________________________________________)
^#^
abjuration^#^
SUBTOPIC-mage^#^
______________________________ ______________________________
__/ \/ \__
| /| Abjuration Spells |: Abjuration Spells |:||
||:| |: |:||
||:| Shield |: Stoneskin |:||
||:| Dispel Magic |: |:||
||:| Remove Curse |: |:||
||:| Spell Immunity |: |:||
||:| Anti Magic Shell |: |:||
||:| Resist Magic |: |:||
||:| Dispel Illusion |: |:||
||:| Dispel Conjuration |: |:||
||:|_____________________________ |: _____________________________|:||
||/______________________________\|:/______________________________\||
|_______________________________ _______________________________|
'----`
^#^
acid arrow^#^
SUBTOPIC-mage^#^
______________________________ ______________________________
__/ \/ \__
| /| |: |:||
||:| Spell: Acid Arrow |: Description: |:||
||:| School: Evocation |: |:||
||:| Cost: 5 |: This spell causes a bolt of |:||
||:| Level: 5 |: acid to hit a target |:||
||:| Usage: acid arrow target |: designated by the caster. |:||
||:| |: |:||
||:| Related Spells: |: |:||
||:| None. |: |:||
||:| |: |:||
||:|_____________________________ |: _____________________________|:||
||/______________________________\|:/______________________________\||
|_______________________________ _______________________________|
'----`
^#^
acid rain^#^
SUBTOPIC-mage^#^
______________________________ ______________________________
__/ \/ \__
| /| |: |:||
||:| Spell: Acid Rain |: Description: |:||
||:| School: Conjuration |: |:||
||:| Cost: 13 |: This spell conjures rain |:||
||:| Level: 13 |: to fall from the sky. The |:||
||:| Usage: acid rain |: acidic rain burns everyone |:||
||:| |: within the area. |:||
||:| Related Spells: |: |:||
||:| None. |: |:||
||:| |: |:||
||:|_____________________________ |: _____________________________|:||
||/______________________________\|:/______________________________\||
|_______________________________ _______________________________|
'----`
^#^
alteration^#^
SUBTOPIC-mage^#^
______________________________ ______________________________
__/ \/ \__
| /| Alteration Spells |: Alteration Spells |:||
||:| |: |:||
||:| Burning Hands |: Teleport Other |:||
||:| Lt (light) |: Teleport Party |:||
||:| Deep Pocket |: Warp |:||
||:| Disintergrate |: Warp Other |:||
||:| Enchanted Weapon |: Warp Party |:||
||:| Rope Trick |: |:||
||:| Strength |: |:||
||:| Teleport |: |:||
||:|_____________________________ |: _____________________________|:||
||/______________________________\|:/______________________________\||
|_______________________________ _______________________________|
'----`
^#^
alter reality^#^
SUBTOPIC-mage^#^
______________________________ ______________________________
__/ \/ \__
| /| |: |:||
||:| Spell: Alter Reality |: Description: |:||
||:| School: Illusion |: |:||
||:| Cost: varies |: This illusion spell is so |:||
||:| Level: 18 |: powerful that it realy |:||
||:| Usage: alter reality spell |: alters reality. It can |:||
||:| |: imitate most spells whose |:||
||:| Related Spells: |: level is less then 15. |:||
||:| Phantasmal Force. |: |:||
||:| |: |:||
||:|_____________________________ |: _____________________________|:||
||/______________________________\|:/______________________________\||
|_______________________________ _______________________________|
'----`
^#^
anti magic shell^#^
SUBTOPIC-mage^#^
______________________________ ______________________________
__/ \/ \__
| /| |: |:||
||:| Spell: Anti Magic Shell |: Description: |:||
||:| School: Abjuration |: |:||
||:| Cost: 20 |: This powerful spell prevents|:||
||:| Level: 20 |: any spells, or unnatural |:||
||:| Usage: anti magic shell |: abilities to be used in an |:||
||:| |: area. |:||
||:| Related Spells: |: |:||
||:| None. |: |:||
||:| |: |:||
||:|_____________________________ |: _____________________________|:||
||/______________________________\|:/______________________________\||
|_______________________________ _______________________________|
'----`
^#^
add_action^#^
SUBTOPIC-efun^#^
EFUN: add_action()
SYNOPSIS
void add_action(string fun, string cmd, int flag);
DESCRIPTION
Set up a local function <fun> to be called when user input
matches the command <cmd>. Functions called by a player com-
mand will get the arguments as a string. It must then return
0 if it was the wrong command, otherwise 1.
If it was the wrong command, the parser will continue
searching for another command, until one returns true or
give error message to player.
If the second argument (<cmd>) is not given, it must be
given by add_verb(). Support of add_verb() is of historical
reasons.
Usually add_action() is called only from an init() routine.
The object that defines commands must be present to the
player, either being the player, being carried by the
player, being the room around the player, or being an object
in the same room as the player.
If argument <flag> is 1, then only the leading characters of
the command has to match the verb <cmd> and the entire verb
is returned by query_verb(). If argument <flag> is 2, then
again, only the leading characters must match, but
query_verb() will only return the characters following
<cmd>.
EXAMPLE
void init() {
add_action("north","north");
}
status north() {
write("You move north.\n");
this_player()->move_player("north#room/church");
return 1;
}
SEE ALSO
query_verb(), add_verb().
^#^
add_verb^#^
SUBTOPIC-efun^#^
EFUN add_verb()
SYNOPSYS
void add_verb(string str)
DESCRIPTION
This function is connected to the "add_action()" function. It
will set up the command "str" to trigger a call to the
function set up by the previous call to "add_action()".
This function is now obsolete as the verb can be given
directly with add_action(). add_verb() remains
for compatibility.
EXAMPLE
void init() {
add_action("north");
add_verb("north");
}
status north() {
write("You move north.\n");
this_player()->move_player("north#room/church");
return 1;
}
SEE ALSO add_action().
^#^
all_inventory^#^
SUBTOPIC-efun^#^
EFUN all_inventory()
SYNOPSIS
object *all_inventory(void|object ob);
DESCRIPTION
Returns an array of the objects contained in the inventory
of <ob>. If <ob> is void then it defaults to this_object().
EXAMPLE
void show_inventory() {
int i;
object *inv;
for(i = 0, inv = all_inventory(); i < sizeof(inv); i++) {
write((string)inv[i]->query_name() +"\n");
}
}
SEE ALSO
first_inventory(), next_inventory()
^#^
allocate^#^
SUBTOPIC-efun^#^
EFUN allocate()
SYNOPSIS
mixed *allocate(int size);
DESCRIPTION
Allocate an array of <size> elements. The number of
elements must be >= 0 and not bigger than a system maximum
(usually ~10000). All elements are initialized to 0.
It is used to initialize large arrays usually. Small arrays
can use the ({}) array constructors.
EXAMPLE
string *list;
void init_array() {
list = allocate(20);
}
SEE ALSO
sizeof(), unique_array(), sort_array(), filter_array(), [],
({}), extract().
^#^
acos^#^
SUBTOPIC-amylaar^#^
SYNOPSIS
float acos(float)
DESCRIPTION
Returns the arcus cosine of the argument.
^#^
add_worth^#^
SUBTOPIC-amylaar^#^
SYNOPSIS
int add_worth(int amount)
int add_worth(int amount, object obj)
DESCRIPTION
Add amount to the money/experience value shown in the wizlist
to the current user or to the one given as second argument.
The calling object must be privileged by the master object,
usually it is only allowed for objects with origin somewhere
under /std, /obj or /room, depending on your base object library.
SEE ALSO
wizlist(E)
^#^
add_xverb^#^
SUBTOPIC-amylaar^#^
SYNOPSIS
void add_xverb(string str)
DESCRIPTION
This function is connected to the add_action() function. It
will set up the command str to trigger a call to the function
set up by the previous call to add_action().
add_xverb() differs from add_verb() in that only leading
characters of the input line must match with str. It basically
is the same as setting flag in add_action().
SEE ALSO
add_action(E), query_verb(E), add_verb(E)
^#^
allocate_mapping^#^
SUBTOPIC-amylaar^#^
SYNOPSIS
mapping allocate_mapping(int size, int width)
DESCRIPTION
Reserve memory for a mapping.
size is the number of entries (i.e. keys) to reserve, width is
the number of data items per entry. If the optional width is
omitted, 1 is used as default.
This is useful only when you are going to construct a mapping
whose approximate size you know beforehand, to save on malloc
overhead. If you don't fill in data for all the allocated
elements, any leftovers will be freed after the current
function execution ended. It is also useful if you want the
mapping to have a certain width even if you don't provide
all the data items for the keys yet.
SEE ALSO
mappings(LPC), walk_mapping(E), get_type_info(E)
^#^
apply^#^
SUBTOPIC-amylaar^#^
SYNOPSIS
mixed apply(closure cl, ...)
DESCRIPTION
Evaluates the closure.
One might wonder why there are two functions, funcall() and
apply(), to perform the seemingly same job, namely evaluating
a closure. Of course there is a subtle difference. If the last
argument to apply() is an array, then each of its elements
gets expanded to an additional paramater. The obvious use
would be #'call_other as in:
mixed eval(object ob,string func,mixed *args)
{
return apply(#'call_other,ob,func,args);
}
This will result in calling
ob->func(args[0],args[1],...,args[sizeof(args)-1]).
Using funcall() instead of apply() would have given us
ob->func(args).
SEE ALSO
funcall(E), closures(LPC)
^#^
asin^#^
SUBTOPIC-amylaar^#^
SYNOPSIS
float asin(float)
DESCRIPTION
Returns the arcus sine of its argument.
^#^
assoc^#^
SUBTOPIC-amylaar^#^
SYNOPSIS
mixed assoc(mixed key, mixed *keys, mixed *data_or_fail, mixed fail);
DESCRIPTION
Searches a key in an alist.
Three modes of calling:
i ) With exactly two arguments, the second being an array
which's first element is no array.
In this case the entire array is searched for the key; -1 is
returned if not found, else the index (like member_array(), but
faster on sorted arrays).
ii) With two or three arguments, the second being an array
which's first element is an array.
The array has to have a second element of the same size; the
key is searched in the first and the associated element of the
second array that is element of second argument is returned if
succesful; if not, 0 is returned, or the third argument, if
given.
iii) With three or four arguments, the second being an array
of keys (first element no array) and the second is a
matching data array. Returns 0 or fourth argument (if given)
for failure, or the matching entry in the array given as third
argument for success.
Complexity : O( lg(n) ) , where n is the number of keys.
Return value is undefined if another list is given in place of
a presorted key list.
SEE ALSO
alists(LPC), order_alist(E), insert_alist(E)
^#^
atan^#^
SUBTOPIC-amylaar^#^
SYNOPSIS
float atan(float)
DESCRIPTION
Returns the argument's arcus tangent.
^#^
add_weight^#^
SUBTOPIC-compatfn/driverfn^#^
SYNOPSIS
int add_weight(int w)
DESCRIPTION
In compat mode, this function is used by the efun transfer().
An object that can contain other objects and is not a room
must define this function. It is called with the extra weight
of the object that is moved into it. If this is ok, then it
has to increment the local weight count, and return true.
Otherwise, return false, and the new object can not be entered
into this object.
The function is also called with the negative weight in the
object that the moving leaves.
Note that no set_weight() is required by the parser.
SEE ALSO
transfer(E), query_weight(A), prevent_insert(A)
^#^
applied^#^
SUBTOPIC-compatfn/driverfn^#^
NAME
applied
DESCRIPTION
This directory contains descriptions for the lfuns used by
Amylaar's version of the LPC parser.
These are functions that are applied by the parser to the LPC
objects on various occasions.
SEE ALSO
efun(E), master(M), concepts(C), lpc(LPC), driver(D)
^#^
arm trap^#^
SUBTOPIC-thief^#^
-=[ Arm Trap ]=-
Command: arm trap
Usuage: arm trap on <door|item>
Description: This command allows you to arm a trap that has been
detected on a door or a item, like a chest for example.
Example: arm trap on east door
Related Topics: open, close, lock, unlock, search, detect trap.