Task shouldn't be available if it's done...
There's a couple ways to make npc respond after task was complete. The most obvious is to just have the npc handle the reward like any other quest turnin and have them quest::say in that then complete the step via perl.
A player event for task stage completion was just added too. Mostly I found having to dole out rewards when all I wanted was a simple additional effect to be a tad cumbersome. I'd rather have the system do the rewards for me if practical.
ex:
Code:
#player.pl
sub EVENT_TASK_STAGE_COMPLETE
{
if($task_id == 1 && $activity_id == 1)
{
my $somenpc = $entity_list->GetMobByNpcTypeID(123456);
if($somenpc){
$somenpc->Say("Great work! You sure showed that task who's boss.");
}
$somenpc = undef;
}
}