File castle.c

|* Special procedures for Kings Castle by Pjotr (d90-pem@nada.kth.se) *| |* Coded by Sapowox (d90-jkr@nada.kth.se) *| \


Included Files


Preprocessor definitions

#define Z_KINGS_C 150

#define C_MOB_SPEC( zone, mob )

#define R_MOB( zone, mob )

#define R_OBJ( zone, obj )

#define R_ROOM( zone, num )

#define CASTLE_ITEM( item )


Global Variable CastleGuard

int ( CastleGuard)(struct char_data* ch,void* me,int cmd,char* argument)
Visible in:  castle.c
Used in: assign_kings_castle()castle.c

Global Variable James

int ( James)(struct char_data* ch,void* me,int cmd,char* argument)
Visible in:  castle.c
Used in: assign_kings_castle()castle.c

Global Variable cleaning

int ( cleaning)(struct char_data* ch,void* me,int cmd,char* argument)
Visible in:  castle.c
Used in: assign_kings_castle()castle.c

Global Variable DicknDavid

int ( DicknDavid)(struct char_data* ch,void* me,int cmd,char* argument)
Visible in:  castle.c
Used in: assign_kings_castle()castle.c

Global Variable tim

int ( tim)(struct char_data* ch,void* me,int cmd,char* argument)
Visible in:  castle.c
Used in: assign_kings_castle()castle.c

Global Variable tom

int ( tom)(struct char_data* ch,void* me,int cmd,char* argument)
Visible in:  castle.c
Used in: assign_kings_castle()castle.c

Global Variable king_welmar

int ( king_welmar)(struct char_data* ch,void* me,int cmd,char* argument)
Visible in:  castle.c
Used in: assign_kings_castle()castle.c

Global Variable training_master

int ( training_master)(struct char_data* ch,void* me,int cmd,char* argument)
Visible in:  castle.c
Used in: assign_kings_castle()castle.c

Global Variable peter

int ( peter)(struct char_data* ch,void* me,int cmd,char* argument)
Visible in:  castle.c
Used in: assign_kings_castle()castle.c

Global Variable jerry

int ( jerry)(struct char_data* ch,void* me,int cmd,char* argument)
Visible in:  castle.c
Used in: assign_kings_castle()castle.c

Global Variable guild

int ( guild)(struct char_data* ch,void* me,int cmd,char* argument)
Visible in:  castle.c
   spec_assign.c
   spec_procs.c
Used in: assign_mobiles()spec_assign.c

External Variables

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

character_list
extern struct char_data* character_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

time_info
extern struct time_info_data time_info
Defined in: db.c

mini_mud
extern int mini_mud
Defined in: db.c


Global Function CastleGuard()

int ( CastleGuard) ( struct char_data* ch, void* me, int cmd, char* argument )
Calls: banzaii()castle.c

Global Function DicknDavid()

int ( DicknDavid) ( struct char_data* ch, void* me, int cmd, char* argument )
Calls: banzaii()castle.c
  block_way()castle.c
References Variables: argdb.c

Global Function James()

int ( James) ( struct char_data* ch, void* me, int cmd, char* argument )
Calls: castle_cleaner()castle.c

Global Function assign_kings_castle()

void assign_kings_castle ( void )
Prototyped in: castle.c
Calls: basic_mud_log()utils.c
  real_mobile()db.c
Called by: assign_mobiles()spec_assign.c
References Variables: CastleGuardcastle.c
  DicknDavidcastle.c
  Jamescastle.c
  cleaningcastle.c
  jerrycastle.c
  king_welmarcastle.c
  mini_muddb.c
  mob_indexdb.c
  petercastle.c
  timcastle.c
  tomcastle.c
  training_mastercastle.c

Global Function banzaii()

int banzaii ( struct char_data* ch )
Prototyped in: castle.c
Calls: act()comm.c
  get_victim()castle.c
  hit()fight.c
Called by: CastleGuard()castle.c
  DicknDavid()castle.c
  castle_twin_proc()castle.c
  jerry()castle.c
  king_welmar()castle.c
  peter()castle.c
  training_master()castle.c

Global Function block_way()

int block_way ( struct char_data* ch, int cmd, char* arg, room_rnum iIn_room, int iProhibited_direction )
Prototyped in: castle.c
Calls: act()comm.c
  member_of_staff()castle.c
  real_room()db.c
  send_to_char()comm.c
  strncmp()
