コード例 #1
0
ファイル: spec_assign.c プロジェクト: adept2tech/Mclandia
/* assign special procedures to rooms */
void
assign_rooms (void)
{
	room_rnum i;

	ASSIGNROOM (3030, dump);
	ASSIGNROOM (3031, pet_shops);

	if (dts_are_dumps)
		for (i = 0; i <= top_of_world; i++)
			if (ROOM_FLAGGED (i, ROOM_DEATH))
				world[i].func = dump;
}
コード例 #2
0
ファイル: spec_assign.c プロジェクト: ryantm/deimos-mud
/* assign special procedures to rooms */
void assign_rooms(void)
{
 // ASSIGNROOM(3030, dump);
 // ASSIGNROOM(3031, pet_shops);
  //ASSIGNROOM(256, stableshop);
  //ASSIGNROOM(255, stable);
  ASSIGNROOM(271, gmaster);
  ASSIGNROOM(276, mage_guild);
  ASSIGNROOM(258, warrior_guild);  
  ASSIGNROOM(260, cleric_guild);  
  ASSIGNROOM(298, thief_guild);  
  //ASSIGNROOM(200, casino); 
  ASSIGNROOM(1513, rental);
  ASSIGNROOM(1512, gm_guild);
}
コード例 #3
0
ファイル: specset.c プロジェクト: tbjers/arcanerealms
void assign_spec_procs (char type, sh_int vnum, int which, char startup)
{
	if (startup) { /*startup should always = 0 except one time at boot up*/
		do_initial_specs();
		return;
	} else {
		switch (toupper(type)) {
		case 'M':
			if (which < 0 || which > NUM_MOB_SPECS)  mob_index[real_mobile(vnum)].func=NULL;
			else ASSIGNMOB(vnum, mob_specproc_info[which].sfunc);
			break;
		case 'O':
			 if (which < 0 || which > NUM_OBJ_SPECS)  obj_index[real_object(vnum)].func=NULL;
			 else ASSIGNOBJ(vnum, obj_specproc_info[which].sfunc);
			 break;
		case 'R':
			 if (which < 0 || which > NUM_ROOM_SPECS)  world[real_room(vnum)].func=NULL;
			 else ASSIGNROOM(vnum, room_specproc_info[which].sfunc);
			 break;
		}  /*switch type*/
	}  /*else !startup*/
}