> G'Day, > I'm trying to save the players location when they type the word "quit", > but it seems to be saving the location as -1 (ie NOWHERE). I have modified > the code in a number of places. (listed below). This is for win95 also. and > rent is for free. > <snip> > // MY ADDITIONS HERE > // Saves the player to the room they are in - Jus. > save_room = ch->in_room; > ch->player_specials->saved.load_room = IN_ROOM(ch); > save_char (ch, save_room); > <snip> ch->in_room is the real room number (i.e. vnum 0 100 200 0 is 0 100 is 1 200 is 2) so this wouldn't work. IN_ROOM(x) returns the same thing. so here is what you need. ... code ... = world[IN_ROOM(ch)].number; > this is as much as I can remember. Please please .. help =~~~~~~~( > > a crying jussy. That should do it! :) Hope it works. Christopher M. Ryan drizzt@visi.net http://www.visi.net/~drizzt/index.html http://www.visi.net/~drizzt/quake/index.html +-----------------------------------------------------------+ | 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