View Single Post
  #4  
Old 12-14-2010, 02:36 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

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.
Reply With Quote