Found EntityVariableExists() under the mob-> commands,
Tried the following with no luck.
Code:
if (defined $qglobals{"MjarakIsDead"}){ ###Mjarak 2 min warning
my $mjarak = $entity_list->GetMobByNpcTypeID(4770015);
if ($mjarak->EntityVariableExists()){
quest::ze(15, "texthere");
quest::settimer(4772, 120);
}
}