File act.wizard.c

The do_set function


Included Files


Preprocessor definitions

#define PC 1

#define NPC 2

#define BOTH 3

#define MISC 0

#define BINARY 1

#define NUMBER 2

#define SET_OR_REMOVE( flagset, flags )

#define RANGE( low, high )


Type struct show_struct

struct show_struct
struct show_struct 
   { 
     const char* cmd; 
     const char level; 
   } 

Type struct set_struct

struct set_struct
struct set_struct 
   { 
     const char* cmd; 
     const char level; 
     const char pcnpc; 
     const char type; 
   } 

Global Variable logtypes

const char* logtypes[]
Visible in:  act.wizard.c
Used in: do_syslog()act.wizard.c

Global Variable set_fields

struct set_struct set_fields[]
Visible in:  act.wizard.c
Used in: do_set()act.wizard.c
  perform_set()act.wizard.c

External Variables

player_fl
extern FILE* player_fl
Defined in: db.c

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

character_list
extern struct char_data* character_list
Defined in: db.c

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

descriptor_list
extern struct descriptor_data* descriptor_list
Defined in: comm.c

mob_index
extern struct index_data* mob_index
Defined in: db.c

obj_index
extern struct index_data* obj_index
Defined in: db.c

zone_table
extern struct zone_data* zone_table
Defined in: db.c

attack_hit_text
extern struct attack_hit_type attack_hit_text[]
Defined in: fight.c

class_abbrevs
extern char* class_abbrevs[]
Defined in: class.c

boot_time
extern time_t boot_time
Defined in: db.c

top_of_zone_table
extern zone_rnum top_of_zone_table
Defined in: db.c

circle_shutdown
extern int circle_shutdown
Defined in: comm.c

circle_reboot
extern int circle_reboot
Defined in: comm.c

circle_restrict
extern int circle_restrict
Defined in: db.c

load_into_inventory
extern int load_into_inventory
Defined in: config.c

buf_switches
extern int buf_switches
Defined in: comm.c

buf_largecount
extern int buf_largecount
Defined in: comm.c

buf_overflows
extern int buf_overflows
Defined in: comm.c

top_of_mobt
extern mob_rnum top_of_mobt
Defined in: db.c

top_of_objt
extern obj_rnum top_of_objt
Defined in: db.c

top_of_p_table
extern int top_of_p_table
Defined in: db.c

pc_class_types
extern const char* pc_class_types[]
Defined in: class.c


Global Function do_advance()

void do_advance ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: act()comm.c
  basic_mud_log()utils.c
  do_start()class.c
  gain_exp_regardless()limits.c
  get_char_vis()handler.c
  level_exp()class.c
  save_char()db.c
  send_to_char()comm.c
  two_arguments()interpreter.c
  atoi(), sprintf()
Used in:  interpreter.c
References Variables: OKconfig.c
  argdb.c
  bufdb.c
  buf2db.c

Global Function do_at()

void do_at ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: char_from_room()handler.c
  char_to_room()handler.c
  command_interpreter()interpreter.c
  find_target_room()act.wizard.c
  half_chop()interpreter.c
  send_to_char()comm.c
Used in:  interpreter.c
References Variables: bufdb.c

Global Function do_date()

void do_date ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: send_to_char()comm.c
  asctime(), localtime(), sprintf(), strlen(), time()
Used in:  interpreter.c
References Variables: boot_timedb.c
  bufdb.c

Global Function do_dc()

void do_dc ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: basic_mud_log()utils.c
  one_argument()interpreter.c
  send_to_char()comm.c
  atoi(), sprintf()
Used in:  interpreter.c
References Variables: argdb.c
  bufdb.c
  descriptor_listcomm.c
  dummy_mobdb.c
  weather_infodb.c
  worlddb.c

Global Function do_echo()

void do_echo ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: act()comm.c
  basic_mud_log()utils.c
  send_to_char()comm.c
  skip_spaces()interpreter.c
  sprintf(), strcpy()
Called by: shopping_buy()shop.c
Used in:  interpreter.c
References Variables: OKconfig.c
  bufdb.c
  dummy_mobdb.c

