Re: waking others

Steven Radziul <[email protected]>
Newsgroups gmane.games.devel.mud.rom
Message-ID <000601c541cf$36e9e0e0$6901a8c0@sradziul>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.