Thread: is NPC spawned
View Single Post
  #7  
Old 06-20-2014, 01:01 AM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default

Quote:
Originally Posted by Esildor View Post
Grabbing the entity with:

Code:
my $mjarak = $entity_list->GetMobByNpcTypeID(4770039);
if ($mjarak) {
Is working fine. Is there any reason that doing EntityList::IsMobSpawnedByNpcTypeID() any better?
It does the same thing, but in code, so you don't have to worry about go through the quest system. It also makes sure the NPC is alive, since the enity list can contain mobs that are dead and will be quickly removed :P (they get removed on the next cycle)
Reply With Quote