Called by: DicknDavid()castle.c
  castle_twin_proc()castle.c

Global Function castle_cleaner()

int castle_cleaner ( struct char_data* ch, int cmd, int gripe )
Prototyped in: castle.c
Calls: act()comm.c
  is_trash()castle.c
  obj_from_room()handler.c
  obj_to_char()handler.c
Called by: James()castle.c
  cleaning()castle.c
References Variables: worlddb.c

Global Function castle_twin_proc()

int castle_twin_proc ( struct char_data* ch, int cmd, char* arg, int ctlnum, char* twinname )
Prototyped in: castle.c
Calls: banzaii()castle.c
  block_way()castle.c
  do_follow()act.movement.c
  do_npc_rescue()castle.c
  find_npc_by_name()castle.c
  strlen()
Called by: tim()castle.c
  tom()castle.c

Global Function cleaning()

int ( cleaning) ( struct char_data* ch, void* me, int cmd, char* argument )
Calls: castle_cleaner()castle.c

Global Function do_npc_rescue()

int do_npc_rescue ( struct char_data* ch_hero, struct char_data* ch_victim )
Prototyped in: castle.c
Calls: act()comm.c
  set_fighting()fight.c
  stop_fighting()fight.c
Called by: castle_twin_proc()castle.c
References Variables: worlddb.c

Global Function find_guard()

struct char_data* find_guard ( struct char_data* chAtChar )
Prototyped in: castle.c
Calls: member_of_royal_guard()castle.c
Called by: peter()castle.c
References Variables: worlddb.c

Global Function find_npc_by_name()

struct char_data* find_npc_by_name ( struct char_data* chAtChar, const char* pszName, int iLen )
Prototyped in: castle.c
Calls: strncmp()
Called by: castle_twin_proc()castle.c
  jerry()castle.c
  training_master()castle.c
References Variables: worlddb.c

Global Function fry_victim()

void fry_victim ( struct char_data* ch )
Prototyped in: castle.c
Calls: act()comm.c
  cast_spell()spell_parser.c
  get_victim()castle.c
  number()utils.c
  send_to_char()comm.c
Called by: king_welmar()castle.c

Global Function get_victim()

struct char_data* get_victim ( struct char_data* chAtChar )
Prototyped in: castle.c
Calls: member_of_staff()castle.c
  number()utils.c
Called by: banzaii()castle.c
  fry_victim()castle.c
References Variables: worlddb.c

Global Function is_trash()

int is_trash ( struct obj_data* i )
Prototyped in: castle.c
Called by: castle_cleaner()castle.c

Global Function jerry()

int ( jerry) ( struct char_data* ch, void* me, int cmd, char* argument )
Calls: act()comm.c
  banzaii()castle.c
  find_npc_by_name()castle.c
  number()utils.c

Global Function king_welmar()

int ( king_welmar) ( struct char_data* ch, void* me, int cmd, char* argument )
Calls: act()comm.c
  banzaii()castle.c
  do_gen_door()act.movement.c
  fry_victim()castle.c
  perform_move()act.movement.c
  real_room()db.c
References Variables: time_infodb.c

Global Function member_of_royal_guard()

int member_of_royal_guard ( struct char_data* chChar )
Prototyped in: castle.c
Called by: find_guard()castle.c
References Variables: mob_indexdb.c

Global Function member_of_staff()

int member_of_staff ( struct char_data* chChar )
Prototyped in: castle.c
Called by: block_way()castle.c
  get_victim()castle.c
References Variables: mob_indexdb.c

Global Function peter()

int ( peter) ( struct char_data* ch, void* me, int cmd, char* argument )
Calls: act()comm.c
  banzaii()castle.c
  find_guard()castle.c
  number()utils.c

Global Function tim()

int ( tim) ( struct char_data* ch, void* me, int cmd, char* argument )
Calls: castle_twin_proc()castle.c
References Variables: argdb.c

Global Function tom()

int ( tom) ( struct char_data* ch, void* me, int cmd, char* argument )
Calls: castle_twin_proc()castle.c
References Variables: argdb.c

Global Function training_master()

int ( training_master) ( struct char_data* ch, void* me, int cmd, char* argument )
Calls: act()comm.c
  banzaii()castle.c
  find_npc_by_name()castle.c
  number()utils.c
  send_to_char()comm.c