To assign the task, add a Perl quest to the NPC. E.g. if I wanted V'Lynn Renloe in PoK to assign the task, I would put this:
Code:
sub EVENT_SAY
{
if($text=~/hail/i)
{
if(!quest::istaskactive(1000) && !quest::istaskcompleted(1000))
{
quest::say("Assigning you task to kill Fennin Ro,");
quest::assigntask(1000);
}
}
}
in quests\poknowledge\V-Lynn_Renloe.pl
Note the Perl checks if you already have the task in your active tasks, or if you have completed it before.