File act.item.c


Included Files


Preprocessor definitions

#define VANISH( mode )

External Variables

donation_room_1
extern room_rnum donation_room_1
Defined in: config.c

obj_proto
extern struct obj_data* obj_proto
Defined in: db.c

world
extern struct room_data* world
Defined in: db.c


Global Function can_take_obj()

int can_take_obj ( struct char_data* ch, struct obj_data* obj )
Prototyped in: act.item.c
Calls: act()comm.c
Called by: perform_get_from_container()act.item.c
  perform_get_from_room()act.item.c
References Variables: str_appconstants.c

Global Function do_drink()

void do_drink ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.item.c
Calls: MIN()utils.c
  act()comm.c
  affect_join()handler.c
  basic_mud_log()utils.c
  gain_condition()limits.c
  get_obj_in_list_vis()handler.c
  name_from_drinkcon()act.item.c
  number()utils.c
  one_argument()interpreter.c
  send_to_char()comm.c
  weight_change_object()act.item.c
  sprintf()
Called by: do_eat()act.item.c
Used in:  interpreter.c
References Variables: argdb.c
  bufdb.c
  drink_affconstants.c
  drinksconstants.c
  dummy_mobdb.c
  worlddb.c

Global Function do_drop()

void do_drop ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.item.c
Calls: act()comm.c
  find_all_dots()handler.c
  get_obj_in_list_vis()handler.c
  is_number()interpreter.c
  number()utils.c
  one_argument()interpreter.c
  perform_drop()act.item.c
  perform_drop_gold()act.item.c
  real_room()db.c
  send_to_char()comm.c
  str_cmp()utils.c
  atoi(), sprintf(), strchr()
Called by: dump()spec_procs.c
Used in:  interpreter.c
References Variables: argdb.c
  bufdb.c
  donation_room_1config.c

Global Function do_eat()

void do_eat ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.item.c
Calls: act()comm.c
  affect_join()handler.c
  basic_mud_log()utils.c
  do_drink()act.item.c
  extract_obj()handler.c
  gain_condition()limits.c
  get_obj_in_list_vis()handler.c
  one_argument()interpreter.c
  send_to_char()comm.c
  sprintf(), strchr()
Used in:  interpreter.c
References Variables: argdb.c
  bufdb.c
  dummy_mobdb.c

Global Function do_get()

void do_get ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.item.c
Calls: act()comm.c
  basic_mud_log()utils.c
  find_all_dots()handler.c
  generic_find()handler.c
  get_from_container()act.item.c
  get_from_room()act.item.c
  is_number()interpreter.c
  isname()handler.c
  one_argument()interpreter.c
  send_to_char()comm.c
  two_arguments()interpreter.c
  atoi(), sprintf(), strchr(), strcpy()
Used in:  interpreter.c
References Variables: bufdb.c
  dummy_mobdb.c
  weather_infodb.c
  worlddb.c

Global Function do_give()

void do_give ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.item.c
Calls: basic_mud_log()utils.c
  find_all_dots()handler.c
  get_obj_in_list_vis()handler.c
  give_find_vict()act.item.c
  is_number()interpreter.c
  isname()handler.c
  one_argument()interpreter.c
  perform_give()act.item.c
  perform_give_gold()act.item.c
  send_to_char()comm.c
  str_cmp()utils.c
  atoi(), sprintf(), strchr()
Used in:  interpreter.c
References Variables: argdb.c
  bufdb.c
  buf1db.c
  dummy_mobdb.c
  weather_infodb.c
  worlddb.c

Global Function do_grab()

void do_grab ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.item.c
Calls: get_obj_in_list_vis()handler.c
  one_argument()interpreter.c
  perform_wear()act.item.c
  send_to_char()comm.c
  sprintf(), strchr()
Used in:  interpreter.c
References Variables: argdb.c
  bufdb.c

Global Function do_pour()

void do_pour ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.item.c
Calls: act()comm.c
  get_obj_in_list_vis()handler.c
  name_from_drinkcon()act.item.c
  name_to_drinkcon()act.item.c
  send_to_char()comm.c
  str_cmp()utils.c
  two_arguments()interpreter.c
  weight_change_object()act.item.c
  sprintf(), strchr()
Used in:  interpreter.c
References Variables: bufdb.c
  drinksconstants.c
  worlddb.c

