View Single Post
  #4  
Old 09-11-2012, 01:47 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Nothing seems to be working past the line that is now changed to...
Code:
$npc->SignalAllClients(1);
I am guessing there is something wrong there.

Here is what I have, if I leave it like this the mob never despawns. If I remark the new line out, he does despawn.
Code:
## Provocating - Dragons of Mist
## a_hungry_ooze_bud.pl

my $current_size=7;

sub EVENT_SPAWN {
	quest::settimer("increase_size", 3); 
}

sub EVENT_TIMER {
	if($timer eq "increase_size") {
		if ($current_size<25)
		{
			$current_size=$current_size+4;
			quest::npcsize($current_size);
			quest::say("The hungry ooze grows bigger and bigger as it continues to eat the bixie's jum jum silo!");
		} else {
			quest::say("The hungry ooze explodes as it devours all the jum jum in the silo!");
			$npc->SignalAllClients(1);
			quest::depop();
		}
	}
}
Reply With Quote