[an error occurred while processing this directive]
[<a href="index.shtml">Package Index</a></code> | <a href="index_std.shtml">Mudlib Index</a></code> | <a href="index_eff.shtml">Effect Index</a></code>]<br><h2>File /secure/simul_efun/pk_check.c</h2>
Contains some simul_efuns.<p>Written by Pinkfish
<h2>Includes</h2>
This class includes the following files <a href="include.login.h.shtml">/include/login.h</a>, <a href="include.player_handler.h.shtml">/include/player_handler.h</a>, <a href="include.playtesters.h.shtml">/include/playtesters.h</a>, <a href="include.player.h.shtml">/include/player.h</a> and <a href="include.login_handler.h.shtml">/include/login_handler.h</a><h2>Method index</h2>
<dl><ul>
<li><a href="#pk_assist">pk_assist</a>(mixed, mixed, int)<br/>
This method checks to see if both of the objects are able to assist each
other.
<li><a href="#pk_check">pk_check</a>(mixed, mixed, int)<br/>
This method checks to see if both of the objects are able to do a
pk action on each other.
</ul><h2>Public Functions</h2>
These are functions that everyone can access.<p>
.<ul><a name="pk_assist">
pk_assist</a><pre>
int pk_assist(mixed assister,
              mixed assistee,
              int off_line)
</pre></br>
This method checks to see if both of the objects are able to assist each
other. This will return 1 if they cannot complete the action and 0
They are not able to assist each other if one of them is not PK and
the other is and the PK is in combat with other players.
<p>
If an object is passed into this method, it is first checked with the
method query_owner_pk_check(), if this returns a non-zero value it is
used as the person who owns the object.  This allows objects to be
pk checked when they are not players.
<br/><ul>
<li><b>Parameters:</b>
<br/>assister - thing doing the assisting
<br/>assistee - thing being assisted
<li><b>Returns:</b>
<br/>1 if they cannot attack each other

</dl>

<ul><a name="pk_check">
pk_check</a><pre>
int pk_check(mixed thing1,
             mixed thing2,
             int off_line)
</pre></br>
This method checks to see if both of the objects are able to do a
pk action on each other.  This will return 1 if they cannot
complete the action, ie: either of them are not player killers.
It will take an object or a string as the first parameter and attempt
to check for pkness, if the off_line flag is set it will even check for
players that are not even logged on.
<p>
If an object is passed into this method, it is first checked with the
method query_owner_pk_check(), if this returns a non-zero value it is
used as the person who owns the object.  This allows objects to be
pk checked when they are not players.
<br/><ul>
<li><b>Parameters:</b>
<br/>thing1 - first object to check
<br/>thing2 - second object to check
<br/>off_line - allow the check to occur if they are not logged on
<li><b>Returns:</b>
<br/>1 if they cannot attack each other

</dl>


[an error occurred while processing this directive]

