>> Ok, this is a question that I have gone over quit a few times and I can't >> seem to figure out. In my mud when you type quit it takes you to the >> menu. If you type 0 it disconnects you. If you then reconnect and login >> it will load you where you left. If you type 1 instead of 0, it will >> take you to where you last loaded, instead of where you quit. This is because save_char is called again in extract_char. What you have to do is in extract_char, you have to turn on the loadroom flag, set the loadroom to the current room, save them in that room, THEN close the socket. SET_BIT(ch, PLR_LOADROOM); GET_LOADROOM(ch) = world[ch->in_room].number; save_char(ch, GET_LOADROOM(ch)); I think that's how I did it. I'm at work (hence the weird address) and I don't have the code here. But I know that extract_char is the problem because there is a save_char(ch, NOWHERE) in there somewhere. -Brian +-----------------------------------------------------------+ | 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