View Single Post
  #5  
Old 12-25-2010, 01:57 AM
Astal
Hill Giant
 
Join Date: Mar 2010
Posts: 236
Default

Quote:
Originally Posted by Akkadius View Post
Here, this should help you out a bit.

This could probably most appropriately be used on a controller NPC or a boss hp event to control the other NPC's.

Code:
my @NPCLIST = $entity_list->GetNPCList();
			my $NPCToRespond = 555; #NPCID to respond
			my $NPCToBeAttacked = 556; #NPCID to be attacked
			foreach $entity (@NPCLIST){
				if($entity->GetNPCTypeID() == $NPCToRespond) {
				$entity->AddToHateList($NPCToBeAttacked, 1);
				}
			}

K ill have to look into it, im not as good at perl as you guys.
Reply With Quote