Thread: is NPC spawned
View Single Post
  #1  
Old 06-19-2014, 03:42 PM
Esildor
Hill Giant
 
Join Date: Feb 2010
Posts: 207
Default is NPC spawned

Hola,

Is there a way to check if an NPC is spawned before doing something?

Something like:

Code:
if (defined $qglobals{"MjarakIsDead"}){ 
		my $mjarak = $entity_list->GetMobByNpcTypeID(4770015);
		if ($mjarak == 1){
		quest::ze(15, "texthere");
		quest::settimer(4772, 120);
		}
		else {
		}
		}
The if ($mjarak == 1) { was just wishful thinking, I've tried if ($mjarak->IsMob()){ too.
Reply With Quote