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!!