Hateborne
04-27-2014, 03:20 PM
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.
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
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.
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