View Single Post
  #11  
Old 05-25-2011, 03:26 PM
Robregen
Developer
 
Join Date: May 2011
Posts: 109
Default

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