Re: [NEWBIE] load room

From: Niese-Petersen (Tenp@cris.com)
Date: 10/05/96


On Sat, 5 Oct 1996, Admin of The Keep wrote:

> On Sat, 5 Oct 1996, Jonathan Blackhawke wrote:
> 
> > Ok,
> >      Simple question, hopefully.  I've been looking around the code and
> > have found the locations of where circle loads characters to a specific
> > location each time a player logs on.  What I'd like to do is to have the
> > player load at the last place they saved or quit instead of the default
> > location that I put in the config.c.  What do I need to do to have this
> > implimented?  Any help to pinpoint this would be greatfully appretiated.
> 
> Change all of the save_char(ch, NOWHERE) calls to:
>   save_char(ch, ch->in_room);
> That should be it.
> 

And then you got a major bug in your system :)

ch->in_room is the real number of the room, not the virtual number.
So as soon you change your world, it will point on the wrong room..

  Change ch->in_room to world[ch->in_room].number  .. 

Can't say this would work totally [Haven't checked into this in loong time
:) ] But if someone save and quit, and then at once from the menu, go back
to the game, then I believe they could end up at default.. 

---
Erik Niese-Petersen
Aka Quint The typo God
Realms of Darkness IMP



+-----------------------------------------------------------+
| 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