Global Function do_force()

void do_force ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: MAX()utils.c
  act()comm.c
  basic_mud_log()utils.c
  command_interpreter()interpreter.c
  get_char_vis()handler.c
  half_chop()interpreter.c
  mudlog()utils.c
  send_to_char()comm.c
  str_cmp()utils.c
  sprintf()
Used in:  interpreter.c
References Variables: NOPERSONconfig.c
  OKconfig.c
  argdb.c
  bufdb.c
  buf1db.c
  descriptor_listcomm.c
  dummy_mobdb.c
  top_of_worlddb.c
  worlddb.c

Global Function do_gecho()

void do_gecho ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: basic_mud_log()utils.c
  delete_doubledollar()interpreter.c
  send_to_char()comm.c
  skip_spaces()interpreter.c
  sprintf()
Used in:  interpreter.c
References Variables: OKconfig.c
  bufdb.c
  descriptor_listcomm.c
  dummy_mobdb.c

Global Function do_goto()

void do_goto ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: act()comm.c
  basic_mud_log()utils.c
  char_from_room()handler.c
  char_to_room()handler.c
  find_target_room()act.wizard.c
  look_at_room()act.informative.c
  sprintf(), strcpy()
Used in:  interpreter.c
References Variables: bufdb.c
  dummy_mobdb.c

Global Function do_invis()

void do_invis ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: basic_mud_log()utils.c
  one_argument()interpreter.c
  perform_immort_invis()act.wizard.c
  perform_immort_vis()act.wizard.c
  send_to_char()comm.c
  atoi()
Used in:  interpreter.c
References Variables: argdb.c
  dummy_mobdb.c

Global Function do_last()

void do_last ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: load_char()db.c
  one_argument()interpreter.c
  send_to_char()comm.c
  ctime(), sprintf()
Used in:  interpreter.c
References Variables: argdb.c
  bufdb.c
  class_abbrevsclass.c

Global Function do_load()

void do_load ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: act()comm.c
  char_to_room()handler.c
  is_abbrev()interpreter.c
  obj_to_char()handler.c
  obj_to_room()handler.c
  read_mobile()db.c
  read_object()db.c
  real_mobile()db.c
  real_object()db.c
  send_to_char()comm.c
  two_arguments()interpreter.c
  atoi()
Used in:  interpreter.c
References Variables: bufdb.c
  buf2db.c
  load_into_inventoryconfig.c

Global Function do_poofset()

void do_poofset ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: basic_mud_log()utils.c
  send_to_char()comm.c
  skip_spaces()interpreter.c
  str_dup()utils.c
  free()
Used in:  interpreter.c
References Variables: OKconfig.c
  dummy_mobdb.c

Global Function do_purge()

void do_purge ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: MAX()utils.c
  act()comm.c
  basic_mud_log()utils.c
  extract_char()handler.c
  extract_obj()handler.c
  get_char_vis()handler.c
  get_obj_in_list_vis()handler.c
  mudlog()utils.c
  one_argument()interpreter.c
  send_to_char()comm.c
  send_to_room()comm.c
  sprintf()
Used in:  interpreter.c
References Variables: OKconfig.c
  bufdb.c
  dummy_mobdb.c
  worlddb.c

Global Function do_restore()

void do_restore ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: act()comm.c
  basic_mud_log()utils.c
  get_char_vis()handler.c
  one_argument()interpreter.c
  send_to_char()comm.c
  update_pos()fight.c
Used in:  interpreter.c
References Variables: NOPERSONconfig.c
  OKconfig.c
  bufdb.c
  dummy_mobdb.c

Global Function do_return()

void do_return ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: send_to_char()comm.c
Called by: extract_char_final()handler.c
Used in:  interpreter.c

Global Function do_send()

void do_send ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: basic_mud_log()utils.c
  get_char_vis()handler.c
  half_chop()interpreter.c
  send_to_char()comm.c
  sprintf()
Used in:  interpreter.c
References Variables: NOPERSONconfig.c
  argdb.c
  bufdb.c
  buf2db.c
  dummy_mobdb.c

Global Function do_set()

