exec.html

final_realms_fluffos_v1/lib/doc/man/html/efuns/interactive/exec.html · 1.2 KB

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

<HEAD> <TITLE> exec - switches a user (interactive) connection from one object to another </TITLE> </HEAD> <BODY BACKGROUND=http://www.imaginary.com/~beek/gifs/bg.jpg TEXT=#000000 ALINK=#FFFF00 VLINK=#550000 LINK=#000099> <center> <H1> exec - switches a user (interactive) connection from one object to another </H1> </center>
<p>
<b> int exec( object to, object from ); </b>
<p>
This efunction allows the interactive link to a given object to be
moved to another object.  That is, after a successful exec(to, from)
call, interactive(to) will return 1 and interactive(from) will return 0.
The player that was controlling 'from' will begin controlling 'to' following
the exec() call.  Note that this is a powerful function and its use must
be restricted if you wish to attempt to have a secure mud.  The proper
way to restrict the use of exec() is to make a simul_efun of the same name
and then use valid_override() to restrict the use of a simul_efun override
(i.e. efun::exec()).  The exec() function returns 1 if the switch is
successful (and 0 otherwise).
<p>
See also:
<A HREF=interactive.html>  interactive </A>,
<A HREF=../../applies/master/valid_override.html>  valid_override </A>

Site Stats

Snippets: 1791
Codebases: 571