PDA

View Full Version : poblem with set apperances


ChaosSlayer
04-04-2008, 09:03 PM
sub EVENT_SPAWN
{
quest::settimer("tmr1",1);

}


sub EVENT_TIMER
{
if($timer eq "tmr1")
{
$npc->SetAppearance(1);
quest::stoptimer("tmr1");
}
}



simple enough right?

2 problems.

1. if you NOT in the zone when mob has spawned, it will appear to be standing up.
2. If mob does laying down, and you begin to fight it - it will stand up, hit you, and drop back down. When mobs attack delay is up, it will stand up again, hit you, and fall again...

Logicaly #stoptimer should have prevented mobs from falling down again, but it don't seem to be happening.

trevius
04-05-2008, 05:34 AM
I normally do the stop timer before anything else. Though, I don't think that should cause problems. Not sure why yours are laying back down again like that. Once thing you might want to do is up the timer number considerably, because it takes a bit for the zone to fully load and I don't think players will see the animation properly unless they have fully loaded in when it happens. Try setting it to 10 or so and see what happens.

Cripp
04-05-2008, 03:35 PM
1. if you NOT in the zone when mob has spawned, it will appear to be standing up.

this has been a big problem for me for a long time.. i have alot of those kind of scripts and to make them actualy work i have to go into the zone and do a #repop.. it doesnt seem to work when the zone is booted.