[Package Index | Mudlib Index | Effect Index]
Written by Terano
Started 12/07/2003
This function will remove a buy trigger from the peddler - the argument is the trigger to remove, either as an array or a string (which will be converted).
This function will remove a collect trigger from the peddler - the argument is the trigger to remove, either as an array or a string (which will be converted).
This function will remove a list trigger from the peddler - the argument is the trigger to remove, either as an array or a string (which will be converted).
This function will remove a stop trigger from the peddler - the argument is the trigger to remove, either as an array or a string (which will be converted).
void add_buy_triggers(mixed arg)
void add_collect_triggers(mixed arg)
void add_list_triggers(mixed arg)
int add_option(string sales_name, string sales_text, string * responses)
void add_stop_triggers(mixed arg)
int calculate_cost(mapping _data)
void confirm_order(object speaker, string info)
void end_free_text_edit(string mess)
void event_death(object thing, object * arr, object killer, string room_mess, string killer_mess)
void event_exit(object ob, string message, object to)
void flavour_abort_sale(object speaker)
void flavour_bad_free_text(object writer)
void flavour_buy_ordered(object speaker)
void flavour_collect_busy(object speaker)
void flavour_could_not_give(object thing)
void flavour_end_collection(object speaker)
void flavour_end_sale(int cost)
void flavour_fetch_item(mapping _data)
void flavour_finalize_sale(object speaker)
void flavour_list()
void flavour_next_stage(object speaker)
void flavour_no_money(object speaker, int cost)
void flavour_no_order(object speaker)
void flavour_not_ready(object speaker, mapping _data)
void flavour_offer_choices(string choice_name, string * all_choices)
void flavour_offer_free_text(string choice_name)
void flavour_request_confirmation(object speaker, mapping _data)
void flavour_selection_made(string selection)
void flavour_set_free_text(object writer, string mess)
void flavour_short_free_text(object writer)
void flavour_start_busy(object speaker)
void flavour_start_buy(object speaker)
void flavour_start_dead(object speaker)
void flavour_stop_not_buyer(object speaker)
void flavour_user_died(object speaker)
void flavour_user_left()
object generate_object(mapping _data, object speaker)
void initialise_peddler()
void prepare_confirmation()
string * query_current_choices()
class option * query_options()
int query_spiel_position()
void remove_buy_trigger(mixed trigger)
This function will remove a buy trigger from the peddler - the argument is the trigger to remove, either as an array or a string (which will be converted).
This is useful e.g. if you have two peddlers in the same room and don't want them both to respond to someone saying 'buy'. You'll have to specify more exactly what will trigger the start_buy() function, though, e.g. with add_buy_triggers( ".*buy.*vegetables.*" ); in one of the peddlers and add_buy_triggers( ".*buy.*fruit.*" ); in the other.
void remove_collect_trigger(mixed trigger)
This function will remove a collect trigger from the peddler - the argument is the trigger to remove, either as an array or a string (which will be converted).
This is useful e.g. if you have two peddlers in the same room and don't want them both to respond to someone saying 'collect'. You'll have to specify more exactly what will trigger the start_collect() function, though, e.g. with add_collect_triggers( ".*collect.*vegetables.*" ); in one of the peddlers and add_collect_triggers( ".*collect.*fruit.*" ); in the other.
void remove_list_trigger(mixed trigger)
This function will remove a list trigger from the peddler - the argument is the trigger to remove, either as an array or a string (which will be converted).
This is useful e.g. if you have two peddlers in the same room and don't want them both to respond to someone saying 'list'. You'll have to specify more exactly what will trigger the start_list() function, though, e.g. with add_list_triggers( ".*list.*vegetables.*" ); in one of the peddlers and add_list_triggers( ".*list.*fruit.*" ); in the other.
void remove_stop_trigger(mixed trigger)
This function will remove a stop trigger from the peddler - the argument is the trigger to remove, either as an array or a string (which will be converted).
This is useful e.g. if you have two peddlers in the same room and don't want them both to respond to someone saying 'stop'. You'll have to specify more exactly what will trigger the start_stop() function, though, e.g. with add_stop_triggers( ".*stop.*vegetables.*" ); in one of the peddlers and add_stop_triggers( ".*stop.*fruit.*" ); in the other.
void response(object speaker, string info)
void set_for_option(int pos)
string set_location(string loc)
void set_peddler_time(int number)
int sort_stuff(mixed arg1, mixed arg2)
void start_buy(object speaker)
void start_collect(object speaker, string info)
void start_list(object speaker, string info)
void stop(object speaker)
int test_serve_customer(object customer)
class option { string sales_name; string sales_text; string * responses; }