Jump to content
  • 0

Instance NoNPC: treu


Onairda

Question


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   9
  • Joined:  12/30/16
  • Last Seen:  

Hello Everyone,

I have created an instance with the setting NoNPC: true. This prevents copying NPCs from the source map.

How can I enable my custom NPC inside the instance? Even though I have set NoNPC, the script I am using (see below) is not enabling the NPC inside the instance.

 

// Instance Controller NPC (Triggers OnInstanceInit)
moc_fild17,37,289,0	script	InstanceSpawner#DD	1001,{
	end;

OnInstanceInit:
	// Broadcast to the instance map
	mapannounce instance_mapname("moc_fild17"), "[System]: The monsters have arrived!", bc_map;

	// Spawn mobs in the instance
	monster instance_mapname("moc_fild17"), 50, 50, "Phreeoni Minion", 1002, 10;
	monster instance_mapname("moc_fild17"), 53, 53, "Phreeoni", 1159, 1;

	// Enable the instance NPC
	enablenpc instance_npcname("PhreeoniHelper#DD");
	end;
}

// Instance-Only NPC (initially hidden)
moc_fild17,42,292,0	script	PhreeoniHelper#DD	100,{

	mes "Hello!";
	mes "Welcome to the Phreeoni Instance.";
	close;

OnInit:
	// Hide globally — needed due to NoNpc: true
	hideonnpc strnpcinfo(0);
	end;
}

Thank you!!

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...