void do_set ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: basic_mud_log()utils.c
  char_to_store()db.c
  clear_char()db.c
  free_char()db.c
  get_char_vis()handler.c
  get_player_vis()handler.c
  half_chop()interpreter.c
  load_char()db.c
  perform_set()act.wizard.c
  save_char()db.c
  send_to_char()comm.c
  store_to_char()db.c
  str_cmp()utils.c
  abort(), calloc(), free(), fseek(), fwrite(), perror(), strcmp(), strcpy(), strlen(), strncmp()
Used in:  interpreter.c
References Variables: bufdb.c
  player_fldb.c
  set_fieldsact.wizard.c

Global Function do_show()

void do_show ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: Crash_listrent()objsave.c
  basic_mud_log()utils.c
  hcontrol_list_houses()house.c
  is_number()interpreter.c
  load_char()db.c
  page_string()modify.c
  print_zone_to_buf()act.wizard.c
  send_to_char()comm.c
  show_shops()shop.c
  skip_spaces()interpreter.c
  two_arguments()interpreter.c
  atoi(), ctime(), sprintf(), strcat(), strcmp(), strcpy(), strlen(), strncmp()
Used in:  interpreter.c
References Variables: argdb.c
  bufdb.c
  buf_largecountcomm.c
  buf_overflowscomm.c
  buf_switchescomm.c
  character_listdb.c
  class_abbrevsclass.c
  descriptor_listcomm.c
  dummy_mobdb.c
  gendersconstants.c
  object_listdb.c
  top_of_mobtdb.c
  top_of_objtdb.c
  top_of_p_tabledb.c
  top_of_worlddb.c
  top_of_zone_tabledb.c
  weather_infodb.c
  worlddb.c
  zone_tabledb.c

Global Function do_shutdown()

void do_shutdown ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: basic_mud_log()utils.c
  one_argument()interpreter.c
  send_to_all()comm.c
  send_to_char()comm.c
  str_cmp()utils.c
  touch()utils.c
Used in:  interpreter.c
References Variables: argdb.c
  circle_rebootcomm.c
  circle_shutdowncomm.c

Global Function do_snoop()

void do_snoop ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: get_char_vis()handler.c
  one_argument()interpreter.c
  send_to_char()comm.c
  stop_snooping()act.wizard.c
Used in:  interpreter.c
References Variables: OKconfig.c
  argdb.c

Global Function do_stat()

void do_stat ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: basic_mud_log()utils.c
  char_to_room()handler.c
  clear_char()db.c
  do_stat_character()act.wizard.c
  do_stat_object()act.wizard.c
  do_stat_room()act.wizard.c
  extract_char()handler.c
  get_char_vis()handler.c
  get_number()handler.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
  half_chop()interpreter.c
  is_abbrev()interpreter.c
  load_char()db.c
  send_to_char()comm.c
  store_to_char()db.c
  abort(), calloc(), free(), perror()
Used in:  interpreter.c
References Variables: buf1db.c
  buf2db.c
  worlddb.c

Global Function do_stat_character()

void do_stat_character ( struct char_data* ch, struct char_data* k )
Prototyped in: act.wizard.c
Calls: age()utils.c
  basic_mud_log()utils.c
  hit_gain()limits.c
  mana_gain()limits.c
  move_gain()limits.c
  send_to_char()comm.c
  skill_name()spell_parser.c
  sprintbit()utils.c
  sprinttype()utils.c
  asctime(), localtime(), sprintf(), strcat(), strcpy(), strlen()
Called by: do_stat()act.wizard.c
  do_vstat()act.wizard.c
References Variables: action_bitsconstants.c
  affected_bitsconstants.c
  apply_typesconstants.c
  attack_hit_textfight.c
  bufdb.c
  buf1db.c
  buf2db.c
  connected_typesconstants.c
  dex_appconstants.c
  dummy_mobdb.c
  gendersconstants.c
  int_appconstants.c
  mob_indexdb.c
  npc_class_typesconstants.c
  pc_class_typesclass.c
  player_bitsconstants.c
  position_typesconstants.c
  preference_bitsconstants.c
  top_of_worlddb.c
  weather_infodb.c
  wis_appconstants.c
  worlddb.c

