Re: waking others

David Wilson <[email protected]>
Newsgroups gmane.games.devel.mud.rom
Message-ID <[email protected]>
On 4/16/05, Sandi Fallon <[email protected]> wrote:
<snip>
> 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. :)

From a mathematics standpoint, it makes perfect sense. And it's really
quite simple to solve, anyway.

Anyway, there's no reason to save the ->on structure.
When you save the player you can just force the bed into his inventory
so it's saved with the rest of hist stuff, and set some flag in the
savefile so that when the bed is loaded, it isn't put into the
inventory but is instead loaded into the room and the player is placed
on it, asleep.

Sunday or Monday I'll code it up if there's still demand.

-David

> Sandi
-- 
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.