Re: Start Location Question:

From: David A. Carver (DCARVER@cougar.colstate.cc.oh.us)
Date: 02/15/96


->#1:  I would like to have new characters start out in their guild, however
->I haven't been able to locate the routine that sets that for individual 
->characters.  I know of the set_start_location in the config.c file, but
->that's more of a global setting and I want it to vary individually depending
->on the class of my character.  I would also like to give the characters
->the option to rent out in the guilds as well, and then re-pop in the guild
->when they come back on.  Is that similar to the above?  or is that too
->much trouble for what its worth?


Well, if you are using patchlevel 9, you can set the player's Loadroom 
based on their class, and set the PLR_LOADROOM flag.  Here is a quick 
example:

switch (GET_CLASS(ch))
{
  case CLASS_MAGIC_USER:
     GET_LOADROOM(ch) = 3019;
     break;
  case CLASS_CLERIC:
     GET_LOADROOM(ch) = 3002;
     break;
  case CLASS_THIEF:
     GET_LOADROOM(ch) = 3029;
     break;
  case CLASS_WARRIOR:
     GET_LOADROOM(ch) = 3023;
     break;
}

  SET_BIT(PLR_FLAGS(ch), PLR_LOADROOM)
  
Under Patchlevel 9 that should work correctly.  I just did it off the top 
of my head.  You could put this routine in class.c along with the player 
assignments, or when you equip new players (if you do that).

Dave Carver
Ferengi Rules of Acquisition:
112. Never have sex with the boss' sister.
           --  Quark, Playing God

+==================================================================+
| David Carver, Programmer Analyst        "Spooooooooonnnnnn!!!"   |      
| Columbus State Community College               -- The Tick       |
| Email: dcarver@cougar.colstate.cc.oh.us                          | 
+==================================================================+
       
                



This archive was generated by hypermail 2b30 : 12/07/00 PST