exec

skylib_fluffos_v3/mudlib/doc/creator/commands/exec · 638 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

.DT
exec
$MUDNAME$ creator help
exec

.SH Name
.SI 5
exec - Executes a bit of lpc code
.EI

.SH Syntax
.SI 5
exec <lpc code>
.EI

.SH Description
.SP 5 5
Exec can be used to execute a small amount of lpc.  What the function does is
write a temporary file call ~/exec_tmp.c and call a function containing the
code you provided on that object.  It will delete everything when it is finished
and clean up everything.  It will also print whatever return value is passed.
.EP

.SH Examples
.SI 5
exec return users()
exec return query_ip_number(this_player())
exec string s; s = "frog"; s += "fish"; return s
.EI

.SH See Also
.SP 5 5
call
.EP

Site Stats

Snippets: 1791
Codebases: 571