I added a little piece of code in to do_wake to
prevent someone from waking another player up while
that person is sleeping on a piece of furniture:
if (!IS_NPC(ch) && !IS_NPC(victim) && IS_SET
(victim->on->value[2], SLEEP_ON))
{
send_to_char("That person is far too
comfortable to be woken up.\n\r",ch);
return;
}
It works, but when the person who is sleeping logs out
and logs back in (still sleeping on the furniture) and
the other character tries to wake them it crashes. I'm
not sure what the problem is here. Maybe I need to add
something into another function? Any help would be
great, thanks.
Brittany.
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/