File db.c

* declarations of most of the 'global' variables *


Included Files

  • #include "conf.h"
  • #include "sysdep.h"
  • #include <stdio.h>
  • #include <ctype.h>
  • #include <stdlib.h>
  • #include <string.h>
  • #include <sys/types.h>
  • #include <unistd.h>
  • #include <limits.h>
  • #include <sys/time.h>
  • #include <assert.h>
  • #include "structs.h"
  • #include "utils.h"
  • #include "db.h"
  • #include "comm.h"
  • #include "handler.h"
  • #include "spells.h"
  • #include "mail.h"
  • #include "interpreter.h"
  • #include "house.h"

  • Preprocessor definitions

    #define __DB_C__

    #define READ_SIZE 256

    #define ZCMD

    #define CASE( test )

    #define RANGE( low, high )

    #define Z

    #define ZO_DEAD 999

    #define ZONE_ERROR( message )


    Global Variable weather_info

    struct weather_data weather_info
    Visible in:
  • act.comm.c
  • act.informative.c
  • act.item.c
  • act.movement.c
  • act.offensive.c
  • act.other.c
  • act.social.c
  • act.wizard.c
  • ban.c
  • boards.c
  • castle.c
  • class.c
  • comm.c
  • db.c
  • fight.c
  • graph.c
  • handler.c
  • house.c
  • interpreter.c
  • limits.c
  • magic.c
  • mail.c
  • mobact.c
  • modify.c
  • objsave.c
  • olc.c
  • shop.c
  • spec_assign.c
  • spec_procs.c
  • spell_parser.c
  • spells.c
  • utils.c
  • weather.c
  • Used in:
  • Crash_report_rent() : objsave.c
  • Crash_report_unrentables() : objsave.c
  • act() : comm.c
  • add_follower() : utils.c
  • another_hour() : weather.c
  • cityguard() : spec_procs.c
  • diag_char_to_char() : act.informative.c
  • do_assist() : act.offensive.c
  • do_equipment() : act.informative.c
  • do_exits() : act.informative.c
  • do_get() : act.item.c
  • do_give() : act.item.c
  • do_look() : act.informative.c
  • do_put() : act.item.c
  • do_remove() : act.item.c
  • do_score() : act.informative.c
  • do_show() : act.wizard.c
  • do_stat_character() : act.wizard.c
  • do_stat_room() : act.wizard.c
  • do_steal() : act.other.c
  • do_users() : act.informative.c
  • do_wear() : act.item.c
  • do_weather() : act.informative.c
  • do_who() : act.informative.c
  • do_wiznet() : act.wizard.c
  • do_write() : act.comm.c
  • gen_receptionist() : objsave.c
  • get_char_room_vis() : handler.c
  • get_char_vis() : handler.c
  • get_from_container() : act.item.c
  • get_from_room() : act.item.c
  • get_hash_obj_vis() : shop.c
  • get_obj_in_list_vis() : handler.c
  • get_obj_vis() : handler.c
  • get_object_in_equip_vis() : handler.c
  • get_player_vis() : handler.c
  • get_slide_obj_vis() : shop.c
  • is_ok_char() : shop.c
  • list_char_to_char() : act.informative.c
  • list_obj_to_char() : act.informative.c
  • list_one_char() : act.informative.c
  • look_at_char() : act.informative.c
  • look_at_room() : act.informative.c
  • look_at_target() : act.informative.c
  • mobile_activity() : mobact.c
  • perform_act() : comm.c
  • perform_group() : act.other.c
  • perform_immort_where() : act.informative.c
  • perform_mortal_where() : act.informative.c
  • print_object_location() : act.informative.c
  • reset_time() : db.c
  • shopping_list() : shop.c
  • spell_locate_object() : spells.c
  • weather_change() : weather.c

  • Global Variable world

    void* world
    Visible in:
  • act.comm.c
  • act.informative.c
  • act.item.c
  • act.movement.c
  • act.offensive.c
  • act.other.c
  • act.social.c
  • act.wizard.c
  • boards.c
  • castle.c
  • comm.c
  • db.c
  • fight.c
  • graph.c
  • handler.c
  • house.c
  • interpreter.c
  • limits.c
  • magic.c
  • mail.c
  • mobact.c
  • objsave.c
  • olc.c
  • shop.c
  • spec_assign.c
  • spec_procs.c
  • spell_parser.c
  • spells.c
  • utils.c
  • Used in:
  • ASSIGNROOM() : spec_assign.c
  • Crash_report_rent() : objsave.c
  • Crash_report_unrentables() : objsave.c
  • House_boot() : house.c
  • House_crashsave() : house.c
  • House_save_all() : house.c
  • James() : castle.c
  • act() : comm.c
  • add_follower() : utils.c
  • assign_rooms() : spec_assign.c
  • call_magic() : spell_parser.c
  • char_from_room() : handler.c
  • char_to_room() : handler.c
  • check_killer() : fight.c
  • cityguard() : spec_procs.c
  • cleaning() : castle.c
  • damage() : fight.c
  • death_cry() : fight.c
  • diag_char_to_char() : act.informative.c
  • do_assist() : act.offensive.c
  • do_auto_exits() : act.informative.c
  • do_cast() : spell_parser.c
  • do_doorcmd() : act.movement.c
  • do_drink() : act.item.c
  • do_enter() : act.movement.c
  • do_equipment() : act.informative.c
  • do_exits() : act.informative.c
  • do_flee() : act.offensive.c
  • do_force() : act.wizard.c
  • do_gen_comm() : act.comm.c
  • do_gen_door() : act.movement.c
  • do_gen_write() : act.other.c
  • do_get() : act.item.c
  • do_give() : act.item.c
  • do_house() : house.c
  • do_leave() : act.movement.c
  • do_look() : act.informative.c
  • do_npc_rescue() : castle.c
  • do_olc() : olc.c
  • do_pour() : act.item.c
  • do_purge() : act.wizard.c
  • do_put() : act.item.c
  • do_quit() : act.other.c
  • do_remove() : act.item.c
  • do_rescue() : act.offensive.c
  • do_save() : act.other.c
  • do_score() : act.informative.c
  • do_show() : act.wizard.c
  • do_simple_move() : act.movement.c
  • do_stat() : act.wizard.c
  • do_stat_character() : act.wizard.c
  • do_stat_object() : act.wizard.c
  • do_stat_room() : act.wizard.c
  • do_steal() : act.other.c
  • do_tell() : act.comm.c
  • do_track() : graph.c
  • do_users() : act.informative.c
  • do_wear() : act.item.c
  • do_weather() : act.informative.c
  • do_who() : act.informative.c
  • do_wiznet() : act.wizard.c
  • do_write() : act.comm.c
  • do_zreset() : act.wizard.c
  • dump() : spec_procs.c
  • equip_char() : handler.c
  • fido() : spec_procs.c
  • find_board() : boards.c
  • find_door() : act.movement.c
  • find_first_step() : graph.c
  • find_guard() : castle.c
  • find_npc_by_name() : castle.c
  • find_target_room() : act.wizard.c
  • gen_receptionist() : objsave.c
  • generic_find() : handler.c
  • get_char_room() : handler.c
  • get_char_room_vis() : handler.c
  • get_char_vis() : handler.c
  • get_from_container() : act.item.c
  • get_from_room() : act.item.c
  • get_hash_obj_vis() : shop.c
  • get_obj_in_list_vis() : handler.c
  • get_obj_vis() : handler.c
  • get_object_in_equip_vis() : handler.c
  • get_player_vis() : handler.c
  • get_slide_obj_vis() : shop.c
  • get_victim() : castle.c
  • guild_guard() : spec_procs.c
  • hcontrol_build_house() : house.c
  • hcontrol_destroy_house() : house.c
  • index_boot() : db.c
  • is_empty() : db.c
  • is_ok_char() : shop.c
  • janitor() : spec_procs.c
  • list_char_to_char() : act.informative.c
  • list_detailed_shop() : shop.c
  • list_obj_to_char() : act.informative.c
  • list_one_char() : act.informative.c
  • log_death_trap() : utils.c
  • look_at_char() : act.informative.c
  • look_at_room() : act.informative.c
  • look_at_target() : act.informative.c
  • look_in_direction() : act.informative.c
  • mag_areas() : magic.c
  • mag_masses() : magic.c
  • mag_objectmagic() : spell_parser.c
  • magic_user() : spec_procs.c
  • mobile_activity() : mobact.c
  • obj_from_room() : handler.c
  • obj_to_room() : handler.c
  • parse_room() : db.c
  • perform_act() : comm.c
  • perform_group() : act.other.c
  • perform_immort_invis() : act.wizard.c
  • perform_immort_where() : act.informative.c
  • perform_mortal_where() : act.informative.c
  • perform_move() : act.movement.c
  • pet_shops() : spec_procs.c
  • point_update() : limits.c
  • print_object_location() : act.informative.c
  • real_room() : db.c
  • renum_world() : db.c
  • reset_zone() : db.c
  • save_char() : db.c
  • say_spell() : spell_parser.c
  • send_to_outdoor() : comm.c
  • send_to_room() : comm.c
  • setup_dir() : db.c
  • shop_keeper() : shop.c
  • shopping_list() : shop.c
  • show_shops() : shop.c
  • special() : interpreter.c
  • spell_locate_object() : spells.c
  • spell_summon() : spells.c
  • spell_teleport() : spells.c
  • thief() : spec_procs.c
  • unequip_char() : handler.c
  • update_char_objects() : handler.c

  • Global Variable top_of_world

    int top_of_world
    Visible in:
  • act.wizard.c
  • comm.c
  • db.c
  • graph.c
  • handler.c
  • house.c
  • spec_assign.c
  • spells.c
  • Used in:
  • assign_rooms() : spec_assign.c
  • char_to_room() : handler.c
  • do_show() : act.wizard.c
  • find_first_step() : graph.c
  • obj_to_room() : handler.c
  • parse_room() : db.c
  • real_room() : db.c
  • renum_world() : db.c
  • spell_teleport() : spells.c

  • Global Variable character_list

    void* character_list
    Visible in:
  • act.comm.c
  • act.informative.c
  • act.movement.c
  • act.wizard.c
  • castle.c
  • db.c
  • graph.c
  • handler.c
  • interpreter.c
  • limits.c
  • magic.c
  • mobact.c
  • spec_procs.c
  • spells.c
  • Used in:
  • affect_update() : magic.c
  • create_char() : db.c
  • do_reply() : act.comm.c
  • do_show() : act.wizard.c
  • extract_char() : handler.c
  • get_char_num() : handler.c
  • get_char_vis() : handler.c
  • get_player_vis() : handler.c
  • hunt_victim() : graph.c
  • mobile_activity() : mobact.c
  • nanny() : interpreter.c
  • perform_dupe_check() : interpreter.c
  • perform_immort_where() : act.informative.c
  • perform_mortal_where() : act.informative.c
  • point_update() : limits.c
  • read_mobile() : db.c

  • Global Variable mob_index

    struct index_data* mob_index
    Visible in:
  • act.other.c
  • act.wizard.c
  • castle.c
  • db.c
  • fight.c
  • handler.c
  • interpreter.c
  • mail.c
  • mobact.c
  • objsave.c
  • shop.c
  • spec_assign.c
  • spec_procs.c
  • Used in:
  • ASSIGNMOB() : spec_assign.c
  • assign_kings_castle() : castle.c
  • assign_the_shopkeepers() : shop.c
  • do_stat_character() : act.wizard.c
  • do_steal() : act.other.c
  • extract_char() : handler.c
  • index_boot() : db.c
  • list_all_shops() : shop.c
  • list_detailed_shop() : shop.c
  • member_of_royal_guard() : castle.c
  • member_of_staff() : castle.c
  • mobile_activity() : mobact.c
  • ok_damage_shopkeeper() : shop.c
  • parse_mobile() : db.c
  • perform_violence() : fight.c
  • read_mobile() : db.c
  • real_mobile() : db.c
  • reset_zone() : db.c
  • special() : interpreter.c
  • vnum_mobile() : db.c

  • Global Variable mob_proto

    struct char_data* mob_proto
    Visible in:
  • db.c
  • olc.c
  • shop.c
  • Used in:
  • do_olc() : olc.c
  • free_char() : db.c
  • index_boot() : db.c
  • interpret_espec() : db.c
  • list_detailed_shop() : shop.c
  • parse_mobile() : db.c
  • parse_simple_mob() : db.c
  • read_mobile() : db.c
  • vnum_mobile() : db.c

  • Global Variable top_of_mobt

    int top_of_mobt
    Visible in:
  • act.wizard.c
  • db.c
  • Used in:
  • do_show() : act.wizard.c
  • parse_mobile() : db.c
  • real_mobile() : db.c
  • vnum_mobile() : db.c

  • Global Variable object_list

    void* object_list
    Visible in:
  • act.informative.c
  • act.wizard.c
  • db.c
  • fight.c
  • handler.c
  • limits.c
  • magic.c
  • spells.c
  • Used in:
  • create_obj() : db.c
  • do_show() : act.wizard.c
  • extract_obj() : handler.c
  • get_obj_num() : handler.c
  • get_obj_vis() : handler.c
  • perform_immort_where() : act.informative.c
  • point_update() : limits.c
  • read_object() : db.c
  • spell_locate_object() : spells.c

  • Global Variable obj_index

    struct index_data* obj_index
    Visible in:
  • act.movement.c
  • act.wizard.c
  • castle.c
  • db.c
  • handler.c
  • house.c
  • interpreter.c
  • magic.c
  • objsave.c
  • shop.c
  • spec_assign.c
  • spec_procs.c
  • spells.c
  • Used in:
  • ASSIGNOBJ() : spec_assign.c
  • House_listrent() : house.c
  • Obj_to_store() : objsave.c
  • do_stat_object() : act.wizard.c
  • extract_obj() : handler.c
  • has_key() : act.movement.c
  • index_boot() : db.c
  • list_detailed_shop() : shop.c
  • mag_materials() : magic.c
  • parse_object() : db.c
  • read_object() : db.c
  • real_object() : db.c
  • reset_zone() : db.c
  • special() : interpreter.c
  • vnum_object() : db.c

  • Global Variable obj_proto

    struct obj_data* obj_proto
    Visible in:
  • act.item.c
  • db.c
  • olc.c
  • shop.c
  • Used in:
  • do_olc() : olc.c
  • free_obj() : db.c
  • index_boot() : db.c
  • list_detailed_shop() : shop.c
  • name_from_drinkcon() : act.item.c
  • name_to_drinkcon() : act.item.c
  • parse_object() : db.c
  • read_object() : db.c
  • shop_producing() : shop.c
  • slide_obj() : shop.c
  • vnum_object() : db.c

  • Global Variable top_of_objt

    int top_of_objt
    Visible in:
  • act.wizard.c
  • db.c
  • Used in:
  • do_show() : act.wizard.c
  • parse_object() : db.c
  • real_object() : db.c
  • vnum_object() : db.c

  • Global Variable zone_table

    struct zone_data* zone_table
    Visible in:
  • act.wizard.c
  • db.c
  • magic.c
  • spells.c
  • Used in:
  • boot_db() : db.c
  • do_show() : act.wizard.c
  • do_zreset() : act.wizard.c
  • index_boot() : db.c
  • load_zones() : db.c
  • log_zone_error() : db.c
  • parse_room() : db.c
  • print_zone_to_buf() : act.wizard.c
  • renum_zone_table() : db.c
  • reset_zone() : db.c
  • zone_update() : db.c

  • Global Variable top_of_zone_table

    int top_of_zone_table
    Visible in:
  • act.wizard.c
  • db.c
  • Used in:
  • boot_db() : db.c
  • do_show() : act.wizard.c
  • do_zreset() : act.wizard.c
  • load_zones() : db.c
  • parse_room() : db.c
  • renum_zone_table() : db.c
  • zone_update() : db.c

  • Global Variable fight_messages

    struct message_list fight_messages[60]
    Visible in:
  • db.c
  • fight.c
  • Used in:
  • load_messages() : fight.c
  • skill_message() : fight.c

  • Global Variable player_table

    void* player_table
    Visible in:
  • db.c
  • interpreter.c
  • objsave.c
  • Used in:
  • build_player_index() : db.c
  • create_entry() : db.c
  • find_name() : interpreter.c
  • get_id_by_name() : db.c
  • get_name_by_id() : db.c
  • init_char() : db.c
  • update_obj_file() : objsave.c

  • Global Variable player_fl

    void* player_fl
    Visible in:
  • act.wizard.c
  • comm.c
  • db.c
  • Used in:
  • build_player_index() : db.c
  • do_set() : act.wizard.c
  • heartbeat() : comm.c
  • init_game() : comm.c
  • load_char() : db.c
  • save_char() : db.c

  • Global Variable top_of_p_table

    int top_of_p_table
    Visible in:
  • act.wizard.c
  • db.c
  • interpreter.c
  • objsave.c
  • Used in:
  • build_player_index() : db.c
  • create_entry() : db.c
  • do_show() : act.wizard.c
  • find_name() : interpreter.c
  • get_id_by_name() : db.c
  • get_name_by_id() : db.c
  • init_char() : db.c
  • update_obj_file() : objsave.c

  • Global Variable top_of_p_file

    int top_of_p_file
    Visible in:
  • db.c
  • Used in:
  • build_player_index() : db.c

  • Global Variable top_idnum

    long top_idnum
    Visible in:
  • db.c
  • Used in:
  • build_player_index() : db.c
  • init_char() : db.c

  • Global Variable no_mail

    int no_mail
    Visible in:
  • db.c
  • mail.c
  • Used in:
  • boot_db() : db.c
  • postmaster() : mail.c
  • read_delete() : mail.c
  • read_from_file() : mail.c
  • write_to_file() : mail.c

  • Global Variable mini_mud

    int mini_mud
    Visible in:
  • comm.c
  • db.c
  • magic.c
  • spec_assign.c
  • spells.c
  • Used in:
  • ASSIGNMOB() : spec_assign.c
  • ASSIGNOBJ() : spec_assign.c
  • ASSIGNROOM() : spec_assign.c
  • boot_db() : db.c
  • check_start_rooms() : db.c
  • index_boot() : db.c
  • main() : comm.c
  • renum_zone_table() : db.c

  • Global Variable no_rent_check

    int no_rent_check
    Visible in:
  • comm.c
  • db.c
  • Used in:
  • boot_db() : db.c
  • main() : comm.c

  • Global Variable boot_time

    time_t boot_time
    Visible in:
  • act.wizard.c
  • db.c
  • Used in:
  • boot_db() : db.c
  • do_date() : act.wizard.c

  • Global Variable restrict

    int restrict
    Visible in:
  • act.wizard.c
  • comm.c
  • db.c
  • interpreter.c
  • Used in:
  • do_wizlock() : act.wizard.c
  • main() : comm.c
  • nanny() : interpreter.c
  • unrestrict_game() : comm.c

  • Global Variable r_mortal_start_room

    sh_int r_mortal_start_room
    Visible in:
  • db.c
  • interpreter.c
  • spells.c
  • Used in:
  • check_start_rooms() : db.c
  • nanny() : interpreter.c
  • spell_recall() : spells.c

  • Global Variable r_immort_start_room

    sh_int r_immort_start_room
    Visible in:
  • db.c
  • interpreter.c
  • Used in:
  • check_start_rooms() : db.c
  • nanny() : interpreter.c

  • Global Variable r_frozen_start_room

    sh_int r_frozen_start_room
    Visible in:
  • db.c
  • interpreter.c
  • Used in:
  • check_start_rooms() : db.c
  • nanny() : interpreter.c

  • Global Variable credits

    void* credits
    Visible in:
  • act.informative.c
  • db.c
  • Used in:
  • boot_db() : db.c
  • do_gen_ps() : act.informative.c
  • do_reboot() : db.c

  • Global Variable news

    void* news
    Visible in:
  • act.informative.c
  • db.c
  • Used in:
  • boot_db() : db.c
  • do_gen_ps() : act.informative.c
  • do_reboot() : db.c

  • Global Variable motd

    void* motd
    Visible in:
  • act.informative.c
  • db.c
  • interpreter.c
  • Used in:
  • boot_db() : db.c
  • do_gen_ps() : act.informative.c
  • do_reboot() : db.c
  • nanny() : interpreter.c

  • Global Variable imotd

    void* imotd
    Visible in:
  • act.informative.c
  • db.c
  • interpreter.c
  • Used in:
  • boot_db() : db.c
  • do_gen_ps() : act.informative.c
  • do_reboot() : db.c
  • nanny() : interpreter.c

  • Global Variable help

    void* help
    Visible in:
  • act.informative.c
  • comm.c
  • db.c
  • Used in:
  • boot_db() : db.c
  • do_help() : act.informative.c
  • do_reboot() : db.c

  • Global Variable info

    void* info
    Visible in:
  • act.informative.c
  • db.c
  • Used in:
  • boot_db() : db.c
  • do_gen_ps() : act.informative.c
  • do_reboot() : db.c

  • Global Variable wizlist

    void* wizlist
    Visible in:
  • act.informative.c
  • db.c
  • Used in:
  • boot_db() : db.c
  • do_gen_ps() : act.informative.c
  • do_reboot() : db.c
  • reboot_wizlists() : db.c

  • Global Variable immlist

    void* immlist
    Visible in:
  • act.informative.c
  • db.c
  • Used in:
  • boot_db() : db.c
  • do_gen_ps() : act.informative.c
  • do_reboot() : db.c
  • reboot_wizlists() : db.c

  • Global Variable background

    void* background
    Visible in:
  • db.c
  • interpreter.c
  • Used in:
  • boot_db() : db.c
  • do_reboot() : db.c
  • nanny() : interpreter.c

  • Global Variable handbook

    void* handbook
    Visible in:
  • act.informative.c
  • db.c
  • Used in:
  • boot_db() : db.c
  • do_gen_ps() : act.informative.c
  • do_reboot() : db.c

  • Global Variable policies

    void* policies
    Visible in:
  • act.informative.c
  • db.c
  • Used in:
  • boot_db() : db.c
  • do_gen_ps() : act.informative.c
  • do_reboot() : db.c

  • Global Variable help_table

    struct help_index_element* help_table
    Visible in:
  • act.informative.c
  • db.c
  • Used in:
  • do_help() : act.informative.c
  • do_reboot() : db.c
  • index_boot() : db.c
  • load_help() : db.c

  • Global Variable top_of_helpt

    int top_of_helpt
    Visible in:
  • act.informative.c
  • db.c
  • Used in:
  • do_help() : act.informative.c
  • do_reboot() : db.c
  • index_boot() : db.c
  • load_help() : db.c

  • Global Variable time_info

    struct time_info_data time_info
    Visible in:
  • act.informative.c
  • castle.c
  • comm.c
  • db.c
  • shop.c
  • spec_procs.c
  • utils.c
  • weather.c
  • Used in:
  • another_hour() : weather.c
  • do_time() : act.informative.c
  • is_open() : shop.c
  • king_welmar() : castle.c
  • mayor() : spec_procs.c
  • reset_time() : db.c
  • weather_change() : weather.c

  • Global Variable dummy_mob

    struct player_special_data dummy_mob
    Visible in:
  • db.c
  • Used in:
  • free_char() : db.c
  • parse_mobile() : db.c

  • Global Variable reset_q

    struct reset_q_type reset_q
    Visible in:
  • db.c
  • Used in:
  • boot_db() : db.c
  • zone_update() : db.c

  • External Variables

    descriptor_list
    extern struct descriptor_data* descriptor_list
    Defined in:
  • comm.c
  • no_specials
    extern int no_specials

    Defined in:
  • comm.c
  • mortal_start_room
    extern sh_int mortal_start_room

    Defined in:
  • config.c
  • immort_start_room
    extern sh_int immort_start_room

    Defined in:
  • config.c
  • frozen_start_room
    extern sh_int frozen_start_room

    Defined in:
  • config.c

  • Global Function asciiflag_conv()

    long asciiflag_conv ( char* flag )
    Calls:
  • atol()
  • Called by:
  • parse_mobile() : db.c
  • parse_object() : db.c
  • parse_room() : db.c

  • Global Function boot_db()

    void boot_db ( void )
    Prototyped in:
  • db.h
  • Calls:
  • House_boot() : house.c
  • Read_Invalid_List() : ban.c
  • assign_mobiles() : spec_assign.c
  • assign_objects() : spec_assign.c
  • assign_rooms() : spec_assign.c
  • assign_the_shopkeepers() : shop.c
  • basic_mud_log() : utils.c
  • boot_social_messages() : act.social.c
  • boot_world() : db.c
  • build_player_index() : db.c
  • file_to_string_alloc() : db.c
  • index_boot() : db.c
  • init_spell_levels() : class.c
  • load_banned() : ban.c
  • load_messages() : fight.c
  • mag_assign_spells() : spell_parser.c
  • reset_time() : db.c
  • reset_zone() : db.c
  • scan_file() : mail.c
  • sort_commands() : act.informative.c
  • sort_spells() : spec_procs.c
  • update_obj_file() : objsave.c
  • sprintf(), time()
  • Called by:
  • init_game() : comm.c
  • References Variables:
  • background : db.c
  • boot_time : db.c
  • credits : db.c
  • handbook : db.c
  • help : db.c
  • immlist : db.c
  • imotd : db.c
  • info : db.c
  • mini_mud : db.c
  • motd : db.c
  • news : db.c
  • no_mail : db.c
  • no_rent_check : db.c
  • no_specials : comm.c
  • policies : db.c
  • reset_q : db.c
  • top_of_zone_table : db.c
  • wizlist : db.c
  • zone_table : db.c

  • Global Function boot_world()

    void boot_world ( void )
    Calls:
  • basic_mud_log() : utils.c
  • check_start_rooms() : db.c
  • index_boot() : db.c
  • renum_world() : db.c
  • renum_zone_table() : db.c
  • Called by:
  • boot_db() : db.c
  • main() : comm.c
  • References Variables:
  • no_specials : comm.c

  • Global Function build_player_index()

    void build_player_index ( void )
    Prototyped in:
  • db.c
  • Calls:
  • MAX() : utils.c
  • basic_mud_log() : utils.c
  • touch() : utils.c
  • __gnu_calloc(), abort(), exit(), feof(), fopen(), fprintf(), fread(), fseek(), ftell(), perror(), rewind(), sprintf(), strlen()
  • Called by:
  • boot_db() : db.c
  • References Variables:
  • player_fl : db.c
  • player_table : db.c
  • top_idnum : db.c
  • top_of_p_file : db.c
  • top_of_p_table : db.c

  • Global Function char_to_store()

    void char_to_store ( struct char_data* ch, struct char_file_u* st )
    Prototyped in:
  • db.h
  • Calls:
  • affect_remove() : handler.c
  • affect_to_char() : handler.c
  • basic_mud_log() : utils.c
  • equip_char() : handler.c
  • unequip_char() : handler.c
  • strcpy(), time()
  • Called by:
  • do_set() : act.wizard.c
  • save_char() : db.c

  • Global Function check_start_rooms()

    void check_start_rooms ( void )
    Prototyped in:
  • db.c
  • Calls:
  • basic_mud_log() : utils.c
  • real_room() : db.c
  • exit()
  • Called by:
  • boot_world() : db.c
  • References Variables:
  • frozen_start_room : config.c
  • immort_start_room : config.c
  • mini_mud : db.c
  • mortal_start_room : config.c
  • r_frozen_start_room : db.c
  • r_immort_start_room : db.c
  • r_mortal_start_room : db.c

  • Global Function clear_char()

    void clear_char ( struct char_data* ch )
    Prototyped in:
  • db.h
  • Calls:
  • memset()
  • Called by:
  • create_char() : db.c
  • do_set() : act.wizard.c
  • do_stat() : act.wizard.c
  • nanny() : interpreter.c
  • parse_mobile() : db.c
  • read_mobile() : db.c

  • Global Function clear_object()

    void clear_object ( struct obj_data* obj )
    Prototyped in:
  • db.h
  • Calls:
  • memset()
  • Called by:
  • create_obj() : db.c
  • parse_object() : db.c
  • read_object() : db.c

  • Global Function count_hash_records()

    int count_hash_records ( FILE* fl )
    Calls:
  • fgets()
  • Called by:
  • index_boot() : db.c

  • Global Function create_char()

    struct char_data* create_char ( void )
    Prototyped in:
  • db.h
  • Calls:
  • clear_char() : db.c
  • __gnu_calloc(), abort(), perror()
  • References Variables:
  • character_list : db.c

  • Global Function create_entry()

    int create_entry ( char* name )
    Prototyped in:
  • db.h
  • Calls:
  • __gnu_calloc(), abort(), exit(), perror(), realloc(), strlen()
  • Called by:
  • nanny() : interpreter.c
  • References Variables:
  • player_table : db.c
  • top_of_p_table : db.c

  • Global Function create_obj()

    struct obj_data* create_obj ( void )
    Prototyped in:
  • db.h
  • Calls:
  • clear_object() : db.c
  • __gnu_calloc(), abort(), perror()
  • Called by:
  • create_money() : handler.c
  • make_corpse() : fight.c
  • postmaster_receive_mail() : mail.c
  • References Variables:
  • object_list : db.c

  • Global Function discrete_load()

    void discrete_load ( FILE* fl, int mode )
    Prototyped in:
  • db.c
  • Calls:
  • get_line() : utils.c
  • parse_mobile() : db.c
  • parse_object() : db.c
  • parse_room() : db.c
  • exit(), fprintf(), sscanf(), strcpy()
  • Called by:
  • index_boot() : db.c

  • Global Function do_reboot()

    void do_reboot ( struct char_data* ch, char* argument, int cmd, int subcmd )
    Calls:
  • file_to_string_alloc() : db.c
  • index_boot() : db.c
  • one_argument() : interpreter.c
  • send_to_char() : comm.c
  • str_cmp() : utils.c
  • free()
  • Used in:
  • : interpreter.c
  • References Variables:
  • OK : config.c
  • background : db.c
  • credits : db.c
  • handbook : db.c
  • help : db.c
  • help_table : db.c
  • immlist : db.c
  • imotd : db.c
  • info : db.c
  • motd : db.c
  • news : db.c
  • policies : db.c
  • top_of_helpt : db.c
  • wizlist : db.c

  • Global Function file_to_string()

    int file_to_string ( char* name, char* buf )
    Prototyped in:
  • db.c
  • Calls:
  • basic_mud_log() : utils.c
  • fclose(), feof(), fgets(), fopen(), perror(), sprintf(), strcat(), strlen()
  • Called by:
  • file_to_string_alloc() : db.c

  • Global Function file_to_string_alloc()

    int file_to_string_alloc ( char* name, char** buf )
    Prototyped in:
  • db.c
  • Calls:
  • file_to_string() : db.c
  • str_dup() : utils.c
  • free()
  • Called by:
  • boot_db() : db.c
  • do_reboot() : db.c
  • reboot_wizlists() : db.c

  • Global Function fread_string()

    char* fread_string ( FILE* fl, char* error )
    Prototyped in:
  • db.h
  • Calls:
  • basic_mud_log() : utils.c
  • __gnu_calloc(), abort(), exit(), fgets(), fprintf(), perror(), strcat(), strchr(), strcpy(), strlen()
  • Called by:
  • boot_the_shops() : shop.c
  • parse_mobile() : db.c
  • parse_object() : db.c
  • parse_room() : db.c
  • setup_dir() : db.c

  • Global Function free_char()

    void free_char ( struct char_data* ch )
    Prototyped in:
  • db.h
  • Calls:
  • affect_remove() : handler.c
  • basic_mud_log() : utils.c
  • free()
  • Called by:
  • close_socket() : comm.c
  • do_set() : act.wizard.c
  • do_stat() : act.wizard.c
  • extract_char() : handler.c
  • nanny() : interpreter.c
  • perform_dupe_check() : interpreter.c
  • References Variables:
  • dummy_mob : db.c
  • mob_proto : db.c

  • Global Function free_obj()

    void free_obj ( struct obj_data* obj )
    Prototyped in:
  • db.h
  • Calls:
  • free()
  • Called by:
  • House_listrent() : house.c
  • extract_obj() : handler.c
  • References Variables:
  • obj_proto : db.c

  • Global Function get_id_by_name()

    long get_id_by_name ( char* name )
    Prototyped in:
  • db.h
  • Calls:
  • one_argument() : interpreter.c
  • strcmp()
  • Called by:
  • do_house() : house.c
  • hcontrol_build_house() : house.c
  • postmaster_send_mail() : mail.c
  • References Variables:
  • player_table : db.c
  • top_of_p_table : db.c

  • Global Function get_name_by_id()

    char* get_name_by_id ( long id )
    Prototyped in:
  • db.h
  • Called by:
  • House_boot() : house.c
  • do_house() : house.c
  • hcontrol_list_houses() : house.c
  • read_delete() : mail.c
  • References Variables:
  • player_table : db.c
  • top_of_p_table : db.c

  • Global Function get_one_line()

    void get_one_line ( FILE* fl, char* buf )
    Calls:
  • basic_mud_log() : utils.c
  • exit(), fgets(), strlen()
  • Called by:
  • load_help() : db.c

  • Global Function hsort()

    int hsort ( const void* a, const void* b )
    Prototyped in:
  • db.c
  • Calls:
  • str_cmp() : utils.c
  • Used in:
  • index_boot() : db.c

  • Global Function index_boot()

    void index_boot ( int mode )
    Prototyped in:
  • db.c
  • Calls:
  • basic_mud_log() : utils.c
  • boot_the_shops() : shop.c
  • count_hash_records() : db.c
  • discrete_load() : db.c
  • load_help() : db.c
  • load_zones() : db.c
  • __gnu_calloc(), abort(), exit(), fclose(), fopen(), fscanf(), perror(), qsort(), rewind(), sprintf()
  • Called by:
  • boot_db() : db.c
  • boot_world() : db.c
  • do_reboot() : db.c
  • References Functions:
  • hsort() : db.c
  • References Variables:
  • help_table : db.c
  • mini_mud : db.c
  • mob_index : db.c
  • mob_proto : db.c
  • obj_index : db.c
  • obj_proto : db.c
  • top_of_helpt : db.c
  • world : db.c
  • zone_table : db.c

  • Global Function init_char()

    void init_char ( struct char_data* ch )
    Prototyped in:
  • db.h
  • Calls:
  • number() : utils.c
  • set_title() : limits.c
  • __gnu_calloc(), abort(), perror(), time()
  • Called by:
  • nanny() : interpreter.c
  • References Variables:
  • player_table : db.c
  • top_idnum : db.c
  • top_of_p_table : db.c

  • Global Function interpret_espec()

    void interpret_espec ( char* keyword, char* value, int i, int nr )
    Calls:
  • MAX() : utils.c
  • MIN() : utils.c
  • str_cmp() : utils.c
  • atoi(), fprintf()
  • Called by:
  • parse_espec() : db.c
  • References Variables:
  • mob_proto : db.c

  • Global Function is_empty()

    int is_empty ( int zone_nr )
    Prototyped in:
  • db.c
  • Called by:
  • zone_update() : db.c
  • References Variables:
  • descriptor_list : comm.c
  • world : db.c

  • Global Function load_char()

    int load_char ( char* name, struct char_file_u* char_element )
    Prototyped in:
  • db.h
  • Calls:
  • fread(), fseek()
  • Called by:
  • do_last() : act.wizard.c
  • do_set() : act.wizard.c
  • do_show() : act.wizard.c
  • do_stat() : act.wizard.c
  • References Variables:
  • player_fl : db.c

  • Global Function load_help()

    void load_help ( FILE* fl )
    Prototyped in:
  • db.c
  • Calls:
  • get_one_line() : db.c
  • one_word() : interpreter.c
  • str_dup() : utils.c
  • strcat(), strcpy()
  • Called by:
  • index_boot() : db.c
  • References Variables:
  • help_table : db.c
  • top_of_helpt : db.c

  • Global Function load_zones()

    void load_zones ( FILE* fl, char* zonename )
    Prototyped in:
  • db.c
  • Calls:
  • get_line() : utils.c
  • skip_spaces() : interpreter.c
  • str_dup() : utils.c
  • __gnu_calloc(), abort(), exit(), fprintf(), perror(), rewind(), sprintf(), sscanf(), strchr(), strcpy()
  • Called by:
  • index_boot() : db.c
  • References Variables:
  • top_of_zone_table : db.c
  • zone_table : db.c

  • Global Function log_zone_error()

    void log_zone_error ( int zone, int cmd_no, char* message )
    Prototyped in:
  • db.c
  • Calls:
  • mudlog() : utils.c
  • sprintf()
  • Called by:
  • renum_zone_table() : db.c
  • reset_zone() : db.c
  • References Variables:
  • zone_table : db.c

  • Global Function parse_enhanced_mob()

    void parse_enhanced_mob ( FILE* mob_f, int i, int nr )
    Calls:
  • get_line() : utils.c
  • parse_espec() : db.c
  • parse_simple_mob() : db.c
  • exit(), fprintf(), strcmp()
  • Called by:
  • parse_mobile() : db.c

  • Global Function parse_espec()

    void parse_espec ( char* buf, int i, int nr )
    Calls:
  • interpret_espec() : db.c
  • strchr()
  • Called by:
  • parse_enhanced_mob() : db.c

  • Global Function parse_mobile()

    void parse_mobile ( FILE* mob_f, int nr )
    Prototyped in:
  • db.c
  • Calls:
  • asciiflag_conv() : db.c
  • clear_char() : db.c
  • fname() : handler.c
  • fread_string() : db.c
  • get_line() : utils.c
  • parse_enhanced_mob() : db.c
  • parse_simple_mob() : db.c
  • str_cmp() : utils.c
  • exit(), fprintf(), sprintf(), sscanf()
  • Called by:
  • discrete_load() : db.c
  • References Variables:
  • dummy_mob : db.c
  • mob_index : db.c
  • mob_proto : db.c
  • top_of_mobt : db.c

  • Global Function parse_object()

    char* parse_object ( FILE* obj_f, int nr )
    Prototyped in:
  • db.c
  • Calls:
  • asciiflag_conv() : db.c
  • clear_object() : db.c
  • fname() : handler.c
  • fread_string() : db.c
  • get_line() : utils.c
  • str_cmp() : utils.c
  • __gnu_calloc(), abort(), exit(), fprintf(), perror(), sprintf(), sscanf(), strcat()
  • Called by:
  • discrete_load() : db.c
  • References Variables:
  • obj_index : db.c
  • obj_proto : db.c
  • top_of_objt : db.c

  • Global Function parse_room()

    void parse_room ( FILE* fl, int virtual_nr )
    Prototyped in:
  • db.c
  • Calls:
  • asciiflag_conv() : db.c
  • fread_string() : db.c
  • get_line() : utils.c
  • setup_dir() : db.c
  • __gnu_calloc(), abort(), atoi(), exit(), fprintf(), perror(), sprintf(), sscanf()
  • Called by:
  • discrete_load() : db.c
  • References Variables:
  • top_of_world : db.c
  • top_of_zone_table : db.c
  • world : db.c
  • zone_table : db.c

  • Global Function parse_simple_mob()

    void parse_simple_mob ( FILE* mob_f, int i, int nr )
    Calls:
  • get_line() : utils.c
  • exit(), fprintf(), sscanf()
  • Called by:
  • parse_enhanced_mob() : db.c
  • parse_mobile() : db.c
  • References Variables:
  • mob_proto : db.c

  • Global Function read_mobile()

    struct char_data* read_mobile ( int nr, int type )
    Prototyped in:
  • db.h
  • Calls:
  • basic_mud_log() : utils.c
  • clear_char() : db.c
  • dice() : utils.c
  • number() : utils.c
  • real_mobile() : db.c
  • __gnu_calloc(), abort(), perror(), sprintf(), time()
  • Called by:
  • do_load() : act.wizard.c
  • do_vstat() : act.wizard.c
  • mag_summons() : magic.c
  • pet_shops() : spec_procs.c
  • reset_zone() : db.c
  • References Variables:
  • character_list : db.c
  • mob_index : db.c
  • mob_proto : db.c

  • Global Function read_object()

    struct obj_data* read_object ( int nr, int type )
    Prototyped in:
  • db.h
  • Calls:
  • basic_mud_log() : utils.c
  • clear_object() : db.c
  • real_object() : db.c
  • __gnu_calloc(), abort(), perror(), sprintf()
  • Called by:
  • Crash_listrent() : objsave.c
  • Obj_from_store() : objsave.c
  • do_load() : act.wizard.c
  • do_vstat() : act.wizard.c
  • mag_creations() : magic.c
  • reset_zone() : db.c
  • shopping_buy() : shop.c
  • References Variables:
  • obj_index : db.c
  • obj_proto : db.c
  • object_list : db.c

  • Global Function real_mobile()

    int real_mobile ( int virtual )
    Prototyped in:
  • db.h
  • Called by:
  • ASSIGNMOB() : spec_assign.c
  • assign_kings_castle() : castle.c
  • boot_the_shops() : shop.c
  • do_load() : act.wizard.c
  • do_olc() : olc.c
  • do_vstat() : act.wizard.c
  • read_mobile() : db.c
  • renum_zone_table() : db.c
  • References Variables:
  • mob_index : db.c
  • top_of_mobt : db.c

  • Global Function real_object()

    int real_object ( int virtual )
    Prototyped in:
  • db.h
  • Called by:
  • ASSIGNOBJ() : spec_assign.c
  • Crash_listrent() : objsave.c
  • Obj_from_store() : objsave.c
  • add_to_list() : shop.c
  • do_load() : act.wizard.c
  • do_olc() : olc.c
  • do_vstat() : act.wizard.c
  • init_boards() : boards.c
  • read_object() : db.c
  • renum_zone_table() : db.c
  • References Variables:
  • obj_index : db.c
  • top_of_objt : db.c

  • Global Function real_room()

    int real_room ( int virtual )
    Prototyped in:
  • db.h
  • Called by:
  • ASSIGNROOM() : spec_assign.c
  • House_boot() : house.c
  • House_crashsave() : house.c
  • House_load() : house.c
  • House_save_all() : house.c
  • block_way() : castle.c
  • check_start_rooms() : db.c
  • do_drop() : act.item.c
  • do_olc() : olc.c
  • find_target_room() : act.wizard.c
  • hcontrol_build_house() : house.c
  • hcontrol_destroy_house() : house.c
  • king_welmar() : castle.c
  • list_detailed_shop() : shop.c
  • nanny() : interpreter.c
  • perform_set() : act.wizard.c
  • renum_world() : db.c
  • renum_zone_table() : db.c
  • References Variables:
  • top_of_world : db.c
  • world : db.c

  • Global Function reboot_wizlists()

    void reboot_wizlists ( void )
    Calls:
  • file_to_string_alloc() : db.c
  • References Variables:
  • immlist : db.c
  • wizlist : db.c

  • Global Function renum_world()

    void renum_world ( void )
    Prototyped in:
  • db.c
  • Calls:
  • real_room() : db.c
  • Called by:
  • boot_world() : db.c
  • References Variables:
  • top_of_world : db.c
  • world : db.c

  • Global Function renum_zone_table()

    void renum_zone_table ( void )
    Prototyped in:
  • db.c
  • Calls:
  • log_zone_error() : db.c
  • real_mobile() : db.c
  • real_object() : db.c
  • real_room() : db.c
  • Called by:
  • boot_world() : db.c
  • References Variables:
  • mini_mud : db.c
  • top_of_zone_table : db.c
  • zone_table : db.c

  • Global Function reset_char()

    void reset_char ( struct char_data* ch )
    Prototyped in:
  • db.h
  • Called by:
  • nanny() : interpreter.c

  • Global Function reset_time()

    void reset_time ( void )
    Prototyped in:
  • db.c
  • Calls:
  • basic_mud_log() : utils.c
  • dice() : utils.c
  • sprintf(), time()
  • Called by:
  • boot_db() : db.c
  • References Variables:
  • time_info : db.c
  • weather_info : db.c

  • Global Function reset_zone()

    void reset_zone ( int zone )
    Prototyped in:
  • db.c
  • Calls:
  • char_to_room() : handler.c
  • equip_char() : handler.c
  • extract_obj() : handler.c
  • get_obj_in_list_num() : handler.c
  • get_obj_num() : handler.c
  • log_zone_error() : db.c
  • obj_from_room() : handler.c
  • obj_to_char() : handler.c
  • obj_to_obj() : handler.c
  • obj_to_room() : handler.c
  • read_mobile() : db.c
  • read_object() : db.c
  • Called by:
  • boot_db() : db.c
  • zone_update() : db.c
  • References Variables:
  • mob_index : db.c
  • obj_index : db.c
  • world : db.c
  • zone_table : db.c

  • Global Function save_char()

    void save_char ( struct char_data* ch, sh_int load_room )
    Prototyped in:
  • db.h
  • Calls:
  • char_to_store() : db.c
  • fseek(), fwrite(), strncpy()
  • Called by:
  • Crash_load() : objsave.c
  • Crash_save_all() : objsave.c
  • advance_level() : class.c
  • check_idling() : limits.c
  • close_socket() : comm.c
  • do_advance() : act.wizard.c
  • do_quit() : act.other.c
  • do_save() : act.other.c
  • do_set() : act.wizard.c
  • do_wizutil() : act.wizard.c
  • extract_char() : handler.c
  • gen_receptionist() : objsave.c
  • nanny() : interpreter.c
  • References Variables:
  • player_fl : db.c
  • world : db.c

  • Global Function save_etext()

    void save_etext ( struct char_data* ch )

    Global Function setup_dir()

    void setup_dir ( FILE* fl, int room, int dir )
    Prototyped in:
  • db.c
  • Calls:
  • fread_string() : db.c
  • get_line() : utils.c
  • __gnu_calloc(), abort(), exit(), fprintf(), perror(), sprintf(), sscanf()
  • Called by:
  • parse_room() : db.c
  • References Variables:
  • world : db.c

  • Global Function store_to_char()

    void store_to_char ( struct char_file_u* st, struct char_data* ch )
    Prototyped in:
  • db.h
  • Calls:
  • affect_to_char() : handler.c
  • str_dup() : utils.c
  • __gnu_calloc(), abort(), perror(), strcpy(), strlen(), time()
  • Called by:
  • do_set() : act.wizard.c
  • do_stat() : act.wizard.c
  • nanny() : interpreter.c

  • Global Function vnum_mobile()

    int vnum_mobile ( char* searchname, struct char_data* ch )
    Prototyped in:
  • db.h
  • Calls:
  • isname() : handler.c
  • send_to_char() : comm.c
  • sprintf()
  • Called by:
  • do_vnum() : act.wizard.c
  • References Variables:
  • mob_index : db.c
  • mob_proto : db.c
  • top_of_mobt : db.c

  • Global Function vnum_object()

    int vnum_object ( char* searchname, struct char_data* ch )
    Prototyped in:
  • db.h
  • Calls:
  • isname() : handler.c
  • send_to_char() : comm.c
  • sprintf()
  • Called by:
  • do_vnum() : act.wizard.c
  • References Variables:
  • obj_index : db.c
  • obj_proto : db.c
  • top_of_objt : db.c

  • Global Function zone_update()

    void zone_update ( void )
    Prototyped in:
  • db.h
  • Calls:
  • is_empty() : db.c
  • mudlog() : utils.c
  • reset_zone() : db.c
  • __gnu_calloc(), abort(), free(), perror(), sprintf()
  • Called by:
  • heartbeat() : comm.c
  • References Variables:
  • reset_q : db.c
  • top_of_zone_table : db.c
  • zone_table : db.c