wow, that works like a charm. this code works like it should for those that had trouble:
sub EVENT_COMBAT {
if($combat_state == 1){
my $cur_target = $npc->GetHateTop();
if($cur_target) {
my $target_name = $cur_target->GetCleanName();
quest::say("Time to die $target_name!");
}
}
}
Thanks Congdar!!!
|