[Package Index | Mudlib Index | Effect Index]
See also:
help::craft_shop
.c
Written by Gruper
Started Thu Oct 29 1998
.
int is_potion_or_salve(object ob)This is the default function for checking if something can be sold in a potion shop. If you override this, there is no reason to inherit this file, so you can't. It will accept any object that contains something which has an eat effect or an apply effect.
function query_message_function()
string query_shopkeeper()
void set_message_function(function wossname)This method sets the message function for the shop. The message function can be useful to handle messages to the player via the shopkeeper. The function should be of type string -> void. If message_function is not set, we default to a rather nice function. If message_function is explicitly set to 0, no message will be given apart from the standard messages from craft_shop. It is called from is_potion_or_salve() and can also be used in do_buy() etc.
set_message_function( (: nudity_say :) ), where nudity_say looks like void nudity_say( string message ). When using
void set_shopkeeper(string name)This method sets the name of the shopkeeper that the shop will look for when giving messages to the player.
void shopkeeper_say(string message)This is the default message function. If the shopkeeper is in the shop, they will try to say message.