[Package Index | Mudlib Index | Effect Index]
Written by Pinkfish
Started Thu Feb 5 15:39:57 CST 1998
.
void add_shop_category(string category)This method adds a category into the accept list immediately. This should really only be used for initialy setting up the shop.
int do_change_category(object * obs, string new_category)
int do_list_category(string category)This method lists a specific category of items.
string query_default_category()This method returns the current default category for the shop.
function query_extra_sell_check()This method returns the extra sell check function.
string query_real_category_name(string in_cat)This correctly cases the name.
void remove_shop_category(string category)This method forcibly removes a category from the accepted list.
void set_category_description(string category, string description)This method sets the description of the category.
void set_category_information(string category, string information)This method sets the description of the category.
void set_default_category(string category)This method sets the default category for the item. This must be setup for something useful to happen.
void set_extra_sell_check(function func)This method sets the extra sell function for the shop. The extra sell function is called after the sell process is almost finished. It can check for extra things needed in the sell process, like which page of the book to browse.
void update_categories()You should run this when you change the system to the category based system. It will go through and set anything without a category to have a category.
void choose_category(string category, function func, int value, string name, object * sellables, string * categories)This method chooses which category to set the item in.
void setup_category(function func, int value, string name, object * sellables)This method sets a category on the sellables. It is called from within the craft shop code itself.