Here is a little update.
I tried to go around quest::modifynpcstat(); and set hps directly with
$npc->SetHP(); and $npc->SetMaxHP();
(also tried using mob-> with same result)
with this simple script
Code:
sub EVENT_SAY
{
if($text=~/Hail/i)
{
$npc->SetMaxHP(9999);
$npc->SetHP(9999);
my $hps=$npc->GetHP();
my $maxhps=$npc->GetMaxHP();
quest::say("my hp is $hps out of $maxhps");
}
}
Results:
-if script contains: $npc->SetMaxHP(); the cript will NOT run - the npc will not reply to Hail at all.
-if script contains ONLY $npc->SetHP(); the ncp will reply to hail but comand WILL NOT have effect- his hps will remain an altered (default)