Global Function do_stat_object()

void do_stat_object ( struct char_data* ch, struct obj_data* j )
Prototyped in: act.wizard.c
Calls: basic_mud_log()utils.c
  send_to_char()comm.c
  skill_name()spell_parser.c
  sprintbit()utils.c
  sprinttype()utils.c
  sprintf(), strcat(), strcpy(), strlen()
Called by: do_stat()act.wizard.c
  do_vstat()act.wizard.c
References Variables: affected_bitsconstants.c
  apply_typesconstants.c
  bufdb.c
  buf1db.c
  buf2db.c
  container_bitsconstants.c
  drinksconstants.c
  dummy_mobdb.c
  extra_bitsconstants.c
  item_typesconstants.c
  obj_indexdb.c
  top_of_worlddb.c
  wear_bitsconstants.c
  worlddb.c

Global Function do_stat_room()

void do_stat_room ( struct char_data* ch )
Prototyped in: act.wizard.c
Calls: basic_mud_log()utils.c
  send_to_char()comm.c
  sprintbit()utils.c
  sprinttype()utils.c
  sprintf(), strcat(), strcpy(), strlen()
Called by: do_stat()act.wizard.c
References Variables: bufdb.c
  buf1db.c
  buf2db.c
  dirsconstants.c
  dummy_mobdb.c
  exit_bitsconstants.c
  room_bitsconstants.c
  sector_typesconstants.c
  top_of_worlddb.c
  weather_infodb.c
  worlddb.c
  zone_tabledb.c

Global Function do_switch()

void do_switch ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: House_can_enter()house.c
  get_char_vis()handler.c
  one_argument()interpreter.c
  send_to_char()comm.c
Used in:  interpreter.c
References Variables: OKconfig.c
  argdb.c
  top_of_worlddb.c
  worlddb.c

Global Function do_syslog()

void do_syslog ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: basic_mud_log()utils.c
  one_argument()interpreter.c
  search_block()interpreter.c
  send_to_char()comm.c
  sprintf()
Used in:  interpreter.c
References Variables: argdb.c
  bufdb.c
  dummy_mobdb.c
  logtypesact.wizard.c

Global Function do_teleport()

void do_teleport ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: act()comm.c
  char_from_room()handler.c
  char_to_room()handler.c
  find_target_room()act.wizard.c
  get_char_vis()handler.c
  look_at_room()act.informative.c
  send_to_char()comm.c
  two_arguments()interpreter.c
Used in:  interpreter.c
References Variables: NOPERSONconfig.c
  OKconfig.c
  bufdb.c
  buf2db.c

Global Function do_trans()

void do_trans ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: act()comm.c
  char_from_room()handler.c
  char_to_room()handler.c
  get_char_vis()handler.c
  look_at_room()act.informative.c
  one_argument()interpreter.c
  send_to_char()comm.c
  str_cmp()utils.c
Used in:  interpreter.c
References Variables: NOPERSONconfig.c
  OKconfig.c
  bufdb.c
  descriptor_listcomm.c

Global Function do_vnum()

void do_vnum ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: half_chop()interpreter.c
  is_abbrev()interpreter.c
  send_to_char()comm.c
  vnum_mobile()db.c
  vnum_object()db.c
Used in:  interpreter.c
References Variables: bufdb.c
  buf2db.c

Global Function do_vstat()

void do_vstat ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: char_to_room()handler.c
  do_stat_character()act.wizard.c
  do_stat_object()act.wizard.c
  extract_char()handler.c
  extract_obj()handler.c
  is_abbrev()interpreter.c
  read_mobile()db.c
  read_object()db.c
  real_mobile()db.c
  real_object()db.c
  send_to_char()comm.c
  two_arguments()interpreter.c
  atoi()
Used in:  interpreter.c
References Variables: bufdb.c
  buf2db.c

Global Function do_wizlock()

void do_wizlock ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: one_argument()interpreter.c
  send_to_char()comm.c
  atoi(), sprintf()
Used in:  interpreter.c
References Variables: argdb.c
  bufdb.c
  circle_restrictdb.c

