From: "Luca" <wetwork@terra.com.br>
> I'm trying to make the players return to the last room they were when they
> quit but i don't know what i'm doing wrong, i did this in act.other.c in
> function do_quit:
> if (GET_LEVEL(ch) < LVL_IMPL) {
> SET_BIT(PRF_FLAGS(ch), PLR_LOADROOM);
> GET_LOADROOM(ch) = GET_ROOM_VNUM(IN_ROOM(ch));
The loadroom is passed as a parameter to save_char. You need to specify it
like this:
In do_quit:
extract_char(ch); /* Char is saved in extract char */
+
+ if (GET_LEVEL(ch) < LVL_IMPL)
+ save_char(ch, loadroom);
Mike
--
+---------------------------------------------------------------+
| FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
| Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
+---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/06/01 PST