Thread: NPC Agro
View Single Post
  #5  
Old 01-21-2009, 03:59 PM
janusd
Sarnak
 
Join Date: Jan 2008
Posts: 47
Default

So if I did...

Code:
my $mobname = $entity_list->GetMobByNpcTypeID(123456);
$NPC->AddToHateList($mobname, 200);
This code would cause the NPC whose PERL file this is in to agro ONTO the NPC specified in the GetMobByNpcTypeID with the specified amount of 200 hate, right?

Would this then, in the code logic, constitute the NPC as being agroed for the events defined in a sub EVENT_AGRO?

Finally, does AssignWaypoints(grid) work to add a specific wander grid to an NPC and then does AssignWaypoints() work to remove that grid? I know I've heard before that some of the functions don't work and I'm at work, so can't test ATM. Thanks!
Reply With Quote