Global Function do_put()

void do_put ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.item.c
Calls: act()comm.c
  basic_mud_log()utils.c
  find_all_dots()handler.c
  generic_find()handler.c
  get_obj_in_list_vis()handler.c
  is_number()interpreter.c
  isname()handler.c
  one_argument()interpreter.c
  perform_put()act.item.c
  send_to_char()comm.c
  two_arguments()interpreter.c
  atoi(), sprintf(), strchr()
Used in:  interpreter.c
References Variables: bufdb.c
  dummy_mobdb.c
  weather_infodb.c
  worlddb.c

Global Function do_remove()

void do_remove ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.item.c
Calls: basic_mud_log()utils.c
  find_all_dots()handler.c
  get_object_in_equip_vis()handler.c
  isname()handler.c
  one_argument()interpreter.c
  perform_remove()act.item.c
  send_to_char()comm.c
  sprintf(), strchr()
Used in:  interpreter.c
References Variables: argdb.c
  bufdb.c
  dummy_mobdb.c
  weather_infodb.c
  worlddb.c

Global Function do_wear()

void do_wear ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.item.c
Calls: act()comm.c
  basic_mud_log()utils.c
  find_all_dots()handler.c
  find_eq_pos()act.item.c
  get_obj_in_list_vis()handler.c
  perform_wear()act.item.c
  send_to_char()comm.c
  two_arguments()interpreter.c
  sprintf(), strchr()
Used in:  interpreter.c
References Variables: bufdb.c
  dummy_mobdb.c
  weather_infodb.c
  worlddb.c

Global Function do_wield()

void do_wield ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.item.c
Calls: get_obj_in_list_vis()handler.c
  one_argument()interpreter.c
  perform_wear()act.item.c
  send_to_char()comm.c
  sprintf(), strchr()
Used in:  interpreter.c
References Variables: argdb.c
  bufdb.c
  str_appconstants.c

Global Function find_eq_pos()

int find_eq_pos ( struct char_data* ch, struct obj_data* obj, char* arg )
Prototyped in: act.item.c
Calls: search_block()interpreter.c
  send_to_char()comm.c
  sprintf()
Called by: do_wear()act.item.c
  has_boat()act.movement.c
References Variables: bufdb.c

Global Function get_check_money()

void get_check_money ( struct char_data* ch, struct obj_data* obj )
Prototyped in: act.item.c
Calls: extract_obj()handler.c
  send_to_char()comm.c
  sprintf()
Called by: perform_get_from_container()act.item.c
  perform_get_from_room()act.item.c
References Variables: bufdb.c

Global Function get_from_container()

void get_from_container ( struct char_data* ch, struct obj_data* cont, char* arg, int mode, int howmany )
Prototyped in: act.item.c
Calls: act()comm.c
  basic_mud_log()utils.c
  find_all_dots()handler.c
  get_obj_in_list_vis()handler.c
  isname()handler.c
  perform_get_from_container()act.item.c
  send_to_char()comm.c
  sprintf(), strchr()
Called by: do_get()act.item.c
References Variables: bufdb.c
  dummy_mobdb.c
  weather_infodb.c
  worlddb.c

Global Function get_from_room()

void get_from_room ( struct char_data* ch, char* arg, int howmany )
Prototyped in: act.item.c
Calls: basic_mud_log()utils.c
  find_all_dots()handler.c
  get_obj_in_list_vis()handler.c
  isname()handler.c
  perform_get_from_room()act.item.c
  send_to_char()comm.c
  sprintf(), strchr()
Called by: do_get()act.item.c
References Variables: bufdb.c
  dummy_mobdb.c
  weather_infodb.c
  worlddb.c

Global Function give_find_vict()

struct char_data* give_find_vict ( struct char_data* ch, char* arg )
Prototyped in: act.item.c
Calls: get_char_vis()handler.c
  send_to_char()comm.c
Called by: do_give()act.item.c
References Variables: NOPERSONconfig.c

Global Function name_from_drinkcon()

void name_from_drinkcon ( struct obj_data* obj )
Prototyped in: act.item.c
Calls: basic_mud_log()utils.c
  isname()handler.c
  strn_cmp()utils.c
  abort(), calloc(), free(), perror(), strcat(), strchr(), strlen(), strncat()
