I am just now experimenting with the quest::signal function, and can't seem to make it work.
The signaling NPC is NPCID 999137 and the signaled NPC is NPCID 999146 (and there are about 40 of the latter in the zone once I spawn2 them through a separate quest script). I have named ea .pl according to its NPCID (999137.pl and 999146.pl) and placed both scripts in the appropriate zone folder.
On the signaling NPC (999137.pl) I have this:
Quote:
sub EVENT_SAY
{
if($text=~/hail/i)
{
quest::signal(999146,10);
}
}
|
And on the signaled NPC (999146.pl) I have this:
Quote:
Sub EVENT_SIGNAL
{
quest::shout("WE WILL FEAST ON THE FLESH OF MAN TODAY!!!");
}
|
This is the exact format I find in the lexicon, yet (although the first NPC responds to the hail) there no shout from NPC 999146 after ten seconds. Do I need to add something to the database? Is there a plug-in I'm missing? I can't seem to figure this one out.