The problem with that though, is say there's a really good, healing-boosting bed in your mud. I get one, and go to sleep on it, then quit out. I go away, but the bed stays there. My buddy picks the bed up, and I log back in. Since the bed's gone, the mud spawns a new one for me to sleep on. Now I have two beds. I sell one for 80 bazillion gold, lather, rinse and repeat.
So what you really ought to do (and this is pretty complex) is when a person quits, see if they can pick up the object that they're sleeping on. If they can, put it in their inventory, and save it with the player, and somehow flag that they need to wake up on this object when they load. If they can't pick up the object, make them stand, or go to sleep on the floor or whatever, and skip the whole process. Then when they load, check to see if they need to be put asleep on an object in their inventory, take the object out of their inventory, put it in the room, and put the player to sleep on it. -David On 4/15/05, Steven Radziul <[EMAIL PROTECTED]> wrote: > > There is another way for which you could do this which would be long and > painful but it would be doable..Save the item # of the object for which > their sleeping on within the save file before they quit... if their > sleeping... when they login, look for just where it calls the function to > put them in the room.. Check to see if the object is there, and if such, > simply put them to sleep on the object setting ch->on to what the object > number is, if not load the object drop it in the room and then set > ch->on...do this before calling do_look... you could pop a message to the > room like So and So poofs from non existance sleeping on bleh.... so players > knew what was going on.. > > this is a long drawn out process, but this is what I would do... This would > also take quite a bit of code.. > > > ----- Original Message ----- > From: "Witt Hinton" <[EMAIL PROTECTED]> > To: "Richard Lindsey" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]>; <[email protected]> > Sent: Friday, April 15, 2005 10:52 AM > Subject: Re: waking others > > >I think the best option for this ix would be to code in the do_quit > > function a part where they just deault to standing each time they > > quit. That is indeed a little hackish I know, but it would fix that > > problem because there is nowhere where a ch->on is saved as well as > > the possible problem of the bench/couch/whatever will not be in the > > room next time they load. You could even just have them stand up and > > sit down so when they log in next time they are sitting or resting. I > > think it's just a generally bad idea to presume a piece of furniture > > will be in the room when they log again (which will result in a crash > > or sure if it's not). That's just my thought, I've done something > > similar and no one really even notices or has said anything about it. > > There's my 2 cents. Best of luck! > > --Witt > > > > On 4/14/05, Richard Lindsey <[EMAIL PROTECTED]> wrote: > >> nice mindset, and one i agree with wholeheartedly :D > >> > >> Richard Lindsey. > >> > >> > >> -----Original Message----- > >> From: David Wilson [mailto:[EMAIL PROTECTED] > >> Sent: Thu 4/14/2005 7:21 PM > >> To: [email protected] > >> Cc: > >> Subject: Re: waking others > >> Heh, keep trying, I learned to program on ROM code. If you aren't > >> breaking something, you aren't trying. > >> > >> -David > >> > >> On 4/14/05, Brinny <[EMAIL PROTECTED]> wrote: > >> > haha! wow, I didn't even check to see if it would > >> > crash when a player is just sleeping on the ground. It > >> > did crash afterall. I suppose this will have to wait > >> > until I'm a better programmer :) Thanks for all your > >> > help. > >> > > >> > Brittany. > >> -- > >> ROM mailing list > >> [email protected] > >> Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom > >> > >> -- > >> ROM mailing list > >> [email protected] > >> Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom > >> > > -- > > ROM mailing list > > [email protected] > > Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom > > > > -- > ROM mailing list > [email protected] > Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom >

