Re: [Circle] [AutoEQ] NOWHERE Problems

From: Burkhard Knopf (burkhard.knopf@informatik.tu-clausthal.de)
Date: 11/14/96


>>>>> "BRP" == Bruce, Ray, Phil <bherbert@ns.technonet.com> writes:

 BRP> I'm still getting the ch->inroom = NOWHERE problem... Here is my
 BRP> code where I THINK I should change something, although this
 BRP> hasn't worked... Maybe someone could tell me something from
 BRP> here... ! This is in CON_MENU case 1 !
 BRP> ------------------------------
 BRP> reset_char(d->character);
 BRP> if (PLR_FLAGGED(d->character, PLR_INVSTART))
 BRP>   GET_INVIS_LEV(d->character) = GET_LEVEL(d->character);
 BRP> if ((load_result = Crash_load(d->character)))
 BRP>   d->character->in_room = NOWHERE;
 BRP> save_char(d->character, NOWHERE);
 BRP> send_to_char(WELC_MESSG, d->character);
 BRP> d->character->next = character_list;
 BRP> character_list = d->character;
 BRP> 
 BRP> if ((load_room = GET_LOADROOM(d->character)) != NOWHERE)
 BRP>   load_room = real_room(load_room);
 BRP> 
 BRP> /* If char was saved with NOWHERE, or real_room above failed... */
 BRP> if (load_room == NOWHERE) {
 BRP>   if (GET_LEVEL(d->character) >= LVL_IMMORT) {
 BRP>     load_room = r_immort_start_room;
 BRP>   } else {
 BRP>     load_room = r_mortal_start_room;
 BRP>   }
 BRP> }
    > 
    > if (PLR_FLAGGED(d->character, PLR_FROZEN))
    >   load_room = r_frozen_start_room;
    >
    > char_to_room(d->character, load_room);

You might want to try the following:
move all the lines that make d->character go to their respective
load_room before the call of Crash_load(), i.e. from line

  if ((load_room = GET_LOADROOM(d->character)) != NOWHERE)
to line
  char_to_room(d->character, load_room);

before

  if ((load_result = Crash_load(d->character)))

This way you don't have to put in additional code to move the
character to some room #3 or whatever.

Well that's at least how I fixed it.

Happy hacking
  Burkhard

-- 
burkhard.knopf@informatik.tu-clausthal.de
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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