For some reason, I felt challenged by all this...
Perhaps because bedrolls with a bit of extra regen are quite popular
on my game...

It ain't so easy. :)

ch->on is a struct, so you can't just save the vnum and load it to the
char, you have to add a char to the char struct for the name, and then
you have to add some code to the nanny to find the obj...
And when it was all working, but not working, I realised get_obj_list
invokes can_see, which obviously doesn't work for sleepers. :)
Further, what if you log off, and while you're gone, someone else
enters the room and lays out their bedroll? How cozy!

I may try again tomorrow (yawn), or I just might add it to my list of
unsolvables - like the fact that 'put all sack' gives no error if you
have no inventory. :)


Sandi


> Actually, that wouldn't take too much code, just the extra line saved
> and read to/from the pfile for the item #, and the check to see if it's
> in the room, although I've got a couple of additions to this idea... you
> would want to make sure the piece of furniture, if it does exist, isn't
> going to break any of its rules by putting this person to sleep on it...
> i.e. if it only holds 2 people and 2 people are already sleeping on it,
> you'd want to just sleep the new entry on the floor instead of the bed
> or whatever... also, it's probably not such a good idea to create the
> object if it doesn't exist, or else players will eventually exploit that
> when they realize they can take this 200/200 recliner or something,
> sleep, quit, have their friend pick it up and walk out of the room, and
> then re-enter and clone the item for themselves... I'd say if it's not
> there or it's going to break its own limits by assigning them to
> sleeping on it, you should just sleep them on the floor... my 2 cents :D
> 
> Richard Lindsey.
> 
> -----Original Message-----
> From: Steven Radziul [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 15, 2005 10:24 AM
> To: [email protected]
> Subject: Re: waking others
> 
> 
> 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
> --
> ROM mailing list
> [email protected]
Unsubscribe here ->>>> http://www.rom.org/cgi-bin/mailman/listinfo/rom

Reply via email to