View Single Post
  #1  
Old 04-27-2014, 03:20 PM
Hateborne
Hill Giant
 
Join Date: May 2010
Posts: 125
Question Get All NPCs by NPCTypeID

Hilariously stupid quest, maybe I'm just hungry.

Is there any easy way to pull all the NPCs by npc_type id?

I thought the below bit would work, but it seems to only pull one. I have 11 of npc_type id 12345 in the zone, but it seems to only select one of them.
Code:
my @creatures = $entity_list->GetNPCByNPCTypeID(12345);
I am using this in the default.pl for the zone and I'm trying to select three of them to start on a grid.

Pre-emptive thank you!
-Hate
Reply With Quote