[Package Index | Mudlib Index | Effect Index]
Written by Pinkfish
Started Mon Apr 30 22:47:38 PDT 2001
.
int add_item_to_auction(object * obs,
                        string name,
                        int reserve,
                        string seller,
                        int length,
                        string end_function,
                        mixed extra)
This method puts an item up for auction.
void bid_on_item(class auction auct,
                 int bid,
                 string person)
This method makes a bid on an item.
void confirm_auction(string check,
                     string name,
                     object * obs,
                     int reserve,
                     int len)
Confirm the addition 
int do_add(string name,
           object * obs,
           string res_str,
           string length)
This method adds an item for bidding.
int do_bid(string id,
           string bid)
This method makes a bid on the specified item.
int do_browse(string id)This method allows you to browse the item.
int do_claim()This method claims anything that you can bought and is waiting for pickup.
int do_info()This method shoes information about the auction house, like the amount of time for each type of auction.
int do_list()This method lists all the current auctions.
int do_withdraw(string id)This method withdraws the item from bidding. You pay a penalty when you do this, 10% of the current item cost.
void finish_auction(class auction auction)This method finishes the aution on the specified item.
void force_finish_auction(string id)This method forcibly finishes the auction on the specified item. This is only to be used for debugging purposes.
void load_me()This method loads the auction house up.
void next_auction_finish()This method figures out when the next auction finishes and sets up a timeout.
string query_auction_end_string(class auction auction)This method printsd a nice string showing how long till the auction ends.
class auction query_auction_item(string id)This method finds the item based on some useful string.
object * query_auction_objects(class auction auct)This method finds the objects associated with the auction item.
mapping query_auction_times()This method returns the length of auctions in seconds.
class auction * query_auctions()This method returns the current list of available auctions.
class auction * query_finished_auctions()This method returns the current list of finished auctions.
int query_last_auction_finish_time()This method figures out when the last auction will finish.
string query_save_file()This method queries the save file name.
string query_time_end_string(int left)This method prints a nice string showing how long it is till then end of the thing.
void remove_auction_item(class auction auction)This method removes the specified auction from the list.
void remove_finished_auction_item(class auction auction)This method removes the specified auction from the list.
void remove_finished_auction_number(int i)
void retry_auction(class auction auction)This method retries the aution on the specified item.
void save_me()This method saves the auction house.
void set_allowed_add(int flag)This method sets the allowed add flag. If theis flag is set to 0 then it is not possible for players to add items for auctions.
void set_auction_time(string index,
                      int i)
This method sets the length of auctions in seconds.
void set_check_can_bid(function f)This method sets a function to be called to check if someone can bid or not.
void set_max_auctions(int i)This method sets the maximum number of simultaneous auctions.
void set_max_retries(int i)This method sets the number of times an item will be retried before the auction is failed.
void set_min_bid_increase(int i)This method sets the minimum bid increase (as a percentage of the current bid).
void set_retrieval_time(int i)This method sets the length of the retrieval time.
void set_save_file(string fname)This method sets the save file name.
class auction {
                mixed save_stuff;
                int time_started;
                int auction_length;
                string name;
                string seller;
                string current_bidder;
                int bid;
                int reserve;
                int retries;
                string end_function;
                mixed extra;
}