[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 /d/cwc/inherit/shop_inherit.c</h2> This simple shop inheritable provides a uniform way of handling the
value of gold items in shops.<p>Written by Taffyd<p>Started Fri Mar 26 02:44:49 1999<h2>Inherits</h2>
This class inherits the following classes /d/cwc/inherit/family_shop.c, /d/cwc/inherit/teleport_inherit.c and <a href="std.shops.general_shop.c.shtml">/std/shops/general_shop.c</a><h2>Method index</h2>
<dl><ul>
<li><a href="#clone_shopkeeper">clone_shopkeeper</a>()<li><a href="#do_browse">do_browse</a>(object *)<li><a href="#do_buy">do_buy</a>(object *)<br/>
The do_buy method is masked in a way to funnel a bit of every purchase
toward the five families' coffers.
<li><a href="#do_list">do_list</a>()<li><a href="#do_not_buy">do_not_buy</a>(object)<br/>
This method is used to determine whether or not a particular item and be
bought in the shop.
<li><a href="#do_sell">do_sell</a>(object *)<li><a href="#do_value">do_value</a>(object *)<li><a href="#event_enter">event_enter</a>(object, string, object)<li><a href="#event_theft">event_theft</a>(object, object, object, object *)<li><a href="#query_buy_block">query_buy_block</a>()<br/>
This method is used to check whether or not buy blocking is enabled for
this shop.
<li><a href="#query_shopkeeper">query_shopkeeper</a>()<li><a href="#query_steal_difficulty">query_steal_difficulty</a>(int)<li><a href="#restricted_item_message">restricted_item_message</a>(object *, object, string, string)<li><a href="#set_buy_block">set_buy_block</a>(int)<br/>
This method is used to set or disable the buy block on a shop.
<li><a href="#set_shopkeeper">set_shopkeeper</a>(string)<li><a href="#unset_shopkeeper">unset_shopkeeper</a>()</ul><h2>Public Functions</h2>
These are functions that everyone can access.<p>
.<ul><a name="clone_shopkeeper">
clone_shopkeeper</a><pre>
void clone_shopkeeper()
</pre>
<ul><a name="do_browse">
do_browse</a><pre>
int do_browse(object * obs)
</pre>
<ul><a name="do_buy">
do_buy</a><pre>
int do_buy(object * obs)
</pre></br>
The do_buy method is masked in a way to funnel a bit of every purchase
toward the five families' coffers.  This is only done after checks that
it is possible for the player to shop at the store.


<ul><a name="do_list">
do_list</a><pre>
int do_list()
</pre>
<ul><a name="do_not_buy">
do_not_buy</a><pre>
int do_not_buy(object item)
</pre></br>
This method is used to determine whether or not a particular item and be
bought in the shop.  By default, items that have their material set to
gold or who have the word gold in their short description cannot be 
sold here.
<p>
<br/><ul>
<li><b>Returns:</b>
<br/>0 if the item can be sold here, 1 if it cannot be sold.
<li><b>See also:</b>
<br/><a href="#query_buy_block">query_buy_block()</a> and <a href="#set_buy_block">set_buy_block()
</a></dl>

<ul><a name="do_sell">
do_sell</a><pre>
int do_sell(object * in_obs)
</pre>
<ul><a name="do_value">
do_value</a><pre>
int do_value(object * in_obs)
</pre>
<ul><a name="event_enter">
event_enter</a><pre>
void event_enter(object pl,
                 string mess,
                 object obj)
</pre>
<ul><a name="event_theft">
event_theft</a><pre>
void event_theft(object command_ob,
                 object thief,
                 object victim,
                 object * stolen)
</pre>
<ul><a name="query_buy_block">
query_buy_block</a><pre>
int query_buy_block()
</pre></br>
This method is used to check whether or not buy blocking is enabled for
this shop.
<br/><ul>
<li><b>Returns:</b>
<br/>1 if blocking is enabled, 0 if it isn't.
<li><b>See also:</b>
<br/><a href="#set_buy_block">set_buy_block()
</a></dl>

<ul><a name="query_shopkeeper">
query_shopkeeper</a><pre>
object query_shopkeeper()
</pre>
<ul><a name="query_steal_difficulty">
query_steal_difficulty</a><pre>
int query_steal_difficulty(int i)
</pre>
<ul><a name="restricted_item_message">
restricted_item_message</a><pre>
void restricted_item_message(object * items,
                             object client,
                             string money,
                             string extra)
</pre>
<ul><a name="set_buy_block">
set_buy_block</a><pre>
void set_buy_block(int i)
</pre></br>
This method is used to set or disable the buy block on a shop.  This
can be used to enable/disable the purchase of gold items the shop.
<p>
<br/><ul>
<li><b>Parameters:</b>
<br/>i - 1 if you can buy here, 0 if you cannot.
<li><b>See also:</b>
<br/><a href="#query_buy_block">query_buy_block()</a> and <a href="#do_not_buy">do_not_buy()
</a></dl>

<ul><a name="set_shopkeeper">
set_shopkeeper</a><pre>
void set_shopkeeper(string path)
</pre>
<ul><a name="unset_shopkeeper">
unset_shopkeeper</a><pre>
void unset_shopkeeper()
</pre>

[an error occurred while processing this directive]

