How do you specify the starting room vnum?

Frequently asked question — SMAUG server

Question

In SMAUG, where in the code, or config/setup files can you specify the starting room vnum? I want to change where beginning players start in the mud, and I don't want it to be out in front of the Academy.

Answer

A. They are defined in mud.h, as follows ...


#define ROOM_VNUM_SCHOOL	  10300
#define ROOM_AUTH_START		    100

There is code in comm.c as follows:


	    if (!sysdata.WAIT_FOR_AUTH)
	      char_to_room( ch, get_room_index( ROOM_VNUM_SCHOOL ) );
	    else
	      {
            char_to_room( ch, get_room_index( ROOM_AUTH_START ) );
            ch->pcdata->auth_state = 0;
            SET_BIT(ch->pcdata->flags, PCFLAG_UNAUTHED);
	      }

This puts a new player in the school (if no authorisation) or at the training area (if they are going through that).

You would need to recompile the server to change those. :)