[Package Index | Mudlib Index | Effect Index]
Written by Terano
Started 3 October, 1998
.
void adjust_money(int amount, object player)
int automated_deposit(object * things, int auction_length, string function_cb, string object_cb, int res_price, string int_desc)This function allows an object to deposit an item for auction, Things are the items to auction, auction length is the length in seconds, function_cb and object_cb are function names and object paths to allow a call back to be scheduled for when the auction is over, res price is the reserve price and int_desc is a description that will be written on the case. If an error code is generated, it is upon the object calling this function to pull those objects back. An object reference isn't kept here.
int do_bid(string offer, object * boxes)Basic add command function.. lets you bid on stuff
int do_browse(object * boxes, string target, int identifier)This function will be a bit horrible, but it is a nicer way of doing it then keeping the objects around. This function uses Terano's cheap and dirty parser (All rights reserved). To be added - plural support! (using query_plural)
int do_collect(string pattern)
int do_deposit(object * things, int auction_time, string time_type, string res_price)
int do_describe(object * boxes, string int_desc)
int do_exclude(object * boxes, string excluded)
int do_list()
int do_unexclude(object * boxes, string excluded)
int do_withdraw(object * boxes)Withdraw an item from bidding
string extra_look(object ob)
string generate_advertising_string(class lot lot)This function generates a string that can be used in any advertising you might want to do, it returns a human friendly string that passes information about the lot. (Specifically - contents, cost and exp time) It takes a lot as an arg.
string generate_random_adv_string()A more usable version of above function, call it and it picks a lot at random and generates a string for it. returns "NULL" if there are no lots. Also returns NULL if the lot chosen isnt open
class store generate_store(object * things, int lot_id)Return a store class with info on the objects
void load_file()
void lot_check()A major component, this function is called once every few minutes to change the state of our bids. It puts new bids out on display, and modifies the state of in game lots as required. It also removes old ones.
mapping query_payments()
mixed recover_lot(mixed lot_autoload)
void save_file()
void set_admin_cost(int value)
void set_commission(int percent)
void set_currency(string cur)
void set_save_path(string path)
void set_shop_name(string _name)
class item { string name; string * alias; string * adjectives; string long; string read_mess; string enchant_mess; }
class lot { int case_code; class store assoc_store; string seller; string status; int expiration_time; int reserve_price; mapping bids; mixed * lot_autoload; mixed * current_bid; string * auto_bids; string notes; string * excluded; }
class store { int case_code; string colour; string inv_string; class item * inventory; }