[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 /std/room/parcel_inherit.c</h2>

Post Office Delivery Inheritable<p>Written by Terano<p>Started 28 December, 1998
<h2>Inherits</h2>
This class inherits the following classes <a href="std.room.basic_room.c.shtml">/std/room/basic_room.c</a><h2>Includes</h2>
This class includes the following files <a href="include.playtesters.h.shtml">/include/playtesters.h</a>, <a href="include.player.h.shtml">/include/player.h</a>, <a href="include.player_handler.h.shtml">/include/player_handler.h</a>, /include/shops/bank.h, <a href="include.money.h.shtml">/include/money.h</a> and <a href="include.mail.h.shtml">/include/mail.h</a><h2>Method index</h2>
<dl><ul>
<li><a href="#deposit_parcel">deposit_parcel</a>(object *, string, int)<br/>
This method is used by outside objects to send parcels (if they should
need to do so).
<li><a href="#do_collect">do_collect</a>()<br/>
Collects a parcel if any are here
Mask to do interesting things
<li><a href="#do_deposit">do_deposit</a>(object *, string, int)<br/>
Do deposit function, mask to do interesting things
<li><a href="#make_shelf">make_shelf</a>(string, string)<br/>
Makes a shelf and moves it to the room, if there is a shelf, items
collected will be moved to it, otherwise they just get moved to the floor
<li><a href="#query_shelf">query_shelf</a>()<li><a href="#set_cost">set_cost</a>(int)<br/>
Sets the cost to send a parcel, in default money units
400 = $1AM
<li><a href="#set_currency">set_currency</a>(string)<br/>
What currency to use
<li><a href="#set_location">set_location</a>(string)<br/>
Sets the location of the parcel office
This is a directory in /save/parcels
ie /save/parcels/teranotest/
<li><a href="#set_shelf">set_shelf</a>(object)</ul><h2>Public Functions</h2>
These are functions that everyone can access.<p>
.<ul><a name="deposit_parcel">
deposit_parcel</a><pre>
int deposit_parcel(object * obs,
                   string name,
                   int show_sender)
</pre></br>
This method is used by outside objects to send parcels (if they should
need to do so).
<br/><ul>
<li><b>Parameters:</b>
<br/>obs - Objects to deposit (required)
<br/>name - Name to go to (required)
<br/>show_sender - non-zero to show name of sender in automail (optional)

</dl>

<ul><a name="do_collect">
do_collect</a><pre>
int do_collect()
</pre></br>
Collects a parcel if any are here
Mask to do interesting things
<br/><ul>
<li><b>Returns:</b>
<br/>1 if there are parcels, and 0 if there arent

</dl>

<ul><a name="do_deposit">
do_deposit</a><pre>
varargs int do_deposit(object * obs,
                       string name,
                       int show_sender)
</pre></br>
Do deposit function, mask to do interesting things
<br/><ul>
<li><b>Parameters:</b>
<br/>*obs - Objects to deposit (required)
<br/>name - Name to go to (required)
<br/>show_sender - non-zero to show name of sender in automail (optional)
<li><b>Returns:</b>
<br/>-7 if user is inactive, -5 if user is not allowed to
recieve parcels, -4 if sender is not allowed to send parcels, -3 if
sender and user are the same person,  -2 if no such user, -1 if not
enough money, 0 if missing arguments or failed for unknown reason
and 1 if successful 

</dl>

<ul><a name="make_shelf">
make_shelf</a><pre>
void make_shelf(string short,
                string long)
</pre></br>
Makes a shelf and moves it to the room, if there is a shelf, items
collected will be moved to it, otherwise they just get moved to the floor
<br/><ul>
<li><b>Parameters:</b>
<br/>short - The short desc of the shelf
<br/>long - The long desc of the shelf

</dl>

<ul><a name="query_shelf">
query_shelf</a><pre>
object query_shelf()
</pre>
<ul><a name="set_cost">
set_cost</a><pre>
void set_cost(int _cost)
</pre></br>
Sets the cost to send a parcel, in default money units
400 = $1AM
<br/><ul>
<li><b>Parameters:</b>
<br/>_cost - The cost

</dl>

<ul><a name="set_currency">
set_currency</a><pre>
void set_currency(string temp)
</pre></br>
What currency to use
<br/><ul>
<li><b>Parameters:</b>
<br/>temp - The type of currency (ie "Ankh-Morpork")

</dl>

<ul><a name="set_location">
set_location</a><pre>
void set_location(string _loc)
</pre></br>
Sets the location of the parcel office
This is a directory in /save/parcels
ie /save/parcels/teranotest/
<br/><ul>
<li><b>Parameters:</b>
<br/>_loc - location of the post office

</dl>

<ul><a name="set_shelf">
set_shelf</a><pre>
void set_shelf(object ob)
</pre>

[an error occurred while processing this directive]

