Signalling mobs
Hey guys, how would I write a script that would signal to spawn 1 mob after you kill 4 other mobs? I'm workin on writing a quest script that will require you to kill 4 mobs in each wing of PoT A and then once those 4 are down then in the middle of the zone a bigger guy will spawn. I know it involves quest::signal and quest::signalwith, but I'm not sure how you would make it require 4 signals from those 4 mobs to spawn the bigger guy.
I know to spawn a mob after 1 kill its
Killed mob.pl
sub EVENT_DEATH
{
quest::signalwith(npc_id, 1, 0)
}
signalled mob.pl
sub EVENT_SIGNAL
{
quest::say("Testing.");
}
But I'm not sure what would you write to require the signalled mob to need those 4 signals to spawn. Any ideas? Still kinda new at this quest scripting thing.
|