Previously, you had to set a timer before changing the animation to make them lay down like this:
Code:
sub EVENT_SPAWN {
quest::settimer("sleep",5);
}
sub EVENT_TIMER {
if ($timer eq "sleep") {
quest::stoptimer("sleep");
$npc->SetAppearance(0);
$npc->SetAppearance(3);
quest::settimer("sleep",300);
}
}
But, I think this should work for it now:
Code:
sub EVENT_SPAWN {
$npc->SetAppearance(3);
}
I am not aware of any crashes like you explained, but maybe there was something you did wrong, I dunno. At least one of these ways should work out for you. The reason the timer one is set to repeat is because we previously did not send out appearance packets for animations for new people zoning in, so you would have to set the appearance repeatedly so new players zoning in could see it.