Global Function do_wiznet()

void do_wiznet ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: MAX()utils.c
  basic_mud_log()utils.c
  delete_doubledollar()interpreter.c
  half_chop()interpreter.c
  is_number()interpreter.c
  one_argument()interpreter.c
  send_to_char()comm.c
  skip_spaces()interpreter.c
  atoi(), sprintf(), strcat(), strcpy(), strlen()
Used in:  interpreter.c
References Variables: OKconfig.c
  buf1db.c
  buf2db.c
  descriptor_listcomm.c
  dummy_mobdb.c
  weather_infodb.c
  worlddb.c

Global Function do_wizutil()

void do_wizutil ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: MAX()utils.c
  act()comm.c
  affect_remove()handler.c
  basic_mud_log()utils.c
  get_char_vis()handler.c
  mudlog()utils.c
  one_argument()interpreter.c
  roll_real_abils()class.c
  save_char()db.c
  send_to_char()comm.c
  sprintf(), strcat()
Used in:  interpreter.c
References Variables: argdb.c
  bufdb.c
  dummy_mobdb.c

Global Function do_zreset()

void do_zreset ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: act.wizard.c
Calls: MAX()utils.c
  basic_mud_log()utils.c
  mudlog()utils.c
  one_argument()interpreter.c
  reset_zone()db.c
  send_to_char()comm.c
  atoi(), sprintf()
Used in:  interpreter.c
References Variables: argdb.c
  bufdb.c
  dummy_mobdb.c
  top_of_zone_tabledb.c
  worlddb.c
  zone_tabledb.c

Global Function find_target_room()

room_rnum find_target_room ( struct char_data* ch, char* rawroomstr )
Prototyped in: act.wizard.c
Calls: House_can_enter()house.c
  get_char_vis()handler.c
  get_number()handler.c
  get_obj_vis()handler.c
  one_argument()interpreter.c
  real_room()db.c
  send_to_char()comm.c
  atoi(), strchr()
Called by: do_at()act.wizard.c
  do_goto()act.wizard.c
  do_teleport()act.wizard.c
References Variables: top_of_worlddb.c
  worlddb.c

Global Function perform_immort_invis()

void perform_immort_invis ( struct char_data* ch, int level )
Prototyped in: act.wizard.c
Calls: act()comm.c
  basic_mud_log()utils.c
  send_to_char()comm.c
  sprintf()
Called by: do_invis()act.wizard.c
References Variables: bufdb.c
  dummy_mobdb.c
  worlddb.c

Global Function perform_immort_vis()

void perform_immort_vis ( struct char_data* ch )
Prototyped in: act.wizard.c
Calls: appear()fight.c
  basic_mud_log()utils.c
  send_to_char()comm.c
Called by: do_invis()act.wizard.c
  do_visible()act.other.c
References Variables: dummy_mobdb.c

Global Function perform_set()

int perform_set ( struct char_data* ch, struct char_data* vict, int mode, char* val_arg )
Prototyped in: act.wizard.c
Calls: CAP()utils.c
  MAX()utils.c
  MIN()utils.c
  affect_total()handler.c
  basic_mud_log()utils.c
  char_from_room()handler.c
  char_to_room()handler.c
  is_number()interpreter.c
  parse_class()class.c
  real_room()db.c
  search_block()interpreter.c
  send_to_char()comm.c
  set_title()limits.c
  str_cmp()utils.c
  atoi(), crypt(), sprintf(), strcat(), strcmp(), strcpy(), strncpy(), time()
Called by: do_set()act.wizard.c
References Variables: dummy_mobdb.c
  gendersconstants.c
  set_fieldsact.wizard.c

Global Function print_zone_to_buf()

void print_zone_to_buf ( char* bufptr, zone_rnum zone )
Prototyped in: act.wizard.c
Calls: sprintf()
Called by: do_show()act.wizard.c
References Variables: zone_tabledb.c

Global Function stop_snooping()

void stop_snooping ( struct char_data* ch )
Prototyped in: act.wizard.c
Calls: send_to_char()comm.c
Called by: do_snoop()act.wizard.c