Called by: do_drink()act.item.c
  do_pour()act.item.c
  spell_create_water()spells.c
References Variables: drinknamesconstants.c
  obj_protodb.c

Global Function name_to_drinkcon()

void name_to_drinkcon ( struct obj_data* obj, int type )
Prototyped in: act.item.c
Calls: basic_mud_log()utils.c
  abort(), calloc(), free(), perror(), sprintf(), strlen()
Called by: do_pour()act.item.c
  spell_create_water()spells.c
References Variables: drinknamesconstants.c
  obj_protodb.c

Global Function perform_drop()

int perform_drop ( struct char_data* ch, struct obj_data* obj, byte mode, const char* sname, room_rnum RDR )
Prototyped in: act.item.c
Calls: MAX()utils.c
  MIN()utils.c
  act()comm.c
  basic_mud_log()utils.c
  extract_obj()handler.c
  obj_from_char()handler.c
  obj_to_room()handler.c
  sprintf()
Called by: do_drop()act.item.c
References Variables: bufdb.c

Global Function perform_drop_gold()

void perform_drop_gold ( struct char_data* ch, int amount, byte mode, room_rnum RDR )
Prototyped in: act.item.c
Calls: act()comm.c
  create_money()handler.c
  money_desc()handler.c
  obj_to_room()handler.c
  send_to_char()comm.c
  sprintf()
Called by: do_drop()act.item.c
References Variables: bufdb.c

Global Function perform_get_from_container()

void perform_get_from_container ( struct char_data* ch, struct obj_data* obj, struct obj_data* cont, int mode )
Prototyped in: act.item.c
Calls: act()comm.c
  can_take_obj()act.item.c
  get_check_money()act.item.c
  obj_from_obj()handler.c
  obj_to_char()handler.c
Called by: get_from_container()act.item.c

Global Function perform_get_from_room()

int perform_get_from_room ( struct char_data* ch, struct obj_data* obj )
Prototyped in: act.item.c
Calls: act()comm.c
  can_take_obj()act.item.c
  get_check_money()act.item.c
  obj_from_room()handler.c
  obj_to_char()handler.c
Called by: get_from_room()act.item.c

Global Function perform_give()

void perform_give ( struct char_data* ch, struct char_data* vict, struct obj_data* obj )
Prototyped in: act.item.c
Calls: act()comm.c
  obj_from_char()handler.c
  obj_to_char()handler.c
Called by: do_give()act.item.c
References Variables: str_appconstants.c

Global Function perform_give_gold()

void perform_give_gold ( struct char_data* ch, struct char_data* vict, int amount )
Prototyped in: act.item.c
Calls: act()comm.c
  money_desc()handler.c
  send_to_char()comm.c
  sprintf()
Called by: do_give()act.item.c
References Variables: OKconfig.c
  bufdb.c

Global Function perform_put()

void perform_put ( struct char_data* ch, struct obj_data* obj, struct obj_data* cont )
Prototyped in: act.item.c
Calls: act()comm.c
  obj_from_char()handler.c
  obj_to_obj()handler.c
Called by: do_put()act.item.c

Global Function perform_remove()

void perform_remove ( struct char_data* ch, int pos )
Prototyped in: act.item.c
Calls: act()comm.c
  basic_mud_log()utils.c
  obj_to_char()handler.c
  unequip_char()handler.c
Called by: do_remove()act.item.c

Global Function perform_wear()

void perform_wear ( struct char_data* ch, struct obj_data* obj, int where )
Prototyped in: act.item.c
Calls: act()comm.c
  equip_char()handler.c
  obj_from_char()handler.c
  send_to_char()comm.c
  wear_message()act.item.c
Called by: do_grab()act.item.c
  do_wear()act.item.c
  do_wield()act.item.c

Global Function wear_message()

void wear_message ( struct char_data* ch, struct obj_data* obj, int where )
Prototyped in: act.item.c
Calls: act()comm.c
Called by: perform_wear()act.item.c

Global Function weight_change_object()

void weight_change_object ( struct obj_data* obj, int weight )
Prototyped in: act.item.c
Calls: basic_mud_log()utils.c
  obj_from_char()handler.c
  obj_from_obj()handler.c
  obj_to_char()handler.c
  obj_to_obj()handler.c
Called by: do_drink()act.item.c
  do_pour()act.item.c
  spell_create_water()spells.c